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

/* ========== HEADER ========== */
#header { background: transparent; }
#header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 20px rgba(10,16,38,0.08); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #38994e; transition: width 0.3s; border-radius: 1px; }
.nav-link:hover::after { width: 100%; }

/* ========== MOBILE MENU ========== */
#mobile-menu { animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-link { border-radius: 8px; padding-left: 8px; }
.mobile-link:hover { background: #f0fdf4; }

/* ========== FLOATING CARDS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes floatDelayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: floatDelayed 3.5s ease-in-out infinite 0.5s; }

/* ========== SERVICE CARDS ========== */
.service-card { position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #9edfaa, #4fbf65); opacity: 0; transition: opacity 0.3s; border-radius: 3px 3px 0 0; }
.service-card:hover::before { opacity: 1; }

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card { transition: transform 0.3s ease, background 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* ========== SCROLL ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== BUTTONS ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9edfaa; outline-offset: 2px; border-radius: 4px; }

/* ========== SELECTION ========== */
::selection { background: #c9efcf; color: #0a1026; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f4fbf7; }
::-webkit-scrollbar-thumb { background: #9edfaa; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #73cf85; }

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-display { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}
