/* Custom styles for Don's Cocktail Lounge */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .stat-card {
        opacity: 1;
        transform: translateY(0);
    }
    
    .card-1 { transition: transform 0.3s ease; }
    .card-2 { transition: transform 0.3s ease 0.1s; }
    .card-3 { transition: transform 0.3s ease 0.2s; }
    .card-4 { transition: transform 0.3s ease 0.3s; }
}

/* Stat card float animation */
@media (prefers-reduced-motion: no-preference) {
    @keyframes float-1 {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    @keyframes float-2 {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }
    @keyframes float-3 {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    @keyframes float-4 {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-7px); }
    }
    
    .card-1 { animation: float-1 4s ease-in-out infinite; }
    .card-2 { animation: float-2 4.5s ease-in-out infinite 0.5s; }
    .card-3 { animation: float-3 3.8s ease-in-out infinite 1s; }
    .card-4 { animation: float-4 4.2s ease-in-out infinite 1.5s; }
}

/* Mobile menu transitions */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

::-webkit-scrollbar-track {
    background: #faf5eb;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c4975a;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4603f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e9d4 0%, #ecdbb8 100%);
}
