/* Timeline Navigation */
.timeline-nav {
  margin-bottom: 2rem;
}

.timeline-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.timeline-btn:hover,
.timeline-btn.active {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 210, 110, 0.3);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-color), rgba(24, 210, 110, 0.3));
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin: 30px 0;
  opacity: 1;
  transition: all 0.5s ease;
}

.timeline-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  margin: 0;
  height: 0;
  overflow: hidden;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-left: 50%;
  padding-left: 30px;
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-right: 50%;
  padding-right: 30px;
  text-align: right;
}

/* Timeline Markers */
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  font-size: 20px;
  z-index: 2;
  transition: all 0.3s ease;
}

.activity-marker {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid var(--background-color);
  color: white;
}

.event-marker {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: 4px solid var(--background-color);
  color: white;
}

.timeline-marker:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(24, 210, 110, 0.5);
}

/* Timeline Cards */
.timeline-card {
  background: var(--surface-color);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(24, 210, 110, 0.1);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(24, 210, 110, 0.2);
  border-color: var(--accent-color);
}

.timeline-date {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-card h4 {
  color: var(--heading-color);
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.timeline-category {
  display: inline-block;
  background: rgba(24, 210, 110, 0.1);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid rgba(24, 210, 110, 0.3);
}

.timeline-card p {
  color: var(--default-color);
  margin-bottom: 8px;
  line-height: 1.6;
}

.farewell-message {
  color: #ff6b6b !important;
  font-weight: 600;
  font-style: italic;
}

.text-muted {
  color: rgba(250, 250, 250, 0.6) !important;
  font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .timeline-item:nth-child(even) .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card {
    margin-left: 70px;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-card {
    padding: 20px;
  }

  .timeline-btn {
    padding: 6px 15px;
    font-size: 14px;
    margin: 2px;
  }
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease-out;
}
