/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Hero Background */
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #064E3B 0%, #059669 40%, #34D399 70%, #A7F3D0 100%);
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(6, 78, 59, 0.4) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 30%, rgba(52, 211, 153, 0.3) 0%, transparent 60%);
    z-index: 1;
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 2;
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: #34D399; top: -200px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: #A7F3D0; bottom: -100px; left: -50px; animation-delay: -7s; }
.hero-orb-3 { width: 300px; height: 300px; background: #6EE7B7; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

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

/* Navbar */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}
.nav-scrolled #navbar { border-bottom: 1px solid rgba(5, 150, 105, 0.08); }

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDFBF7; }
::-webkit-scrollbar-thumb { background: #A7F3D0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34D399; }

/* Selection */
::selection { background: #A7F3D0; color: #064E3B; }

/* Focus visible */
:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
