/* ==========================================================================
   Eswar D — Portfolio Design System & Stylesheet
   Architecture: Obsidian Glassmorphism, Dual-Perspective Dynamic Theming
   ========================================================================== */

:root {
  --bg-deep: #08090d;
  --bg-card: #0f121a;
  --bg-card-hover: #151a26;
  --bg-glass: rgba(15, 18, 26, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(251, 191, 36, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.25);
  --gold-dark: #d97706;
  
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.25);
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --container-max: 1200px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Perspective Themes */
body.theme-engineer {
  --border-active: rgba(56, 189, 248, 0.5);
  --perspective-accent: var(--cyan);
}

body.theme-leader {
  --border-active: rgba(251, 191, 36, 0.6);
  --perspective-accent: var(--gold);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light Flares */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transition: opacity 0.5s ease;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -100px;
  right: -50px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  top: 40%;
  left: -200px;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  bottom: -100px;
  right: 10%;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Base */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */
.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tag-inline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
}

.tag-inline.gold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--gold);
}

/* Section Header Structure */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 54px;
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-tag.gold {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-box {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #08090d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 7px;
  letter-spacing: -0.04em;
}

.logo-text {
  font-family: var(--font-mono);
  color: #fff;
}

.accent-dot {
  color: var(--gold);
}

/* Perspective Toggle */
.perspective-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: var(--bg-card-hover);
  color: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.theme-engineer .mode-btn[data-mode="engineer"].active {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

body.theme-leader .mode-btn[data-mode="leader"].active {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.35);
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.terminal-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.terminal-link:hover {
  background: rgba(251, 191, 36, 0.18);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #08090d;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-terminal {
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold);
  font-family: var(--font-mono);
}

.btn-terminal:hover {
  background: rgba(251, 191, 36, 0.12);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

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

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 150px 0 80px;
  position: relative;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #34d399;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
}

.highlight-name {
  color: #fff;
  font-weight: 600;
}

.perspective-indicator-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 34px;
  max-width: 560px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.indicator-icon {
  font-size: 1.35rem;
  background: rgba(251, 191, 36, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.indicator-text strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
  margin-bottom: 2px;
}

.indicator-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.hero-stats-ribbon {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ==========================================================================
   PORTRAIT CARD & VISUAL CENTERPIECE
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.portrait-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
}

.portrait-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), transparent 60%, rgba(56, 189, 248, 0.2));
  z-index: -1;
  opacity: 0.7;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.75;
  background: #11141c;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.04) brightness(1.02);
}

.portrait-card:hover .portrait-img {
  transform: scale(1.03);
}

.photo-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 9, 13, 0.75) 100%);
  pointer-events: none;
}

.photo-location-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

/* Floating Glass Badges */
.glass-panel {
  background: rgba(15, 18, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  animation: float-gentle 4s infinite ease-in-out;
  transition: transform 0.25s ease;
}

.floating-badge:hover {
  transform: scale(1.05) translateY(-4px);
}

.badge-top-right {
  top: 30px;
  right: -24px;
  border-color: rgba(251, 191, 36, 0.35);
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 80px;
  left: -24px;
  border-color: rgba(56, 189, 248, 0.35);
  animation-delay: 2s;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.badge-icon {
  font-size: 1.25rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-main {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

/* Card Bottom Micro-Bar */
.card-footer-bar {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex-shrink: 0;
}

.footer-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.f-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.f-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.social-pills {
  display: flex;
  gap: 6px;
}

.s-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.s-pill:hover {
  background: var(--gold);
  color: #08090d;
}

/* ==========================================================================
   ABOUT / BENTO GRID
   ========================================================================== */
.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Active Highlight based on perspective */
body.theme-engineer .bento-engineer {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

body.theme-leader .bento-leader {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.15);
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.bento-icon-box.gold-icon {
  background: rgba(251, 191, 36, 0.1);
}

.bento-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.bento-title {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.bento-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.pill-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.pill-chip.gold {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--gold);
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #10141f, #0c0f16);
  border-color: rgba(255, 255, 255, 0.12);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 14px;
}

.quote-author {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quote-author strong {
  color: var(--gold);
}

.bento-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 36px;
}

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

.m-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.m-lbl {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ==========================================================================
   FEATURED PROJECT: SLMS SHOWCASE & SIMULATION
   ========================================================================== */
.project-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.stack-badge.python {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.stack-badge.flask {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.stack-badge.mysql {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stack-badge.rbac {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-name {
  font-size: 1.85rem;
  margin-bottom: 14px;
}

.project-summary {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Interactive Tabs */
.lms-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.lms-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.lms-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lms-tab.active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fff;
}

.lms-tab-content {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.lms-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lms-tab-content h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--gold);
}

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

.feature-bullets li strong {
  color: #fff;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mockup Body Styling */
.mockup-frame {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.mockup-top-bar {
  background: #141722;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.url-bar {
  flex-grow: 1;
  background: #080a0f;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 4px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 4px;
}

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-card {
  background: #121622;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.m-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.m-number.caution {
  color: #f87171;
}

.m-trend {
  font-size: 0.68rem;
  margin-top: 2px;
}

.m-trend.positive { color: #34d399; }
.m-trend.warning { color: #fbbf24; }

/* Table inside Mockup */
.mock-table-container {
  background: #121622;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.table-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.mock-table th {
  text-align: left;
  color: var(--text-dim);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 500;
}

.mock-table td {
  padding: 8px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-bar {
  display: inline-block;
  width: 45px;
  height: 6px;
  background: #1e293b;
  border-radius: 10px;
  vertical-align: middle;
  margin-right: 6px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 10px;
}

.progress-bar .fill.warning {
  background: #f59e0b;
}

.badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.badge-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.tbl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.68rem;
}

.tbl-btn:hover {
  background: var(--gold);
  color: #08090d;
}

/* Code Snippet Box */
.code-preview-box {
  background: #080a0f;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  background: #11141e;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.code-snippet {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-snippet .k { color: #f43f5e; }
.code-snippet .s { color: #38bdf8; }
.code-snippet .f { color: #fbbf24; }

/* ==========================================================================
   SKILLS GRID
   ========================================================================== */
.skills-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--gold);
  color: #08090d;
  border-color: var(--gold);
  box-shadow: 0 4px 14px var(--gold-glow);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

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

.tech-icon {
  font-size: 1.8rem;
}

.skill-tier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.skill-title {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.skill-usage-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

/* ==========================================================================
   LEADERSHIP TIMELINE
   ========================================================================== */
.timeline-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--border-subtle);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -46px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--gold-glow);
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.t-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
}

.date-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.t-role-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.t-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.impact-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.i-metric {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.i-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.t-bullet-list {
  list-style: square;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   EDUCATION & CREDENTIALS BENTO
   ========================================================================== */
.edu-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
}

.edu-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.edu-timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.edu-degree {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.edu-institution {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cgpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cgpa-badge.secondary {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.cgpa-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cgpa-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.edu-focus {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.edu-card-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cert-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.cert-indicator.python {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.cert-indicator.c-lang {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.cert-details {
  display: flex;
  flex-direction: column;
}

.cert-details strong {
  font-size: 0.92rem;
  color: #fff;
}

.cert-details span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lang-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.l-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.l-name {
  font-weight: 600;
  color: #fff;
}

.l-prof {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.l-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.l-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  border-radius: 10px;
}

/* ==========================================================================
   INTERACTIVE DEVELOPER TERMINAL
   ========================================================================== */
.terminal-window {
  max-width: 860px;
  margin: 0 auto;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.window-header {
  background: #12151e;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.control-btn.close { background: #ef4444; }
.control-btn.min { background: #f59e0b; }
.control-btn.max { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.window-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
}

.terminal-quick-chips {
  background: #0d1017;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
}

.chip-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.t-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.t-chip:hover {
  background: var(--gold);
  color: #08090d;
}

.terminal-screen {
  padding: 22px;
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 8px;
}

.term-greeting {
  color: var(--gold);
  font-weight: 600;
}

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

.highlight-cmd {
  color: var(--cyan);
}

.term-prompt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.prompt-user { color: #34d399; }
.prompt-at { color: var(--text-dim); }
.prompt-host { color: #38bdf8; }
.prompt-dir { color: #a855f7; }
.prompt-dollar { color: #fff; }

.term-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-grow: 1;
  outline: none;
}

/* Terminal Outputs Styling */
.term-output-block {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--gold);
  padding: 8px 14px;
  margin: 8px 0 14px;
  border-radius: 0 6px 6px 0;
  color: #e2e8f0;
}

.term-output-block strong { color: var(--gold); }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.quick-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.c-icon {
  font-size: 1.35rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.c-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
}

.c-link:hover {
  color: var(--gold);
}

.c-link.static {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: var(--gold);
  color: #08090d;
}

.social-links-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: #fff;
}

/* Contact Message Form */
.message-card {
  background: #0d1017;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.message-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.message-subtitle {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: #141722;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

select.form-input {
  appearance: none;
  background-image: url("data:svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

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

.f-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  display: block;
}

.f-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.back-to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   TOAST POPUP
   ========================================================================== */
.toast-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #151a26;
  border: 1px solid var(--gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.toast-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--gold);
  font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .hero-visual {
    order: -1;
  }

  .portrait-card-wrapper {
    max-width: 360px;
  }

  .project-showcase-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .about-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bento-metrics-row {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 24px;
    flex-direction: row;
    justify-content: space-between;
  }

  .edu-bento-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #090b10;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .perspective-switch {
    display: none; /* simplified for small screens or moved to drawer */
  }

  .badge-top-right {
    right: -10px;
  }

  .badge-bottom-left {
    left: -10px;
  }

  .hero-stats-ribbon {
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
