/* ==========================================================================
   TRAJECTORY TIMELINE COMPONENT
   Used in: index.html, trajectory.html
   Note: Uses .section-header from titles.css for title
   ========================================================================== */

.trajectory {
  padding: 6rem 1.5rem;
}

.trajectory__timeline {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.trajectory__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(26, 43, 60, 0.1);
}

.trajectory__item {
  position: relative;
  padding-bottom: 4rem;
  margin-left: 2rem;
}

.trajectory__item:last-child {
  padding-bottom: 0;
}

.trajectory__dot {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-bg-light);
}

.trajectory__item:nth-child(1) .trajectory__dot {
  background-color: var(--color-primary);
}

.trajectory__item:not(:nth-child(1)) .trajectory__dot {
  background-color: var(--color-primary-40);
}

.trajectory__period {
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(26, 43, 60, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.5rem;
}

.trajectory__content {
  /* Container for content */
}

.trajectory__company {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.trajectory__role {
  font-weight: 700;
  font-size: 0.875rem;
  color: rgba(26, 43, 60, 0.6);
  margin-bottom: 0.75rem;
}

.trajectory__description {
  font-size: 0.875rem;
  color: rgba(26, 43, 60, 0.7);
  line-height: 1.625;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trajectory__achievements {
  margin-top: 1.5rem;
}

.trajectory__achievements-title {
  font-weight: 700;
  color: rgba(26, 43, 60, 0.8);
  margin-bottom: 0.5rem;
}

.trajectory__achievements-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .trajectory__timeline::before {
    left: 50%;
    transform: translateX(-0.5px);
  }
  
  .trajectory__item {
    margin-left: 0;
  }
  
  .trajectory__item--right {
    width: 50%;
    padding-right: 3rem;
    text-align: right;
  }
  
  .trajectory__item--left {
    margin-left: 50%;
    width: 50%;
    padding-left: 3rem;
    text-align: left;
  }
  
  .trajectory__item--right .trajectory__dot {
    left: auto;
    right: -0.3125rem;
  }
  
  .trajectory__item--left .trajectory__dot {
    left: -0.3125rem;
  }
  
  .trajectory__company {
    font-size: 1.5rem;
  }
}
