/* ====================================
   ANIMAÇÕES PREMIUM E EFEITOS ESPECIAIS
   ==================================== */

/* Partículas flutuantes de fundo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.9), rgba(138, 43, 226, 0.7));
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 1.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; animation-duration: 14s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-20px) scale(1.2);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(15px) scale(0.9);
    }
}

/* Efeito de digitação */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid;
    white-space: nowrap;
    animation: typing 3.5s steps(40) 1s 1 normal both,
               blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Efeito glitch para títulos especiais */
.glitch {
    position: relative;
    animation: glitch-anim 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    color: #f0f;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    color: #0ff;
    z-index: -2;
}

@keyframes glitch-anim {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92%, 96% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-anim-1 {
    0%, 90%, 100% {
        clip-path: inset(0 0 0 0);
    }
    92% {
        clip-path: inset(10% 0 85% 0);
    }
}

@keyframes glitch-anim-2 {
    0%, 90%, 100% {
        clip-path: inset(0 0 0 0);
    }
    94% {
        clip-path: inset(80% 0 10% 0);
    }
}

/* Efeito holográfico */
.holographic {
    background: linear-gradient(
        90deg,
        #FF1493,
        #FF69B4,
        #FFD700,
        #00CED1,
        #9370DB,
        #FF1493
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic 4s ease infinite;
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.7)) 
            drop-shadow(0 0 30px rgba(138, 43, 226, 0.5));
    font-weight: 700;
    text-shadow: 0 0 40px rgba(255, 105, 180, 0.4);
}

@keyframes holographic {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Efeito neon glow */
.neon-glow {
    text-shadow: 
        0 0 5px rgba(102, 126, 234, 0.5),
        0 0 10px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(102, 126, 234, 0.5),
            0 0 10px rgba(102, 126, 234, 0.4),
            0 0 20px rgba(102, 126, 234, 0.3),
            0 0 40px rgba(102, 126, 234, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(102, 126, 234, 0.8),
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 30px rgba(102, 126, 234, 0.4),
            0 0 60px rgba(102, 126, 234, 0.3);
    }
}

/* Efeito de onda ao clicar */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Efeito de cristal/vidro */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efeito de brilho ao passar o mouse */
.shine-on-hover {
    position: relative;
    overflow: hidden;
}

.shine-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.shine-on-hover:hover::before {
    left: 100%;
}

/* Animação de confete ao gerar relatório */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ff0;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti:nth-child(2n) { background: #f0f; animation-duration: 2.5s; }
.confetti:nth-child(3n) { background: #0ff; animation-duration: 3.5s; }
.confetti:nth-child(4n) { background: #f80; animation-duration: 2.8s; }

/* Efeito de parallax nos elementos */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Efeito de pulsação suave */
.soft-pulse {
    animation: soft-pulse 3s ease-in-out infinite;
}

@keyframes soft-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

/* Efeito de balanço suave */
.gentle-swing {
    animation: gentle-swing 4s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes gentle-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

/* Efeito morphing de gradiente */
.morphing-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-morph 15s ease infinite;
}

@keyframes gradient-morph {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efeito de texto 3D */
.text-3d {
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.1),
        2px 2px 0 rgba(0, 0, 0, 0.09),
        3px 3px 0 rgba(0, 0, 0, 0.08),
        4px 4px 0 rgba(0, 0, 0, 0.07),
        5px 5px 0 rgba(0, 0, 0, 0.06),
        6px 6px 0 rgba(0, 0, 0, 0.05);
}

/* Efeito de respiração (breathing) */
.breathing {
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* Loading spinner customizado */
.custom-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

/* Efeito de aurora boreal */
.aurora {
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 200, 0.2),
        rgba(100, 50, 255, 0.2),
        rgba(255, 0, 150, 0.2)
    );
    background-size: 100% 300%;
    animation: aurora-flow 10s ease infinite;
}

@keyframes aurora-flow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

/* Efeito de zoom suave ao aparecer */
.zoom-in {
    animation: zoom-in 0.5s ease-out;
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efeito de slides */
.slide-left {
    animation: slide-left 0.5s ease-out;
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-right {
    animation: slide-right 0.5s ease-out;
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
