/* ================================
   ANIMAÇÕES E EFEITOS AVANÇADOS
   AntiSpam Brasil
================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

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

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

/* CLASSES DE ANIMAÇÃO */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

/* DELAY STAGGER */
.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; }

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* PARALLAX */
.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ENHANCED SHADOWS */
.shadow-xl-green {
    box-shadow: 
        0 8px 28px rgba(0, 255, 136, 0.16),
        0 4px 16px rgba(0, 255, 136, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.shadow-xl-blue {
    box-shadow: 
        0 8px 28px rgba(33, 150, 243, 0.16),
        0 4px 16px rgba(33, 150, 243, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.shadow-xl-yellow {
    box-shadow: 
        0 8px 28px rgba(255, 215, 0, 0.16),
        0 4px 16px rgba(255, 215, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.shadow-deep {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* TEXT SHADOWS */
.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.text-shadow-glow-green {
    text-shadow:
        0 0 12px rgba(0, 255, 136, 0.35),
        0 0 24px rgba(0, 255, 136, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.25);
}

/* HOVER EFFECTS */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.hover-glow-green {
    transition: all 0.3s ease;
}

.hover-glow-green:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

/* PULSE ANIMATION */
.pulse-green {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 255, 136, 0);
    }
}

/* SHIMMER EFFECT */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* GRADIENT OVERLAYS */
.gradient-overlay-dark {
    position: relative;
}

.gradient-overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0) 0%,
        rgba(10, 22, 40, 0.8) 100%
    );
    pointer-events: none;
}

/* FLOATING ANIMATION */
.float {
    animation: float 6s ease-in-out infinite;
}

/* CARD ENHANCEMENTS */
.card-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00FF88, #2196F3, #FFD700);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.card-enhanced:hover::before {
    opacity: 0.18;
}

.card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(4, 12, 24, 0.35);
}

/* RIPPLE EFFECT */
.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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

/* GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(135deg, #00FF88 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-yellow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LOADING SKELETON */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00FF88, #2196F3);
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s ease;
}

/* BACKDROP BLUR ENHANCED */
.backdrop-blur-enhanced {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 22, 40, 0.8);
}

/* GLASS MORPHISM ENHANCED */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* METRIC COUNTER ANIMATION */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counter {
    animation: countUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* SMOOTH TRANSITIONS */
.transition-all-smooth {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BORDER GRADIENT ANIMATION */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(0, 255, 136, 0.3);
    }
    50% {
        border-color: rgba(0, 255, 136, 0.8);
    }
}

.border-glow-animate {
    animation: borderGlow 2s ease-in-out infinite;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .hover-lift:hover {
        transform: translateY(-4px);
    }
    
    .card-enhanced:hover {
        transform: translateY(-3px);
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

