/* =============================================
   MINDCORP WEB — Animations & Scroll Effects
   ============================================= */

/* === Reveal on Scroll (handled by GSAP ScrollTrigger) === */
/* Base styling only — transforms are controlled by GSAP */

/* === Hero Entrance — handled by GSAP text reveal system === */
/* GSAP controls: hero-badge, hero-title (word-by-word), 
   hero-subtitle (clip-path), hero-cta (back.out), hero-micro */

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

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

/* === Floating Animation for Glows === */
.hero-glow-1 {
    animation: floatGlow1 8s ease-in-out infinite;
}

.hero-glow-2 {
    animation: floatGlow2 10s ease-in-out infinite;
}

@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 20px); }
    66% { transform: translate(20px, -15px); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(25px, -20px); }
    66% { transform: translate(-20px, 15px); }
}

/* === Background Text Parallax-like Animation === */
.hero-bg-text {
    animation: subtleSlide 20s ease-in-out infinite alternate;
}

@keyframes subtleSlide {
    0% { transform: translate(-50%, -50%) translateX(-20px); }
    100% { transform: translate(-50%, -50%) translateX(20px); }
}

/* === Showcase Card Entrance handled by GSAP 3D perspective === */

/* === Button Hover Micro-interactions === */
.btn-primary svg,
.btn-secondary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg,
.btn-secondary:hover svg {
    transform: translateX(4px);
}

/* === Nav Link Subtle Effect === */
.nav-link {
    position: relative;
    overflow: hidden;
}

/* === Stat Number Count Animation === */
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-card.counted .stat-number {
    animation: countPulse 0.3s ease;
}

/* === Process Step Line Animation === */
.processo-step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: 0;
    width: 1px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.processo-step.revealed::before {
    opacity: 0.3;
    transform: scaleY(1);
}

.processo-step:last-child::before {
    display: none;
}

/* === Pricing Card Featured Shimmer === */
.pricing-card-featured::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 131, 83, 0.03) 50%,
        transparent 60%
    );
    animation: shimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* === FAQ Answer Animation === */
.faq-answer {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.faq-item:not(.active) .faq-answer {
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* === Smooth Section Transitions === */
section {
    position: relative;
}

/* === Logo Hover Effect === */
.nav-logo-img {
    transition: opacity var(--transition-fast);
}

.nav-logo-img:hover {
    opacity: 0.7;
}

/* === Mobile Menu Animation === */
@media (max-width: 768px) {
    .nav-links {
        animation: slideDown 0.3s ease forwards;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }
}

/* === Depoimento Card Transition === */
.depoimento-card {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* === Selection Color === */
::selection {
    background: var(--accent);
    color: var(--text-on-dark);
}
