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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

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

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

.geo-circle-1 {
    width: 420px;
    height: 420px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: -80px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    bottom: 25%;
    right: 12%;
    transform: rotate(20deg);
    animation: float 7s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.08);
    top: 20%;
    right: 25%;
    animation: spin 15s linear infinite reverse;
}

.geo-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(110, 231, 183, 0.15);
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
    animation: float 5s ease-in-out infinite;
}

.geo-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation: float 9s ease-in-out infinite reverse;
}

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

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

/* ── Navigation ── */
#nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

#nav.scrolled .font-heading {
    color: #064e3b !important;
}

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

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

/* Prefers reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Mobile menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

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

/* ── Form focus states ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
