/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* === NAVBAR === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(253, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* === MOBILE MENU === */
#mobile-menu.open {
    transform: translateX(0);
}
#mobile-menu.closed {
    transform: translateX(100%);
}
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 60%;
}

/* === FLOATING SHAPES === */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.3), transparent);
    animation: float 8s ease-in-out infinite;
}
.shape-circle-2 {
    bottom: 25%;
    left: 3%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 185, 72, 0.25), transparent);
    animation: float 10s ease-in-out infinite reverse;
}
.shape-triangle {
    top: 45%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(224, 122, 95, 0.15);
    animation: spin-slow 20s linear infinite;
}
.shape-square {
    bottom: 40%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: rgba(27, 67, 50, 0.08);
    border-radius: 8px;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === BUTTON HOVER EFFECTS === */
a { text-decoration: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF8F0; }
::-webkit-scrollbar-thumb { background: #a8d3a8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7bbf7b; }

/* === SELECTION === */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .floating-shape { animation: none; }
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
