/* Custom Styles for Little Dolphins Day Care Center */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7f2121;
}

/* Reveal Animation - Progressive Enhancement */
@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);
    }
}

/* Fallback for no-JS or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transitions */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(61, 12, 12, 0.1);
}

.navbar-scrolled .nav-logo-text {
    color: #7f2121 !important;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Button hover effects */
button, a {
    cursor: pointer;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #fce7e7 0%, #f9d0d0 50%, #fce7e7 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img[src] {
    animation: none;
    background: none;
}

/* Print styles */
@media print {
    nav, #back-to-top, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
