/* ===== Custom Styles for Al-Najax Family Daycare ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

@keyframes float3 {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(8px); }
}

.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 3.5s ease-in-out infinite;
}

/* Scroll reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Program card hover effect */
.program-card {
    will-change: transform;
}

/* Feature card hover */
.feature-card {
    will-change: transform;
}

/* Navbar scroll state */
nav.scrolled #navbar {
    background: rgba(253, 244, 246, 0.98);
    box-shadow: 0 4px 20px rgba(161, 42, 70, 0.1);
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f5d0d8;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #a12a46;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #d15374 !important;
    box-shadow: 0 0 0 3px rgba(209, 83, 116, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #eda9b8;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f5d0d8;
    color: #6e2235;
}

/* Image aspect ratio utilities */
img {
    vertical-align: middle;
}

/* Button focus outline */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        will-change: opacity, transform;
    }
}
