/* =========================================
   Resume page — built on the shared tokens
   and the same container/section rhythm as
   the About page (css/Samaneh.css).
   ========================================= */

.resume-hero {
  padding-top: clamp(28px, 4vw, 48px);
  position: relative;
}

.resume-hero__rule {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-main);
  margin-bottom: var(--space-lg);
}

.resume-hero__panel {
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
}

.resume-hero__id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-md);
}

.resume-hero__mono {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.resume-hero__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
}

.resume-hero__intro {
  min-width: 0;
  flex: 1 1 auto;
}

.resume-hero__intro {
  max-width: 62ch;
}

.resume-hero__kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.resume-hero__name {
  margin: 0 0 4px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink-900);
}

.resume-hero__role {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--blue-deep);
}

.resume-hero__summary {
  margin: 0;
  color: var(--ink-700);
}

.resume-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  .resume-hero__actions {
    padding-left: 28px;
    border-left: 1px solid var(--line-soft);
  }
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-600);
}

.resume-contact li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.resume-contact__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--ink-500);
}

.resume-contact a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--motion-fast, 0.18s) var(--ease-standard, ease);
}

.resume-contact a:hover {
  color: var(--coral);
}

/* -------- Section headings -------- */
.resume-section__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: var(--space-lg);
}

.resume-section__num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  opacity: 0.55;
}

/* -------- Experience: a restrained left-rail timeline -------- */
.resume-exp {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.resume-exp__item {
  position: relative;
  padding-bottom: var(--space-lg);
  padding-left: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.resume-exp__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-exp__item::before {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 14px;
  bottom: 0;
  width: 1.5px;
  background: var(--line-med);
}

.resume-exp__item:last-child::before {
  display: none;
}

.resume-exp__marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--surface-soft, #fafafa);
}

.resume-exp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 4px;
}

.resume-exp__role {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-900);
}

.resume-exp__dates {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(57, 143, 186, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
}

.resume-exp__company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--blue-deep);
}

.resume-exp__company-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--blue-deep);
  opacity: 0.8;
}

.resume-exp__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-exp__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.resume-exp__list li:last-child {
  margin-bottom: 0;
}

.resume-exp__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad-main);
}

/* -------- Skills -------- */
.resume-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.resume-skills__group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.resume-skills__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-skills__group li {
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--ink-700);
  line-height: 1.3;
}

/* -------- Education -------- */
.resume-edu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.resume-edu__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: var(--space-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.resume-edu__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(57, 143, 186, 0.08);
  color: var(--blue-deep);
}

.resume-edu__icon svg {
  width: 18px;
  height: 18px;
}

.resume-edu__item h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  color: var(--ink-900);
}

.resume-edu__meta {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-500);
}

.resume-edu__program {
  margin: 0;
  color: var(--ink-700);
}

/* -------- Closing CTA -------- */
.resume-cta {
  text-align: center;
}

.resume-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .resume-hero__top {
    flex-direction: column;
  }

  .resume-hero__actions {
    width: 100%;
  }

  .resume-hero__actions .action-link {
    width: 100%;
  }

  .resume-hero__id {
    flex-wrap: wrap;
  }
}

/* -------- Overall rhythm: a resume reads as a
   reference document, so sections sit closer
   together than the rest of the site. -------- */
#main-content > section {
  padding-block: clamp(28px, 4vw, 40px);
}

.mw-section.resume-work {
  padding-block: clamp(28px, 4vw, 40px);
}

@media (prefers-reduced-motion: reduce) {
  .resume-exp__item,
  .resume-edu__item,
  .resume-hero__mono {
    transition: none !important;
  }
}
