/* ── Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ── Hero Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-iteration-count: 1;
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ── Scroll Reveal ── */
.reveal {
    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);
}

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

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

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .logo-text {
    color: #1B4332;
}

/* ── Decorative Divider ── */
.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5fa388, transparent);
    margin: 0 auto;
}

/* ── Button Ripple ── */
button, a {
    position: relative;
    overflow: hidden;
}

/* ── Selection ── */
::selection {
    background: #1B4332;
    color: #FDF6E3;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #5fa388;
    outline-offset: 2px;
}

/* ── Input Autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f0f7f4 inset !important;
    -webkit-text-fill-color: #FDF6E3 !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #b9dbcc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8ec3ad;
}
