/* Custom styles for The Blessed Noah's Ark Daycare */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #f4a7b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec718e;
}

/* Navbar scroll effect */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 248, 246, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(244, 167, 184, 0.2);
    transition: all 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-scrolled nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Nav link underline animation */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ec718e;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

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

.mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(-8px);
}

.mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile nav toggle */
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

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

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

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

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

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

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

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Program card hover */
.program-card {
    transform: translateY(0);
}

.program-card:hover {
    transform: translateY(-4px);
}

/* Feature card hover */
.feature-card {
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-float,
    .animate-float-delay,
    .animate-float-slow {
        animation: none;
    }
    .reveal {
        transition: none;
    }
    .program-card:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-lusitana.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-lusitana.text-4xl {
        font-size: 2rem;
    }
}
