2026-11-03 16:44:13 +05:30
'use client' ;
2026-11-03 18:06:20 +05:30
import React from 'react' ;
2026-11-03 16:44:13 +05:30
import Link from 'next/link' ;
2026-11-03 18:06:20 +05:30
import {
ArrowRight ,
Smartphone ,
Sparkles ,
CheckCircle2 ,
Cpu ,
Zap ,
Eye
} from 'lucide-react' ;
2026-11-03 16:44:13 +05:30
import { Cinematic3DComparison } from '@/components/ui/Cinematic3DComparison' ;
2026-11-03 18:06:20 +05:30
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' ;
2026-11-03 16:44:13 +05:30
2026-11-03 18:06:20 +05:30
export interface ShowcaseItem {
2026-11-03 16:44:13 +05:30
id : string ;
index : string ;
2026-11-03 18:06:20 +05:30
tabLabel? : string ;
2026-11-03 16:44:13 +05:30
category : string ;
model : string ;
latency : string ;
title : string ;
tagline : string ;
description : string ;
2026-11-03 18:06:20 +05:30
variant ?: 'comparison' | 'banner' ;
beforeUrl? : string ;
afterUrl? : string ;
bannerImage? : string ;
bannerBadge? : string ;
2026-11-03 16:44:13 +05:30
toolSlug : string ;
appSlug : string ;
appName : string ;
specs : string [];
}
2026-11-03 18:06:20 +05:30
interface CinematicHorizontalProps {
title? : string ;
badge? : string ;
subtitle? : string ;
items? : ShowcaseItem [];
}
const DEFAULT_ITEMS : ShowcaseItem [] = [
2026-11-03 16:44:13 +05:30
{
2026-11-03 18:06:20 +05:30
id : 'alpha-matting' ,
2026-11-03 16:44:13 +05:30
index : '01 / 03' ,
2026-11-03 18:06:20 +05:30
tabLabel : '01 ALPHA' ,
category : 'FINE MATTING & CUTOUT' ,
2026-11-03 16:44:13 +05:30
model : 'P3M-Net Dual-Stream Alpha' ,
latency : '< 520ms Stream' ,
title : 'Hair-Strand Matting & Alpha Isolation' ,
2026-11-03 18:06:20 +05:30
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' ,
2026-11-03 16:44:13 +05:30
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' ,
2026-11-03 18:06:20 +05:30
toolSlug : 'background-remover' ,
appSlug : 'bg-cleaner-app' ,
appName : 'Magic Cutout' ,
specs : [ '0.02px edge preservation' , 'Alpha PNG lossless stream' , 'Studio hair detail' ],
2026-11-03 16:44:13 +05:30
},
{
2026-11-03 18:06:20 +05:30
id : 'editorial-portrait-banner' ,
2026-11-03 16:44:13 +05:30
index : '02 / 03' ,
2026-11-03 18:06:20 +05:30
tabLabel : '02 BANNER' ,
category : 'STUDIO PRO BANNER' ,
model : 'RetouchGAN v2.1 Prime' ,
2026-11-03 16:44:13 +05:30
latency : '< 380ms Stream' ,
2026-11-03 18:06:20 +05:30
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' ,
2026-11-03 16:44:13 +05:30
toolSlug : 'blemish-remover' ,
appSlug : 'portrait-app' ,
appName : 'Portrait Studio AI' ,
2026-11-03 18:06:20 +05:30
specs : [ 'Sub-pore texture matrix' , 'Authentic epidermal micro-details' , 'Lossless 4K color gamut' ],
2026-11-03 16:44:13 +05:30
},
{
2026-11-03 18:06:20 +05:30
id : 'super-resolution' ,
2026-11-03 16:44:13 +05:30
index : '03 / 03' ,
2026-11-03 18:06:20 +05:30
tabLabel : '03 4K' ,
2026-11-03 16:44:13 +05:30
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.' ,
2026-11-03 18:06:20 +05:30
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' ,
2026-11-03 16:44:13 +05:30
toolSlug : 'photo-enhancer' ,
appSlug : 'photo-enhancer-pro' ,
appName : 'Enhance Ultra AI' ,
specs : [ 'Iris & eyelash synthesis' , '400% lossless super-resolution' , 'Studio-grade crispness' ],
},
];
2026-11-03 18:06:20 +05:30
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 ;
2026-11-03 17:31:00 +05:30
2026-11-03 16:44:13 +05:30
return (
2026-11-03 18:06:20 +05:30
< 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"
2026-11-03 16:44:13 +05:30
>
2026-11-03 18:06:20 +05:30
{ /* 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" />
2026-11-03 16:44:13 +05:30
2026-11-03 18:06:20 +05:30
< 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 >
2026-11-03 16:44:13 +05:30
< Sparkles className = "w-3.5 h-3.5 text-blue-600" />
2026-11-03 18:06:20 +05:30
< span >{ badge }</ span >
</ ShimmerBadge >
2026-11-03 16:44:13 +05:30
</ div >
2026-11-03 18:06:20 +05:30
< 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 >
2026-11-03 17:17:02 +05:30
2026-11-03 18:06:20 +05:30
< p className = "text-base sm:text-lg text-slate-600 leading-relaxed font-normal" >
{ subtitle }
</ p >
2026-11-03 16:44:13 +05:30
</ div >
2026-11-03 18:06:20 +05:30
{ /* 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 );
2026-11-03 16:44:13 +05:30
2026-11-03 18:06:20 +05:30
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" />
2026-11-03 17:31:00 +05:30
2026-11-03 18:06:20 +05:30
{ /* 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 }
2026-11-03 17:31:00 +05:30
</ span >
2026-11-03 18:06:20 +05:30
< 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 >
2026-11-03 17:31:00 +05:30
</ div >
2026-11-03 18:06:20 +05:30
{ /* 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 >
2026-11-03 17:31:00 +05:30
2026-11-03 18:06:20 +05:30
< 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 >
2026-11-03 17:31:00 +05:30
</ div >
2026-11-03 18:06:20 +05:30
</ SpotlightCard >
);
})}
2026-11-03 16:44:13 +05:30
</ div >
</ div >
</ section >
);
}