/* Custom styles for Farm Bureau Financial Services */

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

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

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

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4a35;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #FAFAF5;
}

/* Scroll reveal base styles */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar glass effect */
nav.scrolled {
    background: rgba(7, 20, 14, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* Pulse for the green dot */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-float-1 {
    animation: float 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float 7s ease-in-out infinite 1s;
}

.animate-float-3 {
    animation: float 5s ease-in-out infinite 0.5s;
}

.animate-soft-pulse {
    animation: softPulse 2.5s ease-in-out infinite;
}

/* Form focus ring fallback */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover glow effect */
.group:hover .group-hover\:from-gold-400\/30 {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.3) 0%, rgba(184, 146, 46, 0.2) 100%);
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Print styles */
@media print {
    nav, #contact, .scroll-reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
