/* =========================
   SELECTED EXPERIENCE TIMELINE
   About page only
========================= */

.about-page .selected-experience-timeline {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  padding: 90px 8vw;
  background: #f8f8f8;
}

/* vertical timeline line */
.about-page .selected-experience-timeline::before {
  content: "";
  position: absolute;
  left: calc(8vw + 17px);
  top: 96px;
  bottom: 96px;
  width: 2px;
  background: #d8d8d8;
}

/* each experience block */
.about-page .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 28px;
  margin-bottom: 70px;
  align-items: start;
}

.about-page .timeline-item:last-child {
  margin-bottom: 0;
}

/* logo replacing the timeline dot */
.about-page .timeline-logo {
  position: relative;
  z-index: 2;

  width: 34px;
  height: 34px;
  align-self: start;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f8f8f8;
  overflow: visible;

  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* small background patch to create breathing room above the line */
.about-page .timeline-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54px;
  height: 42px;
  background: #f8f8f8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.about-page .timeline-logo img {
  max-width: 42px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* wider logos like NASA JPL / SpaceX */
.about-page .timeline-logo.logo-wide img {
  max-width: 62px;
  max-height: 24px;
}

/* square logos like Snap */
.about-page .timeline-logo.logo-square img {
  max-width: 28px;
  max-height: 28px;
}

/* content area */
.about-page .timeline-content {
  width: 100%;
  padding-bottom: 8px;
}

/* company header */
.about-page .timeline-company {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.about-page .timeline-company h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: #111;
}

.about-page .timeline-company p {
  margin: 6px 0 0;
  color: #777;
  font-size: 0.95rem;
}

.about-page .timeline-company span {
  margin-top: 4px;
  color: #777;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* role block */
.about-page .timeline-role {
  padding: 22px 0;
  border-top: 1px solid #ddd;
}

.about-page .timeline-role:last-child {
  padding-bottom: 0;
}

/* role title and dates */
.about-page .timeline-role-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 12px;
}

.about-page .timeline-role-header h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #111;
}

.about-page .timeline-role-header span {
  color: #777;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* bullets */
.about-page .timeline-role ul {
  margin: 0;
  padding-left: 1.15rem;
}

.about-page .timeline-role li {
  margin-bottom: 9px;
  color: #555;
  line-height: 1.6;
}

.about-page .timeline-role li:last-child {
  margin-bottom: 0;
}

/* optional button inside timeline */
.about-page .timeline-button {
  margin-top: 22px;
}

/* =========================
   RESUME PAGE
========================= */

.resume-page .resume-title-block {
  min-height: 30vh;
}

.resume-page .resume-actions {
  margin-top: 26px;
}

.resume-page .resume-actions a {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #ff6b00;
  border-radius: 999px;
  color: #fff;
  background: #ff6b00;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.resume-page .resume-actions a:hover {
  transform: translateY(-2px);
  background: #ff5a00;
  border-color: #ff5a00;
}

.resume-page .selected-experience-timeline {
  padding-top: 64px;
}

.resume-page .selected-experience-timeline::before {
  top: 152px;
}

.resume-section-heading {
  margin: 0 0 48px 62px;
}

.resume-section-heading h2 {
  margin: 0;
  color: #111;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.resume-details {
  max-width: 1050px;
  margin: 0 auto 90px;
  padding: 0 8vw;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.resume-details article {
  padding: 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.resume-details h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: 1.25rem;
}

.resume-details ul {
  margin: 0;
  padding-left: 1.15rem;
}

.resume-details li {
  margin-bottom: 9px;
  color: #555;
  line-height: 1.55;
}

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
  .about-page .selected-experience-timeline {
    padding: 70px 6vw;
  }

  .about-page .selected-experience-timeline::before {
    left: calc(6vw + 9px);
    top: 76px;
    bottom: 76px;
  }

  .about-page .timeline-item {
    grid-template-columns: 18px 1fr;
    gap: 18px;
    margin-bottom: 58px;
    align-items: start;
  }

  .about-page .timeline-logo {
    width: 18px;
    height: 26px;
    align-self: start;
  }

  .about-page .timeline-logo::before {
    width: 42px;
    height: 34px;
  }

  .about-page .timeline-logo img {
    max-width: 32px;
    max-height: 22px;
  }

  .about-page .timeline-logo.logo-wide img {
    max-width: 44px;
    max-height: 20px;
  }

  .about-page .timeline-logo.logo-square img {
    max-width: 22px;
    max-height: 22px;
  }

  .about-page .timeline-company,
  .about-page .timeline-role-header {
    display: block;
  }

  .about-page .timeline-company span,
  .about-page .timeline-role-header span {
    display: block;
    margin-top: 5px;
  }

  .about-page .timeline-role {
    padding: 20px 0;
  }

  .resume-page .selected-experience-timeline::before {
    top: 132px;
  }

  .resume-section-heading {
    margin: 0 0 40px 36px;
  }

  .resume-details {
    grid-template-columns: 1fr;
    padding: 0 6vw;
    margin-bottom: 70px;
  }
}
