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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(130, 212, 170, 0.2);
    color: #b8e8cf;
}

/* ── Navbar ── */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(7, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(130, 212, 170, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: fadeUp 0.9s ease 0.2s both;
}

.hero-title {
    animation: fadeUp 0.9s ease 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.9s ease 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.9s ease 0.8s both;
}

/* ── Reveal on Scroll ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Default state for reduced-motion / no-JS */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Menu Items ── */
.menu-item {
    border-bottom: 1px solid rgba(130, 212, 170, 0.06);
    padding-bottom: 5px;
    transition: padding-left 0.3s ease;
}

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

.menu-item:hover {
    padding-left: 8px;
}

/* ── Buttons ── */
.btn-primary, .btn-secondary {
    display: inline-block;
    text-decoration: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #070e17;
}

::-webkit-scrollbar-thumb {
    background: rgba(130, 212, 170, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(130, 212, 170, 0.35);
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible {
    outline: 1px solid rgba(130, 212, 170, 0.5);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title span {
        display: block;
    }
}
