/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-card-1, .float-card-2, .float-card-3 { animation: none !important; }
}

/* ===== Navbar ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1B4332;
  border-radius: 1px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.06);
}

/* ===== Mobile menu ===== */
.mobile-nav-link { display: block; }
#mobile-menu.open { max-height: 400px; }

/* ===== Hero blobs ===== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: #DCEDE2;
  top: -100px; right: -100px;
}
.blob-2 {
  width: 350px; height: 350px;
  background: #E8D9B0;
  bottom: 10%; left: 5%;
  opacity: 0.25;
}
.blob-3 {
  width: 200px; height: 200px;
  background: #B8DCC8;
  top: 40%; right: 30%;
  opacity: 0.3;
}

/* ===== Floating cards ===== */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(-50%, 0px); }
  50% { transform: translate(-50%, -6px); }
}

.float-card-1 { animation: float-1 4s ease-in-out infinite; }
.float-card-2 { animation: float-2 5s ease-in-out infinite; }
.float-card-3 { animation: float-3 4.5s ease-in-out infinite; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Card tilt hover ===== */
.card-tilt {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-tilt:hover {
  transform: translateY(-4px);
}

/* ===== Focus visible ===== */
:focus-visible {
  outline: 2px solid #4A8A68;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection ===== */
::selection { background: #DCEDE2; color: #1B4332; }

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F3E8; }
::-webkit-scrollbar-thumb { background: #B8DCC8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8FC6A8; }
