:root {
  --text-color: #fff;
  --main-color: #0ef;
  --bg-color: #010a16;
  --second-bg-color: #0a1524ef;
  /* --bg-color: #1f242d;
  --text-color: #fff;
  --main-color: #0ef;
  --second-bg-color: #323946; */
}
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }
  .services {
    padding-bottom: 7rem;
  }
  .portfolio {
    padding-bottom: 7rem;
  }
  .contact {
    min-height: auto;
  }
  .contact form {
    margin: 1rem auto;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 70rem;
  }
  .footer {
    padding: 2rem 3%;
  }

  .about_img img {
    width: 35vw;
  }
}

@media (max-width: 768px) {
  #menu_icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: 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);
    display: none;
  }
  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  .home {
    flex-direction: column;
  }
  .home_content h3 {
    font-size: 2.6rem;
  }
  .home_content h1 {
    font-size: 5rem;
  }
  .home_img img {
    margin-top: 4rem;
  }
  .about {
    flex-direction: column-reverse;
  }
  .about_img img {
    width: 70vw;
    margin-top: 4rem;
  }
  .services h2 {
    margin-bottom: 3rem;
  }
  .portfolio h2 {
    margin-bottom: 3rem;
  }
  .portfolio_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 617px) {
  .portfolio_container {
    grid-template-columns: 1fr;
  }

  .footer_text p {
    font-size: 1.3rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .contact form .input_box input {
    width: 100%;
  }
}

@media (max-width: 365px) {
  .home_img img {
    width: 90vw;
  }
  .about_img img {
    width: 90vw;
  }
  .footer {
    flex-direction: column-reverse;
  }
  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}
