@media (min-width: 320px) and (max-width: 1270px) {
  html {
    font-size: 50%;
  }

  nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--black);
    width: 100%;
    padding: 5rem;
    display: flex;
    align-items: start;
    justify-content: start;
    border-top: 1px solid var(--white);
  }
  .nav-hide {
    display: none;
  }

  nav li a {
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
  }
  nav li a:hover {
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .header-social-link {
    display: none;
  }
  .header-mobile-btn {
    display: block;
  }
  .header-close-btn {
    display: none;
  }
  .header-menu {
    max-width: 132rem;
    padding: 2rem;
    background-color: var(--black);
  }
  .header_logo img {
    width: 50%;
  }
  .header-menu-btn {
    color: var(--black);
  }
}

@media (min-width: 320px) and (max-width: 767px) {
  .grid-two-cols {
    grid-template-columns: 1fr;
  }
  .grid-three-cols {
    grid-template-columns: 1fr;
  }
  .grid-four-cols {
    grid-template-columns: 1fr;
  }
  .features .grid {
    gap: 1rem;
  }
  .features .grid-four-cols {
    grid-template-columns: 1fr 1fr;
  }
  .features-text h3 {
    font-size: 2.7rem;
  }
  .about .wrapper-heading {
    text-align: center;
    padding-bottom: 0rem;
  }
  .about-box-img .car4,
  .about-box-img .car1,
  .about-box-img .car3 {
    right: -1rem;
  }
  .about-box-img .car4 {
    top: -2rem;
  }
  .about-box-img .car1 {
    top: 7rem;
  }
  .about-box-img .car3 {
    top: 16rem;
  }
  .choose-us .grid {
    gap: 2rem;
  }
  .choose-us .grid-three-cols {
    grid-template-columns: 1fr 1fr;
  }
  .choose-us-box img {
    width: 70px;
  }
  .services .wrapper-heading p {
    width: 100%;
  }
  .testi-data h3 {
    font-weight: 300;
    padding: 0rem;
    font-size: 2.5rem;
  }
  .a-section-marquee-box h2 {
    font-size: 3rem;
  }
  .a-section-marquee-box {
    height: 100px;
  }
  .services-box img {
    width: 80px;
  }
  .subfooter{
    flex-wrap: wrap;
  }
}
