/**
 * CONECTE-SE — SENAC SERGIPE 2026
 * Animations CSS (animations.css)
 * Microinterações, Revelações, Flutuações e Suporte a Movimento Reduzido
 */

/* Flutuação Suave para Elementos Decorativos */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.anim-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.anim-float-delayed {
  animation: floatSlow 5s ease-in-out 1.5s infinite;
}

/* Pulso de Iluminação e Brilho Tecnológico */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.7);
  }
}

.anim-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Rotação Lenta para Linhas Orbitais */
@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.anim-orbit {
  animation: rotateOrbit 25s linear infinite;
}

/* Classes de Revelação com GSAP e Fallbacks Transparentes */
/* IMPORTANTE: NUNCA definir opacity: 0 estaticamente sem classe de JS ativo! */
.js-has-gsap .gsap-reveal {
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
}

.js-has-gsap .gsap-reveal-done {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Transição de Hover em Botões */
.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.btn-primary-glow:hover::after {
  opacity: 1;
}

/* Redução de Movimento (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  .anim-float,
  .anim-float-delayed,
  .anim-glow,
  .anim-orbit {
    animation: none !important;
  }
  
  .js-has-gsap .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}
