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

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

body {
    overflow-x: hidden;
}

/* Hero decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #34d399 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6ee7b7 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

/* Scroll reveal (progressive enhancement — only when JS runs and motion is preferred) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 251, 243, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08), 0 4px 20px rgba(6, 95, 70, 0.06);
}

.nav-scrolled .font-display {
    color: #064e3b !important;
}

.nav-scrolled .text-emerald-600 {
    color: #059669 !important;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}
