/* Custom styles for Recycle Boston */

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

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

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

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

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

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #18366d;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #ffe528;
    color: #001744;
}

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

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

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

/* Geometric decorations */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255, 229, 40, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 229, 40, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 229, 40, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 229, 40, 0.03) 75%);
    background-size: 60px 60px;
}
