/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    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);
  }
}

/* ===== Navbar ===== */
#navbar {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 107, 36, 0.08);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 132, 95, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: -50px;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(245, 197, 66, 0.15);
  border-radius: 24px;
  top: 25%;
  right: 5%;
  transform: rotate(15deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(45, 107, 36, 0.1);
  top: 40%;
  left: 3%;
  transform: rotate(-20deg);
}

.shape-dot {
  width: 16px;
  height: 16px;
  background: rgba(244, 132, 95, 0.5);
  border-radius: 50%;
  top: 20%;
  left: 48%;
}

/* ===== Floating Stat Cards ===== */
.floating-card {
  z-index: 20;
}

.card-stat-1 {
  animation: float-slow 6s ease-in-out infinite;
}

.card-stat-2 {
  animation: float-medium 5s ease-in-out infinite;
  animation-delay: 1s;
}

.card-stat-3 {
  animation: float-slow 7s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Button Focus States ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #418a36;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection Color ===== */
::selection {
  background: rgba(45, 107, 36, 0.2);
  color: #183715;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
  background: #b7dbaa;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8bc57a;
}
