/* Custom styles for Reidville Fire Department Business */

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

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

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

::-webkit-scrollbar-thumb {
    background: #627d98;
    border-radius: 5px;
}

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

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

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

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

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

.floating-card-2 {
    animation: float-2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-3 3.5s ease-in-out infinite;
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.1);
}

.nav-scrolled .logo-text {
    color: #102a43 !important;
}

.nav-scrolled .nav-link {
    color: #334e68 !important;
}

.nav-scrolled .nav-link:hover {
    color: #26a69a !important;
}

/* Service card hover effects */
.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-0.5rem);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .floating-card-1, .floating-card-2, .floating-card-3 {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-midnight-50 {
        background-color: #f8fafc;
    }
    
    .text-midnight-600 {
        color: #374151;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #26a69a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #26a69a;
    color: white;
}
