/* ==========================================================================
   Mayank Rathod - Senior Technical Artist Portfolio
   Custom Tooling, Pipeline Automation, Agentic Workflow, Shaders, Engine & VFX
   Cyberpunk Neon Theme — inspired by threejspunk.com
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Cyberpunk Neon (threejspunk.com inspired) */
  --bg-primary: #04060f;
  --bg-secondary: #080c1a;
  --bg-tertiary: #0d1228;
  --bg-card: rgba(8, 12, 30, 0.82);
  --bg-card-hover: rgba(10, 18, 42, 0.95);
  --bg-glass: rgba(6, 10, 24, 0.78);
  
  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-focus: rgba(0, 240, 255, 0.7);
  --border-glow: rgba(0, 240, 255, 0.4);
  --border-magic: rgba(255, 0, 170, 0.38);
  
  --text-primary: #e8f4ff;
  --text-secondary: #8ecfde;
  --text-muted: #4a7a8a;
  
  /* Cyberpunk Brand Accent Colors */
  --accent-gold: #00f0ff;           /* Neon Cyan (primary) */
  --accent-gold-light: #7ffcff;
  --accent-gold-glow: rgba(0, 240, 255, 0.45);
  --accent-purple: #ff00aa;         /* Hot Magenta */
  --accent-purple-deep: #cc0088;
  --accent-pink: #ff2db4;
  --accent-cyan: #00f0ff;
  --accent-cyan-rgb: 0, 240, 255;
  --accent-emerald: #00ff88;        /* Neon Green */
  --accent-amber: #ff6b00;          /* Warning Orange */
  --accent-blue: #6600ff;           /* Electric Violet */
  
  /* Cyberpunk Gradients */
  --gradient-gold: linear-gradient(180deg, #7ffcff 0%, #00d4ee 55%, #00a8c0 100%);
  --gradient-magic: linear-gradient(135deg, #ff00aa 0%, #cc00ff 50%, #6600ff 100%);
  --gradient-art: linear-gradient(135deg, #ff2db4 0%, #cc00ff 50%, #00f0ff 100%);
  --gradient-code: linear-gradient(135deg, #00f0ff 0%, #ff00aa 50%, #6600ff 100%);
  --gradient-ai: linear-gradient(135deg, #00f0ff 0%, #00ff88 50%, #00f0ff 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, rgba(255, 0, 170, 0.04) 100%);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Cyberpunk Elevation & Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.3);
  --shadow-gold: 0 4px 22px rgba(0, 240, 255, 0.45);
  --shadow-emerald: 0 0 30px rgba(0, 255, 136, 0.25);
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1220px;
  --header-height: 72px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Mode Tokens (kept as dark cyberpunk, no bright mode for this theme) --- */
[data-theme="light"] {
  --bg-primary: #04060f;
  --bg-secondary: #080c1a;
  --bg-tertiary: #0d1228;
  --bg-card: rgba(8, 12, 30, 0.82);
  --bg-card-hover: rgba(10, 18, 42, 0.95);
  --bg-glass: rgba(6, 10, 24, 0.78);
  
  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-focus: rgba(0, 240, 255, 0.7);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  --text-primary: #e8f4ff;
  --text-secondary: #8ecfde;
  --text-muted: #4a7a8a;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-gold: 0 4px 18px rgba(0, 240, 255, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

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

/* --- Background Shader Canvas (Cyberpunk Rain) --- */
#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] #shader-canvas {
  opacity: 0.85;
}

/* --- Cyberpunk Scanline Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.018) 2px,
    rgba(0, 240, 255, 0.018) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* --- Cyberpunk City Grid Background --- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.032) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
  z-index: 0;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 14px;
  padding: 5px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2), inset 0 0 8px rgba(0, 240, 255, 0.04);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Typography & Gradients --- */
.gradient-text {
  background: var(--gradient-code);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* --- Cyberpunk Glassmorphism Cards --- */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 0 40px rgba(0, 240, 255, 0.015);
  transition: all var(--transition-slow);
  position: relative;
}

.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.25), 0 0 60px rgba(255, 0, 170, 0.08);
  transform: translateY(-4px);
}

/* --- Cyberpunk Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: transparent;
  color: #00f0ff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35), inset 0 0 12px rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ff00aa;
  border: 1px solid rgba(255, 0, 170, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(255, 0, 170, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 0, 170, 0.08);
  border-color: rgba(255, 0, 170, 0.9);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 0, 170, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.btn-icon-only {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-icon-only svg {
  width: 20px;
  height: 20px;
}

.btn-icon-only:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

/* --- Cyberpunk Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.badge-glow {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.38);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.badge-accent {
  background: rgba(255, 0, 170, 0.1);
  border: 1px solid rgba(255, 0, 170, 0.4);
  color: var(--accent-pink);
  font-weight: 600;
}

.badge-subtle {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.todo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 107, 0, 0.3);
  margin-top: 8px;
  line-height: 1.4;
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --- Header & Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(4, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  z-index: 100;
  transition: all var(--transition-normal);
}

[data-theme="light"] .navbar {
  background: rgba(4, 6, 15, 0.95);
  border-bottom-color: rgba(0, 240, 255, 0.18);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-bracket { color: var(--accent-gold); }
.brand-slash { color: var(--accent-pink); }
.brand-name { 
  color: #ffffff; 
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-actions {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.hamburger-bar {
  width: 20px;
  height: 1px;
  background-color: var(--accent-gold);
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 25%, rgba(0, 240, 255, 0.1) 0%, rgba(255, 0, 170, 0.04) 35%, rgba(4, 6, 15, 0) 70%);
}

.hero-container {
  display: block;
  max-width: 860px;
}

.hero-badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Glitch effect on hero name */
.hero-name {
  display: block;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.2);
  position: relative;
}

.hero-name.glitch::before,
.hero-name.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-name.glitch::before {
  color: #ff00aa;
  animation: glitch-before 4s infinite linear;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0;
}

.hero-name.glitch::after {
  color: #00f0ff;
  animation: glitch-after 4s infinite linear;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  opacity: 0;
}

.hero-name.glitch-active::before {
  opacity: 1;
  transform: translate(-3px, -2px);
}

.hero-name.glitch-active::after {
  opacity: 1;
  transform: translate(3px, 2px);
}

@keyframes glitch-before {
  0%, 90%, 100% { opacity: 0; transform: translate(0, 0); }
  92% { opacity: 1; transform: translate(-4px, -2px); }
  94% { opacity: 0; }
  96% { opacity: 1; transform: translate(2px, 1px); }
  98% { opacity: 0; }
}

@keyframes glitch-after {
  0%, 90%, 100% { opacity: 0; transform: translate(0, 0); }
  92% { opacity: 1; transform: translate(4px, 2px); }
  94% { opacity: 0; }
  96% { opacity: 1; transform: translate(-2px, -1px); }
  98% { opacity: 0; }
}

.hero-profession {
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-top: 6px;
  text-shadow: 0 0 20px rgba(255, 0, 170, 0.3);
}

.hero-tagline {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 760px;
}

.highlight-cyan {
  color: var(--accent-gold);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  font-weight: 700;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-description strong {
  color: var(--text-primary);
}

.hero-intro-note {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  padding: 14px 20px;
  background: rgba(0, 240, 255, 0.04);
  border-left: 2px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 760px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.05);
}



.role-intro {
  font-size: 0.96rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}

.project-impact {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 680px;
}

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

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 4px;
}

/* --- Core Pillars / Areas of Mastery --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.cyan-glow {
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.purple-glow {
  background: rgba(255, 0, 170, 0.08);
  color: var(--accent-purple);
  border: 1px solid rgba(255, 0, 170, 0.3);
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.15);
}

.emerald-glow {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.pink-glow {
  background: rgba(255, 45, 180, 0.08);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 45, 180, 0.3);
}

.amber-glow {
  background: rgba(255, 107, 0, 0.08);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.blue-glow {
  background: rgba(102, 0, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(102, 0, 255, 0.35);
  box-shadow: 0 0 12px rgba(102, 0, 255, 0.15);
}

.pillar-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pillar-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.pillar-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.pillar-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.highlight-pillar {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: var(--shadow-sm), 0 0 25px rgba(0, 255, 136, 0.18);
}

/* --- Articles & LinkedIn Posts Section --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.featured-article {
  grid-row: span 2;
  padding: 38px 34px;
  border-color: rgba(0, 240, 255, 0.3);
  display: flex;
  flex-direction: column;
}

.article-featured-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.article-meta-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.article-snippet {
  background: rgba(0, 240, 255, 0.05);
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.article-snippet p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.article-deepdive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

.deepdive-col {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.deepdive-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.deepdive-col p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.article-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.article-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.article-read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card:not(.featured-article) {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.article-card:not(.featured-article) .article-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.article-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-card:not(.featured-article) .article-tags {
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 14px;
}

.article-card:not(.featured-article) .article-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.article-link-wrapper {
  margin-top: 4px;
}

.article-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.article-inline-link svg {
  width: 16px;
  height: 16px;
}

.article-inline-link:hover {
  text-decoration: underline;
  gap: 10px;
}

/* --- Projects Section --- */
.filter-wrapper {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.05);
}

.filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25), inset 0 0 6px rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.project-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.project-card.hidden {
  display: none;
}

.project-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 28px;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: right;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.highlight-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.highlight-bullet {
  color: var(--accent-gold);
  font-weight: bold;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.project-footer {
  margin-top: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.project-link svg {
  width: 15px;
  height: 15px;
}

.project-link:hover {
  text-decoration: underline;
  gap: 9px;
}

/* --- About Section (Dual Foundation) --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-box svg {
  width: 26px;
  height: 26px;
}

.art-accent {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.code-accent {
  background: rgba(0, 240, 255, 0.06);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.leader-accent {
  background: rgba(0, 240, 255, 0.07);
  color: var(--accent-purple);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.about-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.about-card p strong {
  color: var(--text-primary);
}

.about-bullet-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-bullet-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-bullet-list li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
}

.highlight-card {
  border-color: rgba(0, 240, 255, 0.38);
  box-shadow: var(--shadow-sm), 0 0 25px rgba(0, 240, 255, 0.18);
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-gold);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-dot.current {
  background: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-gold);
}

.timeline-content {
  padding: 30px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 2px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.current-badge {
  color: var(--accent-emerald);
  font-weight: 600;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* --- Education Section --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.column-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-icon {
  font-size: 1.4rem;
}

.credential-card {
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.credential-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.06);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 240, 255, 0.22);
}

.credential-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 90px;
}

.institution {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.credential-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.credential-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-item {
  padding: 18px 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cert-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.resume-banner {
  padding: 26px;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(0, 240, 255, 0.07) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.banner-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.06);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 240, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-details {
  flex-grow: 1;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent-gold);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.social-links-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(0, 240, 255, 0.06);
}

.contact-form-card {
  padding: 36px;
}

.contact-form-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

/* --- Footer --- */
.footer {
  padding: 50px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

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

/* --- Diagram Cards & Images --- */
.diagram-wrapper {
  margin: 16px 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #02050a;
}

.diagram-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition-normal);
}

.diagram-img:hover {
  transform: scale(1.015);
}

.diagram-caption {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
}

.diagram-caption strong {
  color: var(--accent-cyan);
}

/* --- Image Lightbox Modal --- */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-modal-content {
  position: relative;
  z-index: 1001;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modal-scale 0.25s ease-out;
}

@keyframes modal-scale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: all var(--transition-fast);
  line-height: 1;
}

.image-modal-close:hover {
  background: var(--accent-gold);
  color: #000000;
  box-shadow: 0 0 14px var(--accent-gold);
}

.image-modal-content img {
  width: auto;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  display: block;
}

.image-modal-caption {
  padding: 12px 20px;
  background: rgba(4, 6, 15, 0.95);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.5;
}

/* --- Secondary Skills Section --- */
.secondary-skills-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.secondary-skills-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.secondary-skill-card {
  padding: 20px 24px;
}

.secondary-skill-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.secondary-skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* --- Company Progression in Experience Timeline --- */
.progression-card {
  padding: 32px 30px;
}

.company-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.company-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.company-summary-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.progression-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 24px;
  margin-left: 6px;
  border-left: 2px dashed rgba(0, 240, 255, 0.28);
}

.subrole-node {
  position: relative;
}

.subrole-node::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-gold);
}

.subrole-node.current::before {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.subrole-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

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

.subrole-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Collaboration Section --- */
.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.collab-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.collab-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.collab-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.collab-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.collab-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.collab-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1080px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .secondary-skills-grid {
    grid-template-columns: 1fr;
  }

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

  .featured-article {
    grid-row: auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .edu-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    justify-content: flex-end;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    display: none;
  }
  
  .nav-menu.open {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 36px;
  }
  
  .timeline-dot {
    left: 2px;
  }
  
  .timeline-header {
    flex-direction: column;
  }
  
  .timeline-meta {
    align-items: flex-start;
    margin-top: 6px;
  }
  
  .resume-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-profession {
    font-size: 1.45rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links-bar {
    grid-template-columns: 1fr;
  }
}
