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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-animate.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-animate.delay-100 { transition-delay: 0.1s; }
    .scroll-animate.delay-200 { transition-delay: 0.2s; }
    .scroll-animate.delay-300 { transition-delay: 0.3s; }
    .scroll-animate.delay-400 { transition-delay: 0.4s; }
}

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

.blob-1 {
    width: 400px;
    height: 400px;
    background: #bbf7d0;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #86efac;
    bottom: -50px;
    left: 10%;
    animation-delay: -3s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #4ade80;
    top: 40%;
    right: 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); }
}

/* Navbar */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-scrolled .nav-link {
    color: #1a2744;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Smooth Scroll Offset for Anchored Sections */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection Color */
::selection {
    background: #86efac;
    color: #0f1a2e;
}
