/* ============================================
   Lulu's Diner — Premium Dark Luxury Styles
   ============================================ */

/* --- 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(212, 168, 83, 0.3);
    color: #faf6ee;
}

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

::-webkit-scrollbar-track {
    background: #0a0f0d;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

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

#navbar.scrolled {
    background: rgba(10, 15, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#mobile-menu.open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu.open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s 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; }

/* --- Hero --- */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-fade-in:nth-child(2) { animation-delay: 0.2s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.4s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Orbs */
.hero-orb {
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.6) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-orb-2 {
    background: radial-gradient(circle, rgba(212, 168, 83, 0.4) 0%, transparent 70%);
    animation-delay: -3s;
}

.hero-orb-3 {
    background: radial-gradient(circle, rgba(6, 78, 59, 0.5) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating Images */
.hero-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float2 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
}

/* Scroll Line Animation */
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Menu Cards --- */
.menu-card {
    background: linear-gradient(135deg, rgba(15, 26, 21, 0.8) 0%, rgba(10, 15, 13, 0.9) 100%);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 83, 0.05);
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(212, 168, 83, 0);
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(212, 168, 83, 0.3);
}

/* --- Intersection Observer Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Gold shimmer on hover for links --- */
a {
    text-decoration: none;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(212, 168, 83, 0.6);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .menu-card {
        padding: 1.5rem;
    }
    
    .menu-card h3 {
        font-size: 1.5rem !important;
    }
}

/* --- Print styles --- */
@media print {
    #navbar, .hero-float-1, .hero-float-2, .animate-scroll-line {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
