/* Custom styles for Yuma Fireman's Association */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #FF6B6B;
    color: #1a1a1a;
}

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

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

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.absolute.-bottom-6.-left-6 {
    animation: float 3s ease-in-out infinite;
}

.absolute.-top-6.-right-6 {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Hover effects for service cards */
.group:hover .group-hover\:bg-coral-500\/20 {
    background-color: rgba(255, 107, 107, 0.2);
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.-bottom-6.-left-6,
    .absolute.-top-6.-right-6 {
        animation: none;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}
