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

html { scroll-behavior: smooth; }

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar Text Color Switch ─────────────────────────── */
.navbar-text {
    color: #065f46;
    transition: color 0.3s ease;
}

.navbar-bg {
    background-color: rgba(6, 95, 70, 0.1);
    transition: background-color 0.3s ease;
}

/* Dark nav state */
.dark-nav .navbar-text {
    color: #fefdf8;
}

.dark-nav .navbar-bg {
    background-color: rgba(254, 253, 248, 0.15);
}

/* ── Mobile Menu ──────────────────────────────────────── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d1fae5;
    transition: color 0.2s ease;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #10b981;
}

/* ── Geometric Decorative Shapes ──────────────────────── */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15vh;
    right: -4rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
}

.geo-circle-2 {
    bottom: 20vh;
    left: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, #d1fae5 0%, transparent 70%);
}

.geo-triangle {
    top: 50vh;
    left: 2rem;
    width: 0;
    height: 0;
    border-left: 3rem solid transparent;
    border-right: 3rem solid transparent;
    border-bottom: 5rem solid #6ee7b7;
    opacity: 0.2;
    transform: rotate(15deg);
}

.geo-square {
    top: 30vh;
    right: 4rem;
    width: 4rem;
    height: 4rem;
    background: #34d399;
    opacity: 0.15;
    transform: rotate(45deg);
    border-radius: 4px;
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reduced-motion or no-JS: visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.35s; }

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

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

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

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

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

/* ── Focus Visible ────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ── Smooth Image Loading ─────────────────────────────── */
img {
    image-rendering: auto;
    loading: lazy;
}

/* ── Utility ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}
