/* Container Scaffolding */
.roadmap-container {
  position: relative;
  padding: 10px 0 10px 20px;
  font-family: 'Inter', system-ui, sans-serif; /* Cleaner sans-serif font */
}

/* The Vertical Line - "Liquid" Animation */
.roadmap-line {
  position: absolute;
  left: 28px; /* Align with dots center */
  top: 15px;
  bottom: 0;
  width: 2px;
  /* subtle dark track */
  background: rgba(255, 255, 255, 0.05); 
  z-index: 0;
  overflow: hidden;
}

/* The Flowing Light inside the line */
.roadmap-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* A long gradient that moves down smoothly */
  background: linear-gradient(
    to bottom,
    transparent 0%, 
    #1dcd9f 50%, 
    transparent 100%
  );
  background-size: 100% 200%;
  animation: liquidFlow 4s linear infinite;
}

@keyframes liquidFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Roadmap Items - Layout */
.roadmap-item {
  position: relative;
  margin-bottom: 35px;
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover: subtle lift */
.roadmap-item:hover {
  transform: translateX(4px);
}

/* The Dot Marker */
.roadmap-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #444;
  z-index: 2;
  transition: all 0.3s ease;
}

/* ACTIVE STATE Styling */
.roadmap-item.active .roadmap-marker {
  background: #1dcd9f;
  border-color: #1dcd9f;
  box-shadow: 0 0 0 4px rgba(29, 205, 159, 0.2); /* Soft static ring */
}

/* The "Ripple" Animation for Active Item */
.roadmap-item.active .roadmap-marker::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 1px solid #1dcd9f;
  opacity: 0;
  animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Text Typography */
.roadmap-content h4 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Mute inactive titles */
.roadmap-item:not(.active) h4 {
  color: #888;
}

.roadmap-content p {
  margin: 0;
  color: #aaa;
  font-size: 0.7rem;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #1dcd9f;
  font-weight: 700;
}
