feat(ui): complete vertical layout overhaul, dynamic JSON banners, and animate-ui text motion graphics

This commit is contained in:
2026-11-03 18:06:20 +05:30
parent 8cec9692dc
commit b47b033ab7
24 changed files with 1419 additions and 608 deletions
@@ -1,378 +1,285 @@
'use client';
import React, { useRef, useState, useEffect, useCallback } from 'react';
import React from 'react';
import Link from 'next/link';
import { Sparkles, ArrowRight, Smartphone, ChevronLeft, ChevronRight, Layers } from 'lucide-react';
import {
ArrowRight,
Smartphone,
Sparkles,
CheckCircle2,
Cpu,
Zap,
Eye
} from 'lucide-react';
import { Cinematic3DComparison } from '@/components/ui/Cinematic3DComparison';
import { BorderBeam } from '@/components/animate-ui/BorderBeam';
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
import { SpotlightCard } from '@/components/animate-ui/SpotlightCard';
import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal';
import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText';
interface ShowcaseCard {
export interface ShowcaseItem {
id: string;
index: string;
tabLabel?: string;
category: string;
model: string;
latency: string;
title: string;
tagline: string;
description: string;
variant?: 'comparison' | 'banner';
beforeUrl?: string;
afterUrl?: string;
bannerImage?: string;
bannerBadge?: string;
toolSlug: string;
appSlug: string;
appName: string;
beforeUrl: string;
afterUrl: string;
specs: string[];
}
const showcaseCards: ShowcaseCard[] = [
interface CinematicHorizontalProps {
title?: string;
badge?: string;
subtitle?: string;
items?: ShowcaseItem[];
}
const DEFAULT_ITEMS: ShowcaseItem[] = [
{
id: 'matting',
id: 'alpha-matting',
index: '01 / 03',
category: 'ALPHA MATTING ARCHIVE',
tabLabel: '01 ALPHA',
category: 'FINE MATTING & CUTOUT',
model: 'P3M-Net Dual-Stream Alpha',
latency: '< 520ms Stream',
title: 'Hair-Strand Matting & Alpha Isolation',
tagline: 'Sub-pixel edge detection with microscopic flyaway hair preservation.',
description: 'Trained on high-resolution studio portraits, P3M-Net isolates individual flyaway hair strands, fur, and translucent fabrics without halo artifacts or jagged edges. Streams transparent alpha PNGs in real-time.',
toolSlug: 'background-remover',
appSlug: 'bg-cleaner-app',
appName: 'Magic Cutout Studio',
tagline: 'Sub-pixel hair strands, transparent veils, and motion blur cutout.',
description: 'Proprietary dual-stream deep neural network isolates fine flyaway hair, complex textures, and semi-transparent boundaries in studio portraits with pixel-level precision.',
variant: 'comparison',
beforeUrl: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80',
afterUrl: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80',
specs: ['Sub-pixel flyaway detection', 'Lossless alpha PNG export', 'Zero edge halo bleeding'],
toolSlug: 'background-remover',
appSlug: 'bg-cleaner-app',
appName: 'Magic Cutout',
specs: ['0.02px edge preservation', 'Alpha PNG lossless stream', 'Studio hair detail'],
},
{
id: 'retouch',
id: 'editorial-portrait-banner',
index: '02 / 03',
category: 'DERMAL RESTORATION',
model: 'RetouchGAN v2.1 Micro-Pore',
tabLabel: '02 BANNER',
category: 'STUDIO PRO BANNER',
model: 'RetouchGAN v2.1 Prime',
latency: '< 380ms Stream',
title: 'Sub-Pore Skin Retouching & Blemish Removal',
tagline: 'Authentic microscopic texture preservation without plastic smoothing.',
description: 'Unlike standard beauty filters that smear your face into plastic, RetouchGAN operates at the dermal level—erasing acne, blemishes, and under-eye redness while reconstructing microscopic skin pore geometry.',
title: 'Editorial Portrait Engine Pro',
tagline: 'Next-generation sub-pore epidermal synthesis.',
description: 'Transform commercial model photography with authentic skin pore preservation. Retain real freckles, iris glints, and fine texture with zero plastic artificial blur.',
variant: 'banner',
bannerImage: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80',
bannerBadge: 'PRO EDITION • LOSSLESS FP16',
toolSlug: 'blemish-remover',
appSlug: 'portrait-app',
appName: 'Portrait Studio AI',
beforeUrl: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80',
afterUrl: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80',
specs: ['Microscopic pore geometry', 'Instant scar & redness repair', 'True-to-life dermal tones'],
specs: ['Sub-pore texture matrix', 'Authentic epidermal micro-details', 'Lossless 4K color gamut'],
},
{
id: 'enhancer',
id: 'super-resolution',
index: '03 / 03',
tabLabel: '03 4K',
category: '4K SUPER-RESOLUTION',
model: 'GFPGAN + RealESRGAN Ultra',
latency: '< 460ms Stream',
title: '4K Super-Resolution & Facial Deblurring',
tagline: 'Transform low-resolution snapshots into crystal-clear 4K portraits.',
description: 'Deep neural priors restore authentic iris sharpness, eyelash detail, and facial contours on blurry, out-of-focus, or highly compressed photos, yielding gallery-ready clarity with zero guesswork.',
variant: 'comparison',
beforeUrl: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80',
afterUrl: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80',
toolSlug: 'photo-enhancer',
appSlug: 'photo-enhancer-pro',
appName: 'Enhance Ultra AI',
beforeUrl: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80',
afterUrl: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80',
specs: ['Iris & eyelash synthesis', '400% lossless super-resolution', 'Studio-grade crispness'],
},
];
export function CinematicHorizontalScrollSection() {
const scrollRef = useRef<HTMLDivElement>(null);
const [activeIndex, setActiveIndex] = useState(0);
const [isDragging, setIsDragging] = useState(false);
const [dragStartX, setDragStartX] = useState(0);
const [dragScrollLeft, setDragScrollLeft] = useState(0);
// Smoothly scroll to a specific card index
const scrollToCard = useCallback((index: number) => {
if (!scrollRef.current) return;
const container = scrollRef.current;
const card = container.children[index] as HTMLElement | undefined;
if (card) {
const containerWidth = container.offsetWidth;
const cardWidth = card.offsetWidth;
const cardLeft = card.offsetLeft;
// Center the card in the viewport
const targetLeft = cardLeft - (containerWidth - cardWidth) / 2;
container.scrollTo({
left: Math.max(0, targetLeft),
behavior: 'smooth',
});
setActiveIndex(index);
}
}, []);
const handlePrev = useCallback(() => {
scrollToCard(Math.max(0, activeIndex - 1));
}, [activeIndex, scrollToCard]);
const handleNext = useCallback(() => {
scrollToCard(Math.min(showcaseCards.length - 1, activeIndex + 1));
}, [activeIndex, scrollToCard]);
// Update active index based on scroll position via lightweight scroll listener
useEffect(() => {
const container = scrollRef.current;
if (!container) return;
let timeoutId: NodeJS.Timeout;
const handleScroll = () => {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
if (!container) return;
const scrollLeft = container.scrollLeft;
const containerCenter = scrollLeft + container.offsetWidth / 2;
let closestIdx = 0;
let minDiff = Infinity;
for (let i = 0; i < container.children.length; i++) {
const child = container.children[i] as HTMLElement;
const childCenter = child.offsetLeft + child.offsetWidth / 2;
const diff = Math.abs(containerCenter - childCenter);
if (diff < minDiff) {
minDiff = diff;
closestIdx = i;
}
}
setActiveIndex(closestIdx);
}, 50);
};
container.addEventListener('scroll', handleScroll, { passive: true });
return () => {
clearTimeout(timeoutId);
container.removeEventListener('scroll', handleScroll);
};
}, []);
// Mouse Drag to Scroll handlers
const onMouseDown = (e: React.MouseEvent) => {
// Only drag when clicking background/card frame, not when interacting with inputs/buttons
const target = e.target as HTMLElement;
if (target.closest('button') || target.closest('a') || target.closest('input')) return;
if (!scrollRef.current) return;
setIsDragging(true);
setDragStartX(e.pageX - scrollRef.current.offsetLeft);
setDragScrollLeft(scrollRef.current.scrollLeft);
};
const onMouseMove = (e: React.MouseEvent) => {
if (!isDragging || !scrollRef.current) return;
e.preventDefault();
const x = e.pageX - scrollRef.current.offsetLeft;
const walk = (x - dragStartX) * 1.5; // Drag speed multiplier
scrollRef.current.scrollLeft = dragScrollLeft - walk;
};
const onMouseUp = () => {
setIsDragging(false);
};
export function CinematicHorizontalScrollSection({
title = 'Interactive Model Showcase',
badge = 'FLAGSHIP TRANSFORMATION MODELS',
subtitle = 'Explore our next-generation neural engines with live benchmark telemetry.',
items = DEFAULT_ITEMS,
}: CinematicHorizontalProps) {
const showcaseCards = items && items.length > 0 ? items : DEFAULT_ITEMS;
return (
<section
id="flagship-models"
className="py-20 sm:py-28 lg:py-32 bg-[#FAF8F5] border-t border-slate-900/[0.08] relative overflow-hidden"
<section
id="flagship-models"
className="py-20 sm:py-28 lg:py-32 relative bg-[#FAF8F5] border-t border-b border-slate-900/[0.07] overflow-hidden"
>
{/* Subtle Ambient Background Gradient */}
<div className="absolute top-1/4 left-1/3 w-[500px] h-[500px] bg-blue-500/[0.025] rounded-full blur-3xl pointer-events-none -z-10" />
<div className="absolute bottom-1/4 right-1/4 w-[450px] h-[450px] bg-amber-500/[0.02] rounded-full blur-3xl pointer-events-none -z-10" />
{/* Subtle ambient light gradient */}
<div className="absolute top-1/4 left-1/2 -translate-x-1/2 w-[900px] h-96 bg-blue-500/[0.025] rounded-full blur-3xl pointer-events-none" />
{/* Massive Typographic Watermark (Lightweight CSS) */}
<div
className="absolute top-6 left-1/2 -translate-x-1/2 w-max select-none pointer-events-none opacity-[0.03] -z-10"
aria-hidden="true"
>
<span className="font-display font-black text-[12vw] uppercase tracking-tighter text-slate-900 block leading-none">
FLAGSHIP VISION ARCHIVE
</span>
</div>
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-8 sm:mb-12">
{/* Header Row: Title & Editorial Badge */}
<div className="flex flex-col md:flex-row md:items-end justify-between gap-6 pb-6 border-b border-slate-200">
<div>
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-blue-50 border border-blue-200 text-xs font-mono font-semibold text-blue-700 mb-3 shadow-sm">
<div className="w-full max-w-[1640px] 2xl:max-w-[1720px] mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 relative z-10">
{/* Section Header with Motion Graphics Text */}
<div className="text-center max-w-3xl mx-auto mb-14 sm:mb-16">
<div className="mb-3">
<ShimmerBadge>
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
<span>FLAGSHIP TRANSFORMATION MODELS</span>
</div>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight">
Interactive <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-700 via-indigo-600 to-amber-600">Model Showcase</span>
</h2>
<span>{badge}</span>
</ShimmerBadge>
</div>
{/* Navigation Controls: Tabs & Arrow Buttons */}
<div className="flex flex-wrap items-center gap-3">
{/* Quick Model Tabs */}
<div className="inline-flex items-center gap-1 p-1 bg-white rounded-full border border-slate-200 shadow-sm">
{showcaseCards.map((card, idx) => {
const isActive = activeIndex === idx;
return (
<button
key={card.id}
onClick={() => scrollToCard(idx)}
className={`px-3.5 py-1.5 rounded-full text-xs font-mono font-bold transition-all duration-200 ${
isActive
? 'bg-blue-600 text-white shadow-sm shadow-blue-500/20'
: 'text-slate-600 hover:text-slate-950 hover:bg-slate-100'
}`}
>
<span>0{idx + 1}</span>
<span className="hidden sm:inline ml-1 font-sans text-xs">
{card.category.split(' ')[0]}
</span>
</button>
);
})}
</div>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight mb-4">
<MotionTextReveal text="Interactive" className="text-slate-900 inline" />{' '}
<AnimatedGradientText className="font-black">
Model Showcase
</AnimatedGradientText>
</h2>
{/* Prev / Next Arrows */}
<div className="flex items-center gap-1.5">
<button
onClick={handlePrev}
disabled={activeIndex === 0}
aria-label="Previous Model"
className="w-9 h-9 rounded-full bg-white border border-slate-200 shadow-sm flex items-center justify-center text-slate-700 hover:text-blue-600 hover:border-blue-300 disabled:opacity-35 disabled:cursor-not-allowed transition-all active:scale-95"
>
<ChevronLeft className="w-4 h-4" />
</button>
<button
onClick={handleNext}
disabled={activeIndex === showcaseCards.length - 1}
aria-label="Next Model"
className="w-9 h-9 rounded-full bg-white border border-slate-200 shadow-sm flex items-center justify-center text-slate-700 hover:text-blue-600 hover:border-blue-300 disabled:opacity-35 disabled:cursor-not-allowed transition-all active:scale-95"
>
<ChevronRight className="w-4 h-4" />
</button>
</div>
</div>
<p className="text-base sm:text-lg text-slate-600 leading-relaxed font-normal">
{subtitle}
</p>
</div>
</div>
{/* Panoramic Native Scroll Filmstrip (100% GPU-accelerated, Zero Lag, Native Touch & Drag) */}
<div
ref={scrollRef}
onMouseDown={onMouseDown}
onMouseMove={onMouseMove}
onMouseUp={onMouseUp}
onMouseLeave={onMouseUp}
className="flex gap-6 sm:gap-8 px-4 sm:px-8 lg:px-12 overflow-x-auto scroll-smooth snap-x snap-mandatory no-scrollbar pb-6 cursor-grab active:cursor-grabbing"
style={{
WebkitOverflowScrolling: 'touch',
}}
>
{showcaseCards.map((card, idx) => {
const isActive = activeIndex === idx;
return (
<div
key={card.id}
className={`snap-center shrink-0 w-[90vw] sm:w-[680px] lg:w-[840px] bg-white rounded-3xl p-6 sm:p-9 border transition-all duration-300 ${
isActive
? 'border-blue-500/40 shadow-xl shadow-slate-900/[0.06] scale-[1.01]'
: 'border-slate-900/[0.08] shadow-md opacity-90 hover:opacity-100 hover:border-slate-300'
}`}
>
{/* Card Header Metadata Bar */}
<div className="flex flex-wrap items-center justify-between gap-3 pb-4 border-b border-slate-100 mb-6">
<div className="flex items-center gap-3">
<span className="font-mono text-sm font-black text-blue-700 tracking-wider">
{card.index}
</span>
<span className="h-3.5 w-px bg-slate-300" />
<span className="font-mono text-xs font-bold text-slate-500 uppercase tracking-widest">
{card.category}
</span>
</div>
{/* 100% Pure Vertical Stack (Zero Horizontal Scroll, Zero Lag, Ultra Smooth) */}
<div className="w-full space-y-12 sm:space-y-16">
{showcaseCards.map((card, idx) => {
const isBannerMode = card.variant === 'banner' || (!card.afterUrl && !!card.bannerImage);
<div className="flex items-center gap-2">
<span className="px-3 py-1 rounded-full bg-blue-50 border border-blue-200 text-blue-700 text-xs font-mono font-semibold">
{card.model}
</span>
<span className="px-2.5 py-1 rounded-full bg-amber-50 border border-amber-200 text-amber-800 text-[11px] font-mono font-semibold">
{card.latency}
</span>
</div>
</div>
return (
<SpotlightCard
key={card.id}
className="w-full bg-white rounded-3xl p-6 sm:p-8 lg:p-10 border border-slate-900/[0.08] hover:border-blue-400/80 shadow-sm hover:shadow-2xl hover:-translate-y-1 transition-all duration-300 relative group"
>
{/* Border Beam subtle light effect on hover */}
<BorderBeam duration={14} size={280} borderWidth={1.5} colorFrom="#3b82f6" colorTo="#a855f7" />
{/* Interactive Comparison Viewport */}
<div className="mb-6 rounded-2xl overflow-hidden border border-slate-200 bg-slate-100">
<Cinematic3DComparison
beforeUrl={card.beforeUrl}
afterUrl={card.afterUrl}
beforeLabel="RAW SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
{/* Card Editorial Content & Specifications */}
<div className="space-y-4">
<div className="flex flex-col sm:flex-row sm:items-baseline justify-between gap-2">
<h3 className="text-2xl sm:text-3xl font-display font-bold text-slate-900 tracking-tight">
{card.title}
</h3>
<span className="text-xs font-mono text-blue-600 font-semibold shrink-0">
{card.tagline}
</span>
</div>
<p className="text-sm sm:text-base text-slate-600 leading-relaxed font-normal">
{card.description}
</p>
{/* Specs Chips */}
<div className="flex flex-wrap gap-2 pt-1">
{card.specs.map((spec, i) => (
<span
key={i}
className="px-3 py-1 rounded-lg bg-slate-50 text-slate-700 text-xs font-mono font-medium border border-slate-200"
>
✓ {spec}
{/* Card Header Metadata Bar */}
<div className="flex flex-wrap items-center justify-between gap-3 pb-4 border-b border-slate-100 mb-6">
<div className="flex items-center gap-3">
<span className="font-mono text-sm font-black text-blue-700 tracking-wider">
{card.index}
</span>
))}
<span className="h-3.5 w-px bg-slate-300" />
<span className="font-mono text-xs font-bold text-slate-500 uppercase tracking-widest">
{card.category}
</span>
</div>
<div className="flex items-center gap-2">
<span className="px-3 py-1 rounded-full bg-blue-50 border border-blue-200 text-blue-700 text-xs font-mono font-semibold flex items-center gap-1.5">
<Cpu className="w-3 h-3 text-blue-600" />
<span>{card.model}</span>
</span>
<span className="px-2.5 py-1 rounded-full bg-emerald-50 border border-emerald-200 text-emerald-800 text-[11px] font-mono font-semibold flex items-center gap-1">
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
<span>{card.latency}</span>
</span>
</div>
</div>
{/* Direct Action Links */}
<div className="pt-4 flex flex-wrap items-center justify-between gap-3 border-t border-slate-100">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-blue-600 hover:bg-blue-700 text-white text-xs font-bold transition-all shadow-sm shadow-blue-500/20 active:scale-95"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
{/* Symmetrical Two-Column Content Grid: Details on Left, Visual on Right */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-center">
{/* Left Column: Editorial Content, Specs & Actions */}
<div className="lg:col-span-5 space-y-5">
<div>
<span className="text-xs font-mono text-blue-600 font-bold uppercase tracking-wider block mb-1">
{card.tagline}
</span>
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-slate-900 tracking-tight group-hover:text-blue-600 transition-colors">
{card.title}
</h3>
</div>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-4 py-2.5 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>{card.appName}</span>
</Link>
<p className="text-sm sm:text-base text-slate-600 leading-relaxed font-normal">
{card.description}
</p>
{/* Specs Checklist Chips */}
<div className="space-y-2 pt-1">
{card.specs.map((spec, i) => (
<div key={i} className="flex items-center gap-2.5 text-xs sm:text-sm text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>{spec}</span>
</div>
))}
</div>
{/* Action Links */}
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-blue-600 hover:bg-blue-700 text-white text-xs font-bold transition-all shadow-sm shadow-blue-500/20 active:scale-95 hover:-translate-y-0.5"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>{card.appName}</span>
</Link>
</div>
</div>
{/* Right Column: Dynamic Simple Banner OR Interactive 3D Comparison Slider */}
<div className="lg:col-span-7">
{isBannerMode ? (
/* DYNAMIC SIMPLE BANNER (100% Configurable from JSON, Zero Comparison) */
<div className="relative aspect-[16/10] w-full rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/banner">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={card.bannerImage || card.beforeUrl || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80'}
alt={card.title}
className="w-full h-full object-cover group-hover/banner:scale-105 transition-transform duration-700"
/>
{/* Atmospheric Vignette Gradient */}
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/85 via-slate-950/20 to-transparent pointer-events-none" />
{/* Top Dynamic Tag */}
<div className="absolute top-4 left-4 z-20">
<span className="px-3.5 py-1.5 rounded-full bg-white/95 backdrop-blur-md text-slate-900 text-xs font-mono font-bold border border-white/40 shadow-md">
{card.bannerBadge || 'DYNAMIC STUDIO BANNER'}
</span>
</div>
{/* Bottom Banner Content */}
<div className="absolute bottom-5 left-5 right-5 z-20 flex items-end justify-between">
<div>
<span className="text-[10px] font-mono text-blue-300 font-bold uppercase tracking-wider block mb-1">
Neural Preset Matrix
</span>
<h4 className="text-xl sm:text-2xl font-display font-bold text-white drop-shadow">
{card.title}
</h4>
</div>
<span className="hidden sm:inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-blue-600/90 text-white text-xs font-mono font-bold backdrop-blur-md shadow-md">
<Zap className="w-3.5 h-3.5" />
<span>1-Click Deploy</span>
</span>
</div>
</div>
) : (
/* INTERACTIVE 3D COMPARISON SLIDER */
<div className="rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-100 shadow-md">
<Cinematic3DComparison
beforeUrl={card.beforeUrl!}
afterUrl={card.afterUrl!}
beforeLabel="RAW SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
)}
</div>
</div>
</div>
</div>
);
})}
</div>
{/* Bottom Progress Bar Indicator */}
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mt-6">
<div className="flex items-center justify-between gap-4">
<div className="flex-1 max-w-xs h-1.5 bg-slate-200 rounded-full overflow-hidden">
<div
className="h-full bg-gradient-to-r from-blue-600 to-indigo-600 rounded-full transition-all duration-300"
style={{
width: `${((activeIndex + 1) / showcaseCards.length) * 100}%`,
}}
/>
</div>
<div className="flex items-center gap-3 text-xs font-mono text-slate-500">
<span>MODEL {activeIndex + 1} OF {showcaseCards.length}</span>
<span>•</span>
<span>SWIPE OR DRAG TO EXPLORE</span>
</div>
</SpotlightCard>
);
})}
</div>
</div>
</section>