/* Custom styles for Maduro's Cigar Lounge */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

/* Stat card floating animation */
.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); }
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .stat-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Scroll reveal active state (applied by JS) */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For users with reduced motion preference, JS won't add revealed class but content is still visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

/* Gold accent line animation */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.5);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f1f5f9;
}
