/* Minimalist Hamburger Menu (mobile) */

.no-scroll,
.no-scroll body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    background: transparent;
    transition: background-color 0.3s ease;
    padding: 0;
  }

  .mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
  }

  .hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
  }

  .hamburger span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
    background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 8px; }
  .hamburger span:nth-child(3) { top: 16px; }

  .hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 70px;
    overflow: hidden;
  }

  .mobile-nav.open {
    transform: translateY(0);
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0 20px;
  }

  .mobile-nav-item {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-nav.open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav.open .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
  .mobile-nav.open .mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
  .mobile-nav.open .mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
  .mobile-nav.open .mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
  .mobile-nav.open .mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }
  .mobile-nav.open .mobile-nav-item:nth-child(6) { transition-delay: 0.6s; }
  .mobile-nav.open .mobile-nav-item:nth-child(7) { transition-delay: 0.7s; }
  .mobile-nav.open .mobile-nav-item:nth-child(8) { transition-delay: 0.8s; }
  .mobile-nav.open .mobile-nav-item:nth-child(9) { transition-delay: 0.9s; }
  .mobile-nav.open .mobile-nav-item:nth-child(10) { transition-delay: 1s; }
  .mobile-nav.open .mobile-nav-item:nth-child(11) { transition-delay: 1.1s; }
  .mobile-nav.open .mobile-nav-item:nth-child(12) { transition-delay: 1.2s; }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  }

  .mobile-nav-link:hover {
    background-color: rgba(71, 118, 230, 0.05);
    transform: translateX(5px);
  }

  .mobile-nav-link.active {
    background: linear-gradient(90deg, rgba(71, 118, 230, 0.1) 0%, rgba(142, 84, 233, 0.1) 100%);
    color: #4776E6;
  }

  .mobile-nav-icon {
    margin-right: 16px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 98;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
