/* Custom styles for Buffalo Fire Department Engine 34 Ladder 7 */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Gradient Animation */
.hero-gradient {
    background: linear-gradient(135deg, 
        #0a0a14 0%, 
        #1a0a2e 25%, 
        #0d1b2a 50%, 
        #1a0a2e 75%, 
        #0a0a14 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Orbs */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    background: radial-gradient(circle, rgba(157, 23, 77, 0.6), transparent 70%);
    animation-delay: 0s;
}

.hero-orb-2 {
    background: radial-gradient(circle, rgba(212, 160, 23, 0.4), transparent 70%);
    animation-delay: -3s;
}

.hero-orb-3 {
    background: radial-gradient(circle, rgba(157, 23, 77, 0.3), transparent 70%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-sub {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.1);
}

/* Scroll Reveal Animations */
.service-reveal,
.about-reveal,
.community-reveal,
.contact-reveal,
.cta-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-reveal.visible,
.about-reveal.visible,
.community-reveal.visible,
.contact-reveal.visible,
.cta-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Community Cards */
.community-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.navbar-scrolled {
    background: rgba(5, 5, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu Animation */
.menu-line {
    transition: transform 0.3s ease, opacity 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) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Custom Select */
select option {
    background: #0a0a14;
    color: #fff;
}

/* Gold Accent Line */
.gold-line {
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9d174d, #D4A017);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #be185d, #fbbf24);
}

/* Selection */
::selection {
    background: rgba(212, 160, 23, 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;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-badge {
        animation-delay: 0.1s;
    }
    
    .hero-headline {
        animation-delay: 0.3s;
    }
    
    .hero-sub {
        animation-delay: 0.5s;
    }
    
    .hero-cta {
        animation-delay: 0.7s;
    }
    
    .hero-stats {
        animation-delay: 0.9s;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}
