/* ==========================================================================
   MOTION SYSTEM & KEYFRAMES — PERSONALIZANDO DO SEU JEITO
   ========================================================================== */

/* Classes de Animação Orquestrada */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para Stagger CSS Fallback */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Micro-interação Hover Suave para Elementos de Confiança */
.trust-item {
  transition: transform 0.25s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
}

/* Micro-interação para Botões */
.btn {
  transform: translateZ(0);
}

/* Pulse de brilho sutil para botão principal */
@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(213, 156, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 6px 22px rgba(213, 156, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

.btn-primary.btn-pulse {
  animation: subtleGlow 4s infinite ease-in-out;
}

/* Suporte Estrito a prefers-reduced-motion */
@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;
  }

  .reveal-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn-primary.btn-pulse {
    animation: none !important;
  }

  .video-frame:hover,
  .card-pillar:hover,
  .portfolio-card:hover,
  .diff-item:hover {
    transform: none !important;
  }
}
