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

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

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

::selection {
    background: rgba(74, 222, 128, 0.25);
    color: #f0fdf4;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar ── */
#navbar {
    background: rgba(6, 11, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.08);
}

#navbar.scrolled {
    background: rgba(6, 11, 18, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ── Hero ── */
#hero {
    background: linear-gradient(135deg, #0c1520 0%, #142234 50%, #0c1520 100%);
}

/* ── Smooth Scroll Offset ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Button Focus ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c1520;
}
::-webkit-scrollbar-thumb {
    background: #1e3247;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2c465c;
}

/* ── Menu List Items ── */
#menu ul li {
    border-bottom: 1px solid rgba(74, 222, 128, 0.06);
    padding-bottom: 1rem;
}
#menu ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
