/* Rising Stars Preschool - Custom Styles */

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

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll reveal animations (progressive enhancement - only applied if JS runs) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        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; }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#navbar.scrolled .nav-link {
    color: #36454F !important;
}

#navbar.scrolled .nav-link:hover {
    color: #FF7F50 !important;
}

/* Mobile menu animations */
.menu-line-1 {
    transform-origin: center;
}

.menu-line-2 {
    transform-origin: center;
}

.menu-line-3 {
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #FF7F50;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
