/* ==========================================================================
   Daniel Soto Erices — Digital Terminal CV Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  /* Color Palette (Modern Console Dark Mode) */
  --bg-canvas: #07090e;
  --bg-window: #0c1017;
  --bg-header: #131924;
  --bg-card: #111722;
  --bg-card-hover: #172030;
  --bg-tag: #162032;
  --bg-tag-highlight: rgba(56, 189, 248, 0.12);
  --bg-tag-featured: rgba(168, 85, 247, 0.12);
  
  /* Borders */
  --border-subtle: #1c2638;
  --border-card: #223046;
  --border-tag-highlight: #0284c7;
  --border-tag-featured: #9333ea;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8493a8;
  --text-dim: #475569;
  
  /* Syntax / Terminal Accents */
  --term-green: #22c55e;
  --term-cyan: #38bdf8;
  --term-blue: #60a5fa;
  --term-purple: #a855f7;
  --term-yellow: #facc15;
  --term-red: #f43f5e;
  
  /* Typography */
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-window: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-canvas);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Subtle Grid Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* --- Layout Container --- */
.terminal-wrapper {
  width: 100%;
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.terminal-window {
  background-color: var(--bg-window);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Terminal Header --- */
.terminal-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.control-dot:hover {
  transform: scale(1.15);
}

.dot-close { background-color: #ff5f56; border: 1px solid #e0443e; }
.dot-minimize { background-color: #ffbd2e; border: 1px solid #dea123; }
.dot-expand { background-color: #27c93f; border: 1px solid #1aab29; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  user-select: none;
}

.terminal-icon {
  color: var(--term-cyan);
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--term-cyan);
  color: var(--term-cyan);
  transform: translateY(-1px);
}

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

/* --- Terminal Navigation Bar --- */
.terminal-nav {
  background-color: rgba(19, 25, 36, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.nav-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-pill .cmd-symbol {
  color: var(--term-green);
  font-weight: 600;
}

.nav-pill:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--term-cyan);
  color: #ffffff;
}

/* --- Terminal Body & Prompts --- */
.terminal-body {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.cmd-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-line {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  user-select: none;
}

.prompt-user {
  color: var(--term-green);
  font-weight: 600;
}

.prompt-sep {
  color: var(--text-muted);
}

.prompt-path {
  color: var(--term-blue);
  font-weight: 500;
}

.prompt-dollar {
  color: var(--text-secondary);
  font-weight: 700;
  margin-right: 0.35rem;
}

.prompt-cmd {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.output-block {
  background-color: rgba(17, 23, 34, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

/* --- Section Headings --- */
.section-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.5rem;
}

.section-title .prefix {
  color: var(--term-purple);
}

/* --- Hero Section --- */
.hero-block {
  border-color: var(--border-card);
  background: linear-gradient(180deg, rgba(23, 32, 48, 0.5) 0%, rgba(17, 23, 34, 0.6) 100%);
  padding: 1.5rem;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hero-role {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.accent-badge {
  color: var(--term-cyan);
  font-weight: 600;
}

.separator {
  color: var(--text-dim);
}

.sub-role {
  color: var(--text-secondary);
}

/* Contact Meta Grid */
.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.meta-key {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 65px;
}

.meta-val {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  text-decoration: none;
}

.link-val {
  color: var(--term-cyan);
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.link-val:hover {
  color: #ffffff;
  text-decoration: underline;
}

.meta-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Perfil Profesional --- */
.text-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.text-content strong {
  color: #ffffff;
  font-weight: 600;
}

/* --- Stack Técnico y Habilidades --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card);
}

.skill-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(17, 23, 34, 0.9) 100%);
  border-color: rgba(168, 85, 247, 0.35);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skill-category-icon {
  font-size: 1rem;
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.featured-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: rgba(168, 85, 247, 0.2);
  color: var(--term-purple);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.tech-tag:hover {
  background-color: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-card);
}

.highlight-tag {
  background-color: var(--bg-tag-highlight);
  color: var(--term-cyan);
  border-color: var(--border-tag-highlight);
  font-weight: 600;
}

.highlight-tag:hover {
  background-color: rgba(56, 189, 248, 0.2);
  border-color: var(--term-cyan);
}

/* ==========================================================================
   --- Experiencia Laboral (Diseño Limpio, Espacioso y Sin Cajas Anidadas) ---
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border-card);
}

.timeline-marker {
  position: absolute;
  top: 3px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-window);
  border: 2px solid var(--term-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  z-index: 1;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.5rem;
}

.job-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.job-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.job-company {
  font-size: 0.9rem;
  color: var(--term-cyan);
  font-weight: 500;
}

.job-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.active {
  background-color: var(--term-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.job-intro {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.job-intro strong {
  color: #ffffff;
}

/* Projects List - Clean Tree / Branch Flow (No nested cards) */
.projects-list {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.projects-section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--term-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.subtitle-arrow {
  color: var(--term-green);
  font-weight: 900;
}

.project-entry {
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease;
}

.project-entry:hover {
  border-left-color: var(--term-cyan);
}

.project-entry-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

.bullet-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg-tag-highlight);
  color: var(--term-cyan);
  border: 1px solid var(--border-tag-highlight);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Plain Bullets (para otros puestos) */
.plain-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.plain-bullets li {
  position: relative;
  padding-left: 1.25rem;
}

.plain-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--term-green);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bullet-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bullet-desc strong {
  color: #ffffff;
}

/* --- Dual Column Sections (Educación & Idiomas) --- */
.two-columns-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.edu-icon {
  font-size: 2rem;
  line-height: 1;
}

.edu-degree {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.edu-institution {
  font-size: 0.85rem;
  color: var(--term-cyan);
  font-weight: 500;
}

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

/* Languages */
.languages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.badge-native {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--term-green);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
}

.badge-tech {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--term-blue);
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
}

.lang-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-bar-wrapper {
  height: 4px;
  background-color: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.lang-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--term-cyan), var(--term-green));
  border-radius: 2px;
}

/* --- Interactive Prompt Section --- */
.interactive-prompt-section {
  background-color: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.interactive-prompt-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ffffff;
  caret-color: var(--term-green);
}

.cli-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--term-green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cli-feedback {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  min-height: 0;
  transition: all 0.2s ease;
}

.cli-feedback:not(:empty) {
  padding: 0.75rem;
  background-color: var(--bg-canvas);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.quick-commands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.quick-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.cmd-chip {
  background-color: var(--bg-card);
  color: var(--term-cyan);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cmd-chip:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--term-cyan);
  color: #ffffff;
}

/* --- Terminal Footer --- */
.terminal-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Toast Notification --- */
.terminal-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-header);
  border: 1px solid var(--term-green);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.terminal-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  color: var(--term-green);
  font-weight: 700;
}

/* --- Responsive Adjustments (Mobile-First Polish) --- */
@media (max-width: 768px) {
  body {
    padding: 0.5rem 0.35rem;
  }

  .terminal-body {
    padding: 1rem 0.75rem;
    gap: 1.75rem;
  }

  .output-block {
    padding: 1rem 0.85rem;
  }

  .hero-block {
    padding: 1rem 0.85rem;
  }

  .hero-name {
    font-size: 1.4rem;
  }

  .hero-role {
    font-size: 0.88rem;
    gap: 0.35rem;
  }

  .contact-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

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

  .two-columns-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .terminal-actions .btn-text {
    display: none;
  }

  .action-btn {
    padding: 0.35rem 0.5rem;
  }

  /* Timeline Mobile Optimization: Flat, Direct & Max Screen Width */
  .timeline {
    gap: 1.75rem;
  }

  .timeline-item {
    padding-left: 1.15rem;
  }

  .timeline-marker {
    left: -6px;
    width: 10px;
    height: 10px;
    top: 4px;
  }

  .job-title {
    font-size: 0.98rem;
  }

  .job-company {
    font-size: 0.85rem;
  }

  .project-entry {
    padding-left: 0.75rem;
  }

  .project-name {
    font-size: 0.85rem;
  }

  .project-desc {
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Print Stylesheet (Optimized for PDF Export & Clean Paper Layout)
   ========================================================================== */
@media print {
  @page {
    margin: 1.2cm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 !important;
    font-size: 11pt !important;
  }

  body::before {
    display: none !important;
  }

  .terminal-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }

  .terminal-window {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  .terminal-header,
  .terminal-nav,
  .prompt-line,
  .interactive-prompt-section,
  .terminal-footer,
  .terminal-toast {
    display: none !important;
  }

  .terminal-body {
    padding: 0 !important;
    gap: 1.25rem !important;
  }

  .output-block {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .hero-block {
    background: transparent !important;
    border-bottom: 2px solid #111827 !important;
    padding-bottom: 1rem !important;
  }

  .hero-name {
    color: #111827 !important;
    font-size: 18pt !important;
  }

  .hero-role {
    color: #374151 !important;
    font-size: 11pt !important;
  }

  .accent-badge {
    color: #111827 !important;
    font-weight: 700 !important;
  }

  .contact-meta-grid {
    border-top: 1px solid #e5e7eb !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .meta-key {
    color: #6b7280 !important;
  }

  .meta-val, .link-val {
    color: #111827 !important;
    text-decoration: none !important;
  }

  .section-title {
    color: #111827 !important;
    border-bottom: 1.5px solid #111827 !important;
    font-size: 12pt !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .section-title .prefix {
    display: none !important;
  }

  .text-content {
    color: #1f2937 !important;
    font-size: 10pt !important;
    line-height: 1.5 !important;
  }

  .text-content strong {
    color: #000000 !important;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .skill-card {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    break-inside: avoid;
    padding: 0.75rem !important;
  }

  .skill-card-featured {
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
  }

  .skill-category-title {
    color: #111827 !important;
  }

  .tech-tag {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    font-size: 8.5pt !important;
  }

  .highlight-tag {
    border-color: #111827 !important;
    font-weight: bold !important;
  }

  .timeline {
    padding-left: 0 !important;
    gap: 1.25rem !important;
  }

  .timeline-marker {
    display: none !important;
  }

  .timeline-item {
    padding-left: 0 !important;
    border-left: none !important;
    break-inside: avoid;
  }

  .timeline-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 0.4rem !important;
  }

  .job-header {
    border-bottom: 1px dashed #d1d5db !important;
    padding-bottom: 0.35rem !important;
  }

  .job-title {
    color: #111827 !important;
    font-size: 11pt !important;
  }

  .job-company {
    color: #374151 !important;
  }

  .job-period {
    color: #6b7280 !important;
  }

  .status-indicator {
    display: none !important;
  }

  .projects-list {
    margin-top: 0.25rem !important;
    gap: 0.5rem !important;
  }

  .projects-section-subtitle {
    color: #111827 !important;
    font-size: 8.5pt !important;
  }

  .project-entry {
    padding-left: 0.5rem !important;
    border-left: 1.5px solid #d1d5db !important;
    break-inside: avoid;
  }

  .project-name {
    color: #111827 !important;
    font-size: 9.5pt !important;
  }

  .bullet-tag {
    background: #e5e7eb !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
  }

  .project-desc, .bullet-desc {
    color: #374151 !important;
    font-size: 9.5pt !important;
  }

  .two-columns-section {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    break-inside: avoid;
  }

  .edu-degree {
    color: #111827 !important;
  }

  .edu-institution {
    color: #374151 !important;
  }

  .lang-name {
    color: #111827 !important;
  }

  .badge-native,
  .badge-tech {
    background: #e5e7eb !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
  }
}
