html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: rgba(34, 197, 94, 0.2);
  color: #14532d;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-fade-in {
  animation: heroFadeIn 0.4s ease-out both;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.25s ease-out both;
}

/* Zelfde easing als Framer in motion-wrapper.tsx */
@keyframes motionFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motionFadeLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes motionFadeRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes counterPopIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Alleen desktop/tablet (min-width: 768px): zelfde drempel als MotionWrapper/StaggerContainer */
@media (min-width: 768px) {
  .js-reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform;
  }

  .js-reveal-section.is-inview {
    opacity: 1;
    transform: translateY(0);
  }

  .js-reveal-section.is-inview .js-stagger-grid > * {
    opacity: 0;
    animation: motionFadeUp 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  }

  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(1) {
    animation-delay: 0s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(2) {
    animation-delay: 0.1s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(3) {
    animation-delay: 0.2s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(4) {
    animation-delay: 0.3s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(5) {
    animation-delay: 0.4s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(6) {
    animation-delay: 0.5s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(7) {
    animation-delay: 0.6s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(8) {
    animation-delay: 0.7s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(9) {
    animation-delay: 0.8s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(10) {
    animation-delay: 0.9s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(11) {
    animation-delay: 1s;
  }
  .js-reveal-section.is-inview .js-stagger-grid > *:nth-child(12) {
    animation-delay: 1.1s;
  }

  .js-reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .js-reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition:
      opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .js-reveal-lr-row.is-inview .js-reveal-left,
  .js-reveal-lr-row.is-inview .js-reveal-right {
    opacity: 1;
    transform: translate(0, 0);
  }

  .js-counter-inner {
    display: inline-block;
    animation: counterPopIn 0.5s ease forwards;
  }
}
