/* === CSS Custom Properties === */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream-50);
    color: var(--emerald-950);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Geometric Background Shapes === */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--emerald-600);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--emerald-400);
    bottom: 10%;
    left: -150px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid var(--emerald-500);
    top: 40%;
    right: -50px;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

.geo-square {
    width: 200px;
    height: 200px;
    background: var(--emerald-600);
    top: 60%;
    left: 5%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-ring {
    width: 300px;
    height: 300px;
    border: 40px solid var(--emerald-500);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    opacity: 0.03;
    animation: spin-slow 25s linear infinite reverse;
}

/* === Animations === */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* === Floating Cards === */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* === Navbar === */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

/* === Mobile Menu === */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--emerald-600);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* === Focus Styles === */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection === */
::selection {
    background: var(--emerald-200);
    color: var(--emerald-950);
}

/* === Mobile Menu Active State === */
body.menu-open {
    overflow: hidden;
}

/* === Smooth Image Loading === */
img {
    background-color: var(--emerald-100);
}
