/* Custom styles for Bonesaw Brewing Co. */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1b1e;
}
::-webkit-scrollbar-thumb {
    background: #3a3b42;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a2a;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(13, 14, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 90, 42, 0.1);
}

/* Beer card hover glow */
.beer-card:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 90, 42, 0.15) !important;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 0deg)); }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

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

/* Hero stat card float */
.hero-card-1 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
.hero-card-2 { animation: float 5s ease-in-out infinite 0.5s; --rotate: -3deg; }
.hero-card-3 { animation: float 7s ease-in-out infinite 1s; --rotate: 1deg; }
.hero-card-4 { animation: float 5.5s ease-in-out infinite 0.3s; --rotate: -2deg; }

/* Geometric shape animations */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.geo-spin { animation: spin-slow 20s linear infinite; }
.geo-spin-reverse { animation: spin-reverse 25s linear infinite; }

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}

/* Input focus animations */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(255, 90, 42, 0.1);
}

/* Selection color */
::selection {
    background: rgba(255, 90, 42, 0.3);
    color: white;
}
