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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d1b2a;
    color: #a8e6cf;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #0d1b2a;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: transparent;
    color: #0d1b2a;
    border-color: #0d1b2a;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a8e6cf;
    transition: width 0.2s ease;
    border-radius: 1px;
}

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

/* Mobile nav */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    border-radius: 8px;
}

.mobile-nav-link:active {
    background: #f4fbf7;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
    transition: background 0.2s ease;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

/* Header states */
header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

header.scrolled .nav-link {
    color: #1e4066;
}

header.scrolled .scroll-indicator {
    border-color: rgba(255, 255, 255, 0.5);
}
