/* ============================================
   Hookah Lounge — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(110, 231, 176, 0.25);
    color: #f0fdf4;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050d1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 176, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 176, 0.35);
}

/* --- Header --- */
#header {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#header.scrolled {
    background: rgba(5, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

/* --- Hamburger Animation --- */
.menu-line {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Scroll Indicator --- */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(48px); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- Feature Items --- */
.feature-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(1) { transition-delay: 0.05s; }
.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.15s; }
.feature-item:nth-child(4) { transition-delay: 0.2s; }

/* --- Menu Items --- */
.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item:last-child {
    border-bottom: none;
}

/* --- Gallery --- */
.gallery-item {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Section Reveals --- */
.section-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hover Glow Effects --- */
.glow-hover {
    position: relative;
}

.glow-hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(110, 231, 176, 0.3), transparent, rgba(232, 195, 106, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-hover:hover::after {
    opacity: 1;
}

/* --- Input Focus Effects --- */
input:focus, textarea:focus {
    background: rgba(10, 22, 40, 0.6);
}

/* --- Button Ripple --- */
button, a {
    position: relative;
    overflow: visible;
}

/* --- Responsive Typography --- */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .feature-item, .menu-item, .gallery-item, .section-reveal {
        opacity: 1;
        transform: none;
    }
}
