/* ==========================================================================
   NEURAL MONOLITH — HIGH-TECH RESUME / PORTFOLIO / BLOG DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Core Color Tokens */
  --bg-primary: #06080d;
  --bg-secondary: #0b0f17;
  --bg-card: rgba(14, 20, 31, 0.75);
  --bg-card-hover: rgba(20, 28, 44, 0.85);
  --bg-overlay: rgba(6, 8, 13, 0.85);
  --bg-glass: rgba(13, 19, 30, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 240, 255, 0.35);
  --border-active: #00f0ff;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-high-contrast: #ffffff;

  /* Luminescent Accents */
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.15);
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  
  --accent-emerald: #00e599;
  --accent-emerald-dim: rgba(0, 229, 153, 0.15);

  --accent-blue: #38bdf8;
  --accent-blue-dim: rgba(56, 189, 248, 0.15);

  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;

  /* Typography */
  --font-display: "Space Grotesk", "Syne", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Elevations & Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-floating: 0 12px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.25);

  /* Layout */
  --header-height: 72px;
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-smooth);
  --transition-normal: 0.3s var(--ease-smooth);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lighting & Noise Texture */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 229, 153, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.02) 0%, transparent 60%);
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-high-contrast);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "liga" 0;
}

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

/* ==========================================================================
   NAVIGATION / HUD HEADER
   ========================================================================== */

.hud-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 13, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.hud-header.scrolled {
  background: rgba(6, 8, 13, 0.92);
  border-bottom-color: rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-monogram {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.brand-monogram:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-dim);
}

.brand-icon {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  background: rgba(14, 20, 31, 0.6);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-item a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active a {
  color: var(--bg-primary);
  background: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* HUD Controls */
.hud-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(14, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-hud:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(20, 28, 44, 0.9);
}

.cmd-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.sound-toggle.active {
  color: var(--accent-emerald);
  border-color: rgba(0, 229, 153, 0.3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION & CANVAS
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

/* Telemetry Status Bar */
.telemetry-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.45rem 1rem;
  background: rgba(14, 20, 31, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-emerald);
}

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

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

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

.telemetry-item {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-item span {
  color: var(--text-primary);
}

/* Hero Titles */
.hero-title {
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.hero-title .name-highlight {
  color: var(--text-high-contrast);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

/* Hero Actions & Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent-cyan);
  color: #06080d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: #26f4ff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

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

.btn-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(14, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-icon-link:hover {
  color: var(--accent-cyan);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Canvas Mode Switcher in Hero */
.canvas-modes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.btn-mode {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-mode.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Key Profile Metrics Grid */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.metric-card {
  background: rgba(14, 20, 31, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.metric-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(14, 20, 31, 0.7);
  transform: translateY(-2px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */

section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: "//";
  color: var(--text-muted);
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 680px;
}

/* Filter Controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

.filter-btn {
  background: rgba(14, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.filter-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-dim);
}

/* ==========================================================================
   PROJECTS SHOWCASE (3D TILT CARDS)
   ========================================================================== */

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

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.2s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow-floating);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

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

/* Key Architecture Metrics Bar */
.project-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.project-metric-pill {
  color: var(--text-muted);
}

.project-metric-pill strong {
  color: var(--accent-emerald);
  margin-left: 0.25rem;
}

/* Tech Stack Tags */
.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 500;
  transition: var(--transition-fast);
}

.project-card:hover .btn-details {
  transform: translateX(4px);
}

/* ==========================================================================
   RESUME & EXPERIENCE SECTION
   ========================================================================== */

.resume-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.resume-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-print-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-print-resume:hover {
  background: rgba(0, 229, 153, 0.25);
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.3);
  transform: translateY(-2px);
}

/* Timeline Components */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--border-subtle) 85%);
}

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

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transform: translateX(-50%);
  margin-left: 7px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  transition: var(--transition-fast);
}

.timeline-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-subtle);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.timeline-highlights {
  list-style: none;
  margin: 1rem 0 1.25rem;
}

.timeline-highlights li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.timeline-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Sidebar Skills & Education */
.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category-block {
  margin-bottom: 1.5rem;
}

.skill-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.skill-bar-row {
  margin-bottom: 0.75rem;
}

.skill-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.skill-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-smooth);
}

/* Education / Awards Cards */
.edu-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.edu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.edu-degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-school {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   BLOG / TECH JOURNAL
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: var(--transition-fast);
}

.blog-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: var(--shadow-floating);
  transform: translateY(-3px);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-cat-badge {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.blog-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--accent-cyan);
}

.blog-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CONTACT & INQUIRY SECTION
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
}

.contact-channel-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-cyan);
}

.btn-copy-email {
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  transition: var(--transition-fast);
}

.btn-copy-email:hover {
  background: rgba(0, 240, 255, 0.2);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(6, 8, 13, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  background: rgba(10, 14, 22, 0.9);
}

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

/* ==========================================================================
   COMMAND PALETTE (CMD + K)
   ========================================================================== */

.cmd-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-smooth);
}

.cmd-palette-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  width: 100%;
  max-width: 640px;
  background: #0d121c;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating), 0 0 50px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.2s var(--ease-smooth);
}

.cmd-palette-backdrop.active .cmd-palette-modal {
  transform: translateY(0) scale(1);
}

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

.cmd-search-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  margin-left: 0.75rem;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.cmd-result-item:hover, .cmd-result-item.selected {
  background: rgba(0, 240, 255, 0.1);
  color: var(--text-primary);
}

.cmd-result-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.cmd-result-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 13, 0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE CLI TERMINAL DRAWER
   ========================================================================== */

.terminal-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 380px;
  background: #080c14;
  border-top: 1px solid var(--accent-cyan);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.15);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.terminal-drawer.active {
  transform: translateY(0);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: #0c121e;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.terminal-body {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.terminal-output {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.terminal-prompt {
  color: var(--accent-emerald);
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* ==========================================================================
   DEEP DIVE MODAL (PROJECTS & BLOG ARTICLES)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 13, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth);
}

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

.modal-container {
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  background: #0d121c;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating), 0 0 60px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease-smooth);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 2rem 1.75rem;
  overflow-y: auto;
}

.modal-body h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--accent-cyan);
}

.modal-body p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Modal Code Snippets */
pre code {
  display: block;
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
  margin: 1.25rem 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #0d121c;
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: var(--shadow-subtle), 0 0 20px rgba(0, 240, 255, 0.2);
  animation: toast-in 0.3s var(--ease-smooth);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  background: rgba(6, 8, 13, 0.8);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

/* Skill percentage badge & project category tag */
.skill-percent-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.project-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  .resume-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links {
    display: none;
    transition: var(--transition-fast);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: 1rem;
    right: 1rem;
    background: #0d121c;
    padding: 1rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-floating);
    z-index: 1000;
  }

  .nav-links.open .nav-item {
    width: 100%;
  }

  .nav-links.open .nav-item a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .projects-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    justify-content: center;
  }
}

/* ==========================================================================
   DEDICATED PRINT STYLESHEET (1-CLICK PDF RESUME)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
  }

  .hud-header,
  #hero,
  .hero-section,
  .hero-canvas,
  .ambient-glow,
  .noise-overlay,
  .canvas-modes,
  .hero-actions,
  .filter-bar,
  .btn-hud,
  .terminal-drawer,
  .cmd-palette-backdrop,
  .site-footer,
  #projects,
  #blog,
  #contact,
  .resume-actions-bar,
  .toast-container {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #resume {
    display: block !important;
    padding: 0.5in 0 !important;
  }

  #resume .section-header {
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid #111827 !important;
    padding-bottom: 1rem !important;
  }

  #resume .section-tag {
    display: none !important;
  }

  #resume .section-title {
    font-size: 20pt !important;
    color: #111827 !important;
    margin-bottom: 0.25rem !important;
  }

  #resume .section-subtitle {
    font-size: 10pt !important;
    color: #4b5563 !important;
  }

  .resume-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 1.75rem !important;
  }

  .timeline {
    padding-left: 1.5rem !important;
  }

  .timeline::before {
    background: #d1d5db !important;
    left: 4px !important;
  }

  .timeline-dot {
    border-color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    left: -1.5rem !important;
    margin-left: 5px !important;
  }

  .timeline-item {
    margin-bottom: 1.75rem !important;
    break-inside: avoid;
  }

  .timeline-card, .sidebar-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    color: #111827 !important;
    padding: 1rem !important;
    break-inside: avoid;
  }

  .timeline-role, .sidebar-title {
    color: #111827 !important;
    font-size: 12pt !important;
  }

  .timeline-company, .skill-cat-name {
    color: #1d4ed8 !important;
    font-size: 10pt !important;
  }

  .timeline-period {
    color: #4b5563 !important;
    background: #f3f4f6 !important;
  }

  .timeline-highlights li {
    color: #374151 !important;
    font-size: 9.5pt !important;
    margin-bottom: 0.4rem !important;
  }

  .tech-tag {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
    font-size: 8pt !important;
  }

  .skill-percent-badge {
    background: #f3f4f6 !important;
    color: #1d4ed8 !important;
    font-size: 8pt !important;
  }

  .skill-track {
    background: #e5e7eb !important;
  }

  .skill-fill {
    background: #1d4ed8 !important;
  }
}

