/**
 * Micro-Interações e Animações Sutis
 * Melhora engagement sem prejudicar performance
 */

/* ============================================ */
/* SCROLL REVEAL - FADE IN UP */
/* ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay progressivo para elementos múltiplos */
.fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================ */
/* HOVER EFFECTS - LIFT & GLOW */
/* ============================================ */

/* Cards com lift effect */
.stat-card,
.roadmap-item,
.benefit-card,
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover,
.roadmap-item:hover,
.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(95, 36, 159, 0.3);
}

/* Botões com pulse */
.btn-whatsapp {
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
    }
}

/* ============================================ */
/* PROGRESS BAR DE VAGAS */
/* ============================================ */

.vagas-progress {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 8px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 8px;
    color: white;
}

/* ============================================ */
/* COUNTDOWN TIMER */
/* ============================================ */

.countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Animação de tick */
@keyframes tick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #f59e0b; }
}

.countdown-value.tick {
    animation: tick 0.3s ease-in-out;
}

/* ============================================ */
/* ICONS COM BOUNCE */
/* ============================================ */

.icon-bounce {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-bounce:hover {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================ */
/* LOADING SKELETON */
/* ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

/* ============================================ */
/* FLOATING ANIMATION */
/* ============================================ */

.float {
    animation: float 3s ease-in-out infinite;
}

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

/* ============================================ */
/* SHAKE ANIMATION (para CTAs urgentes) */
/* ============================================ */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ============================================ */
/* GLOW EFFECT */
/* ============================================ */

.glow {
    position: relative;
}

.glow::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #fbbf24, #10b981, #5f249f);
    background-size: 200% 200%;
    animation: glow-rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(8px);
}

.glow:hover::before {
    opacity: 1;
}

@keyframes glow-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================ */
/* BADGE ROTATION (Oferta Limitada) */
/* ============================================ */

.badge-rotate {
    display: inline-block;
    animation: badge-wiggle 2s ease-in-out infinite;
}

@keyframes badge-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* ============================================ */
/* SCROLL INDICATOR */
/* ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-scroll 2s infinite;
}

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

/* ============================================ */
/* TYPING EFFECT (para headlines) */
/* ============================================ */

.typing {
    overflow: hidden;
    border-right: 3px solid #fbbf24;
    white-space: nowrap;
    animation:
        typing 3s steps(40) 1s forwards,
        blink 0.75s step-end infinite;
}

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

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

/* ============================================ */
/* STAGGER ANIMATION (para listas) */
/* ============================================ */

.stagger-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: stagger-in 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================ */
/* NÚMERO CONTADOR (Count Up) */
/* ============================================ */

.counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.counter.counting {
    color: #fbbf24;
    transform: scale(1.1);
}

/* ============================================ */
/* RIPPLE EFFECT (para botões) */
/* ============================================ */

.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;
}
