/* Custom styles for The All In */

:root {
    --forest-50: #f2f7f0;
    --forest-600: #3a6840;
    --forest-800: #26432b;
    --offwhite: #faf9f6;
    --cream: #f5f3ee;
    --sage: #e8ede4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

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

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

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delayed2 {
    animation: float-delayed2 4.5s ease-in-out infinite;
    animation-delay: 2s;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(58, 104, 64, 0.08);
}

.nav-scrolled #navbar {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
}

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

::-webkit-scrollbar-track {
    background: var(--offwhite);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-400);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--forest-500);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(58, 104, 64, 0.2);
    color: var(--forest-900);
}

/* Reduce motion for accessibility */
@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;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
