/* Custom styles for Zero's New Wave Lounge */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-text {
    color: #1c3d22 !important;
}

.navbar-scrolled .nav-line {
    background: #1c3d22 !important;
}

.navbar-scrolled .nav-icon-fill {
    fill: #1c3d22 !important;
}

.navbar-scrolled .nav-icon-star {
    fill: #c9a84c !important;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu link animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Mobile menu button active state */
.mobile-menu-btn.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .nav-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    a, button {
        transition: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf9f6;
}

::-webkit-scrollbar-thumb {
    background: #97c49b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #65a368;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1a0d;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e3efe7 0%, #f5f3ee 100%);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    header, footer, .scroll-reveal {
        opacity: 1 !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}
