/* ===== Custom Styles for Complete Home Health Care ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: rgba(30, 196, 120, 0.3);
    color: #F0FFF8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060D1F;
}
::-webkit-scrollbar-thumb {
    background: #1A3A6B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1EC478;
}

/* ===== Hero Geometric Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

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

.hero-geo {
    animation: float-slow 8s ease-in-out infinite;
}

/* Stagger the animations */
.hero-geo:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.hero-geo:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }
.hero-geo:nth-child(4) { animation-delay: -1s; animation-duration: 12s; }
.hero-geo:nth-child(5) { animation-delay: -3s; animation-duration: 9s; }
.hero-geo:nth-child(6) { animation-delay: -5s; animation-duration: 6s; }
.hero-geo:nth-child(7) { animation-delay: -2s; animation-duration: 11s; }
.hero-geo:nth-child(8) { animation-delay: -1s; animation-duration: 8s; }
.hero-geo:nth-child(9) { animation-delay: -4s; animation-duration: 7s; }

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-geo { animation: none; }
    .reveal[data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ===== Service Cards ===== */
.service-card {
    will-change: transform;
}

/* ===== Why Cards ===== */
.why-card {
    will-change: transform;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    will-change: transform;
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(6, 13, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Button Focus States ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #1EC478;
    outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
}
