/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #042e24 0%,
        #064e3b 25%,
        #0a5c4a 45%,
        #134e3a 65%,
        #074a3b 85%,
        #042e24 100%
    );
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.02) 0%, transparent 45%);
}

/* ── Scroll Indicator Animation ── */
@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── Navbar Transition ── */
#navbar.scrolled {
    background: rgba(4, 46, 36, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

#navbar.scrolled .nav-link { color: #f5f0e8 !important; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Mobile Link Hover ── */
.mobile-link { display: block; }

/* ── Hamburger Animation ── */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ── Input Focus Styles ── */
input:focus, select:focus, textarea:focus {
    border-color: #059669 !important;
}

input::placeholder, textarea::placeholder {
    color: #a7f3d0;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .intro-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .intro-image {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* ── Selection Color ── */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #042e24;
}

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

/* ── Image Loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Focus Visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}
