:root {
  /* DARK SPACE THEME (Default) */
  --bg-space: #050811;
  --bg-surface: #0c1222;
  --bg-surface-alt: #10172a;
  --bg-card: rgba(16, 24, 46, 0.78);
  --bg-card-hover: rgba(24, 38, 70, 0.92);
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-glow: rgba(56, 189, 248, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-emerald: #10b981;
  --accent-violet: #818cf8;
  --accent-rose: #f43f5e;
  
  --gradient-cyan-blue: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* SCIENTIFIC LIGHT THEME */
body.light-theme {
  --bg-space: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --border-subtle: #cbd5e1;
  --border-glow: #0284c7;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#genomicCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #38bdf8 0%, transparent 70%); top: -100px; right: -100px; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #818cf8 0%, transparent 70%); top: 40%; left: -200px; }
.orb-3 { width: 450px; height: 450px; background: radial-gradient(circle, #10b981 0%, transparent 70%); bottom: -100px; right: 15%; }

body.light-theme .glow-orb { opacity: 0.08; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--accent-cyan); }
.text-success { color: var(--accent-emerald); }
.text-center { text-align: center; }
.mt-3 { margin-top: 12px; }

/* Perspective Switcher Toolbar */
.perspective-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
}

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

.perspective-modes {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mode-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
}

.mode-label input {
  accent-color: var(--accent-cyan);
}

.mode-label:has(input:checked) {
  color: var(--accent-cyan);
  font-weight: 700;
}

.perspective-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-icon-tool {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-icon-tool:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Recruiter Banner */
.recruiter-banner {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid var(--accent-emerald);
  padding: 14px 0;
  animation: slideDown 0.3s ease;
}

.recruiter-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.recruiter-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent-emerald);
  color: #040814;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.recruiter-cta-group {
  display: flex;
  gap: 10px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 16px 0;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.85);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-dna {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  animation: pulseRotate 6s infinite linear;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-primary-glow {
  background: var(--gradient-cyan-blue);
  color: #040814;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
}

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

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

.btn-outline-glow {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline-glow:hover {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.pulse-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tech-pill {
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-pill i { color: var(--accent-cyan); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-unit {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Candidate Photo Hologram Card */
.profile-hologram-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hologram-glow {
  position: absolute;
  inset: -12px;
  background: var(--gradient-cyan-blue);
  filter: blur(30px);
  opacity: 0.3;
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hologram-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
}

.profile-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.profile-hologram-wrapper:hover .profile-img {
  transform: scale(1.03);
}

.profile-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-cyan-blue);
  box-shadow: 0 0 12px var(--accent-cyan);
  opacity: 0.6;
  animation: scanLine 4s infinite linear;
}

.profile-telemetry {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(5, 8, 17, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

body.light-theme .profile-telemetry {
  background: #f1f5f9;
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.telemetry-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.telemetry-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}

.tel-label { color: var(--text-dim); }
.tel-val { color: var(--text-main); font-weight: 500; }
.tel-active { color: var(--accent-emerald); font-weight: 700; }

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 2;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

body.light-theme .floating-badge {
  background: #ffffff;
}

.floating-badge i { font-size: 1.1rem; color: var(--accent-cyan); }
.floating-badge strong { display: block; font-size: 0.78rem; color: var(--text-main); }
.floating-badge small { font-size: 0.7rem; color: var(--text-muted); }

.badge-top-left { top: -16px; left: -20px; }
.badge-bottom-right { bottom: -16px; right: -20px; animation-delay: -2s; }

/* Section Structure */
.section-container {
  padding: 100px 0;
  position: relative;
}

.bg-surface-alt {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading-wrap {
  margin-bottom: 50px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 750px;
}

.text-center .section-lead { margin: 0 auto; }

/* Bento Grid */
.about-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.bento-box:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.bento-large { grid-column: 1 / 2; grid-row: 1 / 3; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.bento-box h3 { font-size: 1.35rem; margin-bottom: 14px; }
.bento-box p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 14px; }

.bento-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bento-tags span {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

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

.bento-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.bento-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.stat-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.stat-highlight .stat-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.stat-highlight p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0; }

/* Research Showcase */
.research-showcase-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 38px;
}

.research-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.research-problem, .research-solution {
  background: rgba(5, 8, 17, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

body.light-theme .research-problem, body.light-theme .research-solution {
  background: #f8fafc;
}

.research-problem h4, .research-solution h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-problem p, .research-solution p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pipeline-flow-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.pipeline-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
}

.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 6px;
}

.step-icon {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.step-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

.tool-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border-radius: 4px;
  width: fit-content;
}

/* Visualization Dashboard */
.vis-dashboard {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.vis-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.vis-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.vis-tab-btn:hover { color: var(--text-main); border-color: var(--accent-cyan); }
.vis-tab-btn.active {
  background: var(--accent-cyan);
  color: #040814;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.vis-tab-content { display: none; }
.vis-tab-content.active { display: block; }

.vis-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.plot-canvas-box {
  background: #02040a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

body.light-theme .plot-canvas-box { background: #0f172a; }

.plot-header-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plot-hover-hint { color: var(--accent-cyan); }

.interactive-plot-area {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

#volcanoCanvas, #pcaCanvas, #heatmapCanvas {
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

.plot-tooltip {
  position: absolute;
  display: none;
  background: rgba(12, 18, 34, 0.95);
  border: 1px solid var(--accent-cyan);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ffffff;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.65rem;
}

.plot-info-box {
  background: rgba(5, 8, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

body.light-theme .plot-info-box { background: #f8fafc; }

.plot-info-box h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plot-info-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }

.legend-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.leg-pill {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.leg-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.leg-pill.up .dot { background: #f43f5e; }
.leg-pill.down .dot { background: #38bdf8; }
.leg-pill.ns .dot { background: #64748b; }

.key-genes-list h5 { font-size: 0.82rem; margin-bottom: 8px; color: var(--text-dim); }
.gene-chip-list { display: flex; flex-direction: column; gap: 5px; }

.gene-chip {
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.pca-stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pca-stats-list li strong { color: var(--accent-cyan); }

.heatmap-gradient-scale {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.gradient-bar {
  flex-grow: 1;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #38bdf8, #050811, #f43f5e);
}

/* Skills Section & Filter Toolbar */
.skills-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-pill {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--accent-cyan);
  color: #040814;
  border-color: var(--accent-cyan);
}

.skills-search-wrap {
  position: relative;
  min-width: 240px;
}

.skills-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.skills-search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
}

.skills-search-wrap input:focus { border-color: var(--accent-cyan); }

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.skill-entry-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s;
}

.skill-entry-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(56, 189, 248, 0.15);
}

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

.evidence-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-project { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-practical { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-academic { background: rgba(129, 140, 248, 0.15); color: var(--accent-violet); border: 1px solid rgba(129, 140, 248, 0.3); }

.confidence-badge { font-size: 0.68rem; color: var(--text-dim); }

.skill-entry-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.skill-entry-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.skill-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.evidence-src {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.evidence-src i { color: var(--accent-cyan); }

/* Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-subtle);
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.timeline-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.timeline-marker {
  position: absolute;
  left: -29px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  border: 3px solid var(--bg-space);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.org-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-body h3 { font-size: 1.25rem; margin-bottom: 3px; }
.timeline-body h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-body p { color: var(--text-muted); font-size: 0.92rem; }

/* Education & Honors */
.edu-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-col, .awards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credential-card, .award-featured-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: all 0.3s;
}

.credential-card:hover, .award-featured-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

.cred-year, .award-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  display: block;
}

.credential-card h3, .award-featured-card h3 { font-size: 1.15rem; margin-bottom: 3px; }
.credential-card h4, .award-featured-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.cred-meta { display: flex; gap: 8px; margin-bottom: 10px; }
.badge-grade { padding: 2px 7px; background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border-radius: 4px; font-size: 0.72rem; font-weight: 600; }
.badge-cgpa { padding: 2px 7px; background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

.credential-card p, .award-featured-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Proof Modal / Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 550px;
  width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: modalScale 0.25s ease;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan); margin-bottom: 16px; }

.modal-body-section { margin-bottom: 14px; }
.modal-body-section strong { display: block; font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 2px; }
.modal-body-section p { font-size: 0.92rem; color: var(--text-main); }

/* Terminal Modal */
.term-modal-dialog {
  background: #02040a;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  font-family: var(--font-mono);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
  overflow: hidden;
}

.term-topbar {
  background: #0c1222;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.term-controls { display: flex; gap: 6px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title { font-size: 0.75rem; color: #94a3b8; }

.term-terminal-body {
  padding: 16px;
  height: 320px;
  display: flex;
  flex-direction: column;
}

.term-output {
  flex-grow: 1;
  overflow-y: auto;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.term-entry { margin-bottom: 8px; }
.term-line-cmd { color: #38bdf8; font-weight: bold; }
.term-line-res { color: #94a3b8; padding-left: 12px; margin-top: 2px; white-space: pre-line; }

.term-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.term-prompt { color: #10b981; font-weight: bold; font-size: 0.82rem; }
.term-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Footer */
.footer-wrap {
  padding: 80px 0 35px;
  background: #020409;
  border-top: 1px solid var(--border-subtle);
}

body.light-theme .footer-wrap { background: #f1f5f9; }

.footer-cta-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.cta-text h2 { font-size: 1.85rem; margin-bottom: 8px; }
.cta-text p { color: var(--text-muted); font-size: 1rem; max-width: 600px; }

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
}

/* Keyframes */
@keyframes pulseGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.9); } }
@keyframes pulseRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes scanLine { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
@keyframes floatAnim { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes modalScale { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 24px; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .about-bento-grid, .research-summary-grid, .vis-content-grid, .edu-awards-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: auto; grid-row: auto; }
  .footer-cta-card { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2.1rem; }
  .floating-badge { display: none; }
}


/* Hero Intro & Rotating Title */
.hero-intro-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.hero-intro-lead strong {
  color: var(--text-main);
  font-weight: 700;
}

.wave-hand {
  display: inline-block;
  animation: waveAnim 2s infinite ease-in-out;
  transform-origin: 70% 70%;
}

@keyframes waveAnim {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(14deg); }
  80% { transform: rotate(-4deg); }
}

.hero-title {
  font-size: 3.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  min-height: 1.25em;
}

.dynamic-rotating-role {
  background: var(--gradient-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Clean Photo Card */
.profile-clean-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-clean-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.profile-clean-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.profile-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.profile-clean-card:hover .profile-img {
  transform: scale(1.02);
}

.profile-name-caption {
  margin-top: 16px;
  padding: 10px 0 4px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .profile-name-caption {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-name-caption h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-transform: uppercase;
  margin: 0;
}


/* Contact Hub Grid */
.contact-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.2);
}

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

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.contact-card-body h3 {
  font-size: 1.05rem;
  word-break: break-all;
  margin-bottom: 12px;
}

.contact-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile Quick Action Bar (Fixed Bottom) */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 8, 17, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-glow);
  z-index: 1500;
  padding: 8px 12px;
  justify-content: space-around;
  align-items: center;
}

body.light-theme .mobile-quick-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #cbd5e1;
}

.mobile-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: color 0.2s;
  min-width: 48px;
}

.mobile-quick-btn i {
  font-size: 1.15rem;
}

.mobile-quick-btn:hover, .mobile-quick-btn:active {
  color: var(--accent-cyan);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
  .mobile-quick-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 65px; /* space for mobile quick bar */
  }

  .perspective-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .perspective-modes {
    width: 100%;
    justify-content: space-between;
    font-size: 0.75rem;
  }

  .perspective-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-section {
    padding: 40px 0 50px;
  }

  .section-container {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .profile-clean-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .profile-name-caption h2 {
    font-size: 1.15rem;
  }

  .plot-canvas-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #volcanoCanvas, #pcaCanvas, #heatmapCanvas {
    min-width: 500px;
  }

  .vis-tabs {
    flex-direction: column;
    width: 100%;
  }

  .vis-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .skills-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .skills-search-wrap {
    width: 100%;
  }

  .filter-buttons {
    width: 100%;
    justify-content: center;
  }

  .metric-card {
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
  }
}


/* Scroll Padding & Smooth Anchor Positioning */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

section, .section-container, [id] {
  scroll-margin-top: 85px;
}

/* Scroll Progress Bar at very top */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 2000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #2dd4bf);
  box-shadow: 0 0 10px #38bdf8;
  transition: width 0.1s ease-out;
}

/* Reveal on Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dynamic Interactive Hover Lift */
.bento-box, .step-card, .timeline-card, .credential-card, .award-featured-card, .contact-card {
  position: relative;
  overflow: hidden;
}

.bento-box::before, .step-card::before, .contact-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.bento-box:hover::before, .step-card:hover::before, .contact-card:hover::before {
  opacity: 1;
}
