html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: #faf8f2;
  color: #1c2415;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
}
[x-cloak] {
  display: none !important;
}
.blob {
  background: linear-gradient(135deg, #7cb342, #3f6b1f);
  border-radius: 44% 56% 60% 40% / 48% 42% 58% 52%;
}
.quote {
  border-left: 3px solid #7cb342;
  background: #f1efe3;
  border-radius: 0 12px 12px 0;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Scroll progress bar ===== */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, #7cb342, #3f6b1f);
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== Interactive buttons ===== */
.btn-fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}
.btn-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-fx:hover::before {
  transform: translateX(120%);
}
.btn-fx:active {
  transform: scale(0.96);
}
.btn-fx .btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-fx:hover .btn-arrow {
  transform: translateX(5px);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
}
.ripple.dark {
  background: rgba(63, 107, 31, 0.25);
}
@keyframes rippleAnim {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.btn--primary-fx {
  box-shadow: 0 12px 24px -10px rgba(63, 107, 31, 0.55);
}
.btn--primary-fx:hover {
  box-shadow: 0 18px 34px -12px rgba(63, 107, 31, 0.65);
  transform: translateY(-3px);
}
.btn--ghost-fx:hover {
  transform: translateY(-3px);
}

/* ===== Floating decorative graphics ===== */
.float-slow {
  animation: floatY 6s ease-in-out infinite;
}
.float-med {
  animation: floatY 4.5s ease-in-out infinite;
}
.float-fast {
  animation: floatY 3.2s ease-in-out infinite;
}
.spin-slow {
  animation: spinSlow 18s linear infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-slow,
  .float-med,
  .float-fast,
  .spin-slow {
    animation: none;
  }
}
.deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

/* dotted texture used behind vision section */
.dot-grid {
  background-image: radial-gradient(
    rgba(63, 107, 31, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 18px 18px;
}

/* icon chip pulse on hover for mission/program cards */
.icon-pulse {
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.4s ease;
}
article:hover .icon-pulse {
  transform: scale(1.12) rotate(-6deg);
  background-color: #7cb342;
}
article:hover .icon-pulse img {
  filter: brightness(0) invert(1);
}

/* magnetic nav underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #7cb342;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* animated count number */
.count-up {
  font-variant-numeric: tabular-nums;
}
