/* Modern Timeline Styles */
.modern-timeline {
  position: relative;
  padding: 50px 0;
  margin: 0;
  list-style: none;
}

.modern-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #e9ecef;
}

.modern-timeline-item {
  position: relative;
  margin-bottom: 50px;
}

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

.modern-timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.modern-timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-timeline-item:nth-child(odd) .modern-timeline-content {
  float: left;
  text-align: left;
}

.modern-timeline-item:nth-child(even) .modern-timeline-content {
  float: right;
}

.modern-timeline-content:hover {
  transform: translateY(-5px);
}

.modern-timeline-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: #186aff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  z-index: 1;
}

.modern-timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #186aff, #7239ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-timeline-body {
  font-size: 1rem;
  line-height: 1.6;
}

.modern-timeline-item .modern-timeline-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 768px) {
  .modern-timeline::before {
    left: 25px;
  }
  .modern-timeline-item:nth-child(odd) .modern-timeline-content,
  .modern-timeline-item:nth-child(even) .modern-timeline-content {
    width: calc(100% - 80px);
    float: none;
    margin-left: 80px;
    padding: 20px;
  }
  .modern-timeline-icon {
    left: 25px;
  }
}
