* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #141414;
  color: #fff;
  padding: 50px 20px;
}

.timeline-title {
  text-align: center;
  color: #e50914;
  font-size: 2.8rem;
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

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

.timeline-entry {
  position: relative;
  width: 50%;
  padding: 30px 40px;
}

.timeline-entry::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: #e50914;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px #141414;
}

.timeline-entry.left {
  left: 0;
  transition: transform ease 0.3s ;
  text-align: right;
}

.timeline-entry.left::after {
  right: -10px;
}

.timeline-entry.right {
  left: 50%;
  text-align: left;
}

.timeline-entry.right::after {
  left: -10px;
}

.content-box {
  background-color: #1f1f1f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.content-box h2 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 5px;
}

.content-box h3 {
  font-size: 1rem;
  color: #e50914;
  margin-bottom: 10px;
}

.content-box h3 span {
  font-size: 0.85rem;
  font-weight: 300;
  color: #aaa;
}

.content-box ul {
  padding-left: 20px;
}

.content-box li {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Animation */
.timeline-entry.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.timeline-entry.show {
  opacity: 1;
  transform: translateY(0);
}



.timeline-entry.left:hover{
transform: scale(1.1);
}

.timeline-entry.right:hover{
transform:  scale(1.1);
}


@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-entry {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    text-align: left !important;
  }

  .timeline-entry::after {
    left: 10px;
    right: auto;
  }

  .timeline-entry.right {
    left: 0;
  }

  .timeline-entry.left {
    left: 0;
  }
}
