/* E-Z Daycare and Learning Center - Custom Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #050a18;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #ffffff;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mint glow effect */
.mint-glow {
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.15);
}

/* Dot pattern background */
.pattern-dots {
    background-image: radial-gradient(rgba(52, 211, 153, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                0 0 40px rgba(52, 211, 153, 0.1);
}

/* Gold border utility */
.gold-border {
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.gold-border:hover {
    border-color: rgba(251, 191, 36, 0.4);
}

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

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

/* Pulse animation for dots */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu link hover */
.mobile-link {
    transition: color 0.2s ease;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .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; }
}

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

    .float-animation {
        animation: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gold-border {
        border: 1px solid ButtonText;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        font-size: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .service-card:active {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
}
