/* ===== ANIMAÇÕES MODERNAS PARA CARDS ===== */

/* Estado inicial dos elementos animáveis */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

/* Estado ativo quando elemento entra na tela */
.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para múltiplos elementos */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Variações de animação */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
}

.animate-fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease-in-out;
}

.animate-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease-in-out;
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Animação para títulos e textos */
.animate-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-text.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Performance otimizada - força aceleração de hardware */
.animate-on-scroll,
.animate-fade-up,
.animate-slide-left,
.animate-scale,
.animate-text {
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Redução de movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-fade-up,
  .animate-slide-left,
  .animate-scale,
  .animate-text {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}