/* ========================================
   CENTRAL STATION SPORTS BAR
   Custom Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Selection --- */
::selection {
    background: rgba(52, 160, 142, 0.3);
    color: #f0f4ff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121a42;
}
::-webkit-scrollbar-thumb {
    background: #2d3ca6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34a08e;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Staggered delays */
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* If JS is disabled, ensure all content is visible */
.no-js .reveal,
.js .reveal {
    /* JS will add .revealed class */
}

/* --- Navbar transition --- */
#navbar.scrolled {
    background: rgba(18, 26, 66, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 160, 142, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .mobile-menu-line {
    background: #f0f4ff;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #5bbfad;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Image Hover Effects --- */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* --- Hero parallax feel --- */
#hero {
    perspective: 1000px;
}

/* --- Subtle grain overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Mobile menu button animation --- */
.mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* --- Card hover glow --- */
.group:hover {
    box-shadow: 0 0 60px -15px rgba(52, 160, 142, 0.15);
}
