/* ══ Intro Overlay ═══════════════════════════════════════ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f4fbf3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  width: 100px;
  height: 100px;
  animation: introPulse 1.2s ease forwards;
}

.intro-text {
  font-family: "Sora", "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #006d43;
  letter-spacing: 2px;
  animation: introFade 1.2s ease forwards;
}

@keyframes introPulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes introFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  60% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══ Hero Card Entrance ═════════════════════════════════ */
@keyframes heroRise {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 1;
    transform: translateY(var(--offset, 0));
  }
}

.hero-card {
  opacity: 0;
  animation: heroRise 0.6s ease forwards;
}
.hero-card:nth-child(1) {
  animation-delay: 1.4s;
  --offset: 32px;
}
.hero-card:nth-child(2) {
  animation-delay: 1.6s;
  --offset: 0;
}
.hero-card:nth-child(3) {
  animation-delay: 1.8s;
  --offset: 32px;
}
.hero-card:nth-child(4) {
  animation-delay: 2s;
  --offset: 0;
}

/* ══ Hero Text Entrance (left column) ═══════════════════ */
.hero-text {
  opacity: 0;
  animation: heroTextRise 0.6s ease forwards;
}
.hero-text:nth-child(1) {
  animation-delay: 1.4s;
}
.hero-text:nth-child(2) {
  animation-delay: 1.6s;
}
.hero-text:nth-child(3) {
  animation-delay: 1.8s;
}
.hero-text:nth-child(4) {
  animation-delay: 2s;
}

@keyframes heroTextRise {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══ Scroll Animations ═══════════════════════════════════ */
[data-scroll] {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-scroll="up"] {
  transform: translateY(40px);
}
[data-scroll="down"] {
  transform: translateY(-30px);
}
[data-scroll="left"] {
  transform: translateX(-40px);
}
[data-scroll="right"] {
  transform: translateX(40px);
}
[data-scroll="scale"] {
  transform: scale(0.85);
}

[data-scroll].visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

[data-stagger] > [data-scroll] {
  transition-delay: calc(var(--i, 0) * 0.12s);
}

/* ══ Hover Lift for Cards ════════════════════════════════ */
.hover-lift {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(0, 109, 67, 0.18);
}

@media (max-width: 639px) {
  .text-headline-xl {
    font-size: 40px !important;
    line-height: 48px !important;
  }
}
