/* Custom styles for Perfect Kids & Family Care */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #1a1a2e;
    background-color: #f0f4f8;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #86efac;
    color: #051421;
}

/* Thin decorative lines */
.thin-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 77, 123, 0.15), transparent);
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 20px rgba(5, 20, 33, 0.06);
}

/* Floating animations for hero stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float-delayed 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float-slow 6s ease-in-out infinite 1s; }
.float-4 { animation: float 4.5s ease-in-out infinite 1.5s; }

/* Scroll reveal - progressive enhancement, only below fold */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(2, 11, 19, 0.92) 0%, rgba(5, 20, 33, 0.85) 50%, rgba(10, 34, 55, 0.80) 100%);
}

/* Button primary hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(5, 20, 33, 0.12);
}

/* Line expand animation */
.line-expand {
    width: 0;
    transition: width 0.8s ease;
}

.line-expand.visible {
    width: 60px;
}

/* Nav blur */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e4d7b;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #173e64;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .float-1, .float-2, .float-3, .float-4 {
        animation: none;
        transform: none;
    }
}
