/* Combine common transition properties */
.timeline-item .timeline-dot,
.timeline-content,
.circular-thumbnail,
.overlay {
  transition: all 0.3s ease;
}

/* Combine perspective and transform-style properties */
.timeline-content,
.content-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Merge scrollbar hiding styles */
.mobile-timeline,
.desktop-timeline {
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100vh;
  overflow-y: auto;
}

.mobile-timeline::-webkit-scrollbar,
.desktop-timeline::-webkit-scrollbar {
  display: none;
}

/* Base thumbnail styles */
.circular-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(0.8);
}

/* Timeline dot states */
.timeline-dot {
  border: 1px solid rgb(189 203 225);
  background-color: transparent;
}

.timeline-dot.dot-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.8);
  }
  100% {
    transform: scale(1);
  }
}

.circular-thumbnail {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.timeline-item.active .circular-thumbnail {
  filter: grayscale(0%);
}

.timeline-dot.scale-125,
.timeline-dot.active {
  background-color: #ff6b00;
  border-color: #ff6b00;
}

/* Timeline item states */
.timeline-item.active .text-gray-600 {
  color: white;
}

.timeline-item.active .circular-thumbnail {
  transform: scale(1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border: #ffffff70 3px solid;
}

.timeline-item:hover .circular-thumbnail {
  transform: scale(0.9);
}

.timeline-item.active:hover .circular-thumbnail {
  transform: scale(1.1);
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Gradient fade effects */
div[class*="w-1/3"]::before,
div[class*="w-1/3"]::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 10;
}

div[class*="w-1/3"]::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    transparent 100%
  );
}

div[class*="w-1/3"]::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

/* Content area styles */
.timeline-content {
  /* transform: perspective(1000px) rotateY(7deg) rotateX(4deg) rotateZ(0deg) !important; */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  background-color: rgba(36, 36, 36, 0.9) !important;
}

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

/* Mobile styles */
@media (max-width: 768px) {
  .desktop-timeline {
    display: none;
  }

  .mobile-timeline-container {
    display: block;
    padding: 1rem;
  }

  #content-area-mobile {
    width: 90vw;
    margin: 0 auto;
    padding: 1rem;
    transform: none !important;
  }

  .timeline-content {
    transform: none !important;
    padding: 1rem;
  }

  .circular-thumbnail {
    width: 60px;
    height: 60px;
  }

  .mobile-timeline {
    gap: 1rem;
  }
}

@media (min-width: 769px) {
  .mobile-timeline-container {
    display: none;
  }
}
