/* ========================================
   99 Whiskey Lounge — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-subtitle {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.6s;
}

.hero-description {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

.hero-cta {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 1.2s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Parallax Hero Background
   ======================================== */
#hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-up {
        transform: translateY(40px);
    }

    .reveal-left {
        transform: translateX(-40px);
    }

    .reveal-right {
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ========================================
   Navbar
   ======================================== */
#navbar.scrolled {
    background: rgba(26, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: mobileLinkIn 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu .mobile-link {
    opacity: 0;
}

@keyframes mobileLinkIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered mobile links */
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

/* Hamburger Animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

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

::-webkit-scrollbar-track {
    background: #1a0d12;
}

::-webkit-scrollbar-thumb {
    background: #6b2038;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8f2b4b;
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #1a0d12;
}

/* ========================================
   Input Placeholder Styling
   ======================================== */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Focus Visible Ring
   ======================================== */
:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ========================================
   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;
    }
}

/* ========================================
   Image Aspect Ratio Utilities
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #contact, footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
