/**
 * About Page - Timeline Section Styles
 * Contains all styles for the timeline/history section
 */

/* Enhanced Timeline Section */
.about-timeline-section {
  padding: 120px 0;
  background: var(--about-bg-primary);
  position: relative;
  background: var(--bg-gradient);
}

.timeline-container,
.modern-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  max-width: 1200px;
  padding: 0 40px;
}

.modern-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 140px;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--about-bg-gradient);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item,
.modern-timeline-card {
  position: relative;
  padding-left: 200px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

.timeline-item.in-view,
.modern-timeline-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-content:first-child {
  opacity: 0;
  pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-content:last-child {
  opacity: 0;
  pointer-events: none;
}

.timeline-year,
.modern-year-badge {
  position: absolute;
  left: 0;
  top: 10px;
  background: var(--accent-gradient);
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  text-align: center;
  min-width: 100px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg-primary);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--about-bg-gradient);
  padding: 20px 30px;
  border-radius: 50px;
  font-size: 20px;
  box-shadow: var(--about-shadow-xl);
  position: relative;
  z-index: 2;
  min-width: 120px;
  border: 4px solid white;
}

.timeline-content,
.modern-timeline-content {
  background: var(--bg-primary);
  padding: 35px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition);
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--about-shadow-lg);
  border: 1px solid var(--about-border);
}

.modern-timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  background: white;
  border: 1px solid var(--about-border);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content:first-child::before {
  right: -15px;
}

.timeline-item:nth-child(even) .timeline-content:last-child::before {
  left: -15px;
}

.timeline-item:hover .timeline-content,
.modern-timeline-card:hover .modern-timeline-content {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--about-shadow-2xl);
}

.timeline-title {
  font-family: var(--serif-font);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--about-text-primary);
}

.timeline-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
  color: var(--about-text-secondary);
}
