/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children delay */
.for-who__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.for-who__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.problems__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.problems__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.problems__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.pricing__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.pricing__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.demo__features .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.demo__features .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.demo__features .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.steps .animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.steps .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.steps .animate-on-scroll:nth-child(5) { transition-delay: 0.3s; }
.steps .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

/* ============================
   PARTICLE ANIMATION (Hero bg)
   ============================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.5);
    }
}

/* ============================
   TYPING INDICATOR
   ============================ */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ============================
   GRADIENT BORDER GLOW
   ============================ */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(108, 99, 255, 0.3);
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 212, 170, 0.3);
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
    }
}

/* ============================
   COUNTER ANIMATION
   ============================ */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   SHIMMER EFFECT (for loading)
   ============================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* ============================
   NAVBAR BURGER ANIMATION
   ============================ */
.navbar__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
