Files
webb/src/app/globals.css
T

402 lines
9.8 KiB
CSS
Raw Normal View History

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/* Lenis Ultra-Smooth Fluid Scroll */
html.lenis, html.lenis body {
height: auto;
}
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: hidden;
}
.lenis.lenis-scrolling iframe {
pointer-events: none;
}
:root {
--color-primary: #2563EB;
--color-primary-hover: #1D4ED8;
--color-primary-light: #EFF6FF;
--color-accent: #0284C7;
--color-surface: #FAF8F5;
--color-surface-subtle: #F5F2EB;
--color-surface-card: #FFFFFF;
--theme-radius: 20px;
--theme-max-width: 1400px;
}
html {
scroll-behavior: auto;
}
body {
color: #0F172A;
background-color: #FAF8F5;
background-image:
radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
radial-gradient(circle at 90% 25%, rgba(2, 132, 199, 0.04) 0%, transparent 50%),
radial-gradient(circle at 10% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
background-attachment: fixed;
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .font-display {
font-family: var(--font-display), var(--font-sans), sans-serif;
letter-spacing: -0.04em;
color: #0F172A;
text-wrap: balance;
}
p {
text-wrap: pretty;
}
.font-mono {
font-family: var(--font-mono), monospace;
letter-spacing: -0.015em;
}
}
/* Creamy Studio Glassmorphism */
.glass-neo {
background: rgba(250, 248, 245, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(15, 23, 42, 0.06);
}
/* Authentic True Liquid Glass Capsule with High Refraction & Specular Gloss */
.liquid-glass-nav {
position: relative;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.48) 0%,
rgba(250, 248, 245, 0.32) 50%,
rgba(255, 255, 255, 0.42) 100%
);
backdrop-filter: blur(16px) saturate(190%) contrast(104%) brightness(1.04);
-webkit-backdrop-filter: blur(16px) saturate(190%) contrast(104%) brightness(1.04);
border: 1px solid rgba(255, 255, 255, 0.65);
box-shadow:
/* Razor-sharp 1px top specular ridge */
inset 0 1px 0 0 rgba(255, 255, 255, 0.85),
/* Crisp 1px bottom reflection */
inset 0 -1px 0 0 rgba(255, 255, 255, 0.2),
/* Soft volumetric ambient shadows */
0 20px 45px -10px rgba(15, 23, 42, 0.08),
0 8px 16px -4px rgba(15, 23, 42, 0.03);
overflow: hidden;
}
.liquid-glass-nav.nav-scrolled {
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.58) 0%,
rgba(250, 248, 245, 0.42) 50%,
rgba(255, 255, 255, 0.52) 100%
);
box-shadow:
inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
inset 0 -1px 0 0 rgba(255, 255, 255, 0.25),
0 24px 50px -12px rgba(15, 23, 42, 0.1),
0 10px 20px -5px rgba(15, 23, 42, 0.04);
}
/* Ensure foreground elements sit crisply */
.liquid-glass-nav > * {
position: relative;
z-index: 10;
}
/* Abbe Chromatic Dispersion Highlight Line (Physical Prismatic Spectral Edge) */
.liquid-glass-nav::after {
content: "";
position: absolute;
top: 0;
left: 6%;
right: 6%;
height: 1px;
background: linear-gradient(
90deg,
transparent 0%,
rgba(56, 189, 248, 0.55) 20%,
rgba(255, 255, 255, 0.95) 50%,
rgba(168, 85, 247, 0.5) 80%,
transparent 100%
);
pointer-events: none;
z-index: 5;
}
/* Cylindrical Lens Caustic Bands & Longitudinal Focal Concentration Overlay */
.liquid-caustic-refraction {
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(
180deg,
rgba(255, 255, 255, 0.3) 0%,
rgba(255, 255, 255, 0.08) 16%,
transparent 28%,
rgba(255, 255, 255, 0.03) 50%,
transparent 72%,
rgba(255, 255, 255, 0.08) 84%,
rgba(255, 255, 255, 0.2) 100%
),
radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 75%);
mix-blend-mode: overlay;
z-index: 2;
}
/* Liquid Glass Mobile Dropdown */
.liquid-glass-dropdown {
position: relative;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.72) 0%,
rgba(250, 248, 245, 0.85) 100%
);
backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
-webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
border: 1px solid rgba(255, 255, 255, 0.85);
box-shadow:
inset 0 2px 1px rgba(255, 255, 255, 1),
inset 0 0 20px rgba(255, 255, 255, 0.35),
0 24px 60px -10px rgba(15, 23, 42, 0.16);
}
.glass-card {
background: #FFFFFF;
border: 1px solid rgba(15, 23, 42, 0.07);
box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
border-color: rgba(37, 99, 235, 0.25);
box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
transform: translateY(-2px);
}
/* Editorial Gradient Text */
.text-gradient-brand {
background: linear-gradient(135deg, #0F172A 20%, #2563EB 65%, #7C3AED 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient-cyan {
background: linear-gradient(135deg, #0F172A 15%, #0284C7 85%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Shimmer Animation Effect for Badges & Buttons */
.shimmer-badge {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.4) 50%,
rgba(255, 255, 255, 0) 100%
);
background-size: 200% 100%;
animation: shimmer 3s infinite;
}
@keyframes gradient-flow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes shimmer-slide {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
@keyframes border-beam {
100% {
offset-distance: 100%;
}
}
.animate-border-beam {
animation: border-beam var(--duration) infinite linear;
}
/* Pixelcut Typography & Sub-Pixel Crisp Font Rendering */
body, h1, h2, h3, h4, p, span, button {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* Clean Minimalist Warm Scrollbar */
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-track {
background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
background: #DDD7CC;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #C8C2B5;
}
/* 3D Motion Keyframes & Floating Helpers */
@keyframes float-slow {
0%, 100% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-8px) rotate(1.2deg);
}
}
@keyframes float-medium {
0%, 100% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-12px) rotate(-1.5deg);
}
}
.animate-float-slow {
animation: float-slow 6s ease-in-out infinite;
}
.animate-float-medium {
animation: float-medium 7.5s ease-in-out infinite;
}
/* 3D Cinematic Perspective Utilities (Enigma Cult Reference) */
.perspective-800 {
perspective: 800px;
}
.perspective-1000 {
perspective: 1000px;
}
.perspective-1400 {
perspective: 1400px;
}
.preserve-3d {
transform-style: preserve-3d;
}
.backface-hidden {
backface-visibility: hidden;
}
/* Luxury 3D Holographic Split Line & Caustics */
@keyframes holographic-laser-pulse {
0%, 100% {
box-shadow:
0 0 10px rgba(37, 99, 235, 0.7),
0 0 25px rgba(197, 168, 128, 0.4),
inset 0 0 8px rgba(255, 255, 255, 0.8);
}
50% {
box-shadow:
0 0 18px rgba(37, 99, 235, 0.95),
0 0 40px rgba(197, 168, 128, 0.65),
inset 0 0 12px rgba(255, 255, 255, 1);
}
}
.holographic-laser-split {
animation: holographic-laser-pulse 2.4s ease-in-out infinite;
}
/* Light Luxury Cinematic 3D Card Shadows */
.shadow-cinematic-3d {
box-shadow:
0 30px 60px -15px rgba(15, 23, 42, 0.08),
0 10px 25px -5px rgba(15, 23, 42, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.shadow-cinematic-hover {
box-shadow:
0 40px 80px -20px rgba(15, 23, 42, 0.12),
0 16px 32px -8px rgba(37, 99, 235, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
/* Enigma Editorial Typography Accent Gradients */
.text-gradient-champagne {
background: linear-gradient(135deg, #1E293B 20%, #B89058 70%, #9B6B43 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Guaranteed Text Visibility - Fix all text disappearance issues */
.text-transparent,
[class*="text-transparent"],
[class*="bg-clip-text"],
.text-gradient-brand,
.text-gradient-cyan,
.text-gradient-champagne {
text-shadow: none !important;
filter: none !important;
transform-style: flat !important;
-webkit-text-fill-color: transparent !important;
-webkit-background-clip: text !important;
background-clip: text !important;
display: inline-block;
opacity: 1 !important;
visibility: visible !important;
}
/* Crisp, Ultra-Lightweight Editorial Headings (Zero CPU load, Zero Disappearance) */
h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
text-shadow: 0 1px 1px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
}
/* Crisp Stat Numbers */
.stat-value, .stat-number, [data-stat] {
display: inline-block;
text-shadow: none !important;
filter: none !important;
}
/* Lightweight Badge Styling (Zero Continuous CPU/GPU Spikes) */
.badge-3d, [class*="badge"] {
display: inline-flex;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-3d:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px -2px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}