/* Custom styles for Little Learners Day Camp */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #c5dfb5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9cc487;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes floatDelayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
    animation: floatDelayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}
.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(84, 138, 62, 0.08);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Image hover zoom */
img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Selection color */
::selection {
    background: #c5dfb5;
    color: #2a461e;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #548a3e;
    outline-offset: 2px;
}

/* 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;
    }
}
