/* ================================================ */
/* Résumé page — builds on style.css tokens          */
/* ================================================ */

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

.resume-page .logo-left,
.resume-page .logo {
  font-family: "rufina", serif;
}

.nav-active {
  color: var(--accent-purple) !important;
}

/* ---------- Header ---------- */

.r-hero {
  position: relative;
  padding: 200px 0 64px;
  overflow: hidden;
}

.r-glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 420px;
  top: 40px;
  right: -120px;
  border-radius: 100vw;
  background: radial-gradient(closest-side, #d88bf155, transparent);
  filter: blur(30px);
}

.r-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  animation: r-rise 0.9s ease-out both;
}
.r-hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Photo: gradient ring like the site's purple accents */
.r-photo {
  grid-column: 2;
  grid-row: 1;
  width: 280px;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pink-purple), var(--accent-purple) 55%, var(--grey100));
  box-shadow: 0 24px 60px #7c1bd226;
}
.r-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--background);
  transform: scale(1);
  background: var(--background);
}

.r-eyebrow {
  width: fit-content;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
  padding: 4px 14px;
  border: 1px solid var(--accent-purple-30);
  border-radius: 20px;
}

.r-name {
  font-family: "rufina", serif;
  font-weight: 700;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -1px;
}

.r-role {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 22px;
  font-weight: 500;
}
.r-role span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 14px 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-purple), var(--accent-purple));
}
.r-role span:first-child {
  color: var(--accent-purple);
}

.r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 16px;
  color: var(--Secondary);
}
.r-contact a {
  color: var(--Secondary);
  border-bottom: 1px solid var(--grey100);
  transition: border-color 0.3s, color 0.3s;
}
.r-contact a:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.r-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.r-actions .btn,
.r-cta-btns .btn {
  font-size: 18px;
}

/* ---------- Highlights ---------- */

.r-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  padding-top: 32px;
  padding-bottom: 32px;
}
.r-stats::before,
.r-stats::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--background), var(--pink-purple), var(--background));
}
.r-stats::before {
  top: 0;
}
.r-stats::after {
  bottom: 0;
}

.r-stat {
  padding: 0 24px;
  border-left: 1px solid var(--grey100);
}
.r-stat:first-child {
  border-left: none;
  padding-left: 0;
}
.r-stat-num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent-purple), var(--pink-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.r-stat-label {
  margin-top: 6px;
  font-size: 15px;
  color: var(--Secondary);
}

/* ---------- Layout ---------- */

.r-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.r-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.r-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-purple-30), transparent);
}

.r-block + .r-block {
  margin-top: 56px;
}

.r-summary {
  font-size: 18px;
  line-height: 1.75;
  color: var(--Secondary);
}
.r-summary strong {
  color: var(--accent-purple);
  font-weight: 600;
}

/* ---------- Timeline ---------- */

.r-timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
}
.r-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--pink-purple) 30%, var(--grey100));
  border-radius: 2px;
}

.r-job {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--grey100);
  border-radius: 14px;
  background: var(--background);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.r-job:hover {
  border-color: var(--accent-purple-30);
  box-shadow: 0 10px 30px #7c1bd214;
}
.r-job::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--accent-purple);
}
.r-job-current::before {
  background: var(--accent-purple);
  box-shadow: 0 0 0 6px #7c1bd220;
  animation: r-pulse 2.4s ease-in-out infinite;
}
.r-job-current {
  border-color: var(--accent-purple-30);
  background: linear-gradient(160deg, #f6eefd 0%, var(--background) 45%);
}

.r-job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.r-job-title {
  font-size: 20px;
  font-weight: 600;
}
.r-job-company {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-purple);
}
.r-job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
  color: var(--Secondary);
  white-space: nowrap;
  text-align: right;
}
.r-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--background);
  background: var(--accent-purple);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.r-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.r-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--Secondary);
}
.r-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--pink-purple), var(--accent-purple));
}
.r-bullets strong {
  color: var(--primary);
  font-weight: 600;
}

.r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.r-tags span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--dark-blue-10);
  color: var(--Secondary);
}

/* ---------- Sidebar ---------- */

.r-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.r-card {
  padding: 28px;
  border: 1px solid var(--grey100);
  border-radius: 14px;
  background: var(--background);
}

.r-skill-group + .r-skill-group {
  margin-top: 22px;
}
.r-skill-group h3,
.r-projects h3,
.r-edu h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.r-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.r-chips span {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--grey100);
  border-radius: 20px;
  color: var(--Secondary);
  transition: border-color 0.25s, color 0.25s;
}
.r-chips span:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.r-chips-accent span {
  border-color: var(--accent-purple-30);
  background: #f9f3fe;
  color: #5b1499;
}

.r-projects {
  list-style: none;
}
.r-projects li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--grey100);
}
.r-projects li:first-child {
  padding-top: 0;
}
.r-projects li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.r-projects h3 {
  margin-bottom: 4px;
  color: var(--accent-purple);
}
.r-projects p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--Secondary);
}

.r-edu + .r-edu {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--grey100);
}
.r-edu h3 {
  margin-bottom: 2px;
}
.r-edu-school {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-purple);
}
.r-edu-meta {
  margin-top: 2px;
  font-size: 14px;
  color: var(--Secondary);
}

/* ---------- CTA + footer ---------- */

.r-cta {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.r-cta::before,
.r-cta::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--background), var(--pink-purple), var(--background));
}
.r-cta::before {
  top: 0;
}
.r-cta::after {
  bottom: 0;
}
.r-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.r-back {
  color: var(--background);
  transition: color 0.3s;
}
.r-back:hover {
  color: var(--pink-purple);
}

/* ---------- Inline links ---------- */

a.r-job-company {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
a.r-job-company:hover {
  border-color: var(--accent-purple);
}
.r-bullets a {
  color: var(--accent-purple);
  border-bottom: 1px solid var(--accent-purple-30);
  transition: border-color 0.3s;
}
.r-bullets a:hover {
  border-color: var(--accent-purple);
}
.r-projects h3 a {
  color: var(--accent-purple);
}
.r-projects h3 a::after {
  content: " \2197";
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.r-projects h3 a:hover::after {
  opacity: 1;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes r-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes r-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px #7c1bd226;
  }
  50% {
    box-shadow: 0 0 0 9px #7c1bd208;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .r-hero-inner {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .r-job-current::before {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1150px) {
  .r-hero {
    padding-top: 130px;
  }
  .resume-page .logo-left {
    color: var(--primary);
  }
}

@media (max-width: 991px) {
  .r-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .r-photo {
    grid-column: 1;
    width: 168px;
    padding: 4px;
  }
  .r-photo img {
    border-width: 4px;
  }
  .r-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .r-name {
    font-size: 64px;
  }
  .r-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .r-stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .r-hero {
    padding: 110px 0 40px;
  }
  .r-name {
    font-size: 46px;
  }
  .r-role {
    font-size: 17px;
  }
  .r-role span:not(:last-child)::after {
    margin: 0 9px 3px;
  }
  .r-stat {
    padding: 0 14px;
  }
  .r-stat-num {
    font-size: 34px;
  }
  .r-grid {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .r-timeline {
    padding-left: 22px;
  }
  .r-timeline::before {
    left: 2px;
  }
  .r-job {
    padding: 20px 18px;
  }
  .r-job::before {
    left: -26px;
  }
  .r-job-head {
    flex-direction: column;
    gap: 8px;
  }
  .r-job-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    text-align: left;
  }
  .r-badge {
    margin-bottom: 0;
  }
  .r-card {
    padding: 22px 20px;
  }
  .r-cta .h1 {
    font-size: 28px;
  }
  .r-actions .btn,
  .r-cta-btns .btn {
    font-size: 16px;
  }
}

/* ---------- Print: clean one-column résumé ---------- */

@media print {
  .nav-wrapper,
  .r-glow,
  .r-actions,
  .r-cta,
  footer,
  .r-tags {
    display: none !important;
  }
  .reveal,
  .r-hero-inner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .container {
    width: 100% !important;
    padding: 0 !important;
  }
  .r-hero {
    padding: 0 0 16px;
  }
  .r-name {
    font-size: 40px;
  }
  .r-photo {
    width: 120px;
    box-shadow: none;
  }
  .r-stats {
    padding: 12px 0;
  }
  .r-grid {
    padding: 24px 0 0;
    gap: 28px;
  }
  .r-job,
  .r-card {
    break-inside: avoid;
    box-shadow: none;
    padding: 12px 0;
    border: none;
    background: none;
  }
  .r-stat-num {
    color: var(--accent-purple);
    background: none;
  }
}
