/* ============================================================
   RAFAEL CRUZ — PORTFOLIO V2 (CYBERSECURITY & NETDEVOPS)
   Editorial Tech & Executive Cyber Aesthetic
   Inspired by Elite Security Portfolios (Dark Obsidian + Neon Emerald)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties (Theme System) ---------- */
:root {
  /* Dark Obsidian Theme (Default) */
  --bg-base: #06090e;
  --bg-surface: #0b1118;
  --bg-card: #0f1722;
  --bg-card-hover: #141f2e;
  --bg-glass: rgba(11, 17, 24, 0.75);
  --bg-pill: rgba(16, 185, 129, 0.08);

  --border: #1a2738;
  --border-light: #25364e;
  --border-highlight: #334a69;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);
  --accent-emerald-bright: #34d399;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --accent-red-pdf: #ef4444;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-emerald-glow);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-pill: rgba(16, 185, 129, 0.1);

  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --border-highlight: #94a3b8;
  
  --text-main: #091322;
  --text-muted: #475569;
  --text-faint: #64748b;
  
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  --accent-emerald-bright: #10b981;
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.15);
  --accent-red-pdf: #dc2626;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px var(--accent-emerald-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::selection {
  background: var(--accent-emerald);
  color: #04120b;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography & Utility ---------- */
.section {
  padding: 110px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--accent-emerald);
  display: inline-block;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ---------- Navigation Bar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-1px);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.lang-btn.active {
  background: var(--accent-emerald);
  color: #04120b;
  font-weight: 700;
}
.lang-btn:hover:not(.active) {
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}
.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
}

/* CV Download Pill Button (like Leandro's top PDF badge) */
.cv-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-full);
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}
.cv-badge-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.cv-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Background Cyber Waves (Dynamic Vector Lines) */
.hero-wave-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  overflow: hidden;
}

.hero-wave-svg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 110%;
  height: 100%;
  min-width: 900px;
}

.wave-ribbon {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

.hero-main {
  flex: 1;
  max-width: 700px;
}

/* Social icons right above the name (Leandro's header touch) */
.hero-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.hero-social-link:hover {
  color: var(--accent-emerald-bright);
  transform: translateY(-2px);
}
.hero-social-link svg {
  width: 20px;
  height: 20px;
}

/* Circular Avatar with Cyber Glow Frame */
.hero-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan), transparent);
  box-shadow: 0 0 35px var(--accent-emerald-glow);
  transition: all var(--transition-normal);
}
.hero-avatar-frame:hover {
  transform: scale(1.03);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.4);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background-color: var(--bg-card);
  border: 2px solid var(--bg-base);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald-bright);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.status-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); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.hero-role {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

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

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #04120b;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background: var(--accent-emerald-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 12px 18px;
}
.btn-ghost:hover {
  color: var(--text-main);
}

/* Direct CV Download Pill Group */
.hero-cv-group {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-cv-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-cv-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-cv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-cv-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  color: #fff;
}

/* ---------- Section 1: Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.expertise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}
.expertise-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.expertise-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-emerald);
  margin-bottom: 22px;
}

.expertise-card-title {
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.expertise-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}
.expertise-card-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.tech-tag:hover {
  border-color: var(--accent-emerald);
  color: var(--text-main);
  background: var(--bg-pill);
}

/* Certifications Sub-block in Expertise */
.certs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
}

.certs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.certs-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.cert-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.cert-badge-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

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

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

.cert-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

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

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--bg-pill);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ---------- Section 2: Career History (Executive Rolling Carousel & HUD) ---------- */

/* Top Executive HUD: Stepper Pills + Playback Controls */
.timeline-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step-pill .step-pill-idx {
  font-weight: 700;
  color: var(--text-faint);
  font-size: 0.68rem;
  transition: color 0.25s ease;
}

.timeline-step-pill:hover {
  border-color: var(--border-highlight);
  color: var(--text-main);
  transform: translateY(-1px);
}

.timeline-step-pill.active {
  background: var(--bg-pill);
  border-color: var(--accent-emerald);
  color: var(--text-main);
  box-shadow: 0 0 14px var(--accent-emerald-glow);
}

.timeline-step-pill.active .step-pill-idx {
  color: var(--accent-emerald);
}

.timeline-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeline-ctrl-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-emerald);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.timeline-ctrl-btn:active {
  transform: translateY(0);
}

.timeline-autoroll-btn.active {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  background: var(--bg-pill);
  box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.autoroll-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
  animation: autorollDotPulse 1.4s infinite ease-in-out;
}

.timeline-autoroll-btn:not(.active) .autoroll-indicator {
  background: var(--text-faint);
  animation: none;
}

@keyframes autorollDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Main Carousel Container & Floating Lateral Arrows */
.timeline-carousel-container {
  position: relative;
  width: 100%;
}

.timeline-float-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 17, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-highlight);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px var(--accent-emerald-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .timeline-float-arrow {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.timeline-float-arrow.prev {
  left: -18px;
}

.timeline-float-arrow.next {
  right: -18px;
}

.timeline-float-arrow:hover {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #04120b;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
}

.timeline-float-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.timeline-float-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
}

/* Viewport Wrapper with Cinematic Edge Vignette Mask & Zero Native Scrollbar */
.timeline-wrapper {
  position: relative;
  padding: 12px 0 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* IMPORTANT: Keep scroll-behavior auto so JS 60/120fps physics engine controls sub-pixel gliding */
  scroll-behavior: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.timeline-wrapper::-webkit-scrollbar {
  display: none;
}

.timeline-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
}

/* Horizontal Grid Track holding all 7 spacious cards */
.timeline-items {
  display: grid;
  grid-template-columns: repeat(7, 320px);
  gap: 24px;
  width: max-content;
  position: relative;
  z-index: 2;
  padding: 10px 28px 14px 28px;
}

/* Continuous Glowing Axis Line passing dead-center through all 7 markers (top: 78px) */
.timeline-track {
  position: absolute;
  top: 78px;
  left: 48px;
  right: 48px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.35) 4%,
    var(--accent-emerald) 15%,
    var(--accent-emerald) 85%,
    rgba(16, 185, 129, 0.35) 96%,
    transparent 100%
  );
  box-shadow: 0 0 14px var(--accent-emerald-glow);
  transform: translateY(-50%);
  z-index: 1;
  overflow: hidden;
  border-radius: 3px;
  pointer-events: none;
}

/* Neon laser pulse beam traveling continuously across the axis */
.timeline-track-pulse {
  position: absolute;
  top: 0;
  left: -220px;
  width: 220px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.35), #10b981, #a7f3d0, #10b981, transparent);
  box-shadow: 0 0 20px #10b981, 0 0 36px #34d399;
  animation: timelineLaserSweep 4.5s linear infinite;
}

@keyframes timelineLaserSweep {
  0% {
    left: -220px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Individual Milestone Node */
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Number + Date Pill above the Axis */
.timeline-node-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--bg-pill);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  transition: color 0.3s ease;
}

/* Marker Circle + Vertical Connector Stem */
.timeline-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-emerald);
  box-shadow: 0 0 16px var(--accent-emerald-glow);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-marker-emerald {
  background: var(--accent-emerald);
  color: #04120b;
}

.timeline-stem {
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, var(--border-highlight) 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Spacious Executive Milestone Card */
.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px 22px;
  width: 100%;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.timeline-card-featured {
  border-color: rgba(16, 185, 129, 0.4);
}

.timeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.timeline-tag-highlight {
  color: var(--accent-emerald);
  background: var(--bg-pill);
  border-color: rgba(16, 185, 129, 0.3);
}

.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.timeline-org {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.58;
}

/* Active & Hover Spotlight States */
.timeline-node.is-active .timeline-node-header,
.timeline-node:hover .timeline-node-header {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.timeline-node.is-active .timeline-date,
.timeline-node:hover .timeline-date {
  color: var(--text-main);
}

.timeline-node.is-active .timeline-marker,
.timeline-node:hover .timeline-marker {
  transform: scale(1.18);
  background: var(--accent-emerald);
  color: #04120b;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.16), 0 0 26px var(--accent-emerald-glow);
}

.timeline-node:hover .timeline-marker {
  transform: scale(1.22) rotate(360deg);
}

.timeline-node.is-active .timeline-stem,
.timeline-node:hover .timeline-stem {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.timeline-node.is-active .timeline-card,
.timeline-node:hover .timeline-card {
  border-color: var(--accent-emerald);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 28px rgba(16, 185, 129, 0.12);
}

.timeline-node.is-active .timeline-card::before,
.timeline-node:hover .timeline-card::before {
  opacity: 1;
}

/* Bottom Interactive Progress Scrubber & Telemetry Bar */
.timeline-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.timeline-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-counter .counter-current {
  color: var(--accent-emerald);
  font-size: 1rem;
}

.timeline-counter .counter-sep,
.timeline-counter .counter-total {
  color: var(--text-faint);
}

.timeline-scrubber {
  flex-grow: 1;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.timeline-scrubber-track {
  width: 100%;
  height: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  overflow: visible;
}

.timeline-scrubber-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), var(--accent-emerald));
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.timeline-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-base);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent-emerald);
  transition: transform 0.15s ease;
}

.timeline-scrubber:hover .timeline-scrubber-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.timeline-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.timeline-hint-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
  animation: hintPulse 2s infinite ease-in-out;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ---------- Section 3: Personal Projects (Architecture Showcases) ---------- */
.project-track-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.track-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.track-tab:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.track-tab.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.18);
}

.track-tab-count {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.track-tab.active .track-tab-count {
  background: var(--accent-emerald);
  color: #04120b;
}

.project-showcase-card.track-hidden {
  display: none !important;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project-showcase-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.project-showcase-card:hover {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-glow);
}

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

.project-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-grade-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald-bright);
}

.project-title {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.project-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.project-lead strong {
  color: var(--text-main);
}

.project-key-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.project-key-points li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  padding-left: 20px;
}
.project-key-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}
.project-key-points li strong {
  color: var(--text-main);
}

.project-pipeline-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  margin-bottom: 22px;
  line-height: 1.5;
}

.project-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.project-action-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

/* Architecture Blueprint Graphic (Right Side) */
.project-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blueprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.blueprint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.blueprint-dots {
  display: flex;
  gap: 6px;
}
.b-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.b-dot.red { background: #ef4444; }
.b-dot.yellow { background: #f59e0b; }
.b-dot.green { background: #10b981; }

.blueprint-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

.blueprint-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.blueprint-canvas {
  padding: 24px;
  position: relative;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}

.blueprint-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  gap: 8px;
  overflow-x: auto;
}

.bp-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.bp-tab:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.bp-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--accent-emerald);
  font-weight: 600;
}

.bp-view {
  width: 100%;
}

.blueprint-real-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition);
  background: rgba(0, 0, 0, 0.2);
}

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

.blueprint-img-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

.blueprint-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
}

.metric-item {
  text-align: center;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-emerald);
}
.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ---------- Section 4: Technical Writeups (The Top 5% Feature) ---------- */
.writeups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.writeup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.writeup-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.writeup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.writeup-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.writeup-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.writeup-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-emerald);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}
.writeup-action-btn:hover {
  color: var(--accent-emerald-bright);
  gap: 12px;
}

/* ---------- Modal for Technical Briefs ---------- */
.brief-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.brief-modal.active {
  display: flex;
}

.brief-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 38px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.brief-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}
.brief-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.brief-modal-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 12px;
  padding-right: 40px;
}

.brief-modal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 24px;
}

.brief-modal-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.brief-modal-body h4 {
  color: var(--text-main);
  font-size: 1.05rem;
  margin: 20px 0 8px 0;
}
.brief-modal-body p {
  margin-bottom: 14px;
}
.brief-modal-body ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.writeup-diagram-box {
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow-sm);
}

.writeup-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.writeup-img-caption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
  margin: 0 !important;
  line-height: 1.5;
}

/* ---------- Section 5: Contact ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}

.contact-left .section-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.contact-desc-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.contact-channel-btn:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.channel-icon {
  font-size: 1.25rem;
  color: var(--accent-emerald);
}

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

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

.channel-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Copy Email Floating Toast */
.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--accent-emerald);
  color: #04120b;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}

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

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

.footer-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 36px;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .project-showcase-card {
    grid-template-columns: 1fr;
  }
  .writeups-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .hero-name {
    font-size: 2.75rem;
  }
  .hero-role {
    font-size: 1.15rem;
  }
  .nav-links {
    display: none;
  }
  .timeline-hud {
    flex-direction: column;
    align-items: stretch;
  }
  .timeline-action-buttons {
    justify-content: space-between;
  }
  .timeline-items {
    grid-template-columns: repeat(7, 285px);
    gap: 16px;
    padding: 10px 14px 14px 14px;
  }
  .timeline-float-arrow {
    display: none;
  }
  .timeline-footer-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .timeline-scroll-hint {
    width: 100%;
    justify-content: center;
  }
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .languages-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Languages Block ---------- */
.languages-wrapper {
  margin-top: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.languages-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.language-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.language-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}
.lang-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--bg-pill);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
