/* ========================================
   OUTOFFTHEBOX - ANIMATIONS
   Animações e efeitos visuais
   ======================================== */

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FORMAS FLUTUANTES
   ======================================== */
.floating-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.floating-shape:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* ========================================
   INDICADOR DE SCROLL
   ======================================== */
.scroll-indicator-arrow {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   EFEITOS DE HOVER
   ======================================== */
.cyber-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary,
.btn-hero-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ========================================
   ANIMAÇÕES DE CONTADOR
   ======================================== */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.animating {
    color: var(--secondary);
    transform: scale(1.1);
}

/* ========================================
   EFEITOS DE LOADING
   ======================================== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    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 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   ANIMAÇÕES DE PULSO
   ======================================== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   EFEITOS DE GLOW
   ======================================== */
.glow {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 102, 255, 0.8);
    }
}

/* ========================================
   ANIMAÇÕES DE ROTAÇÃO
   ======================================== */
.rotate {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   EFEITOS DE TIPO MÁQUINA DE ESCREVER
   ======================================== */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent);
    }
}

/* ========================================
   ANIMAÇÕES RESPONSIVAS
   ======================================== */
@media (max-width: 768px) {
    .floating-shape {
        width: 60px;
        height: 60px;
    }
    
    .scroll-indicator-arrow {
        font-size: 1.5rem;
    }
    
    .cyber-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}
