/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Selection ── */
::selection { background: rgba(46, 204, 113, 0.3); color: #fff; }

/* ── Nav ── */
#nav { transition: box-shadow .3s ease; }
#nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }

/* ── Mobile menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}
.mobile-link:last-child { border-bottom: none; }

/* ── Cards hover lift ── */
.group { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.group:hover { transform: translateY(-4px); }
.group:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* ── Gradient text helper (if needed) ── */
.text-gradient {
    background: linear-gradient(135deg, #2ecc71, #82e0aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d1830; }
::-webkit-scrollbar-thumb { background: #1d3663; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #264682; }

/* ── Map dark theme fix ── */
iframe[title] {
    border-radius: 0.75rem;
}
