/* ═══════════════════════════════════════════════════════════
   MOTION CRAFT LABS V2 — Animations
   GSAP Hooks, CSS Keyframes, Scroll Animations
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   GSAP ANIMATION HOOKS (Initial States)
   ═══════════════════════════════════════════ */
.pop-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
}

/* Delay variants */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════
   HERO ANIMATIONS
   ═══════════════════════════════════════════ */

/* Hero badge pulse */
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 2.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.5); 
    }
}

/* Hero title text glow on hover */
.hero-title {
    transition: all 0.6s var(--ease-spring);
}

.hero-title:hover {
    text-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}


/* ── Background gradient shift ── */
@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}


/* ── Roadmap Pipeline Animation ── */
.roadmap-line-fill {
    position: absolute;
    top: 50px;
    left: 64px;
    width: 4px;
    background: var(--primary);
    z-index: 1;
    height: 0;
    border-radius: 2px;
    transition: height 0.1s linear;
}

.roadmap-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.roadmap-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--surface-1);
    border: 2px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.roadmap-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.6s var(--ease-out);
    z-index: 0;
}

.roadmap-icon.active::before {
    transform: scale(1);
}

.roadmap-icon.active {
    border-color: var(--primary);
}

.roadmap-icon .material-symbols-outlined {
    position: relative;
    z-index: 1;
    color: var(--ink-muted);
    font-size: 1.75rem;
    transition: color 0.4s;
}

.roadmap-icon.active .material-symbols-outlined {
    color: var(--on-primary);
}

.roadmap-step:hover .roadmap-icon {
    transform: scale(1.08);
}

.roadmap-content {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    width: 100%;
    transition: all 0.5s var(--ease-spring);
    transform-origin: left center;
}

.roadmap-content.active {
    border-color: var(--ink-muted);
    transform: translateX(8px);
}

.roadmap-step:hover .roadmap-content {
    border-color: var(--ink);
    transform: translateX(12px);
}

.roadmap-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.roadmap-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ── Card Hover Micro-Animations ── */

/* Shine sweep effect */
.glass-card--shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
}

.glass-card--shine:hover::after {
    animation: cardShine 0.8s ease-out forwards;
}

@keyframes cardShine {
    to { transform: translateX(100%); }
}

/* Border glow pulse */
@keyframes borderGlow {
    0%, 100% { border-color: var(--hairline); }
    50% { border-color: var(--surface-2); }
}


/* ═══════════════════════════════════════════
   COUNTER ANIMATION (for stats)
   ═══════════════════════════════════════════ */
.counter-value {
    font-family: var(--font-headline);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.counter-label {
    font-size: var(--text-caption);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}


/* ═══════════════════════════════════════════
   TYPING EFFECT
   ═══════════════════════════════════════════ */
.typing-cursor::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--primary);
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ═══════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--hairline);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════
   PAGE TRANSITION
   ═══════════════════════════════════════════ */
.page-transition {
    animation: pageIn 0.5s ease-out;
}

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


/* ═══════════════════════════════════════════
   RESPONSIVE ANIMATION ADJUSTMENTS
   ═══════════════════════════════════════════ */
@media (max-width: 810px) {
    .roadmap-vertical {
        padding: 1rem 0;
        gap: 3rem;
    }
    
    .roadmap-line-fill {
        left: 35px;
        width: 3px;
    }
    
    .roadmap-step {
        gap: 1.25rem;
    }
    
    .roadmap-icon {
        width: 50px;
        height: 50px;
    }
    
    .roadmap-icon .material-symbols-outlined {
        font-size: 1.4rem;
    }
    
    .roadmap-content {
        padding: 1.25rem;
    }
    
    .glow-orb {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pop-in, .fade-up, .slide-right, .slide-left, .scale-in, .blur-in {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ── Redesign Custom Animations & Carousel ── */
@keyframes cursorGlowHueShift {
    0% { filter: blur(80px) hue-rotate(0deg); }
    100% { filter: blur(80px) hue-rotate(360deg); }
}

@keyframes sparkle-shine {
    to {
        background-position: 200% center;
    }
}

/* Testimonials Slider Layout */
.testimonials-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.testimonials-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    width: max-content;
    will-change: transform;
}

.testimonial-slide-box {
    width: 400px;
    max-width: 85vw;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.testimonial-slide-box:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 12px 35px -10px var(--glow-blue);
    transform: translateY(-2px);
}

.testimonial-slide-box .quote-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: var(--font-display);
    font-size: 16px;
}

.testimonial-username {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
}

.testimonial-userrole {
    font-size: 12px;
    color: var(--ink-muted);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-1);
    border: 1px solid var(--hairline);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--surface-2);
    border-color: var(--accent-blue);
    color: var(--ink);
    transform: scale(1.05);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn span {
    font-size: 20px;
    font-weight: bold;
}

/* ═══════════════════════════════════════════
   CONSULTATION CALL GLOW PULSE
   ═══════════════════════════════════════════ */
@keyframes consultationGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 153, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
    }
}
.btn-consultation-pulse {
    animation: consultationGlowPulse 2s infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-consultation-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4) !important;
}

/* ── Premium Metallic/Shine Sweep Effect ── */
.mcl-shiny-sweep {
    position: relative;
    overflow: hidden;
}
.mcl-shiny-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
}
.mcl-shiny-sweep:hover::after {
    left: 140%;
    opacity: 1;
}

/* Star Sparkle Icons */
.mcl-sparkle-container {
    position: relative;
    display: inline-block;
}
.mcl-sparkle-star {
    position: absolute;
    width: 14px;
    height: 14px;
    color: var(--mcl-accent-electric);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    opacity: 0;
    pointer-events: none;
    animation: mclSparkleFloat 4s ease-in-out infinite;
}
@keyframes mclSparkleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(var(--dx, 10px), var(--dy, -15px)) scale(1.1) rotate(180deg);
        opacity: 0.95;
    }
}



