/* ==========================================================================
   XPORTIOS - Design System & Modern Responsive Stylesheet
   Dark Luxury Tech & Light Minimalist Modes with Smooth Transitions
   ========================================================================== */

:root {
  /* Dark Mode Default Theme */
  --bg-primary: #070a12;
  --bg-secondary: #0c1220;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(22, 34, 58, 0.9);
  --bg-input: rgba(12, 18, 32, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.7);
  --bg-header: rgba(7, 10, 18, 0.85);
  --bg-footer: #05070d;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #9fb1c9;
  --text-dim: #94a3b8;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px rgba(56, 189, 248, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-footer: #f1f5f9;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-glow: rgba(2, 132, 199, 0.35);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #475569;
  
  --accent-sky: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #6d28d9;
  --accent-emerald: #047857;
  --accent-amber: #b45309;
  --accent-rose: #be123c;
  
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
}

/* ==========================================================================
   Hide Default Scrollbars (Gear Scroller is the Sole Active Indicator)
   ========================================================================== */
html {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and legacy Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: auto; /* Handled smoothly by Lenis */
  scroll-padding-top: 90px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

body.page-loaded {
  opacity: 1;
}

.page-main-container {
  width: 100%;
  flex: 1 0 auto;
  position: relative;
}

/* ==========================================================================
   Cinematic Diagonal Sliced Studio Page Transition (Dark & Light Theme Synced)
   ========================================================================== */
:root {
  --trans-bg: #07090e;
  --trans-slice-bg: #0b0f19;
  --trans-slice-border: rgba(56, 189, 248, 0.15);
  --trans-grid-line: rgba(56, 189, 248, 0.18);
  --trans-watermark-color: rgba(255, 255, 255, 0.038);
  --trans-title-color: #ffffff;
  --trans-desc-color: #94a3b8;
  --trans-badge-color: #94a3b8;
  --trans-counter-color: var(--accent-sky);
  --trans-glow-line: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  --trans-glow-shadow: 0 0 18px rgba(56, 189, 248, 0.65), 0 0 32px rgba(129, 140, 248, 0.4);
}

[data-theme="light"] {
  --trans-bg: #f8fafc;
  --trans-slice-bg: #ffffff;
  --trans-slice-border: rgba(15, 23, 42, 0.08);
  --trans-grid-line: rgba(2, 132, 199, 0.15);
  --trans-watermark-color: rgba(15, 23, 42, 0.045);
  --trans-title-color: #0f172a;
  --trans-desc-color: #475569;
  --trans-badge-color: #64748b;
  --trans-counter-color: #0284c7;
  --trans-glow-line: linear-gradient(90deg, #0284c7 0%, #6366f1 100%);
  --trans-glow-shadow: 0 0 16px rgba(2, 132, 199, 0.5), 0 0 28px rgba(99, 102, 241, 0.3);
}

.page-trans-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.6s ease, opacity 0.2s ease;
}

/* When active or incoming from page switch */
.page-trans-overlay.is-active,
html.page-transitioning .page-trans-overlay {
  visibility: visible !important;
  pointer-events: all !important;
  opacity: 1 !important;
}

.page-trans-overlay.is-revealing {
  visibility: visible !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

/* 100% Opaque Solid Backdrop */
.page-trans-backdrop {
  position: absolute;
  inset: 0;
  background: var(--trans-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.25s, background-color 0.25s ease;
}

.page-trans-overlay.is-active .page-trans-backdrop,
html.page-transitioning .page-trans-overlay .page-trans-backdrop {
  opacity: 1;
}

.page-trans-overlay.is-revealing .page-trans-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Diagonal Cascading Slices Container */
.page-trans-slices {
  position: absolute;
  top: -25vh;
  left: -25vw;
  width: 150vw;
  height: 150vh;
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.page-trans-slice {
  flex: 1;
  height: 100%;
  position: relative;
  background: var(--trans-slice-bg);
  border-right: 1px solid var(--trans-slice-border);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
  margin-right: -2px;
  transform: translateY(-115%) skewX(-18deg);
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
  will-change: transform;
}

/* Staggered Diagonal Sweep IN (Top-Left to Bottom-Right) */
.page-trans-overlay.is-active .page-trans-slice,
html.page-transitioning .page-trans-overlay .page-trans-slice {
  transform: translateY(0) skewX(-18deg);
}

.page-trans-overlay.is-active .slice-1,
html.page-transitioning .page-trans-overlay .slice-1 { transition-delay: 0.00s; }
.page-trans-overlay.is-active .slice-2,
html.page-transitioning .page-trans-overlay .slice-2 { transition-delay: 0.05s; }
.page-trans-overlay.is-active .slice-3,
html.page-transitioning .page-trans-overlay .slice-3 { transition-delay: 0.10s; }
.page-trans-overlay.is-active .slice-4,
html.page-transitioning .page-trans-overlay .slice-4 { transition-delay: 0.15s; }
.page-trans-overlay.is-active .slice-5,
html.page-transitioning .page-trans-overlay .slice-5 { transition-delay: 0.20s; }

/* Staggered Diagonal Sweep OUT (Continuing Down-Right to Reveal New Page) */
.page-trans-overlay.is-revealing .page-trans-slice {
  transform: translateY(115%) skewX(-18deg);
}

.page-trans-overlay.is-revealing .slice-1 { transition-delay: 0.00s; }
.page-trans-overlay.is-revealing .slice-2 { transition-delay: 0.05s; }
.page-trans-overlay.is-revealing .slice-3 { transition-delay: 0.10s; }
.page-trans-overlay.is-revealing .slice-4 { transition-delay: 0.15s; }
.page-trans-overlay.is-revealing .slice-5 { transition-delay: 0.20s; }

/* Architectural Vertical Guide Lines */
.page-trans-grid {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  opacity: 0.15;
  z-index: 2;
}

.page-trans-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--trans-grid-line) 50%, 
    transparent 100%
  );
}

/* Giant Ghost Watermark Number */
.page-trans-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  font-family: var(--font-heading);
  font-size: clamp(14rem, 28vw, 26rem);
  font-weight: 900;
  color: var(--trans-watermark-color);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease 0.22s, transform 0.4s ease 0.22s, color 0.25s ease;
}

.page-trans-overlay.is-active .page-trans-watermark,
html.page-transitioning .page-trans-overlay .page-trans-watermark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-trans-overlay.is-revealing .page-trans-watermark {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.04);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Center Stage Content (Shielded over Slices) */
.page-trans-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 920px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.22s,
              opacity 0.35s ease 0.22s;
}

.page-trans-overlay.is-active .page-trans-content,
html.page-transitioning .page-trans-overlay .page-trans-content {
  transform: translateY(0);
  opacity: 1;
}

.page-trans-overlay.is-revealing .page-trans-content {
  transform: translateY(-24px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Top Tracker Badge */
.page-trans-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trans-badge-color);
  margin-bottom: 20px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.page-trans-sep {
  color: var(--trans-desc-color);
  opacity: 0.4;
  font-size: 0.75rem;
}

.page-trans-counter {
  color: var(--trans-counter-color);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  font-weight: 800;
  transition: color 0.25s ease;
}

[data-theme="light"] .page-trans-counter {
  text-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* Huge Bold Title */
.page-trans-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trans-title-color);
  line-height: 1.05;
  margin: 0 0 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  transition: color 0.25s ease;
}

/* Subtitle */
.page-trans-desc {
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  color: var(--trans-desc-color);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  max-width: 680px;
  line-height: 1.5;
  transition: color 0.25s ease;
}

/* Glowing Accent Gradient Line */
.page-trans-glow-line {
  width: 120px;
  height: 2.5px;
  border-radius: 9999px;
  background: var(--trans-glow-line);
  box-shadow: var(--trans-glow-shadow);
  animation: trans-line-glow 1.6s ease-in-out infinite alternate;
}

@keyframes trans-line-glow {
  0% {
    width: 100px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  }
  100% {
    width: 140px;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.85), 0 0 38px rgba(129, 140, 248, 0.5);
  }
}

/* ==========================================================================
   Ambient Atmospheric Glowing Orbs & Tech Grid (Unique, Clean, No Text Clutter)
   ========================================================================== */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 85%);
}

[data-theme="light"] .ambient-grid {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  will-change: transform;
}

.ambient-orb-1 {
  top: -120px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(56, 189, 248, 0) 70%);
  animation: orb-drift-1 18s infinite alternate ease-in-out;
}

.ambient-orb-2 {
  top: 35%;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
  animation: orb-drift-2 22s infinite alternate ease-in-out;
}

.ambient-orb-3 {
  bottom: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  animation: orb-drift-3 20s infinite alternate ease-in-out;
}

[data-theme="light"] .ambient-orb {
  opacity: 0.35;
}
[data-theme="light"] .ambient-orb-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
}
[data-theme="light"] .ambient-orb-2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
}
[data-theme="light"] .ambient-orb-3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 70%);
}

@keyframes orb-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 70px) scale(1.1); }
  100% { transform: translate(-30px, 100px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.08); }
  100% { transform: translate(30px, 60px) scale(0.92); }
}

@keyframes orb-drift-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-50px, -30px) scale(0.96); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section > .container,
.section > .container {
  position: relative;
  z-index: 2;
}

.section-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-sky);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
  box-shadow: 0 0 8px var(--accent-sky);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-sky);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 12px 0;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo (Dark / Light Dynamic) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Logo Switching Rule:
   In dark mode: wordmark-dark (white text) is shown.
   In light mode: wordmark-light (dark text) is shown. */
.brand-logo .logo-dark {
  display: block;
}
.brand-logo .logo-light {
  display: none;
}

[data-theme="light"] .brand-logo .logo-dark {
  display: none;
}
[data-theme="light"] .brand-logo .logo-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-only-item {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-sky);
  transform: rotate(15deg);
  background: var(--bg-card-hover);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .icon-sun {
  display: none;
}
.theme-toggle-btn .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--accent-sky);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Single-Line Continuous Ticker Ribbon */
.ticker-ribbon {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  user-select: none;
}

.ticker-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 1) 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 1) 95%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-slide 55s linear infinite;
}

/* CRITICAL REQUIREMENT: Hover pauses the ticker movement */
.ticker-ribbon:hover .ticker-track,
.ticker-track:hover {
  animation-play-state: paused !important;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
  white-space: nowrap;
  cursor: default;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-item:hover {
  transform: translateY(-1px);
}

.ticker-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-sky);
  flex-shrink: 0;
  stroke: var(--accent-sky);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.ticker-item:hover .ticker-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85));
}

.ticker-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.ticker-item:hover .ticker-text {
  color: #ffffff;
}

[data-theme="light"] .ticker-ribbon {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ticker-icon {
  color: #0284c7;
  stroke: #0284c7;
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.3));
}

[data-theme="light"] .ticker-text {
  color: #334155;
}

[data-theme="light"] .ticker-item:hover .ticker-text {
  color: #0f172a;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ticker-ribbon {
    padding: 14px 0;
  }
  .ticker-item {
    gap: 10px;
    padding: 0 24px;
  }
  .ticker-text {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }
  .ticker-icon {
    width: 16px;
    height: 16px;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  font-size: 1.5rem;
  margin-bottom: 22px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-deliverables {
  list-style: none;
  margin-bottom: 24px;
}

.service-deliverables li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.service-deliverables li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.service-price {
  font-weight: 700;
  color: var(--accent-sky);
}

.service-timeline {
  color: var(--text-dim);
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-sky);
  color: #070a12;
  border-color: var(--accent-sky);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-sky);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.project-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #090e1a;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.project-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-client {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-metrics {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Dedicated Case Study Page Styles */
.case-study-hero {
  padding-top: 150px;
  padding-bottom: 50px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent-sky);
}

.case-study-feature-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
}

.case-study-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.case-study-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

.case-study-block h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  background: var(--bg-card-hover);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-phase {
  font-size: 0.78rem;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
}

.testimonial-rating {
  color: #fbbf24;
  margin-bottom: 18px;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-sky);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-sky);
}

.team-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #090e1a;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-body {
  padding: 24px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent-sky);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--accent-sky);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--accent-sky);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
  padding: 0 24px 24px;
}

/* Contact Section & Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-text p, .contact-text a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.form-control:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alert Notification Toast */
.alert-toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  margin-top: auto;
  color: var(--text-main);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .site-footer {
  background: var(--bg-footer);
  border-top-color: var(--border-subtle);
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.35fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  align-items: start;
}

.footer-lettermark-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  user-select: none;
  padding-top: 10px;
}

.footer-watermark-wrap {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.22));
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.footer-watermark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-watermark-wrap .logo-dark {
  display: block;
}
.footer-watermark-wrap .logo-light {
  display: none;
}

[data-theme="light"] .footer-watermark-wrap {
  opacity: 0.12;
  filter: drop-shadow(0 0 20px rgba(2, 132, 199, 0.12));
}
[data-theme="light"] .footer-watermark-wrap .logo-dark {
  display: none;
}
[data-theme="light"] .footer-watermark-wrap .logo-light {
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 18px 0 24px;
  max-width: 320px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

[data-theme="light"] .footer-brand p {
  color: #475569;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent-sky);
  color: #070a12;
  border-color: var(--accent-sky);
  transform: translateY(-2px);
}

[data-theme="light"] .social-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
}

[data-theme="light"] .social-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  transition: color 0.3s ease;
}

[data-theme="light"] .footer-col h4 {
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-sky);
  padding-left: 4px;
}

[data-theme="light"] .footer-links a {
  color: #475569;
}

[data-theme="light"] .footer-links a:hover {
  color: #0284c7;
  padding-left: 4px;
}

/* Contact Info list in Footer */
.footer-contact-list {
  gap: 14px;
}

.footer-contact-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.45;
}

[data-theme="light"] .footer-contact-list li {
  color: #475569;
}

.footer-contact-list strong {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-contact-list a {
  color: var(--accent-sky);
  word-break: break-all;
}

[data-theme="light"] .footer-contact-list a {
  color: #0284c7;
}

.footer-contact-list a:hover {
  text-decoration: underline;
  padding-left: 0;
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.85rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .footer-bottom {
  border-top-color: var(--border-subtle);
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent-sky);
}

[data-theme="light"] .footer-bottom-links a {
  color: #64748b;
}

[data-theme="light"] .footer-bottom-links a:hover {
  color: #0284c7;
}

/* ==========================================================================
   Floating WhatsApp Action Widget (Mobile & Desktop Optimized)
   ========================================================================== */
/* ==========================================================================
   Floating WhatsApp Action Widget (Firmly Stuck at Bottom-Right)
   ========================================================================== */
.floating-whatsapp {
  display: inline-flex !important;
  position: fixed !important;
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px))) !important;
  right: max(20px, calc(20px + env(safe-area-inset-right, 0px))) !important;
  z-index: 2147483647 !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:active {
  transform: scale(0.93) !important;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: max(18px, calc(18px + env(safe-area-inset-bottom, 0px))) !important;
    right: max(16px, calc(16px + env(safe-area-inset-right, 0px))) !important;
  }
}

  .whatsapp-pill-text {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    letter-spacing: 0.02em;
    pointer-events: none;
  }

  [data-theme="light"] .whatsapp-pill-text {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
  }

  .whatsapp-btn {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ee06f 0%, #25d366 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
    animation: wa-pulse 2.8s infinite;
    flex-shrink: 0;
  }

  .whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
  }

  .whatsapp-ping {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
  }
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65), 0 4px 18px rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 18px rgba(37, 211, 102, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 18px rgba(37, 211, 102, 0.4); }
}

/* ==========================================================================
   Mechanical Gear Scrollbar & Progress Indicator (Clickable & Draggable)
   ========================================================================== */
.gear-scrollbar-track {
  position: fixed;
  top: 90px;
  right: 14px;
  bottom: 95px;
  width: 44px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: opacity 0.3s ease;
}

/* Expanded invisible hit area so clicking/dragging anywhere near rail is effortless */
.gear-scrollbar-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  cursor: pointer;
}

.gear-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--border-medium);
  border-radius: 9999px;
  overflow: hidden;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.gear-scrollbar-track:hover .gear-rail,
body.is-dragging-gear .gear-rail {
  background: rgba(56, 189, 248, 0.25);
  width: 5px;
}

.gear-rail-fill {
  width: 100%;
  height: 0%;
  background: var(--gradient-brand);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.gear-wheel-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transition: top 0.06s linear;
  user-select: none;
}

.gear-wheel-wrap:active,
body.is-dragging-gear .gear-wheel-wrap {
  cursor: grabbing !important;
}

body.is-dragging-gear,
body.is-dragging-gear * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: grabbing !important;
}

/* While dragging, disable smooth transition so the gear tracks cursor with 0 lag */
body.is-dragging-gear .gear-wheel-wrap {
  transition: none !important;
}

.gear-wheel-wrap:hover .gear-svg,
body.is-dragging-gear .gear-svg {
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95));
  transform: scale(1.15);
}

.gear-svg {
  color: var(--accent-sky);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  transition: filter 0.2s ease;
  will-change: transform;
}

[data-theme="light"] .gear-svg {
  color: #0284c7;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.gear-pct {
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-sky);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

[data-theme="light"] .gear-pct {
  color: #0284c7;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Team & Architectural Leadership Grid
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  margin-top: 36px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.12);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-secondary);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.team-role {
  color: var(--accent-sky);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Header Action & Clickable Section Link Elements */
.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header-wrap .section-header {
  margin-bottom: 0;
  text-align: left;
}

.service-card-interactive {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card-interactive:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.14);
}

/* ==========================================================================
   About Page Custom Modern Component Styles
   ========================================================================== */

/* Vision Grid & Cards */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  margin-top: 36px;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vision-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.12);
}

.vision-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-medium);
}

/* ESTD Milestone Timeline & Stats */
.estd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.estd-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.estd-stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-sky);
}

.estd-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.estd-stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.estd-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
  position: relative;
}

.estd-milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.estd-milestone-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-sky);
}

.estd-year-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 14px;
}

/* Opportunities Grid & Cards */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.opportunity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.opportunity-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.12);
}

/* Executive Leadership Cards */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 32px;
}

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.leadership-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sky);
  box-shadow: 0 20px 48px rgba(56, 189, 248, 0.14);
}

.leadership-top {
  display: flex;
  gap: 22px;
  padding: 28px 28px 22px 28px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.leadership-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-medium);
}

.leadership-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-details {
  padding: 26px 28px 28px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.leadership-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
  border-left: 2px solid var(--accent-sky);
  padding-left: 12px;
  font-style: italic;
}

.leadership-bio-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.leadership-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.skill-pill-sm {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.leadership-card:hover .skill-pill-sm {
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--text-main);
}

/* ==========================================================================
   Executive Founders Showcase (High-Impact Hero Portraits & Luxury Layout)
   ========================================================================== */
.founders-executive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 32px;
}

.founder-executive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
}

.founder-executive-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 60px -15px rgba(56, 189, 248, 0.22), 0 0 25px rgba(56, 189, 248, 0.08);
}

/* Large Hero Portrait Frame */
.founder-portrait-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #080d1a;
}

.founder-portrait-hero a.founder-img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.founder-portrait-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  display: block;
}

.founder-executive-card:hover .founder-portrait-hero img {
  transform: scale(1.05);
  filter: contrast(1.02) brightness(1.02);
}

/* Cinematic Multi-Stop Scrim Gradient */
.founder-portrait-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0.4) 0%,
    rgba(7, 10, 18, 0.03) 30%,
    rgba(7, 10, 18, 0.22) 55%,
    rgba(7, 10, 18, 0.8) 82%,
    var(--bg-card) 100%
  );
  transition: background 0.3s ease;
}

/* Top Floating Glass Badges */
.founder-top-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}

.founder-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  pointer-events: auto;
}

.founder-glass-pill.role {
  color: var(--accent-sky);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 32, 0.84);
}

.founder-glass-pill.status {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 26, 20, 0.84);
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-emerald 2s infinite ease-in-out;
}

@keyframes pulse-emerald {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Hero Information Overlaid onto Bottom of Portrait */
.founder-hero-info {
  position: absolute;
  bottom: 18px;
  left: 24px;
  right: 24px;
  z-index: 2;
  pointer-events: auto;
}

.founder-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.founder-hero-name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.founder-hero-name a:hover {
  color: var(--accent-sky);
}

.founder-hero-role {
  color: var(--accent-sky);
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.founder-exp-tag {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-sky);
  font-weight: 600;
}

/* Card Body Content */
.founder-card-body {
  padding: 24px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.founder-quote-box {
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid var(--accent-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
}

.founder-bio-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.founder-highlights-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.founder-skill-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.founder-executive-card:hover .founder-skill-pill {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-main);
}

.founder-actions-row {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.founder-actions-row .btn-primary {
  flex: 1;
  min-width: 170px;
  justify-content: center;
  font-size: 0.85rem;
}

.founder-actions-row .btn-secondary {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Light Theme Overrides */
[data-theme="light"] .founder-portrait-overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.02) 30%,
    rgba(15, 23, 42, 0.2) 55%,
    rgba(15, 23, 42, 0.78) 82%,
    #ffffff 100%
  );
}

[data-theme="light"] .founder-quote-box {
  background: rgba(2, 132, 199, 0.05);
  border-left-color: var(--accent-sky);
  color: #0f172a;
}

[data-theme="light"] .founder-skill-pill {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-muted);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .founder-executive-card:hover .founder-skill-pill {
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--text-main);
}

@media (max-width: 900px) {
  .founder-portrait-hero {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .founder-portrait-hero {
    height: 330px;
  }
  .founder-card-body {
    padding: 20px 20px 24px 20px;
  }
}

@media (max-width: 480px) {
  .founder-portrait-hero {
    height: 300px;
  }
  .founder-top-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .founder-actions-row {
    flex-direction: column;
  }
  .founder-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Executive Biography Expandable Story */
.bio-story-wrapper {
  position: relative;
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-story-wrapper.is-expanded {
  max-height: 4000px !important;
  overflow: visible !important;
}

.bio-story-wrapper .bio-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0) 0%, var(--bg-card) 92%);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bio-story-wrapper.is-expanded .bio-fade-overlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-theme="light"] .bio-story-wrapper .bio-fade-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg-card) 92%);
}

/* Overview Section Styling */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.overview-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
}

/* ==========================================================================
   Responsive Media Queries & Mobile Polish
   ========================================================================== */
@media (max-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .contact-wrapper,
  .case-study-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-lettermark-col {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-desc {
    font-size: 0.98rem;
  }
  .hero-section {
    padding-top: 130px;
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .service-card,
  .testimonial-card,
  .contact-info-card,
  .contact-form-card {
    padding: 24px 18px;
  }
  .project-body {
    padding: 20px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-only-item {
    display: block !important;
    width: 100%;
  }
  .mobile-only-item .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .nav-actions > .btn {
    display: none;
  }
  .gear-scrollbar-track {
    display: none !important; /* Touch inertial scrolling on mobile; keep gear tracker exclusively on desktop */
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .service-card,
  .testimonial-card,
  .team-card,
  .contact-info-card,
  .contact-form-card,
  .project-card,
  .faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-item::after {
    display: none !important;
  }
  .stat-number {
    font-size: 1.55rem;
  }
  .stat-label {
    font-size: 0.66rem;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-logo img.logo-lettermark {
    height: 30px;
  }
  .brand-logo img.logo-wordmark {
    height: 24px;
  }
  .floating-whatsapp {
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px))) !important;
    right: max(14px, calc(14px + env(safe-area-inset-right, 0px))) !important;
  }
  .whatsapp-pill-text {
    display: none; /* Ultra-compact circular button on very small screens to keep maximum viewport space */
  }
  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* Universal Anti-Drag / Anti-Blowout Enforcement */
*, *::before, *::after {
  box-sizing: border-box;
}
img, svg, video, canvas {
  max-width: 100%;
}
p, h1, h2, h3, h4, h5, h6, span, a, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* High-Performance Mobile Viewport & Touch Optimization */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  /* Prevent iOS mobile Safari automatic zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Touch-friendly navigation targets (min 44px) */
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }
  
  /* Hardware accelerated mobile drawer */
  .nav-links {
    will-change: transform, opacity;
    -webkit-overflow-scrolling: touch;
  }
}


