/* Custom styles for Wild Fyre Lounge */

:root {
    --color-warm-white: #f5f0eb;
    --color-warm-muted: #a89f96;
    --color-dark-950: #060608;
    --color-dark-900: #0a0a0e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--color-dark-950);
    color: var(--color-warm-white);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c9a227, #8f2323);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e2b84b, #a83232);
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(226, 184, 75, 0.08), 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .nav-link {
    color: var(--color-warm-muted);
}

/* Nav link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2b84b, transparent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero animations */
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-title {
    animation: heroFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge {
    animation: heroFadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    animation: heroFadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: heroFadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.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); }
}

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

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    left: 10px;
}
#menuBtn.active .menu-line:nth-child(3) {
    top: 16px;
    width: 6px;
    left: 6px;
    transform: rotate(-45deg);
}

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* Gold shimmer on hover for cards */
.group:hover .group-hover\:text-gold-400 {
    transition: color 0.3s ease;
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Gradient text utility */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Selection */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f5f0eb;
}
