* {
  margin: 0;
  border: 0;
  font-family: "Open Sans", sans-serif;
}

.container {
  background-color: black;
  overflow: hidden;
}

/*******INTODUCTION********/

.salute {
  height: 100vh;
  display: flex;
  overflow: hidden;
  align-items: center;
}

.saluteTextContainer {
  flex: 3;
}
.saluteText {
  color: #333;
  font-size: 30vw;
  cursor: default;
  width: 100%;
}

.saluteImgContainer {
  flex: 1;
}

.saluteImg {
  width: 90%;
}

.nameContainer {
  height: 100vh;
  background-color: crimson;
}
.name {
  font-size: 9vw;
  text-align: center;
  line-height: 100vh;
  cursor: default;
  color: #333;
}

.jobTitleContainer.dark {
  height: 100vh;
  background-image: url(./img/bg1.png);
}

.jobTitleContainer.purple {
  background: crimson url(./img/bg2.png);
}

.jobTitle {
  font-size: 6vw;
  color: #333;
  line-height: 100vh;
  cursor: default;
}

/*****PROJECTS******/

.projects {
  display: flex;
  flex-direction: column;
  padding: 0 100px;
  gap: 30vh;
}

.projectsTitle {
  color: #333;
  font-size: 10vw;
}

.project {
  display: flex;
  align-items: center;
  gap: 100px;
  height: 100vh;
  overflow: hidden;
}

.project:nth-child(2n) {
  flex-direction: row-reverse;
}

.projectTitle {
  color: #333;
}

.projectDesc {
  color: #333;
}

.phone {
  width: 300px;
  height: 600px;
  position: relative;
  flex: 1;
  z-index: 999;
}

.phoneScreen {
  width: 264px;
  height: 567px;

  position: absolute;
  top: 17px;
  left: 18px;
  border-radius: 28px;
  overflow: scroll;
}

.phoneScreen::-webkit-scrollbar {
  display: none;
}
.phonePhoto {
  width: 100%;
}

.projectDetail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.projectTitle {
  color: #555;
  font-size: 7vw;
}

.projectDesc {
  color: #555;
  font-size: 20px;
  text-align: justify;
  line-height: 40px;
}

.projectButton {
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid #555;
  cursor: pointer;
  color: #555;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.projectButton:hover.projectButton::after {
  transform: translateX(100%);
}

.projectButton::after {
  content: "View Demo";
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: #555;
  color: #222;
  top: 0;
  left: -100%;
  transition: 1s all;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.laptop {
  width: 600px;
  height: 379px;
  flex: 1;
  position: relative;
  z-index: 999;
}

.laptopScreen {
  position: absolute;
  width: 451px;
  height: 283px;
  top: 18px;
  left: 68px;
  overflow: scroll;
}

.laptopScreen::-webkit-scrollbar {
  display: none;
}

.laptopPhoto {
  width: 100%;
}

/*********GITHUB**********/

.githubContainer {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
}

.githubTitle {
  font-size: 100px;
  color: #333;
  margin-bottom: 75px;
}

.dates {
  color: #555;
  padding: 10px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.githubChart {
  width: 820px;
  text-align: center;
}

.boxContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.box {
  width: 15px;
  height: 15px;
  background-color: #171c25;
  border-radius: 2px;
  cursor: pointer;
  transition: 3s all ease;
}

.active:nth-child(4n) {
  background-color: #40c463;
}

.githubChart:hover .active:nth-child(2n + 1) {
  background-color: #30a14e;
}
.githubChart:hover .active:nth-child(2n) {
  background-color: #216e39;
}

.githubSm {
  display: none;
}

/*********Footer*************/

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

footer a {
  color: crimson;
}

@media screen and (max-width: 1024px) {
  .projects {
    padding: 0 30px;
    text-align: center;
  }

  .project {
    flex-direction: column;
    height: max-content;
  }

  .project:nth-child(2n) {
    flex-direction: column;
  }
  .phone,
  .laptop {
    transform: none !important;
  }

  .githubChart {
    display: none;
  }

  .githubTitle {
    text-align: center;
    font-size: 10vh;
  }

  .githubSm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #555;
    font-size: 30px;
    text-align: center;
  }
  .githubImg {
    height: 50vh;
    cursor: pointer;
  }
}

@media screen and (max-width: 767px) {
  .githubImg {
    height: 40vh;
    cursor: pointer;
  }

  footer {
    font-size: 12px;
  }

  .laptopImg {
    width: 380px;
    height: 280px;
  }

  .laptop {
    width: 600px;
    height: 379px;
    flex: 1;
    position: relative;
    z-index: 999;
  }

  .laptopScreen {
    position: absolute;
    width: 285px;
    height: 200px;
    top: 15px;
    left: 154px;
    overflow: scroll;
  }
  .githubTitle {
    font-size: 50px;
    margin-top: 75px;
    margin-bottom: 75px;
  }
  .githubDesc {
    font-size: 34px;
    text-transform: uppercase;
  }
}
