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

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* Floating stat cards */
.stat-card {
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

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

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

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

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

/* Fade-in for hero elements */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade {
    animation: fadeUp 0.7s ease forwards;
}

.hero-fade:nth-child(2) { animation-delay: 0.1s; }
.hero-fade:nth-child(3) { animation-delay: 0.2s; }
.hero-fade:nth-child(4) { animation-delay: 0.3s; }
.hero-fade:nth-child(5) { animation-delay: 0.4s; }
.hero-fade:nth-child(6) { animation-delay: 0.5s; }
