/* ========================================
   ABOUT SECTION STYLES
======================================== */

.about {
  position: relative;
  padding: 5rem 0 3.75rem 0;
  background: var(--background-color);
  transition: background-color 0.2s ease, color 0.18s ease;
}

.about .timeline-item.clickable .timeline-content {
  cursor: pointer;
}

.about .timeline-item.clickable:hover .timeline-content {
  transform: translateX(0.25rem);
}

.about .timeline-item.clickable:hover .timeline-title {
  color: var(--text-color);
  text-decoration: underline;
}

.about .achievement-item.clickable {
  cursor: pointer;
}

.about .achievement-item.clickable:hover {
  transform: translateX(0.25rem);
}

.about .achievement-item.clickable:hover .achievement-title {
  color: var(--text-color);
  text-decoration: underline;
}

.about::before {
  content: '';
  position: absolute;
  top: -3.75rem;
  left: 0;
  right: 0;
  bottom: -3.75rem;
  background: radial-gradient(ellipse 120% 100% at center,
      var(--about-bg-primary) 0%,
      var(--about-bg-secondary) 40%,
      var(--about-bg-tertiary) 70%,
      transparent 100%);
  z-index: -2;
  border-radius: 3.125rem;
  filter: blur(1.25rem);
}

.about::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      var(--about-overlay-primary),
      var(--about-overlay-secondary),
      var(--about-overlay-tertiary));
  border-radius: 1.5rem;
  z-index: -1;
}

.subsection-title {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.timeline-section {
  margin-bottom: 3.75rem;
}

.timeline-item {
  margin-bottom: 2rem;
}

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

.timeline-content {
  padding: 0;
  margin-left: 0;
  margin-bottom: 2rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-header {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.timeline-header .timeline-title {
  font-size: var(--font-size-h4);
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  position: relative;
  overflow: visible;
}

.timeline-title .hci-note {
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap;
  vertical-align: baseline;
  margin-left: 0.1rem;
}

.timeline-title .hci-highlight {
  position: relative;
  top: -0.58em;
  margin-left: 0;
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1em;
  line-height: 1;
  color: #1e3a8a;
  transform: rotate(-6deg);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-title .hci-arrow {
  display: inline-flex;
  width: 2.8rem;
  height: 1.2rem;
  margin: 0 0.2rem 0 0.15rem;
  color: #1e3a8a;
  transform: translateY(-0.24em) rotate(3deg);
  opacity: 0.98;
  flex-shrink: 0;
}

.timeline-title .hci-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.timeline-title .hci-arrow .hci-arrow-desktop-shape {
  display: block;
}

.timeline-title .hci-arrow .hci-arrow-mobile-shape {
  display: none;
}

[data-theme="dark"] .timeline-title .hci-arrow,
[data-theme="dark"] .timeline-title .hci-highlight {
  color: #60a5fa;
}

.timeline-header .timeline-period {
  font-size: var(--font-size-small);
  color: var(--text-color);
  margin-left: 0;
  padding: 0;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-header .timeline-period::before {
  content: '- ';
  margin-right: 0.25rem;
}

.timeline-header .timeline-period:hover {
  color: var(--text-color);
}

.timeline-organization {
  font-size: var(--font-size-secondary);
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
}

.timeline-description {
  font-size: var(--font-size-secondary);
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.achievements-section {
  margin-bottom: 0;
}

.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.achievement-item {
  padding: 1rem 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 0.0625rem solid var(--border-color);
}

.achievement-item:last-child {
  border-bottom: none;
}



.achievement-item .achievement-content {
  width: 100%;
}

.achievement-item .achievement-content .achievement-title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.achievement-item .achievement-content .achievement-issuer {
  font-size: var(--font-size-secondary);
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}

.achievement-item .achievement-content .achievement-year {
  font-size: var(--font-size-small);
  color: var(--text-color);
  float: right;
  margin-top: -1.5rem;
  padding: 0.25rem 0.75rem;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-item .achievement-content .achievement-year:hover {
  color: var(--text-color);
}

[data-theme="dark"] .about {
  --about-bg-primary: transparent;
  --about-bg-secondary: transparent;
  --about-bg-tertiary: transparent;
  --about-overlay-primary: transparent;
  --about-overlay-secondary: transparent;
  --about-overlay-tertiary: transparent;
}

/* Grouped Timeline Styles */

.timeline-roles {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
  margin-left: 0;
}

.role-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 0;
}

.role-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1rem;
  width: 1rem;
  height: 1px;
  background-color: var(--border-color);
  transition: background-color 0.3s ease;
}

.role-item:last-child {
  margin-bottom: 0;
}



.timeline-header.grouped-header .timeline-title {
  font-size: var(--font-size-h4);
  margin-bottom: 0.25rem;
}



.timeline-header.grouped-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.timeline-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.timeline-link:hover {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.timeline-header.grouped-header .timeline-period::before {
  content: none;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-title {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.role-period {
  font-size: var(--font-size-small);
  color: var(--text-color);
}

.role-description {
  font-size: var(--font-size-secondary);
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

@media (max-width: 768px) {
  .role-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}