/* ════════════════════════════════════════════════════════════════════════════
   Ashutosh Chikane Portfolio Design System (2026 Edition)
   Crafted with pure Vanilla CSS, High-Resolution Glassmorphism & Cyber Accents
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(16, 22, 36, 0.72);
  --bg-card-hover: rgba(22, 30, 48, 0.85);
  --bg-terminal: #090c14;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(99, 102, 241, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Ambient Glows */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.35;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: 10%;
  right: -150px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: 45%;
  left: 20%;
  opacity: 0.2;
  animation: floatOrb3 15s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-40px, 90px) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, -70px) scale(1.18); }
  100% { transform: translate(50px, -40px) scale(0.88); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -80px) scale(1.22); }
  100% { transform: translate(-50px, 40px) scale(0.85); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 30%, #34d399 60%, #a855f7 85%, #818cf8 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-role {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 12px;
  color: #34d399;
}

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

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  color: #fff;
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

/* Main Container */
.main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 28px 80px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.sparkle {
  color: #38bdf8;
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 740px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
}

.hero-btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Projects Section */
.projects-section {
  margin-top: 40px;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  color: #fff;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  color: #fff;
}

.filter-pill.active {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Project Tabs Navigation Scroll */
.project-tabs-wrapper {
  position: relative;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.project-tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.project-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.project-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.project-tab-btn {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: var(--transition-fast);
  user-select: none;
}

.project-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: var(--bg-card-hover);
}

.project-tab-btn.active {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.16);
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.tab-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-private {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-oss {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Project Showcase Canvas */
.project-canvas {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.canvas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.canvas-title-group {
  max-width: 800px;
}

.canvas-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.canvas-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.canvas-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

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

.btn-private-badge {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
  cursor: default;
}

/* Media Showcase Box */
.canvas-media-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.canvas-media-box img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: #05070c;
}

.media-caption {
  padding: 10px 18px;
  background: rgba(10, 14, 22, 0.9);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gallery Selector Strip */
.media-gallery-strip {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(8, 11, 18, 0.95);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  align-items: center;
}

.gallery-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
}

.gallery-thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.gallery-thumb-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.gallery-thumb-btn.active {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

/* Simulated Terminal Output Box for Headless MCPs */
.canvas-terminal-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
  background: var(--bg-terminal);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.08);
}

.canvas-terminal-box .terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(14, 19, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.canvas-terminal-box .terminal-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a5b4fc;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Deep Details Grid */
.canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.card-block {
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.block-title {
  font-size: 17px;
  margin-bottom: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}

.block-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.block-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.block-body li {
  margin-bottom: 8px;
}

/* Performance Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 2px;
}

.metric-key {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Code Snippet Box */
.code-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.code-box pre {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

/* Interactive Live Terminal Section */
.terminal-section {
  margin-top: 80px;
}

.terminal-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-rust {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(222, 165, 132, 0.15);
  color: #dea584;
  border: 1px solid rgba(222, 165, 132, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.clear-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clear-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.08);
  overflow: hidden;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(14, 19, 32, 0.8);
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 7px;
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.chrome-latency {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
}

.terminal-quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.quick-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tool-btn:hover {
  color: #fff;
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.15);
}

.terminal-output {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.6;
}

.log-line {
  margin-bottom: 6px;
  word-break: break-word;
}

.log-time { color: var(--text-muted); }
.log-prefix-rpc { color: var(--accent-cyan); font-weight: 600; }
.log-prefix-rust { color: #dea584; font-weight: 600; }
.log-prefix-ok { color: var(--accent-emerald); font-weight: 600; }
.log-prefix-warn { color: var(--accent-amber); }
.log-prefix-err { color: var(--accent-rose); font-weight: 600; }
.log-json { color: #a5b4fc; }

/* About Section */
.about-section {
  margin-top: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.about-bio-card, .tech-stack-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.bio-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.skills-category {
  margin-bottom: 18px;
}

.skill-cat-title {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-body {
  padding: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h4 {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 16px;
}

.modal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body pre {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a5b4fc;
}

.modal-body a {
  color: var(--accent-cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.9);
  padding: 30px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 12px !important;
  color: var(--text-muted);
}

.deploy-guide-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.deploy-guide-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.35));
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Theme Overrides */
body[data-theme="cyan"] {
  --accent-indigo: #06b6d4;
  --border-glow: rgba(6, 182, 212, 0.4);
}
body[data-theme="cyan"] .glow-orb.orb-1 { background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%); }
body[data-theme="cyan"] .glow-orb.orb-2 { background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%); }

body[data-theme="emerald"] {
  --accent-indigo: #10b981;
  --border-glow: rgba(16, 185, 129, 0.4);
}
body[data-theme="emerald"] .glow-orb.orb-1 { background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%); }
body[data-theme="emerald"] .glow-orb.orb-2 { background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%); }

body[data-theme="rose"] {
  --accent-indigo: #f43f5e;
  --border-glow: rgba(244, 63, 94, 0.4);
}
body[data-theme="rose"] .glow-orb.orb-1 { background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, transparent 70%); }
body[data-theme="rose"] .glow-orb.orb-2 { background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, transparent 70%); }

/* Interactive Neural Particle Canvas */
.neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Nav Interactive Elements */
.nav-interactive-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease;
}

.theme-dot:hover { transform: scale(1.25); }
.theme-dot.active { border-color: #fff; box-shadow: 0 0 8px currentColor; }
.theme-indigo { background: #6366f1; color: #6366f1; }
.theme-cyan { background: #06b6d4; color: #06b6d4; }
.theme-emerald { background: #10b981; color: #10b981; }
.theme-rose { background: #f43f5e; color: #f43f5e; }

.sfx-toggle-btn, .quick-cmd-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.sfx-toggle-btn:hover, .quick-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.sfx-toggle-btn.active {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.quick-cmd-btn kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

/* Interactive Terminal Input Prompt */
.terminal-input-bar {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(10, 14, 22, 0.95);
  border-top: 1px solid var(--border);
  gap: 8px;
  font-family: var(--font-mono);
}

.prompt-user { color: #34d399; font-size: 12px; }
.prompt-path { color: #38bdf8; font-size: 12px; }
.prompt-dollar { color: #cbd5e1; font-size: 12px; }

.terminal-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.terminal-cmd-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
  font-size: 12px;
}

.cmd-run-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--border-glow);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cmd-run-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Mini-TensorForge Interactive Math Lab Widget */
.mini-lab-card {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}

.mini-lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.mini-lab-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  font-weight: 700;
}

.mini-lab-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mini-preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.mini-lab-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.mini-tf-canvas {
  width: 100%;
  height: 220px;
  background: #020408;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.mini-lab-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.matrix-input-grid {
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-bracket {
  width: 6px;
  height: 60px;
  border: 2px solid #6366f1;
}
.matrix-bracket.left { border-right: none; border-radius: 3px 0 0 3px; }
.matrix-bracket.right { border-left: none; border-radius: 0 3px 3px 0; }

.matrix-cells {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-cell-row {
  display: flex;
  gap: 8px;
}

.matrix-cell-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mat-input {
  width: 54px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px;
  border-radius: 4px;
  text-align: center;
}

.matrix-telemetry {
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.det-val { color: #fbbf24; font-weight: 700; }
.area-val { color: #38bdf8; font-weight: 700; }
.text-emerald { color: #34d399; }
.text-rose { color: #f43f5e; }

/* Command Palette Modal */
.cmd-palette-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.cmd-palette-modal.active { display: flex; }

.cmd-palette-box {
  width: 90%;
  max-width: 600px;
  background: #0b0f19;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  animation: slideDown 0.18s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.cmd-icon { font-size: 18px; }

#cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
}

.esc-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
}

.cmd-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(99, 102, 241, 0.16);
  color: #fff;
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.cmd-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cmd-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Shortcuts Cheat Sheet Modal */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.shortcuts-content {
  width: 100%;
  max-width: 480px;
  background: #0b0f19;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.shortcut-row kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Matrix Rain Fullscreen Canvas */
.matrix-rain-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  display: none;
}
.matrix-rain-canvas.active { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   Hyper-Interactive Animation Suite (2026 Edition)
   ════════════════════════════════════════════════════════════════════════════ */

/* Interactive Fluid Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.09) 35%, transparent 70%);
  filter: blur(28px);
  z-index: 9990;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  will-change: transform;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}

/* Sparks Canvas */
.sparks-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9995;
}

/* 3D Tilt & Specular Light Hover on Cards */
[data-tilt] {
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

[data-tilt]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-tilt]:hover::before {
  opacity: 1;
}

[data-tilt]:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6), 0 0 25px -4px var(--border-glow);
}

/* Sparkle Twinkle Keyframes */
.sparkle {
  display: inline-block;
  animation: sparkleTwinkle 2.5s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; filter: drop-shadow(0 0 4px var(--accent-indigo)); }
  50% { transform: scale(1.35) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 12px var(--accent-cyan)); }
}

/* Audio Visualizer Mini Waveform */
.audio-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
}

.v-bar {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
}

.audio-visualizer.pulsing .v-bar:nth-child(1) { animation: barBounce 0.5s ease-in-out infinite alternate; }
.audio-visualizer.pulsing .v-bar:nth-child(2) { animation: barBounce 0.38s ease-in-out infinite 0.12s alternate; }
.audio-visualizer.pulsing .v-bar:nth-child(3) { animation: barBounce 0.62s ease-in-out infinite 0.06s alternate; }
.audio-visualizer.pulsing .v-bar:nth-child(4) { animation: barBounce 0.45s ease-in-out infinite 0.18s alternate; }

@keyframes barBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* CRT Scanline Effect on Terminal Window */
.terminal-window {
  position: relative;
  overflow: hidden;
}

.terminal-window::after {
  content: " ";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  z-index: 15;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: 0.7;
}

/* Staggered Entrance Animations for Cards */
.canvas-grid .card-block {
  animation: cardFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.canvas-grid .card-block:nth-child(1) { animation-delay: 0.03s; }
.canvas-grid .card-block:nth-child(2) { animation-delay: 0.07s; }
.canvas-grid .card-block:nth-child(3) { animation-delay: 0.11s; }
.canvas-grid .card-block:nth-child(4) { animation-delay: 0.15s; }
.canvas-grid .card-block:nth-child(5) { animation-delay: 0.19s; }

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Button Magnetic & Neon Glow Highlights */
.btn-primary:hover, .project-tab-btn.active, .gallery-thumb-btn.active {
  box-shadow: 0 0 22px -3px var(--accent-indigo), 0 0 10px rgba(99, 102, 241, 0.35);
}

.dispatch-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px -2px var(--border-glow);
}

/* ════════════════════════════════════════════════════════════════════════════
   Comprehensive Mobile & Tablet Responsive Architecture (2026 Edition)
   ════════════════════════════════════════════════════════════════════════════ */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .main-container { padding: 28px 20px 60px; }
  .canvas-grid { grid-template-columns: 1fr; }
  .mini-lab-body { grid-template-columns: 1fr; }
}

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Header */
  .header-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }

  .brand { gap: 10px; }
  .avatar-ring { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .brand-role { font-size: 9.5px; }

  .status-pill { display: none; }

  .header-nav {
    width: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav::-webkit-scrollbar { display: none; }

  .nav-link {
    font-size: 12px;
    padding: 4px 8px;
    flex-shrink: 0;
  }

  .nav-interactive-group {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .theme-dot { width: 13px; height: 13px; }
  .sfx-toggle-btn { padding: 4px 8px; font-size: 11px; }
  .quick-cmd-btn { display: none; }
  .social-btn { width: 30px; height: 30px; flex-shrink: 0; }

  /* Main Container */
  .main-container {
    padding: 16px 12px 48px;
  }

  /* Hero Section */
  .hero-section {
    padding: 16px 0 28px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(23px, 6.6vw, 32px);
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
    min-height: 42px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .stat-number {
    font-size: 21px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  /* Projects Section */
  .projects-section {
    margin-top: 24px;
  }

  .section-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .section-title {
    font-size: 21px;
  }

  .section-subtitle {
    font-size: 12.5px;
  }

  .filter-pills {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
    display: flex;
  }
  .filter-pills::-webkit-scrollbar { display: none; }

  .filter-pill {
    padding: 5px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Project Tabs */
  .project-tabs-wrapper {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .project-tabs-scroll {
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .project-tabs-scroll::-webkit-scrollbar { display: none; }

  .project-tab-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex-shrink: 0;
    min-height: 40px;
  }

  /* Project Showcase Canvas */
  .project-canvas {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .canvas-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .canvas-title {
    font-size: 21px;
  }

  .canvas-tagline {
    font-size: 13px;
    line-height: 1.45;
  }

  .canvas-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .canvas-actions .btn,
  .canvas-actions .btn-private-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 11px 16px;
    font-size: 13px;
    min-height: 44px;
  }

  /* Media Showcase Box */
  .canvas-media-box {
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
  }

  .canvas-media-box img {
    max-height: 220px;
  }

  .media-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
    font-size: 10.5px;
  }

  .media-gallery-strip {
    padding: 8px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .media-gallery-strip::-webkit-scrollbar { display: none; }

  .gallery-thumb-btn {
    padding: 5px 10px;
    font-size: 11px;
    flex-shrink: 0;
    min-height: 34px;
  }

  .canvas-terminal-box {
    margin-bottom: 18px;
  }

  .canvas-terminal-box .terminal-body {
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  /* Metrics Strip */
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }

  .metric-item {
    padding: 10px 8px;
  }

  .metric-val {
    font-size: 17px;
  }

  .metric-key {
    font-size: 10px;
  }

  /* Deep Details Grid */
  .canvas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .card-block {
    padding: 16px 12px;
  }

  .block-title {
    font-size: 14.5px;
    margin-bottom: 8px;
  }

  .block-body {
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* Code Box */
  .code-box {
    border-radius: var(--radius-sm);
  }

  .code-box-header {
    font-size: 10px;
    padding: 8px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .code-box pre {
    padding: 12px 10px;
    font-size: 10.5px;
    line-height: 1.45;
  }

  /* Mini-TensorForge Math Lab Widget */
  .mini-lab-card {
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
  }

  .mini-lab-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }

  .mini-lab-title {
    font-size: 11.5px;
  }

  .mini-lab-presets {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 5px;
    padding-bottom: 2px;
  }
  .mini-lab-presets::-webkit-scrollbar { display: none; }

  .mini-preset-btn {
    padding: 5px 8px;
    font-size: 10.5px;
    flex-shrink: 0;
    min-height: 32px;
  }

  .mini-lab-body {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 12px;
  }

  .mini-tf-canvas {
    height: 170px;
  }

  .matrix-input-grid {
    justify-content: center;
  }

  .matrix-telemetry {
    font-size: 10.5px;
    text-align: center;
  }

  /* Terminal Section */
  .terminal-section {
    margin-top: 36px;
  }

  .terminal-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .terminal-window {
    border-radius: var(--radius-sm);
  }

  .terminal-chrome {
    padding: 9px 12px;
  }

  .chrome-title {
    font-size: 10px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chrome-latency {
    font-size: 9.5px;
  }

  .terminal-quick-tools {
    padding: 8px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .terminal-quick-tools::-webkit-scrollbar { display: none; }

  .tool-btn {
    padding: 6px 10px;
    font-size: 11px;
    flex-shrink: 0;
    min-height: 36px;
  }

  .terminal-output {
    padding: 12px 10px;
    font-size: 11px;
    max-height: 260px;
  }

  .terminal-input-bar {
    padding: 8px 10px;
    gap: 6px;
  }

  .prompt-user { display: none; }
  .prompt-path { font-size: 11px; }
  .prompt-dollar { font-size: 11px; }
  .terminal-cmd-input { font-size: 13px; }
  .cmd-run-btn { padding: 6px 10px; font-size: 11px; min-height: 36px; }

  /* About & Competencies */
  .about-section {
    margin-top: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-card, .competency-box {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
  }

  .about-bio {
    font-size: 13px;
    line-height: 1.6;
  }

  .about-actions {
    flex-direction: column;
    gap: 8px;
  }

  .about-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .site-footer {
    padding: 24px 14px;
    margin-top: 36px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Touch Hardware Optimizations */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }

  [data-tilt]:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  [data-tilt]::before {
    display: none !important;
  }
}
