/* ==========================================================================
   Design System & Custom Properties (Tokens)
   ========================================================================== */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(0, 210, 255, 0.4);
  --border-glow: rgba(0, 210, 255, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Brand Accents */
  --accent-cyan: #00d2ff;
  --accent-blue: #0070f3;
  --accent-go: #00add8;
  --accent-emerald: #10b981;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradient Themes */
  --gradient-primary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #7928ca 100%);
  --gradient-go: linear-gradient(135deg, #00add8 0%, #0070f3 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(0, 210, 255, 0.12) 0%, transparent 70%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.2);

  /* Layout */
  --header-height: 72px;
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.75);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 112, 243, 0.4);
  --border-glow: rgba(0, 112, 243, 0.12);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 112, 243, 0.15);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.6) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Progress Bar at Top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

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

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
}

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

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

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag.interactive-tag {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

.section-tag.contact-tag {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 900;
  transition: all var(--transition-fast);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.88);
}

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

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-bracket {
  color: var(--accent-cyan);
}

.brand-name {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.highlight-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.badge-demo {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 210, 255, 0.3);
  text-transform: uppercase;
}

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

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

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

.mobile-menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 90vh;
  padding: calc(var(--header-height) + 60px) 0 60px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

.glow-1 {
  top: 10%;
  left: -100px;
  background: var(--accent-cyan);
}

.glow-2 {
  bottom: 10%;
  right: -100px;
  background: var(--accent-violet);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.status-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

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

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

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

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.location-chip {
  color: var(--text-muted);
  cursor: default;
}

/* ==========================================================================
   Hero Terminal Component
   ========================================================================== */
.hero-terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 173, 216, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform var(--transition-normal);
}

.hero-terminal:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
}

.terminal-header {
  background: #161b22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: #8b949e;
}

.terminal-badge {
  font-size: 0.68rem;
  background: rgba(0, 173, 216, 0.18);
  color: var(--accent-go);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

.terminal-body {
  padding: 20px;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #c9d1d9;
  max-height: 380px;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: var(--font-mono);
}

.token-keyword { color: #ff7b72; font-weight: 600; }
.token-string { color: #a5d6ff; }
.token-function { color: #d2a8ff; }
.token-type { color: #79c0ff; }
.token-comment { color: #8b949e; font-style: italic; }

.terminal-footer {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-status-ok {
  color: #3fb950;
  font-weight: 500;
}

.terminal-status-uptime {
  color: #8b949e;
}

/* ==========================================================================
   Impact Metrics Bar
   ========================================================================== */
.metrics-section {
  padding: 30px 0;
  position: relative;
  z-index: 2;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

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

.about-card {
  padding: 32px;
}

.about-icon-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.about-icon-header h3 {
  font-size: 1.25rem;
}

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

.about-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

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

/* ==========================================================================
   Technical Skills Matrix
   ========================================================================== */
.skills-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 210, 255, 0.3);
}

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

.skill-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.go-icon { background: rgba(0, 173, 216, 0.15); color: var(--accent-go); border: 1px solid rgba(0, 173, 216, 0.3); }
.tf-icon { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); border: 1px solid rgba(139, 92, 246, 0.3); }
.k8s-icon { background: rgba(0, 210, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 210, 255, 0.3); }
.helm-icon { background: rgba(15, 76, 129, 0.25); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cloud-icon { background: rgba(245, 158, 11, 0.15); font-size: 1.25rem; }
.obs-icon { background: rgba(244, 63, 94, 0.15); font-size: 1.25rem; }
.cicd-icon { background: rgba(16, 185, 129, 0.15); font-size: 1.25rem; }
.db-icon { background: rgba(59, 130, 246, 0.15); font-size: 1.25rem; }
.ai-icon { background: rgba(236, 72, 153, 0.15); font-size: 1.25rem; }

.skill-info h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.skill-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.skill-badge.primary {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
}

.skill-badge.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.skill-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

.skill-tags span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}

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

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
  z-index: 2;
}

.marker-dot.current {
  background: var(--accent-emerald);
  border-color: #34d399;
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

.marker-line {
  width: 2px;
  background: var(--border-color);
  flex-grow: 1;
  margin-top: 8px;
}

.timeline-card {
  flex-grow: 1;
  padding: 32px;
}

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

.role-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.role-title {
  font-size: 1.3rem;
}

.badge-present {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.company-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.company-highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.duration-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.highlight-chip {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

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

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

.timeline-bullets li strong {
  color: var(--text-primary);
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* ==========================================================================
   Featured Projects Showcase
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.featured-project {
  grid-column: span 2;
  position: relative;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

.project-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  margin-bottom: 16px;
}

.project-type {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.project-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-summary {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.p-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.p-feature-item .check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

.p-feature-item strong {
  color: var(--text-primary);
}

.project-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg-tertiary);
  padding: 14px;
  border-radius: var(--radius-md);
}

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

.p-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

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

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tech-pills span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

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

/* ==========================================================================
   Interactive Helm Doctor Playground
   ========================================================================== */
.helm-doctor-section {
  position: relative;
}

.demo-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 210, 255, 0.1);
}

.demo-controls-bar {
  padding: 16px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-preset-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sample-dropdown {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sample-dropdown:focus {
  border-color: var(--accent-cyan);
}

.demo-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.demo-pane {
  display: flex;
  flex-direction: column;
}

.demo-code-pane {
  border-right: 1px solid var(--border-color);
  background: #090d16;
}

.pane-header {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pane-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.audit-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.code-editor-wrap {
  padding: 20px;
  flex-grow: 1;
  max-height: 440px;
  overflow-y: auto;
}

.code-editor-wrap pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  color: #c9d1d9;
}

.demo-results-pane {
  background: var(--bg-card);
  padding: 0;
}

.results-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 440px;
  overflow-y: auto;
}

.grade-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.grade-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 3px solid var(--accent-emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.grade-circle.grade-warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.grade-circle.grade-danger {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.grade-letter {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  line-height: 1;
}

.grade-warn .grade-letter { color: var(--accent-amber); }
.grade-danger .grade-letter { color: var(--accent-rose); }

.grade-caption {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.grade-details h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.grade-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

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

.category-scores-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.cat-header strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.audit-findings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.findings-heading {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finding-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border-left: 3px solid transparent;
}

.finding-item.pass {
  border-left-color: var(--accent-emerald);
}

.finding-item.warn {
  border-left-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.finding-item.fail {
  border-left-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

.finding-icon {
  font-weight: bold;
}

.finding-item.pass .finding-icon { color: var(--accent-emerald); }
.finding-item.warn .finding-icon { color: var(--accent-amber); }
.finding-item.fail .finding-icon { color: var(--accent-rose); }

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

.demo-cli-strip {
  padding: 12px 24px;
  background: #090d16;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.cli-prompt { color: var(--accent-cyan); font-weight: bold; }
.cli-cmd { color: #c9d1d9; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-result { color: var(--accent-emerald); font-weight: 600; }

/* ==========================================================================
   Education Card
   ========================================================================== */
.education-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.edu-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

.edu-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 12px;
}

.edu-degree {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.edu-major {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

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

.institution-name {
  font-weight: 600;
  color: var(--text-primary);
}

.edu-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cgpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.cgpa-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cgpa-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.9rem;
}

.edu-focus-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact & Recruiter Fast-Track
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-panel,
.contact-form-panel {
  padding: 36px;
}

.panel-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.panel-desc {
  font-size: 0.925rem;
  margin-bottom: 24px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.channel-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.channel-icon {
  font-size: 1.25rem;
  margin-right: 14px;
}

.channel-data {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-icon-btn,
.ext-link-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-icon-btn:hover,
.ext-link-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 0.875rem;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.footer-copy {
  color: var(--text-muted);
}

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

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid var(--accent-emerald);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.95); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-terminal {
    max-width: 600px;
    margin: 0 auto;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-workspace {
    grid-template-columns: 1fr;
  }

  .demo-code-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .section {
    padding: 70px 0;
  }

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

  .about-grid,
  .projects-grid,
  .skills-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: span 1;
  }

  /* Mobile Nav Drawer */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .timeline-item {
    gap: 16px;
  }

  .timeline-card {
    padding: 20px;
  }

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

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header,
  .hero-bg-glow,
  .theme-toggle-btn,
  .mobile-menu-toggle,
  .scroll-progress,
  .demo-controls-bar,
  #run-analysis-btn,
  .contact-form-panel,
  .back-to-top,
  .toast-container {
    display: none !important;
  }

  .glass-panel,
  .metric-card,
  .hero-terminal {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    color: #000000 !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }
}
