/**
 * Lamyx Design System: animations.css
 * Transition Keyframes, Marquees, Scroll-Reveals, and Hover Spotlight Effects
 */

/* --- SCROLL REVEALS --- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- INTEGRATIONS SCROLL (MARQUEE) --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-content, 
.animate-scroll {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}

[dir="rtl"] .animate-scroll,
[dir="rtl"] .marquee-content {
    animation: marqueeRTL 35s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* --- HOVER GLOW / SPOTLIGHT SYSTEM --- */
.bento-card, 
.pricing-card {
    position: relative;
}

.bento-card::before, 
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(90, 45, 160, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover::before, 
.pricing-card:hover::before {
    opacity: 1;
}

/* --- LINEAR PROGRESS CONNECTOR FLOW --- */
.flow-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light), var(--brand-purple-light), var(--border-light));
    z-index: 1;
}

.flow-pulse {
    width: 8px;
    height: 8px;
    background: var(--tech-cyan);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    animation: flowMovement 4s linear infinite;
    box-shadow: var(--shadow-glow-cyan);
}

@keyframes flowMovement {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
