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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(45, 168, 106, 0.25);
    color: #050e1a;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════ HERO ANIMATIONS ═══════════════════════════════════════════ */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}

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

/* ═══════════════════════════════════════════ SCROLL REVEAL ═══════════════════════════════════════════ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reduced-motion or no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════ MOBILE MENU ═══════════════════════════════════════════ */
.mobile-link {
    display: block;
}

/* ═══════════════════════════════════════════ CUSTOM SCROLLBAR ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050e1a;
}
::-webkit-scrollbar-thumb {
    background: #2da86a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ec488;
}

/* ═══════════════════════════════════════════ UTILITY ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
