/* ============================================
   BITTER END LOUNGE — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::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(123, 45, 59, 0.6);
    color: #f5f0eb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c1f3b;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.08);
}

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

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

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

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

/* Hamburger animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   MARQUEE
   ============================================ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Default state is visible — JS adds the revealed class for timing */
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    background: rgba(10, 10, 10, 0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    #hero .lg\:col-span-7 {
        order: 2;
    }
    
    #hero .lg\:col-span-5 {
        order: 1;
        margin-right: 0 !important;
    }
    
    #hero h1 {
        font-size: 2.75rem !important;
    }
    
    #hero .relative {
        margin-bottom: 2rem;
    }
    
    #hero .overflow-hidden img {
        height: 320px !important;
    }
    
    #hero .absolute.-bottom-8.-left-6 {
        width: 80px;
        height: 80px;
        bottom: -4px;
        left: -4px;
    }
    
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem !important;
    }
    
    #hero h1 br {
        display: none;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        #C9A96E 0%,
        #e8d5a8 25%,
        #C9A96E 50%,
        #e8d5a8 75%,
        #C9A96E 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Gold line hover effect */
a.group .w-12.h-px,
.group:hover .w-12.h-px {
    transition: width 0.4s ease;
}

/* Image hover zoom container */
.overflow-hidden {
    will-change: transform;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #C9A96E;
    outline-offset: 2px;
}
