/* ==========================================================================
   JAIDER RENDÓN (VOID) — CYBER TERMINAL PORTFOLIO
   Design System: Tokyo Night / Cyberpunk Sovereign Minimalist
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #090a0f;
  --bg-card: rgba(18, 20, 31, 0.78);
  --bg-card-hover: rgba(24, 27, 43, 0.92);
  --bg-panel: rgba(13, 15, 23, 0.85);
  
  --border-subtle: rgba(122, 162, 247, 0.12);
  --border-accent: rgba(125, 207, 255, 0.35);
  --border-highlight: rgba(187, 154, 247, 0.4);

  --text-main: #c0caf5;
  --text-bright: #ffffff;
  --text-muted: #7982a9;
  --text-dim: #565f89;

  /* Tokyo Night Accents */
  --accent-blue: #7aa2f7;
  --accent-cyan: #7dcfff;
  --accent-purple: #bb9af7;
  --accent-green: #9ece6a;
  --accent-red: #f7768e;
  --accent-orange: #ff9e64;
  --accent-yellow: #e0af68;

  /* Glows */
  --glow-cyan: 0 0 25px rgba(125, 207, 255, 0.22);
  --glow-blue: 0 0 25px rgba(122, 162, 247, 0.2);
  --glow-purple: 0 0 25px rgba(187, 154, 247, 0.2);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Layout */
  --container-max: 1140px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id] {
  scroll-margin-top: 85px;
}

/* Background Atmosphere */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(122, 162, 247, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122, 162, 247, 0.035) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(122, 162, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 45%, rgba(187, 154, 247, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(125, 207, 255, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 10, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-bright);
}

.brand-emblem {
  width: 36px;
  height: 36px;
  background: #0d1017;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  display: grid;
  place-items: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-link:hover .brand-emblem {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(125, 207, 255, 0.25);
}

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

.brand-parent {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  font-weight: 700;
}

.brand-self {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 20, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-bright);
}

.lang-btn.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(125, 207, 255, 0.7);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

.btn-cv-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(122, 162, 247, 0.1);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-cv-header:hover {
  background: rgba(122, 162, 247, 0.2);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(122, 162, 247, 0.25);
  color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(158, 206, 106, 0.08);
  border: 1px solid rgba(158, 206, 106, 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseAnim 2.2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 75%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  background: rgba(125, 207, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(125, 207, 255, 0.15);
  margin-bottom: 22px;
  flex-wrap: wrap;
  max-width: 100%;
}

.role-title {
  word-break: break-word;
}

.role-terminal-prompt {
  color: var(--accent-purple);
  font-weight: 700;
}

.hero-bio {
  color: var(--text-main);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(122, 162, 247, 0.25) 0%, rgba(125, 207, 255, 0.2) 100%);
  border-color: rgba(125, 207, 255, 0.4);
  color: var(--text-bright);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(122, 162, 247, 0.38) 0%, rgba(125, 207, 255, 0.32) 100%);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(18, 20, 31, 0.7);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(26, 29, 44, 0.85);
  border-color: var(--accent-blue);
  color: var(--text-bright);
  transform: translateY(-2px);
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Cyber Profile Card
   ========================================================================== */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cyber-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-blue);
}

.card-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 11, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dot-red { background: #f7768e; }
.dot-yellow { background: #e0af68; }
.dot-green { background: #9ece6a; }

.term-title {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.profile-header-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.emblem-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #0d1017;
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(125, 207, 255, 0.15);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.cyber-card:hover .emblem-wrapper {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.emblem-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.avatar-meta {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.chip-kotlin { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.chip-rust { background: rgba(255, 158, 100, 0.15); color: var(--accent-orange); border: 1px solid rgba(255, 158, 100, 0.3); }
.chip-python { background: rgba(187, 154, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(187, 154, 247, 0.3); }
.chip-ts { background: rgba(125, 207, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(125, 207, 255, 0.3); }
.chip-pg { background: rgba(122, 162, 247, 0.15); color: var(--accent-blue); border: 1px solid rgba(122, 162, 247, 0.3); }

.hero-content,
.hero-card-container,
.hero-card {
  min-width: 0;
  max-width: 100%;
}

.terminal-body {
  padding: 18px 22px;
  min-width: 0;
  max-width: 100%;
}

.term-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  word-break: break-word;
}

.term-prompt { color: var(--accent-green); }
.term-cmd { color: var(--text-bright); }

.term-output {
  background: rgba(10, 11, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-width: 100%;
}

.json-key { color: var(--accent-cyan); }
.json-str { color: var(--accent-green); }

.term-links {
  display: flex;
  gap: 10px;
}

.term-link-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.term-link-btn:hover {
  background: rgba(122, 162, 247, 0.1);
  border-color: var(--accent-blue);
  color: var(--text-bright);
}

/* ==========================================================================
   Section Components
   ========================================================================== */
.section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
}

/* ==========================================================================
   Interactive Skills Matrix
   ========================================================================== */
.skills-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.skill-tab {
  background: rgba(18, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab:hover {
  color: var(--text-bright);
  border-color: var(--border-accent);
}

.skill-tab.active {
  background: rgba(125, 207, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(125, 207, 255, 0.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background var(--transition-fast);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skill-card.active-filter {
  border-color: var(--accent-cyan);
  background: rgba(24, 28, 45, 0.95);
  box-shadow: var(--glow-cyan);
}

.skill-card.active-filter::after {
  background: var(--accent-cyan);
}

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

.skill-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.skill-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-bright);
}

.skill-category-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.skill-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.skill-projects-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  margin-top: auto;
}

.active-filter-banner {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(125, 207, 255, 0.08);
  border: 1px solid rgba(125, 207, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-main);
}

.btn-clear-filter {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-clear-filter:hover {
  background: rgba(247, 118, 142, 0.2);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ==========================================================================
   Chronological Interactive Timeline
   ========================================================================== */
.timeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(18, 20, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  color: var(--text-bright);
  border-color: var(--border-accent);
}

.pill-btn.active {
  background: rgba(122, 162, 247, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 700;
}

.btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 20, 31, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sort:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.sort-icon {
  font-size: 14px;
  color: var(--accent-cyan);
}

/* Timeline Layout */
.timeline-track-wrapper {
  position: relative;
  padding: 20px 0;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue) 40%, var(--accent-purple) 75%, transparent 100%);
  opacity: 0.35;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.timeline-node {
  position: relative;
  padding-left: 64px;
  transition: all var(--transition-normal);
}

.node-dot {
  position: absolute;
  left: 21px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #090a0f;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 10px rgba(122, 162, 247, 0.4);
  transition: all var(--transition-fast);
  z-index: 2;
}

.timeline-node:hover .node-dot {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-node.featured .node-dot {
  border-color: var(--accent-green);
  box-shadow: 0 0 14px rgba(158, 206, 106, 0.6);
}

/* Timeline Card */
.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.timeline-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), var(--glow-blue);
  transform: translateY(-2px);
}

.timeline-card.highlight-tech {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(22, 26, 42, 0.95);
}

.card-banner-media {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #0d1017;
  border-bottom: 1px solid rgba(125, 207, 255, 0.08);
}

.card-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(18, 20, 31, 0.95) 100%);
  pointer-events: none;
}

.card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline-card:hover .card-banner-img {
  transform: scale(1.03);
}

.card-inner-body {
  padding: 24px 28px;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(125, 207, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(125, 207, 255, 0.2);
}

.card-tag-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.tag-prod { background: rgba(158, 206, 106, 0.15); color: var(--accent-green); border: 1px solid rgba(158, 206, 106, 0.35); }
.tag-store { background: rgba(125, 207, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(125, 207, 255, 0.35); }
.tag-core { background: rgba(187, 154, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(187, 154, 247, 0.35); }
.tag-oss { background: rgba(122, 162, 247, 0.15); color: var(--accent-blue); border: 1px solid rgba(122, 162, 247, 0.35); }
.tag-dev {
  background: rgba(224, 175, 104, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(224, 175, 104, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-yellow);
  animation: pulseAnim 1.8s infinite;
}

.timeline-node.node-in-progress .node-dot {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 12px rgba(224, 175, 104, 0.5);
}

.skill-icon-svg {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.skill-card:hover .skill-icon-svg {
  background: rgba(125, 207, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(125, 207, 255, 0.2);
}

.panel-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(125, 207, 255, 0.08);
  border: 1px solid rgba(125, 207, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.method-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(122, 162, 247, 0.08);
  border: 1px solid rgba(122, 162, 247, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-method-card:hover .method-icon-box {
  background: rgba(125, 207, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.card-project-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-project-summary {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-tech-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tech-chip {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.btn-open-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(122, 162, 247, 0.12);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-open-preview:hover {
  background: rgba(122, 162, 247, 0.25);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 10px rgba(122, 162, 247, 0.3);
}

.card-ext-links {
  display: flex;
  gap: 12px;
}

.ext-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
}

.ext-link-item:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Trayectoria y Educación (Dual Columns)
   ========================================================================== */
.dual-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.cyber-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-icon {
  font-size: 26px;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
}

.panel-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.work-entry {
  display: flex;
  flex-direction: column;
}

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

.work-role {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
}

.work-company {
  font-size: 13.5px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.work-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  background: rgba(158, 206, 106, 0.08);
  border: 1px solid rgba(158, 206, 106, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

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

.work-bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--text-main);
  font-size: 13.5px;
  line-height: 1.6;
}

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

.work-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Education items */
.edu-entry {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.edu-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.edu-institution {
  font-size: 13px;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.edu-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.certs-box {
  background: rgba(10, 11, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.certs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

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

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.45;
}

.cert-check {
  color: var(--accent-green);
  font-weight: bold;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-decor-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(125, 207, 255, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.contact-heading {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.contact-subheading {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 36px;
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
  text-align: left;
}

.contact-method-card {
  background: rgba(10, 11, 17, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  transition: all var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--border-accent);
  background: rgba(15, 17, 26, 0.95);
  transform: translateY(-2px);
}

.method-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.method-details {
  flex: 1;
  min-width: 0;
}

.method-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.method-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.btn-copy-contact,
.btn-external-contact {
  background: rgba(122, 162, 247, 0.1);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-contact:hover,
.btn-external-contact:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.contact-downloads {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Interactive Project Preview Dialog (Native <dialog>)
   ========================================================================== */
.project-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 680px;
  width: 92vw;
  color: var(--text-main);
  outline: none;
  z-index: 1000;
}

.project-dialog::backdrop {
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-card {
  background: #0f111a;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--glow-cyan);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.dialog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(10, 11, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dialog-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.08em;
}

.dialog-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.dialog-close-btn:hover {
  background: rgba(247, 118, 142, 0.2);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.dialog-scroll-content {
  overflow-y: auto;
  padding: 0;
  overscroll-behavior: contain;
}

.modal-media-wrapper {
  width: 100%;
  max-height: 320px;
  background: #08090d;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(125, 207, 255, 0.1);
}

.modal-media-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(13, 16, 23, 0.95) 100%);
  pointer-events: none;
}

.modal-preview-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.modal-body-content {
  padding: 24px;
}

.modal-meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(125, 207, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-purple);
  background: rgba(187, 154, 247, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 22px;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.modal-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.modal-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-main);
}

.modal-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.modal-tech-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dialog-footer {
  padding: 16px 24px;
  background: rgba(10, 11, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.dialog-links-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 8, 12, 0.95);
}

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

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

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-center {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-host-info {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

.back-to-top {
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: rgba(125, 207, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .dual-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 105px;
  }

  .header-inner {
    height: auto;
    padding: 10px 0 8px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-emblem {
    width: 32px;
    height: 32px;
  }

  .brand-emblem img {
    width: 22px;
    height: 22px;
  }

  .brand-parent {
    font-size: 9px;
  }

  .brand-self {
    font-size: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-switch {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .btn-cv-header {
    padding: 5px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 6px 0 4px;
    gap: 16px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex-shrink: 0;
    font-size: 12.5px;
    padding: 2px 0;
  }

  .hero-section {
    padding: 40px 0 40px;
  }

  .hero-title {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .hero-role-bar {
    font-size: 11px;
    padding: 6px 10px;
  }

  .hero-bio {
    font-size: 13.5px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta-strip {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
  }

  .timeline-spine {
    left: 14px;
  }

  .node-dot {
    left: 7px;
    width: 14px;
    height: 14px;
  }

  .timeline-node {
    padding-left: 32px;
  }

  .timeline-card {
    border-radius: var(--radius-md);
  }

  .card-banner-media {
    height: 180px;
  }

  .card-inner-body {
    padding: 18px 16px;
  }

  .card-project-title {
    font-size: 17px;
  }

  .card-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-open-preview {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
  }

  .card-ext-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .skills-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 8px;
  }

  .skills-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .skill-tab {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 6px 12px;
  }

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

  .timeline-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .timeline-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
  }

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

  .pill-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 10px;
  }

  .btn-sort {
    width: 100%;
    justify-content: center;
  }

  .contact-actions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-method-card {
    padding: 12px 10px;
    gap: 10px;
  }

  .contact-box {
    padding: 24px 14px;
  }

  .contact-heading {
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .contact-downloads .btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 12px 14px;
    text-align: center;
  }

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

  .footer-brand {
    align-items: center;
  }

  .project-dialog {
    width: 95vw;
    max-height: 90vh;
  }

  .dialog-card {
    max-height: 90vh;
  }

  .dialog-links-group {
    flex-direction: column;
    width: 100%;
  }

  .dialog-links-group .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .profile-header-strip {
    padding: 14px;
    gap: 10px;
  }

  .emblem-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .emblem-img {
    width: 32px;
    height: 32px;
  }

  .profile-name {
    font-size: 15px;
  }

  .terminal-body {
    padding: 12px;
  }

  .term-output {
    font-size: 10px;
    padding: 8px;
  }

  .term-links {
    flex-direction: column;
    gap: 6px;
  }

  .exp-panel {
    padding: 18px 14px;
  }

  .contact-method-card {
    padding: 10px 12px;
  }
}
