@media (min-width: 64em) {
  h1 {
    font-size: 6.4rem;
  }

  h3 {
    font-size: 4.8rem;
    line-height: 4.8rem; /* 75.979% */
    letter-spacing: -1px;
  }

  /******* Header *******/

  .container-nav {
    margin: 2.4rem 4.8rem;
  }

  .trigger {
    display: none;
    visibility: hidden;
    opacity: 0;
  }

  nav {
    display: flex;
    visibility: visible;
    opacity: 1;

    align-self: center;
    position: unset;
    gap: 13.6rem;
  }
  .nav-lists {
    flex-direction: row;
    gap: 2rem;
  }

  .page-active {
    border-bottom: 1px solid #000;
  }

  .nav-lists li a span:first-child {
    font-size: 2rem;
  }

  .nav-lists li a span:last-child {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .nav-lists a span:first-child::before {
    content: "";
    position: absolute;
    bottom: -2px; /* Adjust this value based on your font size */
    left: 0;
    width: 0;
    height: 2px; /* Adjust the thickness of the underline */
    background-color: black; /* Change to your desired underline color */
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-lists a span:first-child:hover::before {
    width: 100%;
  }

  .nav-lists a span:first-child:hover::before {
    left: auto;
    right: 0;
    width: 100%;
  }

  .nav-lists a:hover span:first-child::before {
    left: 0;
    width: 100%;
  }

  .nav-lists a span:first-child:hover::before {
    width: 0;
    left: auto;
    right: 0;
  }

  /* Base styles for the navigation */
  .nav-lists {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
  }

  .nav-lists li {
    margin-right: 20px;
  }

  .nav-lists a {
    text-decoration: none;
    position: relative;
    color: black; /* Change to your desired text color */
    display: inline-block;
  }

  .nav-lists a span {
    position: relative;
    display: inline-block;
    padding-bottom: 2px; /* To make room for the underline */
  }

  /* Underline effect on hover */
  .nav-lists a span::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px; /* Adjust the thickness of the underline */
    background-color: black; /* Change to your desired underline color */
    transition: width 0.3s ease;
  }

  .nav-lists a:hover span::before {
    width: 100%;
  }

  .nav-lists a span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-lists a:hover span::after {
    width: 100%;
    left: auto;
    right: 0;
  }

  /* Make effect inactive for .page-active */
  .nav-lists a span.page-active::before,
  .nav-lists a span.page-active::after {
    display: none;
  }

  .lan-container {
    flex-direction: row;
    margin-top: 0;
    align-self: center;
    gap: 0.8rem;

    display: none;
    visibility: hidden;
    opacity: 0;
  }

  .lan-header {
    display: none;
    visibility: hidden;
    opacity: 0;
  }

  .lan-container-desktop {
    display: flex;
    opacity: 1;
    visibility: visible;

    flex-direction: row;
    margin-top: 0;
    align-self: center;
    gap: 0.8rem;
  }

  /******* Footer *******/

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    max-width: 120rem;
    margin: 0 auto;
  }

  .footer-top-container {
    padding-left: 4.8rem;
    margin-bottom: 15.2rem;
  }

  .footer-bottom-container {
    padding-right: 4.8rem;
    padding-top: 5.6rem;
  }
}

@media (min-width: 90em) {
  h1 {
    font-size: 9.6rem;
  }

  header {
    padding: 0 4.8rem;
  }

  .container-nav {
    max-width: 144rem;
    margin: 2.4rem auto;
  }
}
