/* ============================================
   The Zack Shack — Custom Styles
   ============================================ */

/* --- Base & Scroll --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(233, 184, 32, 0.3);
    color: #f0f4ff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1330;
}
::-webkit-scrollbar-thumb {
    background: #1c388f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3461e0;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background: rgba(10, 19, 48, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero Stat Cards --- */
.stat-card {
    animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}
.stat-card:nth-child(3) {
    animation-delay: -3s;
}
.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* --- Feature Cards --- */
.feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu Transition --- */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Button Focus Styles --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e9b820;
    outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
    nav, #contact form, button { display: none; }
    body { background: white; color: black; }
    .bg-navy-950, .bg-navy-900 { background: white !important; }
}
