/* ===== N3XIA V2 - ANIMATIONS ===== */

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

/* ===== DELAYS ESCALONADOS ===== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ===== ANIMAÇÕES DE HOVER ===== */
.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.hover-glow {
    transition: var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

.hover-scale {
    transition: var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: var(--transition-normal);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ===== ANIMAÇÕES DE LOADING ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* ===== ANIMAÇÕES DE TEXTO ===== */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-purple);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.text-shimmer {
    background: linear-gradient(90deg, var(--text-primary), var(--primary-purple), var(--text-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

.text-glow {
    text-shadow: 0 0 10px var(--primary-purple);
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* ===== ANIMAÇÕES DE PARTÍCULAS ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

.particle:nth-child(odd) {
    background: var(--primary-pink);
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    background: var(--primary-purple);
    animation-duration: 12s;
}

.particle:nth-child(5n) {
    background: var(--primary-green);
    animation-duration: 6s;
}

/* ===== ANIMAÇÕES DE CARDS ===== */
.card-hover {
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ===== ANIMAÇÕES DE BOTÕES ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

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

/* ===== ANIMAÇÕES DE ÍCONES ===== */
.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

.icon-spin {
    animation: iconSpin 2s linear infinite;
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.icon-wiggle {
    animation: iconWiggle 0.5s ease-in-out;
}

/* ===== ANIMAÇÕES DE PROGRESSO ===== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progressFill 2s ease-out forwards;
}

/* ===== ANIMAÇÕES DE MOUSE ===== */
.mouse-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: mouseTrail 0.5s ease-out forwards;
}

/* ===== ANIMAÇÕES DE SCROLL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMAÇÕES DE LOADING DE PÁGINA ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: pageLoaderFade 0.5s ease 2s forwards;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto var(--space-lg);
    animation: loaderPulse 1s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-purple); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px var(--primary-purple); }
    to { text-shadow: 0 0 20px var(--primary-purple), 0 0 30px var(--primary-purple); }
}

@keyframes particle-float {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

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

@keyframes mouseTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes pageLoaderFade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== ANIMAÇÕES DE INTERAÇÃO ===== */
.interactive-element {
    transition: var(--transition-normal);
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.interactive-element:active {
    transform: translateY(0);
    transition: var(--transition-fast);
}

/* ===== ANIMAÇÕES DE TEMA ===== */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== ANIMAÇÕES DE FORMULÁRIO ===== */
.form-field-focus {
    transition: var(--transition-normal);
}

.form-field-focus:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ===== ANIMAÇÕES DE NOTIFICAÇÃO ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    animation: notificationSlideIn 0.5s ease forwards;
    z-index: 1000;
}

.notification.success {
    border-left: 4px solid var(--primary-green);
}

.notification.error {
    border-left: 4px solid #EF4444;
}

.notification.warning {
    border-left: 4px solid var(--primary-orange);
}

@keyframes notificationSlideIn {
    to {
        transform: translateX(0);
    }
}

/* ===== ANIMAÇÕES DE MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    animation: modalScaleIn 0.3s ease 0.1s forwards;
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    to {
        transform: scale(1);
    }
}

/* ===== ANIMAÇÕES DE TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ===== ANIMAÇÕES DE CARROSSEL ===== */
.carousel-slide {
    transition: transform 0.5s ease;
}

.carousel-slide.active {
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide.next {
    transform: translateX(100%);
}

/* ===== ANIMAÇÕES DE ACCORDION ===== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* ===== ANIMAÇÕES DE TABS ===== */
.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMAÇÕES DE LAZY LOADING ===== */
.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMAÇÕES DE SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-glass) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== ANIMAÇÕES DE PARALLAX ===== */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* ===== ANIMAÇÕES DE GLASSMORPHISM ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== ANIMAÇÕES DE NEON ===== */
.neon-effect {
    text-shadow: 0 0 5px var(--primary-purple), 0 0 10px var(--primary-purple), 0 0 15px var(--primary-purple);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px var(--primary-purple), 0 0 10px var(--primary-purple), 0 0 15px var(--primary-purple);
    }
    to {
        text-shadow: 0 0 10px var(--primary-purple), 0 0 20px var(--primary-purple), 0 0 30px var(--primary-purple);
    }
}

/* ===== ANIMAÇÕES DE MORPHING ===== */
.morphing-shape {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morphing-shape:hover {
    border-radius: 50%;
    transform: rotate(180deg);
}

/* ===== ANIMAÇÕES DE LIQUID ===== */
.liquid-effect {
    position: relative;
    overflow: hidden;
}

.liquid-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: liquid-flow 3s ease-in-out infinite;
}

@keyframes liquid-flow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
