.timeline-section {
  width: 100%;
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(180deg, #0d1117, #2e2520, #26303a, #0d1117);
  background-size: 300% 300%;
  animation: sectionGradient 4s ease infinite;
}

@keyframes sectionGradient {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}



@keyframes sectionGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.timeline-section h1 {
  font-size: 2.5rem;
  margin-bottom: 100px;
  color: #58a6ff;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #21262d;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 60px 20px;
  position: relative;
  min-height: auto;
  width: 50%;
  display: block;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: linear-gradient(135deg, #1b1f24, #22272f, #2a313c, #1b1f24);
  background-size: 400% 400%;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(88,166,255,0.2);
  color: #c9d1d9;
  max-width: 90%;
  display: inline-block;
  word-wrap: break-word;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: timelineGradient 6s ease infinite;
}

.timeline-content:hover {
  box-shadow: 0 8px 20px rgba(88,166,255,0.3);
}

@keyframes timelineGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.timeline-number {
  position: absolute;
  top: 30px;
  width: 45px;
  height: 45px;
  background: #58a6ff;
  color: #0d1117;
  border-radius: 50%;
  line-height: 45px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
}

.timeline-item.left .timeline-number {
  right: -60px;
}

.timeline-item.right .timeline-number {
  left: -60px;
}

.timeline-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.timeline-item.left .timeline-inner {
  flex-direction: row-reverse;
}

.timeline-img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.timeline-text {
  max-width: calc(100% - 140px);
}
