/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(46, 170, 106, 0.2);
    color: #0A1628;
}

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

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

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

#nav.scrolled {
    background-color: rgba(240, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#nav.scrolled .nav-text {
    color: #0A1628;
}

#nav.scrolled .nav-link {
    color: #152D56;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Hero animations */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
}

.hero-title-line {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.25s; }
.hero-title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* 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;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
    img {
        transition: none;
    }
}

/* Thin line accents */
.line-accent {
    position: relative;
}

.line-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 1px;
    background-color: #2EAA6A;
}

/* Image hover container */
img {
    transition: filter 0.5s ease;
}

img:hover {
    filter: brightness(1.02);
}

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

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

::-webkit-scrollbar-thumb {
    background: #B3EACF;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7ED5AB;
}

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