From 6cba2256b41696cd359a0a24be8c498088190bec Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Tue, 3 Nov 2026 17:08:23 +0530 Subject: [PATCH] feat(3d): complete site-wide autonomous and interactive 3d cinematic typography overhaul --- src/app/globals.css | 87 +++++++++++ src/app/layout.tsx | 2 + src/components/sections/AppCardsSection.tsx | 10 +- src/components/sections/AppPickerSection.tsx | 6 +- .../CinematicHorizontalScrollSection.tsx | 10 +- src/components/sections/FaqSection.tsx | 8 +- src/components/sections/HeroSection.tsx | 6 +- src/components/sections/StatsSection.tsx | 12 +- .../sections/TransformationReelSection.tsx | 16 +- .../sections/VerticalToolStackSection.tsx | 8 +- .../sections/WorkflowVisualizerSection.tsx | 12 +- src/components/ui/BrandLogo.tsx | 4 +- src/components/ui/Cinematic3DTextEngine.tsx | 144 ++++++++++++++++++ src/components/ui/Kinetic3DText.tsx | 87 +++++++---- 14 files changed, 340 insertions(+), 72 deletions(-) create mode 100644 src/components/ui/Cinematic3DTextEngine.tsx diff --git a/src/app/globals.css b/src/app/globals.css index c061c9e..5a44cdf 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -316,3 +316,90 @@ -webkit-text-fill-color: transparent; } +/* Universal 3D Cinematic Extruded Typography */ +h1, h2, h3, h4, h5, h6, .font-display, .text-3d-chiseled { + transform-style: preserve-3d; + will-change: transform; + text-shadow: + 0 1px 0 #FFFFFF, + 0 2px 0 #E5DCCE, + 0 3px 1px #D6C7B2, + 0 4px 2px #C5B298, + 0 6px 6px rgba(15, 23, 42, 0.12), + 0 12px 24px rgba(15, 23, 42, 0.08); +} + +/* 3D Extruded Stat Numbers & Metric Badges */ +.stat-value, .stat-number, [data-stat] { + display: inline-block; + transform-style: preserve-3d; + will-change: transform; + filter: + drop-shadow(0 1px 0 #FFFFFF) + drop-shadow(0 2px 0 #E2D6C3) + drop-shadow(0 4px 2px rgba(197, 168, 128, 0.5)) + drop-shadow(0 8px 18px rgba(37, 99, 235, 0.35)); +} + +/* 3D Kinetic Light Sweep Animation across Gradient Headings */ +@keyframes text-3d-shimmer { + 0% { + background-position: 0% center; + } + 50% { + background-position: 100% center; + } + 100% { + background-position: 0% center; + } +} + +/* Continuous Organic 3D Floating Wave */ +@keyframes text-3d-float-organic { + 0%, 100% { + transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(14px); + } + 25% { + transform: perspective(900px) rotateX(2.5deg) rotateY(-3deg) translateZ(24px); + } + 50% { + transform: perspective(900px) rotateX(-2deg) rotateY(2.5deg) translateZ(16px); + } + 75% { + transform: perspective(900px) rotateX(2deg) rotateY(1.8deg) translateZ(26px); + } +} + +/* 3D Gradient Text Styling with Multi-Plane Depth */ +.text-3d-gradient, +.text-transparent.bg-clip-text { + background-size: 200% auto; + animation: text-3d-shimmer 6s ease-in-out infinite; + display: inline-block; + transform-style: preserve-3d; + filter: + drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95)) + drop-shadow(0 2px 1px rgba(197, 168, 128, 0.55)) + drop-shadow(0 5px 12px rgba(37, 99, 235, 0.32)) + drop-shadow(0 14px 28px rgba(15, 23, 42, 0.1)); +} + +/* Continuous 3D Spatial Pulse for Badges & Telemetry */ +@keyframes badge-3d-pulse { + 0%, 100% { + transform: perspective(600px) translateZ(8px) rotateX(0deg) rotateY(0deg); + box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); + } + 50% { + transform: perspective(600px) translateZ(18px) rotateX(3.5deg) rotateY(-2deg); + box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1); + } +} + +.badge-3d, [class*="badge"]:not([data-no3d]) { + animation: badge-3d-pulse 4s ease-in-out infinite; + transform-style: preserve-3d; + display: inline-flex; +} + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a4008e0..0be9cf7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,6 +6,7 @@ import { Navbar } from '@/components/ui/Navbar'; import { Footer } from '@/components/ui/Footer'; import { CursorAura } from '@/components/ui/CursorAura'; import { SmoothScroll } from '@/components/ui/SmoothScroll'; +import { Cinematic3DTextEngine } from '@/components/ui/Cinematic3DTextEngine'; const sansFont = Plus_Jakarta_Sans({ subsets: ['latin'], @@ -92,6 +93,7 @@ export default function RootLayout({ +
{children}