/* ============================================================
   RESUME PAGE — Specific styles
   ============================================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* ---------- Resume Layout ---------- */
.resume-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 84px;
}

.resume-profile {
  text-align: center;
  padding: 2rem 1.5rem;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
}
.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.profile-role { color: var(--text-muted); }
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.resume-block { padding: 1.25rem 1.5rem; }
.block-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Contact list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  word-break: break-all;
}
.contact-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

/* Skill bars */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.skill-bar-item {}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.skill-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform-origin: left;
  animation: barGrow 0.8s cubic-bezier(.4,0,.2,1) 0.5s both;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Languages */
.lang-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---------- Main content ---------- */
.resume-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.resume-section {}
.resume-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.text-accent { color: var(--accent); }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: 0.4;
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -1.875rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent);
}
.timeline-content { padding: 1.25rem 1.5rem; }
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.timeline-role {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
}
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.timeline-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Cert grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.cert-icon { font-size: 1.5rem; flex-shrink: 0; }
.cert-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .resume-layout {
    grid-template-columns: 1fr;
  }
  .resume-sidebar {
    position: static;
  }
}

@media print {
  .nav, .footer, #boot-screen, .btn { display: none !important; }
  .page-wrap { padding-top: 0; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ddd; box-shadow: none; }
  .resume-sidebar { position: static; }
}
