.menu-checkbox,
.menu-overlay {
  display: none;
}

@media screen and (max-width: 1080px) {
  .submenu-toggle {
    display: none;
  }

  .submenu-label {
    color: #060606;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    cursor: pointer;
    display: block;
    padding-bottom: 5px;
    transition: opacity 0.3s;
  }

  .submenu-label::after {
    content: "▼";
    margin-left: 10px;
    margin-bottom: 7px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .submenu-toggle:checked + .submenu-label::after {
    transform: rotate(180deg);
  }

  .submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #e4e4e4;
  }

  .submenu-toggle:checked ~ .submenu-content {
    max-height: 500px;
    padding: 20px 0;
  }

  .submenu-content a {
    font-size: 1.1rem !important;
    letter-spacing: 0.3rem !important;
    color: #666 !important;
  }

  .menu-overlay nav a {
    color: #060606 !important;
    text-decoration: none;
    display: block;
    padding: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;

    position: relative;
    z-index: 1005;
  }

  .hamburger-wrapper {
    display: flex;
    align-items: center;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-icon {
    display: flex;
    width: 30px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 2000;
  }

  .menuline {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      background-color 0.3s ease;
  }

  .menu-checkbox:checked + .hamburger-icon .menuline {
    background-color: #060606;
  }

  .menu-checkbox:checked + .hamburger-icon .menuline:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-checkbox:checked + .hamburger-icon .menuline:nth-child(2) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .menu-checkbox:checked ~ .menu-overlay {
    transform: translateX(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
    padding: 6rem 0;
    overflow-y: auto;
  }

  .mobile-nav a {
    text-decoration: none;
    color: #060606;
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    transition: opacity 0.3s;

    display: block;
  }

  .mobile-nav a:hover {
    opacity: 0.6;
  }
}
