*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Hero fade-in animations — above the fold, no JS required */
.fade-in {
    opacity: 1;
    animation: heroFadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.15s;
}

.fade-in-delay-2 {
    animation-delay: 0.3s;
}

.fade-in-delay-3 {
    animation-delay: 0.45s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating stat card animations */
.stat-card {
    animation: floatCard 6s ease-in-out infinite;
}

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

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

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

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

    .reveal.visible {
        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; }
}

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

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

/* Step card */
.step-card {
    transition: transform 0.3s ease;
}

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

/* Mobile menu */
.mobile-link {
    transition: opacity 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.2);
    color: #0F172A;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Link underline animation */
a:not([class]) {
    text-decoration: none;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 4px;
}
