/* ========================================
   Elotes El Aguila — Custom Styles
   Premium Dark Luxury Theme
   Teal + Slate Grey + Gold Accents
======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #020617;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Hero Animations ─── */
.hero-bg {
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-elem {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-elem[data-delay="200"] { animation-delay: 0.2s; }
.hero-elem[data-delay="400"] { animation-delay: 0.4s; }
.hero-elem[data-delay="600"] { animation-delay: 0.6s; }
.hero-elem[data-delay="800"] { animation-delay: 0.8s; }
.hero-elem[data-delay="1000"] { animation-delay: 1.0s; }
.hero-elem[data-delay="1200"] { animation-delay: 1.2s; }

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

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Scroll Reveal (below the fold only) ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Navbar ─── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

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

/* ─── Mobile Menu ─── */
#mobile-menu {
    top: 0;
    left: 0;
    right: 0;
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ─── Menu Cards ─── */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.menu-card:hover::before {
    opacity: 1;
}

/* ─── CTA Section ─── */
.cta-bg {
    animation: ctaBgShift 15s ease-in-out infinite alternate;
}

@keyframes ctaBgShift {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ─── Gold shimmer effect on buttons ─── */
button, a[href^="tel"], a[href^="#"] {
    position: relative;
    overflow: hidden;
}

button::after, a.gold-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

button:hover::after, a.gold-cta:hover::after {
    left: 100%;
}

/* ─── Selection color ─── */
::selection {
    background: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ─── 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
}
