/* ─── 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 {
    background-color: #0a1628;
    color: #e8edf5;
}

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

/* ─── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #153061;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e4282;
}

/* ─── Divider Lines ────────────────────────────────── */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #153061, transparent);
}

/* ─── Section Label ────────────────────────────────── */
.section-label {
    display: block;
}

/* ─── Menu Item ────────────────────────────────────── */
.menu-item {
    border-bottom: 1px solid rgba(21, 48, 97, 0.5);
    padding-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.menu-item:last-child {
    border-bottom-color: transparent;
}

.menu-item:hover {
    border-bottom-color: rgba(168, 230, 207, 0.2);
}

/* ─── CTA Buttons ──────────────────────────────────── */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-primary:hover::after {
    opacity: 1;
}

.cta-secondary:hover {
    background: rgba(168, 230, 207, 0.05);
}

/* ─── Nav Links ────────────────────────────────────── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #92ddbb;
    transition: width 0.3s ease;
}

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

/* ─── Mobile Menu ──────────────────────────────────── */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: #e8edf5;
    transition: all 0.3s ease;
}

.menu-line.top { top: 28%; }
.menu-line.middle { top: 50%; }
.menu-line.bottom { bottom: 28%; }

body.menu-open .menu-line.top {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .menu-line.middle {
    opacity: 0;
}

body.menu-open .menu-line.bottom {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* ─── Navbar Scrolled State ────────────────────────── */
#navbar.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(21, 48, 97, 0.4);
}

/* ─── Reveal Animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .hero-eyebrow {
        animation: fadeUp 0.8s ease 0.2s both;
    }
    .hero-title {
        animation: fadeUp 0.8s ease 0.4s both;
    }
    .hero-subtitle {
        animation: fadeUp 0.8s ease 0.6s both;
    }
    .hero-ctas {
        animation: fadeUp 0.8s ease 0.8s both;
    }
    .hero-scroll {
        animation: fadeUp 0.8s ease 1s both;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Mobile Responsiveness ────────────────────────── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}
