/* * 960px * */
@media only screen and (max-width: 60em) {
  .header__navigation ul {
    gap: 2rem;
  }

  .btn:link,
  .btn:visited {
    /* font-size: 1.8rem; */
    padding: 0.8rem 1.6rem;
  }

  .section-about article {
    flex-direction: column;
  }

  .about__text-box {
    width: 80%;
  }

  .about__img-box {
    width: 80%;
  }

  .teams {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
  }

  .teams__row {
    gap: 3rem;
  }
}

/* * 704px * */
@media only screen and (max-width: 44em) {
  /* ! MOBILE MENU */

  html {
    font-size: 50.5%;
  }

  .header__navigation {
    order: 1;
    padding: 4rem 2rem 2rem;
    box-shadow: 0px 0 6px rgba(0, 0, 0, 0.5);

    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    /* width: 100%; */
    height: 100vh;
    background-color: var(--secondary-color);

    transform: translateX(100%);
    transition: all 0.5s ease-in;
    z-index: 999;
    overflow: hidden;
  }

  .header {
    /* position: fixed; */
  }

  .header__icon {
    background-color: var(--secondary-color);
    background-color: #9dd7c6bb;
    padding: 1rem;
    border-radius: 3px;
  }

  .header__navigation.active {
    z-index: 999;
    transform: translateX(0);
    overflow-y: hidden;
  }

  /* .header__navigation.active main,
  .header__navigation.active header {
    overflow: hidden !important;
  } */

  .header__navigation ul {
    flex-direction: column;
    align-items: start;
  }

  .header__navigation .btn-mobile {
    /* opacity: 1; */
    display: flex;
    justify-content: flex-start;
  }

  .header .active {
    opacity: 1;
    display: block;
    font-size: 3rem;
    color: #fff;
    z-index: 99;
  }

  .header__btn-box {
    display: none !important;
  }

  .desktop-icons {
    display: none !important;
  }
  .container-hero {
    width: 100%;
  }
}

/* !400px */
@media only screen and (max-width: 60em) {
  /* ! MOBILE MENU */

  .about__text-box {
    width: 100%;
    text-align: justify;
  }

  .about__img-box {
    width: 80%;
    justify-content: start;
  }

  .about__img-box > img {
    width: 100%;
  }

  .container-utility .text-box {
    text-align: justify;
    padding: 1rem;
  }

  .teams__row {
    gap: 1.4rem;
  }

  .teams__row--card {
    justify-content: stretch;
    align-items: baseline;
  }
  .teams__row--card h4 {
    font-size: 1.2rem;
    padding: 1rem 0.2rem;
  }

  #image-carousel {
    animation: scrollAnimation 70s linear infinite;
  }

  .carousel-image {
    width: calc(33.3333333333% - 20px);
  }
}

@media (max-width: 23em) {
  #image-carousel {
    animation: scrollAnimation 50s linear infinite;
  }

  .carousel-image {
    width: calc(50% - 20px);
  }
}
