:root {
  --transition-fast: 160ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 420ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-8px); }
  to { transform: translateY(0); }
}

@keyframes rotateIn {
  from { transform: rotate(-6deg); }
  to { transform: rotate(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 107, 47, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(33, 107, 47, 0); }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn var(--transition-base) both; }
.fade-in-up { animation: fadeInUp var(--transition-slow) both; }
.fade-in-down { animation: fadeInDown var(--transition-base) both; }
.fade-in-left { animation: fadeInLeft var(--transition-base) both; }
.fade-in-right { animation: fadeInRight var(--transition-base) both; }
.scale-in { animation: scaleIn var(--transition-base) both; }
.zoom-in { animation: zoomIn var(--transition-base) both; }
.slide-up { animation: slideUp var(--transition-base) both; }
.slide-down { animation: slideDown var(--transition-base) both; }
.rotate-in { animation: rotateIn var(--transition-base) both; }
.pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
.bounce-soft { animation: bounceSoft 1.6s ease-in-out infinite; }
.floating { animation: floatY 3s ease-in-out infinite; }

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover,
.hover-lift:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.is-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 0.65rem;
}

.skeleton {
  background: linear-gradient(90deg, rgba(33,107,47,0.08) 25%, rgba(33,107,47,0.16) 37%, rgba(33,107,47,0.08) 63%);
  background-size: 400% 100%;
  animation: pulse 1.2s ease infinite;
}

@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;
  }
}
