/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ─── GEOMETRIC SHAPES (hero) ─── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.geo-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(47,168,116,0.18) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    right: -100px;
}

.geo-circle-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(47,168,116,0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 120px;
    left: -60px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(47,168,116,0.1);
    top: 200px;
    left: 60px;
    transform: rotate(15deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(47,168,116,0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 300px;
    right: 80px;
    opacity: 0.7;
}

.geo-ring {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(47,168,116,0.15);
    border-radius: 50%;
    bottom: 160px;
    right: 200px;
}

/* ─── SERVICE CARDS ─── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2fa874, #0a0f24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ─── PROCESS CARDS ─── */
.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2fa874, #0a0f24);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.process-card:hover::before {
    opacity: 1;
}

/* ─── SCROLL REVEAL (progressive enhancement — only below fold) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ─── NAVBAR SCROLL STATE ─── */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10,15,36,0.3);
}

/* ─── MOBILE MENU ANIMATION ─── */
.menu-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 20px;
}

/* ─── FORM FOCUS STATES ─── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
</style>
