/* Custom styles for Community Coffee */

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

/* Base styles */
body {
    background-color: #0a0f1e;
}

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

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

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2a3a6a;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fce89a 0%, #f8c030 50%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Apply floating to stat cards */
.hero-card-float-1 {
    animation: float 4s ease-in-out infinite;
}

.hero-card-float-2 {
    animation: float 4s ease-in-out infinite 1s;
}

.hero-card-float-3 {
    animation: float 4s ease-in-out infinite 2s;
}

.hero-card-float-4 {
    animation: float 4s ease-in-out infinite 0.5s;
}

/* Pulse animation for live dot */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #f8c030;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(248, 192, 48, 0.3);
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
