/* ── Resume page styles ── */

.resume-header {
  padding: 1.5rem 0;
}
.resume-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-link,
.pdf-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b306a;
  transition: color 0.2s ease;
}
.back-link:hover,
.pdf-link:hover {
  color: #0f2d52;
  text-decoration: none;
}
.pdf-link {
  background: transparent;
  border: 2px solid #4b306a;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.pdf-link:hover {
  background: #4b306a;
  color: #fff;
}

/* ── Resume card ── */
.resume {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 3rem;
  max-width: 860px;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ── Resume title ── */
.resume-title {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #4b306a, #0f2d52) 1;
}
.resume-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.resume-title h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  color: #111827;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.tagline {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 340px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #6b7280;
  font-size: 0.85rem;
  text-align: right;
}
.contact-info a {
  color: #0f2d52;
  font-weight: 600;
}
.contact-info a:hover {
  color: #4b306a;
}
.contact-info i {
  color: #4b306a;
  font-size: 0.8rem;
}

/* ── Sections ── */
.resume-section {
  margin-bottom: 2rem;
}
.resume-section:last-child {
  margin-bottom: 0;
}
.resume-section h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b306a;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
}

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.skill-card {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: rgba(75, 48, 106, 0.04);
  border: 1px solid rgba(75, 48, 106, 0.08);
}
.skill-card h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f2d52;
  margin-bottom: 0.4rem;
}
.skill-card h3 i {
  color: #4b306a;
}
.skill-card p {
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* ── Timeline / Jobs ── */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid #e5e7eb;
}
.job {
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}
.job::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4b306a, #0f2d52);
  border: 2px solid #fff;
}
.job:last-child {
  margin-bottom: 0;
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.job-header h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0;
}
.job-title {
  font-style: italic;
  color: #6b7280;
  font-size: 0.88rem;
  margin-bottom: 0;
}
.job-dates {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.job ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}
.job li {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.job li::marker {
  color: #4b306a;
}

/* ── Certifications tags ── */
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cert-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f2d52;
  background: rgba(15, 45, 82, 0.06);
  border: 1px solid rgba(15, 45, 82, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

/* ── References ── */
.references-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.reference {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.reference strong {
  color: #111827;
  font-size: 0.9rem;
}
.ref-title {
  color: #6b7280;
  font-size: 0.8rem;
}
.ref-note {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .resume {
    padding: 1.75rem;
  }
  .resume-title h1 {
    font-size: 2rem;
  }
  .resume-title-row {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-info {
    text-align: left;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .job-header {
    flex-direction: column;
  }
  .references-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Print styles ── */
@media print {
  @page {
    margin: 0.35in 0.45in;
    size: letter;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    background: white !important;
    font-size: 9.5pt;
  }
  .page-wrapper {
    min-height: auto;
  }
  main {
    display: block;
  }
  .resume-header,
  footer {
    display: none !important;
  }
  .fade-in,
  .fade-in-delayed {
    animation: none !important;
  }
  .resume {
    box-shadow: none;
    border: none;
    background: white !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
  }
  .resume-title {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
  .resume-title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
  }
  .resume-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
  }
  .tagline {
    font-size: 0.72rem;
    max-width: 280px;
  }
  .contact-info {
    font-size: 0.7rem;
    gap: 0.1rem;
    text-align: right;
    white-space: nowrap;
  }
  .resume-section {
    margin-bottom: 0.85rem;
  }
  .resume-section h2 {
    margin-bottom: 1rem;
    font-size: 0.65rem;
    padding-bottom: 0.4rem;
  }
  .skills-section-print {
    break-before: page;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .skill-card {
    background: #f7f7f8 !important;
    border-color: #e5e7eb !important;
    padding: 0.5rem 0.65rem;
    break-inside: avoid;
  }
  .skill-card h3 {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }
  .skill-card p {
    font-size: 0.68rem;
    line-height: 1.4;
  }
  .timeline {
    padding-left: 1rem;
  }
  .job {
    margin-bottom: 0.95rem;
    break-inside: avoid;
  }
  .job-header {
    margin-bottom: 0.25rem;
  }
  .job::before {
    left: calc(-1rem - 5px);
    width: 6px;
    height: 6px;
    top: 0.22rem;
  }
  .job-header h3 {
    font-size: 0.78rem;
  }
  .job-title {
    font-size: 0.7rem;
  }
  .job-dates {
    font-size: 0.65rem;
  }
  .job ul {
    padding-left: 0.9rem;
    margin-top: 0.05rem;
  }
  .job li {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 0.02rem;
  }
  .cert-tags {
    gap: 0.3rem;
  }
  .cert-tag {
    background: #f7f7f8 !important;
    border-color: #e5e7eb !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}
