/* ════════════════════════════════════════════════════════════════════════
   CRTV DEI — Resume page
   2-column layout: dark technical sidebar + cream paper main content.
   Depends on shared.css, navbar.css
   ════════════════════════════════════════════════════════════════════════ */

.resume-page { background: var(--paper); }

.resume-layout {
  display: grid;
  grid-template-columns: clamp(300px, 30vw, 420px) 1fr;
  min-height: calc(100vh - 6px);
}

/* ──────────────────────────────────────────────────────────────────────
   SIDEBAR — dark technical panel
   ────────────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--rule);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--ink); }
.sidebar::-webkit-scrollbar-thumb { background: rgba(245,241,232,0.2); }

.sidebar-content { display: flex; flex-direction: column; gap: clamp(2rem, 3vw, 3rem); }

.header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.header .title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 500;
  min-height: 1.4em;
}
.header .title .typed-cursor {
  color: var(--gold);
  font-weight: 700;
}

/* Contact list */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--paper);
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  border: none;
  font: inherit;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
}
.contact-link:nth-child(2n) { border-right: none; }
.contact-link:nth-last-child(-n+2) { border-bottom: none; }
.contact-link:hover { background: var(--blue); }
.contact-icon { font-size: 1rem; color: var(--gold); }
.contact-link:hover .contact-icon { color: var(--paper); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Skills */
.skills-section h2,
.education-section h2 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--paper);
  margin-bottom: 1.25rem;
}
.skills-list { display: flex; flex-direction: column; gap: 1.1rem; }
.skill-category h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 0.35rem;
}
.skill-category p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--paper);
  opacity: 0.78;
}

/* Education */
#educationList { display: flex; flex-direction: column; gap: 1.2rem; }
.education-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 0.25rem;
}
.education-institution {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--paper);
  opacity: 0.85;
  margin-bottom: 0.15rem;
}
.education-dates {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.85;
}

/* ──────────────────────────────────────────────────────────────────────
   MAIN — cream paper, big display heads
   ────────────────────────────────────────────────────────────────────── */
.main-content {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3.5vw, 3.5rem);
}

.main-content section { margin-bottom: clamp(3rem, 5vw, 4rem); }

.main-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.main-content h2::before {
  content: '—';
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--blue);
  font-weight: 400;
}

.summary-section p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  max-width: 75ch;
  color: var(--ink);
  opacity: 0.92;
}

/* Experience — numbered job cards */
#experienceList {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3rem);
  counter-reset: job;
}
.job {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  counter-increment: job;
}
.job:first-child { border-top: none; padding-top: 0.5rem; }
.job-header { margin-bottom: 1rem; position: relative; }
.job-header::before {
  content: 'J.0' counter(job);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.job-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.job-header .company {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
.job-header .dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.65;
}
.job-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0;
}
.job-details li {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.88;
  padding-left: 1.4rem;
  position: relative;
}
.job-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────
   FOOTER — minimal resume-specific
   ────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.site-footer p { margin-bottom: 0.4rem; opacity: 0.75; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ──────────────────────────────────────────────────────────────────────
   MODAL — Certifications
   ────────────────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-content {
  background: var(--paper);
  border: 2px solid var(--ink);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 2px solid var(--ink);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.modal-close {
  background: none;
  border: 2px solid var(--ink);
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-body { padding: 1.75rem; }

.certification-item { display: flex; flex-direction: column; gap: 1rem; }
.certification-item + .certification-item {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
}
.certification-content { display: flex; gap: 1.5rem; align-items: flex-start; }
.certification-badge {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}
.certification-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.certification-issuer,
.certification-date {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}
.certification-id a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--ink);
  margin-top: 0.5rem;
  transition: background 160ms ease, color 160ms ease;
}
.certification-id a:hover { background: var(--ink); color: var(--paper); }

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .resume-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--rule); }
  .contact { grid-template-columns: 1fr 1fr; }
  .certification-content { flex-direction: column; }
  .certification-badge { width: 110px; height: 110px; }
}
@media (max-width: 480px) {
  .contact { grid-template-columns: 1fr; }
  .contact-link { border-right: none !important; border-bottom: 1px solid var(--paper); }
  .contact-link:last-child { border-bottom: none; }
}
