/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - var(--space-2xl)));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* ==========================================================================
   ANIMAÇÕES DE ELEMENTOS
   ========================================================================== */

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-slow {
    animation: float 8s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==========================================================================
   ANIMAÇÕES DE HOVER
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

/* ==========================================================================
   ANIMAÇÕES DE LINHA
   ========================================================================== */

.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.underline-animation:hover::after {
    width: 100%;
}

/* ==========================================================================
   ANIMAÇÕES DE LOADING
   ========================================================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   ANIMAÇÕES DE TEXTO
   ========================================================================== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* ==========================================================================
   ANIMAÇÕES DE PARTÍCULAS
   ========================================================================== */

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 4px;
    height: 4px;
    animation: particle-float 20s linear infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    animation: particle-float 25s linear infinite;
}

.particle-3 {
    width: 3px;
    height: 3px;
    animation: particle-float 30s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ==========================================================================
   ANIMAÇÕES DE CARD
   ========================================================================== */

.card-hover-effect {
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-hover-effect:hover::before {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   ANIMAÇÕES DOS CARDS DE CASES
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rocketFly {
    0% {
        left: -50px;
        bottom: 20%;
        transform: rotate(-45deg);
    }
    25% {
        left: 30%;
        bottom: 60%;
        transform: rotate(-30deg);
    }
    50% {
        left: 70%;
        bottom: 80%;
        transform: rotate(-15deg);
    }
    75% {
        left: 110%;
        bottom: 60%;
        transform: rotate(-30deg);
    }
    100% {
        left: 150%;
        bottom: 20%;
        transform: rotate(-45deg);
    }
}

@keyframes rocketTrail {
    0%, 100% {
        opacity: 0.6;
        width: 60px;
    }
    25%, 75% {
        opacity: 0.8;
        width: 80px;
    }
    50% {
        opacity: 1;
        width: 100px;
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes pulseHeart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes chartDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes chartDotAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

