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

:root {
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --cream-100: #fdf8ef;
    --cream-200: #f5f0e8;
    --terracotta: #c45b3a;
    --chili: #d97732;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Navigation ── */
.nav {
    background: rgba(253, 248, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(6, 95, 70, 0.1);
}

.hamburger-line {
    display: block;
    transition: all 0.3s ease;
}

#menuToggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 320px;
    height: 320px;
    background: var(--chili);
    border-radius: 50%;
    top: 10%;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: var(--cream-200);
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--terracotta);
    top: 55%;
    left: 8%;
    animation: spin 20s linear infinite;
    opacity: 0.08;
}

.geo-diamond {
    width: 100px;
    height: 100px;
    background: var(--chili);
    top: 70%;
    right: 12%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
    opacity: 0.1;
}

.geo-circle-3 {
    width: 140px;
    height: 140px;
    border: 4px solid var(--cream-200);
    border-radius: 50%;
    top: 40%;
    right: 25%;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 60px;
    height: 120px;
    background: var(--emerald-400);
    bottom: 15%;
    left: 15%;
    transform: rotate(20deg);
    opacity: 0.08;
    animation: float 5s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    border: 3px solid var(--chili);
    top: 25%;
    left: 20%;
    transform: rotate(30deg);
    opacity: 0.1;
    animation: spin 15s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

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

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

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

::-webkit-scrollbar-track {
    background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-500);
}

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