/* Custom styles for Blaze Hookah Lounge */

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

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(240, 253, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(15, 29, 58, 0.06);
}

#navbar.scrolled .nav-link {
    color: #0f1d3a;
}

#navbar.scrolled .menu-line {
    background: #0f1d3a;
}

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

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

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

/* Hamburger animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

.menu-toggle.active .menu-line:nth-child(3) {
    width: 20px;
    margin-left: 0;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Scroll reveal base — always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Only animate on systems that prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #99f6e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Selection color */
::selection {
    background: #5eead4;
    color: #0a1628;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Subtle card hover lift */
@media (prefers-reduced-motion: no-preference) {
    .hover-lift {
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1);
    }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #0f1d3a 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
