/* ==========================================================================
   RAISUL ALAM — HYPER-FUTURISTIC DIGITAL RESEARCH LABORATORY
   Cinematic WebGL • Apple-Level Minimalism • Real-Time Math • Responsive
   ========================================================================== */

:root {
  /* Futuristic Color Palette */
  --bg-deep: #03060c;
  --bg-void: #020408;
  --bg-panel: rgba(8, 14, 28, 0.78);
  --bg-panel-hover: rgba(14, 22, 42, 0.88);
  
  --cyan-core: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --indigo-core: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.35);
  --violet-core: #a855f7;
  --amber-core: #f59e0b;
  --orange-academia: #ff6b2b;
  --orange-glow: rgba(255, 107, 43, 0.45);
  
  --bg-card: rgba(8, 14, 28, 0.75);
  --bg-surface: rgba(11, 18, 35, 0.65);
  --accent-cyan: var(--cyan-core);
  --accent-electric: #38bdf8;
  --accent-violet: var(--indigo-core);
  --academia-brand: var(--orange-academia);
  
  --text-pure: #ffffff;
  --text-high: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-cyan: rgba(0, 240, 255, 0.24);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", monospace;
  
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-high);
  font-family: var(--font-display);
  overflow-x: hidden !important;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-high);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden !important;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-core), var(--indigo-core), var(--orange-academia));
  z-index: 99999;
  box-shadow: 0 0 10px var(--cyan-core);
  transition: width 0.08s ease-out;
}

/* Custom Cyber Reticle Cursor */
@media (pointer: fine) {
  body {
    cursor: crosshair;
  }
  .custom-cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--cyan-core);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
  }
  .custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--cyan-core);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
  }
}

/* Ambient Cybernetic Grid & Radial Nebula */
.cyber-grid-overlay,
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.ambient-nebula,
.cursor-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0, 240, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(60px);
  transition: opacity 0.5s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-cinematic);
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   FUTURISTIC HUD TELEMETRY LABELS & CORNER FRAMES
   ========================================================================== */
.hud-telemetry-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hud-telemetry-tag::before {
  content: "//";
  opacity: 0.6;
}

.hud-corner-box {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hud-corner-box::before,
.hud-corner-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan-core);
  pointer-events: none;
  transition: all 0.3s ease;
}

.hud-corner-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-top-left-radius: 20px;
}

.hud-corner-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-bottom-right-radius: 20px;
}

/* ==========================================================================
   NAVIGATION HEADER (ROCK-SOLID, BULLETPROOF, NEVER CLIPPED)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  z-index: 1000;
  background-color: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header.scrolled {
  background-color: rgba(3, 6, 12, 0.95);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-logo-symbol {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--cyan-core);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cyan-core);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease-elastic);
  flex-shrink: 0;
}

.nav-logo-symbol span {
  transform: rotate(-45deg);
}

.nav-brand:hover .nav-logo-symbol {
  transform: rotate(135deg);
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-brand-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  opacity: 0.85;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  padding-block: 0.35rem;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-core);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan-core);
  box-shadow: 0 0 8px var(--cyan-core);
  transition: width 0.3s var(--ease-cinematic);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-nav-rg {
  padding: 0.45rem 1.05rem;
  border-radius: 9999px;
  background: rgba(0, 204, 187, 0.08);
  border: 1px solid rgba(0, 204, 187, 0.35);
  color: #00ccbb;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.btn-nav-rg:hover {
  background: rgba(0, 204, 187, 0.22);
  border-color: #00ccbb;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 204, 187, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cyan-core);
  box-shadow: 0 0 8px var(--cyan-core);
  transition: all 0.3s ease;
}

/* Mobile Navigation Full-Screen Drawer */
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 6, 12, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 2000;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-cinematic);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-close-btn:hover {
  border-color: var(--cyan-core);
  color: var(--cyan-core);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block: 2rem;
}

.mobile-link {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}

.mobile-link .m-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-core);
  opacity: 0.7;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  transform: translateX(8px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease-cinematic);
  white-space: nowrap;
}

.btn-cyber-primary,
.btn-primary {
  background: #ffffff;
  color: #03060c;
  font-weight: 700;
  border-color: #ffffff;
}

.btn-cyber-primary:hover,
.btn-primary:hover {
  background: var(--cyan-core);
  color: #03060c;
  border-color: var(--cyan-core);
  box-shadow: 0 0 35px var(--cyan-glow), inset 0 0 10px #ffffff;
  transform: translateY(-2px);
}

.btn-cyber-glass,
.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border-color: var(--border-cyan);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-cyber-glass:hover,
.btn-glass:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan-core);
  color: var(--cyan-core);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-cyber-subtle {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-cyber-subtle:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-cyber-academia,
.btn-academia {
  background: rgba(255, 107, 43, 0.12);
  color: #ff914d;
  border-color: rgba(255, 107, 43, 0.4);
}

.btn-cyber-academia:hover,
.btn-academia:hover {
  background: #ff6b2b;
  color: #ffffff;
  border-color: #ff6b2b;
  box-shadow: 0 0 35px var(--orange-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO — FULL-SCREEN INTERACTIVE 3D MATHEMATICAL UNIVERSE
   ========================================================================== */
.hero-epic-viewport {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 74px;
  overflow: hidden !important;
  background: radial-gradient(circle at 75% 45%, rgba(0, 240, 255, 0.045) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(129, 140, 248, 0.035) 0%, transparent 50%),
              var(--bg-void);
}

/* Background Animated Pi Values Spiral Layer */
.hero-pi-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#hero-pi-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-epic-content {
  max-width: 720px;
}

.hero-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-text-mobile,
.btn-text-mobile {
  display: none;
}

.role-group {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.telemetry-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-core);
  box-shadow: 0 0 12px var(--cyan-core);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px var(--cyan-core); }
}

.hero-monumental-name {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-monumental-name .first-name {
  display: block;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-monumental-name .last-name {
  display: block;
  background: linear-gradient(135deg, var(--cyan-core) 20%, #818cf8 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
}

.hero-identity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-high);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.hero-identity-line .dot-sep {
  color: var(--cyan-core);
  margin-inline: 0.45rem;
}

.hero-concise-statement {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-action-dock {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Safe Viewport Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hero-scroll-cue:hover {
  color: var(--cyan-core);
}

.scroll-line-anim {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--cyan-core), transparent);
  animation: scanDown 2s infinite ease-in-out;
}

@keyframes scanDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   2. SECTION 2 — CINEMATIC KINETIC TRANSITION
   ========================================================================== */
.section-kinetic-intro {
  padding: 8rem 0 7rem;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.kinetic-label {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.kinetic-pillar-words {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(3rem, 7.8vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.kw-math { 
  background: linear-gradient(135deg, var(--cyan-core) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
}

.kw-res { 
  color: #ffffff;
}

.kw-tech { 
  background: linear-gradient(135deg, #818cf8 0%, var(--indigo-core) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
}

.kw-edu { 
  background: linear-gradient(135deg, #ff8c53 0%, var(--orange-academia) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(255, 107, 43, 0.25);
}

.kinetic-summary-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.kinetic-cta-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. SECTION 3 — 3D "RESEARCH UNIVERSE" CONSTELLATION
   ========================================================================== */
.section-universe-3d {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading-centered {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-title-large {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

.universe-hud-container {
  padding: 2rem;
}

.universe-webgl-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), #03060c 80%);
}

#universe-webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#universe-webgl-canvas:active {
  cursor: grabbing;
}

.universe-interaction-hint {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  background: rgba(3, 6, 12, 0.85);
  border: 1px solid var(--border-cyan);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

.universe-orbit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.orbit-node-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.orbit-node-btn:hover {
  border-color: var(--cyan-core);
  color: var(--cyan-core);
  background: rgba(0, 240, 255, 0.06);
}

.orbit-node-btn.active {
  background: var(--cyan-core);
  color: #03060c;
  border-color: var(--cyan-core);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.orbit-node-btn.core-math.active {
  background: #ffffff;
  color: #03060c;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.universe-telemetry-output {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: rgba(3, 6, 12, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.output-header-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
}

.output-desc-statement {
  font-size: 1.05rem;
  color: var(--text-high);
  line-height: 1.7;
  max-width: 900px;
}

/* ==========================================================================
   4. SECTION 4 — 3D TRANSPORTATION & OPTIMIZATION PATHFINDING
   ========================================================================== */
.section-transport-optimization {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.math-heroic-heading {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.glow-cyan-text {
  color: var(--cyan-core);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}

.glow-orange-text {
  color: var(--orange-academia);
  text-shadow: 0 0 30px rgba(255, 107, 43, 0.4);
}

.gradient-orange-text {
  background: linear-gradient(135deg, #ff8c53, var(--orange-academia));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-body-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.opt-metrics-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(3, 6, 12, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.opt-metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan-core);
  margin-bottom: 0.35rem;
}

.opt-metric-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transport-canvas-card {
  height: 500px;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.canvas-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  margin-bottom: 1rem;
  z-index: 5;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cyan-core);
  box-shadow: 0 0 10px var(--cyan-core);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

#transport-3d-webgl {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  cursor: grab;
}

#transport-3d-webgl:active {
  cursor: grabbing;
}

.canvas-bottom-legend {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-dim);
  z-index: 5;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. SECTION 5 — 3D PARAMETRIC MATHEMATICAL TOPOLOGY
   ========================================================================== */
.section-visual-mathematics {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.visual-math-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.math-process-rail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
}

.math-rail-step {
  padding: 0.4rem 0.95rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  color: var(--cyan-core);
}

.math-rail-connector {
  color: var(--text-dim);
}

.math-teaching-dictum {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.math-topology-frame {
  height: 480px;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

#math-topology-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  cursor: grab;
}

#math-topology-canvas:active {
  cursor: grabbing;
}

.topology-hud-readout {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ==========================================================================
   6. SECTION 6 — EDUCATION TRANSFORMATION 3D EXPERIENCE
   ========================================================================== */
.section-education-transform {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.education-transform-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.transform-step-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.transform-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.transform-pill-btn .pill-badge {
  font-size: 0.65rem;
  color: var(--orange-academia);
}

.transform-pill-btn:hover {
  border-color: var(--orange-academia);
  color: #ffffff;
}

.transform-pill-btn.active {
  background: var(--orange-academia);
  color: #ffffff;
  border-color: var(--orange-academia);
  box-shadow: 0 0 25px var(--orange-glow);
}

.transform-pill-btn.active .pill-badge {
  color: #ffffff;
}

.pill-arrow {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.transform-stage-explanation {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 1.25rem 1.5rem;
  background: rgba(3, 6, 12, 0.6);
  border-left: 3px solid var(--orange-academia);
  border-radius: 0 12px 12px 0;
}

.education-canvas-frame {
  height: 480px;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

#education-transform-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
  cursor: grab;
}

#education-transform-canvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   7. SECTION 7 — RESEARCH LAB SHOWCASE
   ========================================================================== */
.section-research-lab {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.research-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.lab-theme-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease-cinematic), border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.lab-theme-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-core);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.lab-card-icon {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-core);
  margin-bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.lab-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.lab-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.lab-card-indicator {
  margin-top: auto;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.lab-theme-card:hover .lab-card-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan-core), transparent);
  animation: scanProgress 1.5s infinite;
}

@keyframes scanProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   8. SECTION 8 — SELECTED RESEARCH MONOGRAPHS
   ========================================================================== */
.section-selected-research {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.selected-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.cyber-pub-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-cinematic), border-color 0.35s ease;
}

.cyber-pub-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-core);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.badge-cyan {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-core);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-indigo {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.meta-status {
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.pub-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.pub-card-abstract {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.card-footer-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.pub-focus-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-dim);
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-core);
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. SECTION 9 — ACADEMIA CLASSES SPOTLIGHT
   ========================================================================== */
.section-academia-spotlight {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 50%, rgba(255, 107, 43, 0.06), transparent 70%);
}

.academia-spotlight-card {
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  border-color: rgba(255, 107, 43, 0.3);
}

.academia-spotlight-card::before,
.academia-spotlight-card::after {
  border-color: var(--orange-academia);
}

.academia-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--orange-academia);
  margin-bottom: 1.25rem;
}

.spotlight-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.spotlight-founder-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-academia);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.spotlight-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.spotlight-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(3, 6, 12, 0.65);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-action-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.spotlight-3d-visual {
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 43, 0.1), #03060c 80%);
  border: 1px solid rgba(255, 107, 43, 0.25);
  display: flex;
  flex-direction: column;
}

#academia-spotlight-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.spotlight-canvas-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--orange-academia);
  z-index: 5;
}

/* ==========================================================================
   10. SECTION 10 — ABOUT SECTION PREVIEW
   ========================================================================== */
.section-about-preview {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-subtle);
}

.about-preview-card {
  padding: 3.5rem;
  text-align: center;
}

.about-preview-card .section-body-text {
  margin-inline: auto;
  max-width: 780px;
}

/* ==========================================================================
   CYBER FOOTER
   ========================================================================== */
.cyber-footer {
  padding: 5rem 0 3rem;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.footer-logo-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-affil-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-core);
  letter-spacing: 0.1em;
}

.footer-nav-links {
  display: flex;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  max-width: 600px;
}

.footer-nav-links a {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-nav-links a:hover {
  color: var(--cyan-core);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   SUBPAGE HEADER & TYPOGRAPHY STYLES (CLEAN & NON-ANIMATED)
   ========================================================================== */
.subpage-hero {
  position: relative;
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.04) 0%, transparent 65%),
              var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.hero-label-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.subpage-mega-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.subpage-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.7;
  font-weight: 400;
}

.pub-futuristic-card, 
.research-monograph-card {
  transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE LAYOUT & ZERO HORIZONTAL SCROLL ENFORCEMENT
   Tested at 1920px, 1440px, 1280px, 1024px, 768px, 430px, 390px, 375px
   ========================================================================== */
@media (max-width: 1024px) {
  .desktop-nav,
  .nav-actions {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  
  .transport-grid,
  .visual-math-grid,
  .education-transform-grid,
  .academia-spotlight-card {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .academia-spotlight-card {
    padding: 2.5rem;
  }
  
  .universe-webgl-wrapper {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1.25rem;
  }

  .header {
    height: 68px;
  }

  .hero-epic-viewport {
    padding-top: 72px;
    padding-bottom: 24px;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-layout-grid {
    padding-inline: 0.25rem;
  }

  .hero-epic-content {
    max-width: 100%;
  }

  .badge-text-full {
    display: none;
  }

  .badge-text-mobile {
    display: inline;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-mobile {
    display: inline;
  }

  .hero-telemetry-badge {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.8rem;
    margin-bottom: 0.75rem;
    gap: 0.45rem;
  }

  .hero-monumental-name {
    font-size: clamp(2.3rem, 8.5vw, 2.85rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
  }

  .hero-identity-line {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .role-sep-break {
    display: none;
  }

  .hero-concise-statement {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
  }

  .hero-action-dock {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    margin-bottom: 0.75rem;
  }

  .hero-action-dock .btn {
    padding: 0.72rem 0.5rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  .hero-scroll-cue {
    bottom: 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    gap: 0.35rem;
  }

  .scroll-line-anim {
    height: 18px;
  }
  
  .subpage-hero {
    padding: 105px 0 35px;
    margin-bottom: 2rem;
  }
  
  .section-kinetic-intro,
  .section-universe-3d,
  .section-transport-optimization,
  .section-visual-mathematics,
  .section-education-transform,
  .section-research-lab,
  .section-selected-research,
  .section-academia-spotlight,
  .section-about-preview {
    padding: 5rem 0;
  }
  
  .universe-hud-container {
    padding: 1.25rem;
  }
  
  .universe-webgl-wrapper {
    height: 380px;
  }
  
  .transport-canvas-card,
  .math-topology-frame,
  .education-canvas-frame {
    height: 380px;
    padding: 1rem;
  }
  
  .spotlight-3d-visual {
    height: 320px;
  }
  
  .opt-metrics-hud,
  .spotlight-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .kinetic-pillar-words {
    font-size: 2.8rem;
  }
  
  .about-preview-card,
  .academia-spotlight-card {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-monumental-name {
    font-size: 2.35rem;
  }
  
  .hero-identity-line {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  
  .hero-action-dock {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }
  
  .hero-action-dock .btn {
    padding: 0.68rem 0.35rem !important;
    font-size: 0.68rem !important;
  }

  .universe-webgl-wrapper,
  .transport-canvas-card,
  .math-topology-frame,
  .education-canvas-frame {
    height: 320px;
  }
  
  .spotlight-3d-visual {
    height: 260px;
  }
  
  .kinetic-pillar-words {
    font-size: 2.2rem;
  }
}
