/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 1366px) {
  .header {
    padding: 0 5rem;
  }

  .section-main {
    background-image: none;
  }

  .section-hero {
    background-image: url("../img/Lap top.png");
    background-position: 137rem;
  }

  .hero-info {
    margin-left: 74rem;
  }

  .hero-info-2 {
    left: 9.5rem;
  }

  .three-colors {
    right: 74px;
  }

  .featured-icons {
    margin-left: 62rem;
  }

  .team-picture img {
    width: 45%;
    height: 10%;
    top: 1283px;
  }

  .hero-info-3 {
    margin-left: 78rem;
  }

  .hero-info-4 {
    left: 9.5rem;
  }

  .featured-models img {
    left: 718px;
    width: 45%;
  }

  .section-testimonial {
    left: 23px;
  }

  .section-how {
    left: 95px;
  }

  .footer {
    left: 95px;
  }
}

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
    margin-left: 4rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }
  /* 
  .section-featured {
    display: none;
  } */
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }

  .testimonial-box {
    width: 100%;
  }

  .modal {
    width: 60%;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  .logos img {
    height: 2.4rem;
  }

  .section-testimonials {
    grid-template-columns: 1fr;
  }

  .cta {
    /* 3/5 = 60% + 2/5 = 40% */
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .btn--form {
    margin-top: 1.2rem;
  }

  .modal {
    width: 80%;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.902);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    opacity: 0;

    pointer-events: none;

    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }

  .main-nav-link:hover,
  .main-nav-link:active {
    color: #34a3a9;
    padding-bottom: 0;
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-hero .hero-text-box .heading-primary,
  p {
    color: #555;
  }

  .section-hero .hero-text-box .heading-tertiary {
    color: #555;
  }

  .section-hero .hero-text-box .hero-text {
    color: #555;
  }

  .break-line {
    border-color: #555;
    margin: 0 auto 6.8rem auto;
  }

  /* .section-hero {
    padding: 0 0;
  } */

  .heading-secondary {
    margin-bottom: 4.8rem;
    margin-left: 4rem;
  }

  .grid--footer {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 3.2rem;
    gap: 6.4rem;
    margin-left: 0;
  }

  .hero-text-box img {
    display: block;
    width: 100%;
    padding-bottom: 9.6rem;
  }

  .main-section {
    background-image: none;
    background-color: #f8f8f8;
  }

  .hero-text-box {
    text-align: center;
  }

  .featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial .grid {
    grid-template-columns: 1fr;
  }

  .testimonial-box {
    width: 100%;
  }

  .grid {
    gap: 4rem;
  }

  .section-how .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
  .section-main {
    background-image: none;
    height: 100%;
    width: 100%;
  }

  .section-hero {
    background-image: none;
    padding: 0;
    background-color: #f5f5f5;
    width: 100%;
    height: 454px;
  }

  .hide-btn-2 {
    display: none;
  }
  .hero-info,
  .hero-info-2,
  .hero-info-3,
  .hero-info-4,
  .featured-icons img,
  .team-picture img,
  .featured-models img,
  .section-testimonial,
  .section-how,
  .footer,
  .section-featured {
    position: static;
  }

  .three-colors,
  .hero-description-2,
  .hide-btn {
    display: none;
  }

  .section-featured {
    height: 76.4rem;
    background-color: #ebebeb;
    padding: 8rem 0;
  }

  .container-featured-icons {
    width: 114.37px;
    height: 114.37px;
  }
  .container-featured-icons img {
    width: 150%;
  }

  .featured-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 2rem;
    margin-top: 2rem;
    width: 20%;
    grid-gap: 6rem;
  }

  .hero-info-2 {
    height: 5rem;
  }

  .mob-img {
    display: block;
  }

  .mob-img img {
    width: 100%;
  }

  .hero-info {
    margin-left: 2rem;
    width: 100%;
  }

  .heading-primary {
    padding-top: 0;
    width: 100%;
  }

  .hero-description {
    width: 100%;
  }

  .hero-btn a {
    position: static;
  }

  .featured-text {
    display: none;
  }

  .section-featured {
    background-image: none;
  }

  .main-nav {
    border-bottom: none;
  }

  .header {
    border-bottom: none;
  }

  .hero-info {
    width: 80%;
    padding: 4rem 2rem;
    position: relative;
  }

  a.hero-btn {
    top: 94%;
    width: 22.8rem;
    height: 5.8rem;
    padding-top: 2.3rem;
  }

  .section-team {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-info-2 {
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0rem 2rem;
  }

  .hero-info-3 {
    padding: 4rem 2rem;
    width: 80%;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .hero-description-3 {
    box-sizing: inherit;
  }

  .hero-btn-4 {
    display: none;
  }

  .team-picture img {
    width: 90%;
    height: 90%;
    top: auto;
    margin-top: 24rem;
    padding-left: 4rem;
    border-radius: 8px;
    margin-bottom: 5.5rem;
  }

  .mobile-team-pic {
    display: block;
  }

  .desktop-team-pic {
    display: none;
  }

  .heading-secondary {
    margin-left: 0rem;
    line-height: 4.4rem;
    margin-top: 4rem;
  }

  .section-models {
    background-color: #ebebeb;
    width: 100%;
    height: 107.3rem;
  }

  .hero-info-4 {
    padding: 4rem 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    width: 100%;
  }

  .hero-info-4 img {
    display: block;
    width: 115%;
    margin-left: -4rem;
  }

  .section-testimonial {
    margin-left: 0;
  }

  .card-img {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(/img/We\ are\ Flexible.png);
  }

  .card-img-2 {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(/img/We\ are\ in\ trend.png);
  }

  .card-img-3 {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(/img/We\ are\ dedicated.png);
  }

  .card-container {
    padding-top: 5rem;
    background-color: #060908;
    margin: 0;
    min-width: 100vw;
    border-radius: 0;
    height: 32.7rem;
  }

  .container-3 {
    height: 42rem;
  }

  .card-text-flex {
    top: 0;
  }
  .card-text-trend {
    top: 0;
  }
  .card-text-dedicated {
    top: 0;
  }

  .featured-models {
    display: none;
  }

  .fetured-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
  }

  .icon-container {
    width: 11.6rem;
    height: 11.6rem;
    background-color: #ffffff;
    text-align: center;
    border-radius: 1.2rem;
    justify-self: center;
    transition: all 0.3s;
  }

  .icon-container:hover {
    background-color: #071311;
  }

  .icon-container:hover p {
    color: #00ffe1;
  }

  .icon-container:hover .img-icon {
    background-color: #071311;
  }

  .section-testimonial {
    display: block;
    margin-top: 10rem;
    margin-bottom: 10rem;
  }

  .card-img {
    min-width: 100vw;
    border-radius: 0;
  }
  .card-img-2 {
    min-width: 100vw;
    border-radius: 0;
  }
  .card-img-3 {
    min-width: 100vw;
    border-radius: 0;
  }

  .card-text-2 {
    margin-top: -20rem;
    color: #b8b8b8;
    font-size: 16px;
  }

  .section-how {
    background-image: url(/img/background.png);
    background-size: cover;
    border-radius: 0;
    width: 100%;
    height: 100%;
    padding: 6rem 0;
  }

  .how-text {
    position: relative;
    text-align: center;
    width: 100vw;
    height: 100%;
    padding-top: 3rem;
    padding-left: 4rem;
    padding-right: 4rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    border-radius: 0;
    top: 14%;
  }

  .hero-btn-2 {
    margin-bottom: 5rem;
  }

  .btn-center {
    display: flex;
    justify-content: center;
  }

  .heading-tertiary {
    font-size: 5rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .footer {
    padding: 0;
    border-top: none;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-top: 0rem;
    margin-bottom: 0;
    box-shadow: none;
    background-color: #f5f5f5;
  }

  .footer .container {
    padding: 0;
    gap: 0;
  }

  .logo-col {
    grid-row: 3;
    background-color: #fff;
    padding: 3rem 5rem;
  }

  .address-col {
    padding: 3rem 5rem 3rem 5rem;
    background-color: #fff;
    width: auto;
  }
  .nav-col {
    display: none;
    grid-row: 1;
    padding: 3rem 5rem;
  }

  .img-icon {
    width: 11.6rem;
    height: 7.5rem;
    border-radius: 1.2rem;
  }

  .social-links {
    margin-bottom: 25.6px;
  }

  .company-links {
    font-family: "Arial" !important;
  }

  .card-text-2 {
    text-align: left;
  }

  .card-text-flex {
    text-align: left;
    padding-left: 2rem;
  }

  .card-text-trend {
    text-align: left;
    padding-left: 2rem;
  }

  .card-text-dedicated {
    text-align: left;
    padding-left: 2rem;
  }
}

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