/**
 * ENIGMA-XPERIENCE - Animações Centralizadas
 * Todas as animações @keyframes e classes utilitárias
 */

/* ============================================
   GLOWS
   ============================================ */
@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--primary-neon);
    }
    to {
        box-shadow: 0 0 20px var(--primary-neon), 0 0 30px var(--primary-neon);
    }
}

@keyframes glowSecondary {
    from {
        box-shadow: 0 0 10px var(--secondary-neon);
    }
    to {
        box-shadow: 0 0 20px var(--secondary-neon), 0 0 30px var(--secondary-neon);
    }
}

@keyframes glowAccent {
    from {
        box-shadow: 0 0 10px var(--accent-neon);
    }
    to {
        box-shadow: 0 0 20px var(--accent-neon), 0 0 30px var(--accent-neon);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-neon);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-neon), 0 0 50px var(--primary-neon);
    }
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 5px var(--primary-neon);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--primary-neon), 0 0 30px var(--primary-neon);
    }
}

@keyframes neon-glow-text {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-neon);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-neon), 0 0 30px var(--primary-neon);
    }
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 20px var(--primary-neon);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 40px var(--primary-neon), 0 0 60px var(--secondary-neon);
        transform: scale(1.05);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px var(--primary-neon);
    }
    50% {
        text-shadow: 0 0 30px var(--primary-neon), 0 0 40px var(--secondary-neon);
    }
}

/* ============================================
   PULSE
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ============================================
   SLIDES
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   FADES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCALES
   ============================================ */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* ============================================
   MOVEMENT
   ============================================ */
@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* ============================================
   ROTAÇÃO
   ============================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* ============================================
   GRADIENTES
   ============================================ */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-neon);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-neon), 0 0 50px var(--primary-neon);
    }
}

/* ============================================
   ESPECIAIS
   ============================================ */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes matrixFall {
    0% {
        top: -100%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes legendary-glow {
    from {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    to {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes cardExpand {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.15) translateY(-20px);
        opacity: 1;
    }
}

@keyframes scrollBanner {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes testimonialsInfiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   CLASSES UTILITÁRIAS - GLOWS
   ============================================ */
.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-glow-secondary {
    animation: glowSecondary 2s ease-in-out infinite alternate;
}

.animate-glow-accent {
    animation: glowAccent 2s ease-in-out infinite alternate;
}

.animate-glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-neon-pulse {
    animation: neonPulse 3s ease-in-out infinite;
}

/* ============================================
   CLASSES UTILITÁRIAS - PULSE
   ============================================ */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-scale {
    animation: pulseScale 2s ease-in-out infinite;
}

.animate-breathing {
    animation: breathing 3s ease-in-out infinite;
}

/* ============================================
   CLASSES UTILITÁRIAS - SLIDES
   ============================================ */
.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-slide-left {
    animation: slideLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   CLASSES UTILITÁRIAS - FADES
   ============================================ */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-out {
    animation: fadeOut 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   CLASSES UTILITÁRIAS - SCALES
   ============================================ */
.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-scale-out {
    animation: scaleOut 0.3s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.3s ease-out;
}

.animate-zoom-out {
    animation: zoomOut 0.3s ease-out;
}

/* ============================================
   CLASSES UTILITÁRIAS - MOVEMENT
   ============================================ */
.animate-float {
    animation: floatElement 3s ease-in-out infinite;
}

.animate-float-subtle {
    animation: floatElement 4s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   CLASSES UTILITÁRIAS - ROTAÇÃO
   ============================================ */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 1s linear infinite;
}

.animate-wiggle {
    animation: wiggle 0.5s ease-in-out;
}

/* ============================================
   CLASSES UTILITÁRIAS - GRADIENTES
   ============================================ */
.animate-gradient-shift {
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.animate-shimmer {
    animation: shimmer 2s linear infinite;
}

.animate-rainbow-border {
    animation: rainbow-border 3s ease infinite;
}

/* ============================================
   CLASSES UTILITÁRIAS - ESPECIAIS
   ============================================ */
.animate-glitch {
    animation: glitch 0.3s ease-in-out;
}

.animate-matrix-fall {
    animation: matrixFall linear infinite;
}

.animate-legendary-glow {
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

.animate-loading-shimmer {
    animation: loading-shimmer 1.5s infinite;
}

/* ============================================
   RESPONSIVE & ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    .animate-float,
    .animate-float-subtle,
    .animate-bounce,
    .animate-pulse,
    .animate-pulse-scale,
    .animate-breathing {
        animation: none !important;
    }
}

