/* NAV */

.links {
  margin-bottom: 0;
}

/* HOMEPAGE */

/* BACKGROUND */

.bg_line {
  position: absolute;
  width: 20em;
  height: 100%;
  top: -5%;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  z-index: -100;
}

#home_line {
  display: none;
}

#home_line_m1 {
  stroke-dasharray: 10000;
  stroke-dashoffset: 10000;
  animation: 5s linear 0.5s forwards bgDrawLine;
}

@keyframes bgDrawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.container {
  height: 100vh;
}

.illustration_me {
  width: 100%;
}

#hire_me {
  width: 25%;
  transform: translate(50%, -70%) rotate(20deg);
  cursor: pointer;
}

.bg_hire {
  opacity: 0;
  transition: all 0.5s;
}

.hire_text {
  transition: all 0.5s;
}

.greeting {
  text-align: center;
}

.greeting_h1 {
  font-size: 4.5em;
}

.greeting_h2 {
  font-size: 3em;
}

/* ABOUT */

#about {
  margin-top: 7em;
}

.photo_me {
  background-image: url(../img/profile.png);
  background-size: cover;
  background-position: center;
  width: 15em;
  height: 15em;
  margin: 0 auto;
  margin-bottom: 2em;
  border-radius: 50%;
  border: 2px solid var(--black);
}

.about_h2 {
  font-size: 2.5em;
  margin: 0;
  line-height: 1;
}

.about_p {
  margin-top: 1em;
}

.portfolio_bttn {
  display: block;
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.portfolio_bttn_t {
  transition: all 0.5s;
}

/* FOOTER */

footer {
  display: grid;
  grid-template-columns: repeat(3, min-content);
  justify-content: center;
  grid-gap: 3em;
  margin-top: 2em;
  padding-bottom: 3em;
  transform: translateY(450px);
}

.fa-w-14 {
  fill: var(--black);
  width: 35px;
  cursor: pointer;
}

@media (min-width: 768px) {
  #home_line_mob {
    display: none;
  }

  #home_line {
    display: block;
  }

  .bg_line {
    width: 50em;
    transform: translate(-55%, 10%) rotate(0deg);
  }

  #home_line1 {
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
    animation: 8s linear 0.5s forwards bgDrawLine;
  }

  #home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .greeting {
    text-align: left;
    align-self: center;
    transform: translateY(-15%);
  }

  .greeting_h2 {
    margin-bottom: 0;
  }

  #about {
    display: grid;
    grid-template-columns: fit-content(55%) min-content;
    grid-gap: 2em;
    justify-content: center;
    margin-top: 0;
  }

  .photo_me {
    grid-column: 2 / 3;
    margin-bottom: 0;
    align-self: center;
    height: 30em;
    border-radius: 200px;
  }

  .about_content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center;
  }

  .about_h2 {
    font-size: 3em;
  }

  footer {
    justify-content: left;
    transform: translateY(300px);
  }
}

@media (min-width: 992px) {
  .bg_line {
    width: 60em;
  }

  .greeting_h1 {
    font-size: 5em;
  }

  .greeting_h2 {
    font-size: 4em;
  }
}

@media (min-width: 1200px) {
  .bg_line {
    width: 70em;
  }

  #home,
  #about {
    height: 80vh;
  }

  .illustration_me {
    width: 85%;
    display: block;
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  .bg_line {
    width: 80em;
  }

  .greeting_h1 {
    font-size: 7em;
  }

  .greeting_h2 {
    font-size: 6em;
  }

  .photo_me {
    width: 20em;
    height: 35em;
  }

  .about_h2 {
    font-size: 4.5em;
  }

  .about_p {
    font-size: 1.3em;
  }
}
