/* 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 {
    background-color: #0A1628;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

select option {
    background-color: #0A1628;
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(61, 180, 160, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 180, 160, 0.5);
}

/* Header */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero */
#hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.75) 0%,
        rgba(10, 22, 40, 0.55) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(6px); opacity: 0.8; }
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }
.hero-anim:nth-child(5) { animation-delay: 0.6s; }

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Animations (below fold only) */
.section-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-anim.reveal-hidden {
    opacity: 0;
    transform: translateY(32px);
}

/* Menu */
.menu-item {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* Focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-anim {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .section-anim.reveal-hidden {
        opacity: 1;
        transform: none;
    }
    .scroll-indicator {
        animation: none;
        opacity: 0.5;
    }
    .menu-item:hover {
        transform: none;
    }
    img:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
}
