/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ===== NAV ===== */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0593A;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link { color: #44403c; }
#navbar.scrolled .bar1, #navbar.scrolled .bar2, #navbar.scrolled .bar3 { background: #44403c; }

/* Mobile menu */
.mobile-link { border-bottom: 1px solid #f5f5f4; }
.mobile-link:last-child { border: none; }
.mobile-link:hover { color: #C0593A; }

#menuBtn.open .bar1 { transform: rotate(45deg) translate(3px, 3px); }
#menuBtn.open .bar2 { opacity: 0; }
#menuBtn.open .bar3 { transform: rotate(-45deg) translate(3px, -3px); }

/* ===== SITE CARDS ===== */
.site-card { transform: translateY(0); }

/* ===== ACTIVITY CARDS ===== */
.activity-card { 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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}

/* ===== HERO ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}
.hero-float { animation: float 4s ease-in-out infinite; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f5f0e8; }
::-webkit-scrollbar-thumb { background: #d4a030; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0593A; }

/* ===== SELECTION ===== */
::selection { background: #C0593A; color: #fff; }
