/* Custom styles for Whitetail Wetlands */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* Selection color */
::selection {
    background: rgba(54, 200, 138, 0.3);
    color: #f0f4f8;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 78, 104, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

/* Staggered float for stat cards */
.absolute.right-0 > div:first-child {
    animation: float 4s ease-in-out infinite;
}
.absolute.right-20 > div:first-child {
    animation: float 4s ease-in-out infinite 0.5s;
}
.absolute.right-4 > div:first-child {
    animation: float 4s ease-in-out infinite 1s;
}
.absolute.-left-4 > div:first-child {
    animation: float 4s ease-in-out infinite 1.5s;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a2e4a 0%, #0a1628 100%);
    min-height: 200px;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #36c88a;
    outline-offset: 2px;
    border-radius: 4px;
}

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