/* ==========================================================================
   PRANAY KUMAR VONAMALA — MASTER ENGINEERING PORTFOLIO PLATFORM
   100% Clean Validated Stylesheet & Multi-Device Responsive System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM TOKENS (8px Base Grid)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM TOKENS & MULTI-THEME ENGINE
   -------------------------------------------------------------------------- */

/* Common Design Tokens */
:root {
  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 140px;

  /* Layout Boundaries */
  --max-width: 1280px;
  --padding-desktop: 64px;
  --padding-tablet: 40px;
  --padding-mobile: 20px;

  /* Typography Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* GPU Motion Variables */
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --parallax-y: 0px;
  --hero-opacity: 1;
}

/* Default Theme: Dark Slate (Modern Executive Dark) */
:root,
html[data-theme="dark-slate"] {
  --bg-canvas: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #334155;

  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.78);
  --text-muted: rgba(248, 250, 252, 0.5);

  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-cyan: #38bdf8;
  --accent-primary: #6366f1;

  --glass-bg: rgba(30, 41, 59, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

  --particle-color: rgba(99, 102, 241, 0.35);
  --particle-line-color: rgba(99, 102, 241, 0.15);

  --hero-spotlight: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Light Studio Theme (Clean Default Light) */
html[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-indigo: #4f46e5;
  --accent-purple: #9333ea;
  --accent-cyan: #0284c7;
  --accent-primary: #4f46e5;

  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-border-hover: rgba(79, 70, 229, 0.3);
  --glass-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);

  --particle-color: rgba(79, 70, 229, 0.25);
  --particle-line-color: rgba(79, 70, 229, 0.12);

  --hero-spotlight: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Midnight Obsidian Theme (Classic Deep Dark) */
html[data-theme="obsidian"] {
  --bg-canvas: #07080b;
  --bg-surface: #0f1118;
  --bg-surface-elevated: #181b26;

  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.72);
  --text-muted: rgba(248, 250, 252, 0.45);

  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-cyan: #22d3ee;
  --accent-primary: #818cf8;

  --glass-bg: rgba(15, 17, 24, 0.85);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(129, 140, 248, 0.35);
  --glass-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);

  --particle-color: rgba(192, 132, 252, 0.35);
  --particle-line-color: rgba(129, 140, 248, 0.15);

  --hero-spotlight: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(7, 8, 11, 0) 70%);
}

/* Nordic Emerald Theme */
html[data-theme="emerald"] {
  --bg-canvas: #061917;
  --bg-surface: #0c2b28;
  --bg-surface-elevated: #133f3c;

  --text-primary: #f0fdf4;
  --text-secondary: rgba(240, 253, 244, 0.76);
  --text-muted: rgba(240, 253, 244, 0.5);

  --accent-indigo: #10b981;
  --accent-purple: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-primary: #10b981;

  --glass-bg: rgba(12, 43, 40, 0.85);
  --glass-border: rgba(16, 185, 129, 0.18);
  --glass-border-hover: rgba(16, 185, 129, 0.38);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);

  --particle-color: rgba(16, 185, 129, 0.35);
  --particle-line-color: rgba(20, 184, 166, 0.15);

  --hero-spotlight: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 25, 23, 0) 70%);
}

/* Royal Cobalt Theme */
html[data-theme="cobalt"] {
  --bg-canvas: #091326;
  --bg-surface: #102040;
  --bg-surface-elevated: #1a325c;

  --text-primary: #f0f9ff;
  --text-secondary: rgba(240, 249, 255, 0.76);
  --text-muted: rgba(240, 249, 255, 0.5);

  --accent-indigo: #3b82f6;
  --accent-purple: #6366f1;
  --accent-cyan: #0ea5e9;
  --accent-primary: #3b82f6;

  --glass-bg: rgba(16, 32, 64, 0.85);
  --glass-border: rgba(59, 130, 246, 0.18);
  --glass-border-hover: rgba(59, 130, 246, 0.38);
  --glass-shadow: 0 20px 40px rgba(4, 12, 30, 0.5);

  --particle-color: rgba(59, 130, 246, 0.35);
  --particle-line-color: rgba(14, 165, 233, 0.15);

  --hero-spotlight: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(9, 19, 38, 0) 70%);
}

/* Executive Warm Gold Theme */
html[data-theme="warm-gold"] {
  --bg-canvas: #121110;
  --bg-surface: #1c1a17;
  --bg-surface-elevated: #2b2824;

  --text-primary: #fffbeb;
  --text-secondary: rgba(255, 251, 235, 0.78);
  --text-muted: rgba(255, 251, 235, 0.5);

  --accent-indigo: #f59e0b;
  --accent-purple: #d97706;
  --accent-cyan: #fbbf24;
  --accent-primary: #f59e0b;

  --glass-bg: rgba(28, 26, 23, 0.88);
  --glass-border: rgba(245, 158, 11, 0.18);
  --glass-border-hover: rgba(245, 158, 11, 0.38);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

  --particle-color: rgba(245, 158, 11, 0.32);
  --particle-line-color: rgba(251, 191, 36, 0.14);

  --hero-spotlight: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(18, 17, 16, 0) 70%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  width: 100%;
}

/* RECRUITER MODE HIGH-SPEED OVERRIDE */
body.recruiter-mode * {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

body.recruiter-mode .btn-primary,
body.recruiter-mode .btn-secondary,
body.recruiter-mode .btn-product-link {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6) !important;
  border-color: var(--accent-indigo) !important;
}

/* --------------------------------------------------------------------------
   2. REFINED SMART FLOATING GLASS NAVBAR
   -------------------------------------------------------------------------- */
.nav-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1360px;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}

.nav-header.nav-hidden {
  transform: translate3d(-50%, -150%, 0);
  opacity: 0;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1.1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.2rem 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* Native Desktop-Style Search Pill Trigger */
.btn-nav-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-cmd:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-nav-cmd:active { transform: scale(0.98); }

.cmd-search-icon {
  font-size: 0.8125rem;
  opacity: 0.65;
  transition: opacity 0.3s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.btn-nav-cmd:hover .cmd-search-icon { opacity: 1; }

.cmd-search-label {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.cmd-shortcut-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn-nav-cmd:hover .cmd-shortcut-hint {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
}

/* Unified Premium Theme Select Button */
.btn-nav-theme-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-theme-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.theme-active-icon {
  font-size: 0.875rem;
  line-height: 1;
}

.theme-btn-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.theme-btn-chevron {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 0.1rem;
  transition: transform 0.3s ease;
}

.theme-picker-wrapper:hover .theme-btn-chevron {
  opacity: 1;
}

.btn-nav-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.btn-nav-mode:hover { background: rgba(99, 102, 241, 0.2); }

.btn-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.btn-nav-icon:hover { background: rgba(255, 255, 255, 0.15); }

/* Fixed Background Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Theme Picker Dropdown & Popover */
.theme-picker-wrapper {
  position: relative;
  display: inline-block;
}

.theme-menu-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 310px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.1rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow, 0 20px 40px rgba(0, 0, 0, 0.4));
  z-index: 1000;
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-menu-popover.hidden {
  opacity: 0;
  transform: scale(0.94) translateY(-10px);
  pointer-events: none;
}

.theme-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-border);
}

.theme-menu-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.theme-menu-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.theme-menu-subtitle {
  font-size: 0.735rem;
  color: var(--text-muted);
}

.theme-header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-header-toggle:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-indigo);
}

.theme-menu-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.theme-menu-subtitle {
  font-size: 0.735rem;
  color: var(--text-muted);
}

.theme-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.theme-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

html[data-theme="light"] .theme-option-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

.theme-option-btn.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--accent-indigo);
}

.theme-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swatch-light { background: linear-gradient(135deg, #f8fafc 50%, #4f46e5 50%); border-color: #cbd5e1; }
.swatch-dark-slate { background: linear-gradient(135deg, #0f172a 50%, #6366f1 50%); }
.swatch-obsidian { background: linear-gradient(135deg, #07080b 50%, #a855f7 50%); }
.swatch-emerald { background: linear-gradient(135deg, #061917 50%, #10b981 50%); }
.swatch-cobalt { background: linear-gradient(135deg, #091326 50%, #3b82f6 50%); }
.swatch-warm-gold { background: linear-gradient(135deg, #121110 50%, #f59e0b 50%); }

.theme-info {
  display: flex;
  flex-direction: column;
}

.theme-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.theme-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. HERO SECTION — ASYMMETRIC EDITORIAL LAYOUT
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: calc(var(--space-xl) + 40px);
  padding-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-canvas);
}

.hero-bg-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.spotlight-radial {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(168, 85, 247, 0.06) 40%,
    transparent 70%
  );
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(5, 6, 8, 0.7) 80%,
    rgba(5, 6, 8, 0.95) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--padding-desktop);
  opacity: var(--hero-opacity);
  will-change: opacity;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.tag-accent { color: var(--accent-indigo); }

.hero-title {
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translate3d(0, 25px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-description {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translate3d(0, 25px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 18px 40px -6px rgba(168, 85, 247, 0.55);
  filter: brightness(1.06);
}

.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  text-decoration: none;
  min-height: 48px;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: translate3d(0, -2px, 0);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* Step 5 in Visual Hierarchy: Engineering Focus Matrix */
.hero-focus-matrix {
  margin-top: calc(var(--space-md) + 8px);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.focus-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.focus-pills-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-focus-pill {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.hero-focus-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-indigo);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-indigo);
}

/* Hero Right: Refined Portrait Stage & Floating Engineering Context */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-portrait-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 2rem;
}

/* Floating Glass Engineering Context Cards */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
  z-index: 15;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-float-card:hover {
  border-color: var(--glass-border-hover);
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45);
}

.card-mindset-craft {
  top: -24px;
  left: -58px;
  z-index: 20;
  animation: cardFloat1 5.5s ease-in-out infinite;
}

.card-mindset-sec {
  bottom: -24px;
  right: -52px;
  z-index: 20;
  animation: cardFloat2 6.5s ease-in-out 1s infinite;
}

.float-card-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.float-card-content {
  display: flex;
  flex-direction: column;
}

.float-card-title {
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.float-card-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Floating Keyframes */
@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes subtleBreath {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* Premium Editorial Portrait Frame (35% Reduced Visual Scale) */
.editorial-portrait-frame {
  position: relative;
  width: 100%;
  width: 275px;
  height: 350px;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.1s ease-out, border-color 0.4s ease;
  animation: subtleBreath 6s ease-in-out infinite;
  will-change: transform;
}

.editorial-portrait-frame:hover { border-color: var(--glass-border-hover); }

/* Reduced AI-Generated Appearance: Matte, Natural Shadow & Soft Warm Tone */
.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: contrast(0.94) saturate(0.92) brightness(0.97) sepia(0.03);
  transition: filter 0.5s ease;
}

.portrait-glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 6, 8, 0.5) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.portrait-cinematic-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 45%, rgba(5, 6, 8, 0.4) 100%);
  pointer-events: none;
}

.portrait-ambient-glow {
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.scroll-indicator {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeSlideUp 1.2s ease 1.1s forwards;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 3.5px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. CONTINUOUS CHAPTER NARRATIVE & ENGINEERING PHILOSOPHY
   -------------------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 20;
  background-color: var(--bg-canvas);
}

.chapter-section {
  padding: var(--space-2xl) var(--padding-desktop);
  border-top: 1px solid var(--glass-border);
}

.chapter-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.chapter-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--accent-indigo);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.chapter-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.chapter-lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 720px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}

.story-left {
  display: flex;
  flex-direction: column;
}

.chapter-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.story-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.philosophy-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-purple);
  padding: 0.4rem 0.65rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.35s ease;
}

.principle-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(99, 102, 241, 0.35);
}

.principle-wide {
  grid-column: 1 / -1;
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-indigo);
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.principle-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. 8 ORGANIZED SKILLS DOMAINS MATRIX & INTERACTIVE PILLS
   -------------------------------------------------------------------------- */
.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.skills-grid-8 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-domain-card {
  padding: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-domain-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.domain-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
}

.domain-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. CURRENTLY BUILDING & EXPLORING (GROWTH SECTION)
   -------------------------------------------------------------------------- */
.growth-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.growth-item {
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.35s ease;
}

.growth-item:hover {
  border-color: var(--glass-border-hover);
  transform: translate3d(0, -4px, 0);
}

.growth-focus {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  grid-column: 1 / -1;
}

.growth-icon { font-size: 1.75rem; }
.growth-info { display: flex; flex-direction: column; gap: 0.25rem; }

.growth-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.growth-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. FEATURED PROJECTS SHOWCASE & ARCHITECTURE FLOWCHARTS
   -------------------------------------------------------------------------- */
.products-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.product-showcase-card {
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-showcase-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.product-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-category-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 9999px;
}

.product-status-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.product-name {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.product-headline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
}

.product-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.3s ease;
}

.btn-product-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  transform: translate3d(0, -2px, 0);
}

.btn-live {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.btn-live:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-indigo);
  color: #ffffff;
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-indigo);
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.3s ease;
}

.btn-case-study:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-indigo);
  transform: translate3d(0, -2px, 0);
}

.arch-pipeline-box {
  background: #080a0e;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.arch-box-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  margin-bottom: 1.5rem;
  text-align: center;
}

.arch-flow-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-flow-node {
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.3s ease;
}

.arch-flow-node:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.node-highlight {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.node-step {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.node-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.arch-flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   8. JOURNEY TIMELINE
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-indigo), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-indigo);
}

.dot-active {
  background: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.4rem 0;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. TELEMETRY & AUTHENTIC ROADMAPS
   -------------------------------------------------------------------------- */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.telemetry-card {
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.telemetry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon { font-size: 1.75rem; }

.telemetry-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.telemetry-handle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-indigo);
  text-decoration: none;
}

.telemetry-status-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: 9999px;
}

.leetcode-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-box {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.lc-topics-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topics-label {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.topics-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
}

.github-pinned-repos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pinned-repo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pinned-repo-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border-hover);
  transform: translate3d(0, -2px, 0);
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.repo-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.repo-lang {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-react { background: #06b6d4; }
.dot-python { background: #3b82f6; }
.dot-langgraph { background: #a855f7; }

/* --------------------------------------------------------------------------
   10. EDUCATION HERO CARD & CERTIFICATIONS
   -------------------------------------------------------------------------- */
.education-hero-card {
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.edu-badge-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.edu-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 9999px;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
}

.edu-institution {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.edu-degree {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.edu-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.edu-metric-item {
  display: flex;
  flex-direction: column;
}

.edu-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.cert-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.35s ease;
}

.cert-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translate3d(0, -4px, 0);
}

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

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
}

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

.cert-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cert-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.cert-skill-chip {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. CONTACT & FOOTER STYLES
   -------------------------------------------------------------------------- */
.contact-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14), transparent 70%);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
}

.contact-details-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease;
}

a.contact-detail-item:hover { color: var(--text-primary); }

.detail-icon { font-size: 1.1rem; flex-shrink: 0; }

.detail-links a {
  color: var(--accent-indigo);
  text-decoration: none;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-footer-note {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.site-footer {
  padding: var(--space-md) var(--padding-desktop);
  border-top: 1px solid var(--glass-border);
  background-color: var(--bg-canvas);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   12. RAYCAST / LINEAR-GRADE COMMAND PALETTE MODAL (700px Glass)
   -------------------------------------------------------------------------- */
.cmd-palette-modal, .case-study-modal, .terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-modal.cmd-open, .case-study-modal.modal-open, .terminal-modal.term-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-backdrop, .modal-backdrop, .terminal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.cmd-dialog {
  position: relative;
  z-index: 310;
  width: 92%;
  max-width: 700px;
  background: rgba(13, 15, 20, 0.92);
  border: 1px solid var(--glass-border-hover);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: scale(0.96) translate3d(0, 20px, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-modal.cmd-open .cmd-dialog {
  transform: scale(1) translate3d(0, 0, 0);
}

.cmd-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.cmd-input-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

#cmdInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
}

#cmdInput::placeholder {
  color: var(--text-muted);
}

.cmd-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s ease;
}

.cmd-clear-btn:hover { color: var(--text-primary); }

.cmd-esc-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
}

.cmd-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

.cmd-group-title {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  padding: 0.75rem 1rem 0.4rem 1rem;
  text-transform: uppercase;
}

.cmd-item {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.2rem;
  border: 1px solid transparent;
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translate3d(2px, 0, 0);
}

.cmd-item-icon {
  font-size: 1.25rem;
  width: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmd-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.cmd-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cmd-item-desc {
  font-size: 0.78125rem;
  color: var(--text-secondary);
}

.cmd-item-arrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cmd-item.selected .cmd-item-arrow {
  color: var(--accent-purple);
  transform: translateX(3px);
}

.cmd-footer-legend {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cmd-footer-legend kbd {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* APPLE / STRIPE CASE STUDY DRAWER MODALS */
.modal-drawer {
  position: relative;
  z-index: 310;
  width: 92%;
  max-width: 940px;
  max-height: 88vh;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--glass-border-hover);
  border-radius: 28px;
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95);
  padding: 3.5rem;
}

.skill-modal-dialog {
  max-width: 640px;
  padding: 2.5rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero-banner {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 2rem;
}

.modal-title {
  font-size: clamp(2.25rem, 3.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.cs-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.modal-actions-bar { display: flex; gap: 1rem; flex-wrap: wrap; }
.modal-body-content { display: flex; flex-direction: column; gap: 2.5rem; }
.cs-section { display: flex; flex-direction: column; gap: 0.75rem; }
.cs-heading { font-size: 1.25rem; font-weight: 700; color: var(--accent-indigo); }
.cs-text { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.7; }
.cs-tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cs-tech-block { padding: 1.25rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: 14px; font-size: 0.9375rem; color: var(--text-secondary); }
.cs-challenge-box { padding: 1.5rem; background: rgba(99, 102, 241, 0.06); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 16px; }

/* AI ASSISTANT FLOATING DRAWER */
.ai-widget-container { position: fixed; bottom: 28px; right: 28px; z-index: 150; }

.ai-widget-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-widget-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.65);
}

.ai-btn-icon { font-size: 1.5rem; }

.ai-assistant-drawer {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 400px;
  height: 520px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hover);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--glass-shadow, 0 30px 70px -15px rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 20px, 0) scale(0.96);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-assistant-drawer.ai-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.ai-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border-bottom: 1px solid var(--glass-border);
}

.ai-avatar { font-size: 1.5rem; }

.ai-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); }

.ai-status {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.ai-close-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ai-close-btn:hover { color: var(--text-primary); }

.ai-chat-body {
  flex: 1;
  padding: 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ai-chat-body::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.ai-msg {
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  max-width: 88%;
  line-height: 1.55;
  font-size: 0.875rem;
  animation: fadeSlideUp 0.3s ease forwards;
}

.ai-msg-bot {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid var(--glass-border);
  border-top-left-radius: 4px;
}

.ai-msg-user {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: #ffffff;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Sleek Scrollbar-Free Quick Prompt Chips */
.ai-quick-prompts {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.1);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.ai-quick-prompts::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.ai-quick-prompts button {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-quick-prompts button:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.ai-input-bar {
  display: flex;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  gap: 0.5rem;
}

#aiInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  font-size: 0.84375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

#aiInput:focus {
  border-color: var(--accent-indigo);
  background: rgba(255, 255, 255, 0.08);
}

.ai-input-bar button {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  border: none;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-input-bar button:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* DEVELOPER TERMINAL MODAL */
.terminal-window { position: relative; z-index: 310; width: 90%; max-width: 780px; height: 480px; background: #080a0e; border: 1px solid var(--glass-border-hover); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.terminal-header { display: flex; align-items: center; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--glass-border); }
.term-dots { display: flex; gap: 0.4rem; }
.tdot { width: 10px; height: 10px; border-radius: 50%; cursor: pointer; }
.tdot-red { background: #ef4444; }
.tdot-yellow { background: #f59e0b; }
.tdot-green { background: #10b981; }
.term-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-left: 1rem; }
.terminal-body { flex: 1; padding: 1.5rem; font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-secondary); overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.term-line { line-height: 1.5; }
.term-hl { color: var(--accent-indigo); font-weight: 700; }
.terminal-input-line { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.term-prompt { color: var(--accent-purple); font-weight: 700; }
#terminalInput { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   13. KEYFRAME ANIMATIONS & FULL MULTI-DEVICE BREAKPOINTS
   -------------------------------------------------------------------------- */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translate3d(0, 25px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate3d(-50%, 0, 0); }
  50% { opacity: 0.3; transform: translate3d(-50%, 8px, 0); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

/* 1. LARGE DESKTOP & MID-LAPTOP (1200px - 1399px) */
@media (max-width: 1350px) {
  .nav-header { width: calc(100% - (var(--padding-tablet) * 2)); }
  .nav-pill { padding: 0.55rem 1.1rem; gap: 0.75rem; }
  .nav-links { gap: 0.85rem; }
  .nav-link { font-size: 0.8125rem; }
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
}

/* 2. TABLET BREAKPOINTS (768px - 1023px) */
@media (max-width: 1024px) {
  .chapter-section { padding: var(--space-xl) var(--padding-tablet); }
  .hero-container { padding: 0 var(--padding-tablet); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .hero-left { align-items: center; text-align: center; }
  .hero-right { order: 2; margin-top: 1.5rem; justify-content: center; width: 100%; }
  .editorial-portrait-frame { height: 320px; width: 250px; margin: 0 auto; }
  .card-academic { top: -10px; left: -10px; }
  .card-building { bottom: -10px; right: -10px; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid-8 { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-grid { grid-template-columns: 1fr; gap: 2rem; }
  .telemetry-grid { grid-template-columns: 1fr; gap: 2rem; }
  .certifications-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .modal-drawer { padding: 2.25rem 2rem; width: 95%; }
  .education-hero-card { padding: 2rem; }
}

/* 3. MOBILE BREAKPOINTS (320px - 767px) */
@media (max-width: 768px) {
  .nav-header { width: calc(100% - 32px); top: 14px; }
  .nav-pill { padding: 0.5rem 0.85rem; gap: 0.4rem; }
  .nav-logo .logo-text { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  
  .hero-section { padding-top: 110px; padding-bottom: var(--space-lg); }
  .hero-container { padding: 0 1rem; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; }
  .hero-description { font-size: 1rem; line-height: 1.55; }
  .hero-actions { width: 100%; flex-direction: column; gap: 0.75rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .hero-right { order: 2; margin-top: 2rem; justify-content: center; width: 100%; }
  .hero-portrait-stage { padding: 1rem 0; width: 100%; }
  .editorial-portrait-frame { height: 270px; width: 210px; border-radius: 24px; margin: 0 auto; }
  .hero-float-card { display: none; } /* Clean presentation on mobile to prevent clutter */
  .focus-pills-row { justify-content: center; }

  .chapter-section { padding: 3.5rem 1.25rem; }
  .chapter-title { font-size: clamp(1.85rem, 6vw, 2.35rem); }
  .chapter-lead { font-size: 1rem; }
  
  .skill-domain-card { padding: 1.5rem; }
  .product-showcase-card { padding: 1.5rem; border-radius: 20px; }
  .product-name { font-size: 1.75rem; }
  .product-headline { font-size: 1rem; margin-bottom: 1.5rem; }
  .product-links { width: 100%; flex-direction: column; }
  .btn-product-link, .btn-case-study { width: 100%; justify-content: center; }
  
  .arch-pipeline-box { padding: 1.25rem; }
  
  .education-hero-card { padding: 1.5rem; border-radius: 20px; }
  .edu-institution { font-size: 1.5rem; }
  .edu-metrics-bar { grid-template-columns: 1fr; gap: 1rem; }

  .telemetry-card { padding: 1.5rem; border-radius: 20px; }
  .leetcode-stats-row { grid-template-columns: 1fr; gap: 0.75rem; }

  .contact-box { padding: 3rem 1.25rem; border-radius: 20px; }
  .contact-details-grid { padding: 1.25rem 1rem; flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  .contact-detail-item { font-size: 0.875rem; width: 100%; word-break: break-all; }
  .contact-actions { width: 100%; flex-direction: column; gap: 0.75rem; }

  .site-footer { padding: 1.5rem 1rem; text-align: center; }
  .footer-container { flex-direction: column; gap: 1rem; }

  /* Mobile Bottom-Sheet Command Palette */
  .cmd-palette-modal { align-items: flex-end; padding-top: 0; }
  .cmd-dialog { width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; max-height: 82vh; }
  .cmd-search-label { display: none; }

  /* AI Assistant Mobile Scale */
  .ai-assistant-drawer { width: calc(100vw - 32px); right: -12px; bottom: 68px; height: 440px; }
  .ai-widget-container { bottom: 20px; right: 20px; }

  /* Terminal Window Mobile Scale */
  .terminal-window { width: 96%; height: 420px; }
}

/* 4. SMALL MOBILE BREAKPOINTS (320px - 480px) */
@media (max-width: 480px) {
  .nav-header { width: calc(100% - 24px); top: 12px; }
  .btn-nav-mode span.mode-text { display: none; }
  .cmd-shortcut-hint { display: none; }
  .editorial-portrait-frame { height: 320px; }
  .modal-drawer { padding: 1.5rem 1rem; border-radius: 20px; }
  .modal-actions-bar { flex-direction: column; }
  .modal-actions-bar a { width: 100%; text-align: center; justify-content: center; }
}
