/* Custom styles for River Road Volunteer Fire Department */

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Hero badge pulse */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
    transition: color 0.2s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #447a52;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Navbar scroll effect */
header.scrolled nav {
    box-shadow: 0 4px 20px rgba(45, 90, 57, 0.1);
}

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

.group:hover img {
    transform: scale(1.02);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #2d5a39 0%, #6ba378 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ba378;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #447a52;
    outline-offset: 2px;
}

/* Form input transitions */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Button press effect */
button, a {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    header, footer, #contactForm, .animate-on-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
