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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #34D399;
    color: #0A2540;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0.5rem;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0A2540 0%, #0d3159 30%, #0a2540 60%, #071a30 100%);
}

/* Orb animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

.hero-orb-1 { animation: float1 8s ease-in-out infinite; }
.hero-orb-2 { animation: float2 10s ease-in-out infinite; }
.hero-orb-3 { animation: float3 6s ease-in-out infinite; }

/* 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);
}

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

/* Mobile menu */
#mobile-menu {
    animation: fadeIn 0.25s ease;
}

#mobile-menu.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-link {
    position: relative;
}

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

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

/* Header scroll state */
.header-scrolled {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Nav link underline on hover */
.nav-link {
    position: relative;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0fdf4;
}

::-webkit-scrollbar-thumb {
    background: #34D399;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34D399;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Image aspect ratio helper */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle pattern for sections */
section::before {
    content: '';
    display: block;
    pointer-events: none;
}
