*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; }

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5eead4;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

#nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(10, 31, 63, 0.08);
}

#nav.scrolled .nav-link { color: #1a3050; }
#nav.scrolled .nav-link::after { background: #14b8a6; }
#nav.scrolled .font-display { color: #0a1f3f; }

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-element {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-element.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern for hero section */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(94, 234, 212, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(94, 234, 212, 0.05) 0%, transparent 50%);
}
