@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.2s;
}

.delay-200 {
  animation-delay: 0.4s;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Timeline adjustments for mobile */
@media (max-width: 767px) {

  .right-timeline,
  .left-timeline {
    padding-left: 30px;
    position: relative;
  }

  .right-timeline::before,
  .left-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: calc(100% - 20px);
    width: 2px;
    background: #8b5cf6;
  }

  .right-timeline>div:first-child,
  .left-timeline>div:first-child {
    margin-bottom: 20px;
  }
}

/* 3D card effect */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(10px);
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
  transform: translateZ(-1px);
  border-radius: inherit;
  z-index: -1;
}