/* Mobile Menu Styles */
.mobile-menu-button {
    transition: all 0.3s ease;
}

.mobile-menu-button.active svg {
    transform: rotate(90deg);
}

.mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.hidden {
    max-height: 0;
}

.mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Animation for menu items */
.mobile-menu a {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu:not(.hidden) a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.6s; }

/* Desktop menu (main-nav) */
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .main-nav.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 1100;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-top: 1px solid #e5e7eb;
    padding: 24px 0 16px 0;
    gap: 0;
  }
  .main-nav.active a {
    display: block;
    padding: 16px 24px;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
  }
  .main-nav.active a:last-child {
    border-bottom: none;
  }
  .main-nav.active a:hover {
    background: #f3e8ff;
    color: #7c3aed;
  }
  .mobile-menu-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
  }
}

/* Hide burger and mobile menu on desktop */
@media (min-width: 901px) {
  .mobile-menu-button {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* overlay for mobile menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 999;
}
.mobile-menu.show ~ .mobile-menu-overlay {
  display: block;
} 