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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(94, 201, 138, 0.2);
    color: #c3efd4;
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(94, 201, 138, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 201, 138, 0.4);
}

/* ── Nav active state ───────────────────────────── */
.nav-link.active {
    color: #93e3b4 !important;
}

/* ── Scroll Reveal (progressive enhancement) ────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* ── Navbar scroll state ────────────────────────── */
nav.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ── Card hover lift ────────────────────────────── */
.group:hover {
    transform: translateY(-2px);
}
.group {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Button focus states ────────────────────────── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5ec98a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Image loading placeholder ──────────────────── */
img {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 100%);
}

/* ── Subtle gradient text utility ───────────────── */
.text-gradient {
    background: linear-gradient(135deg, #93e3b4 0%, #5ec98a 50%, #38b06b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Thin line decorations ──────────────────────── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}
