:root {
  --bg-color: #081b29;
  --second--bg-color: #112e42;
  --main--color: #00abf0;
  --text-color: #ededed;
  --glow-color: #4ecdc4;
  --second-text-color: #8d8d8d;
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media screen and (max-width: 1027px) {
  header {
    padding: 2rem 4%;
  }
  section {
    padding: 10rem 4% 2rem;
  }
}

@media screen and (max-width: 875px) {
  .contact-content .form-content {
    grid-template-columns: 1fr;
  }
  section.home {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }

  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
  }

  .home .home-img .img-box {
    width: 30rem;
    height: 30rem;
  }
}

@media screen and (max-width: 768px) {
  header #menu-mobile {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    margin: 4rem 0;
  }

  .about .about-img .img-box {
    width: 25rem;
    height: 25rem;
  }

  .resume .resume-box,
  .portfolio .portfolio-box,
  .contact .contact-box {
    grid-template-columns: 1fr;
  }

  .resume .resume-box {
    gap: 3rem;
  }

  .portfolio .portfolio-box .portfolio-content:first-child {
    order: 1;
  }
}

@media screen and (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media screen and (max-width: 400px) {
  .home .home-img .img-box {
    width: 20rem;
    height: 20rem;
  }

  .home .home-btns {
    flex-direction: column-reverse;
  }
  .home .home-btns .home-sci-btns {
    margin-left: 0;
    margin-bottom: 2rem;
  }
  .about .about-img .img-box {
    width: 20rem;
    height: 20rem;
  }

  .resume {
    height: 100vh;
  }

  .about p {
    text-align: center;
  }
  .home-content,
  .resume .resume-content h2,
  .resume .resume-content .resume-title,
  .resume-content .desc,
  .resume-content .resute-detail.education .resume-list {
    text-align: center;
  }

  .contact-box .contact-content form {
    padding: 2.5rem 3rem 3.5rem;
  }
  .contact-box .contact-content h2 {
    font-size: 3.5rem;
  }
}
