/* Styling on About page */

/* Clove styling */

.intro-wrapper {
  position: relative;
}

.clove-peek {
  position: absolute;
  max-width: 150px;
  height: auto;
  top: -35px;
  right: 100px;
  z-index: 1; /* BELOW the box */
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.intro-box {
  position: relative;
  z-index: 2; /* ABOVE Clove */
}

/* Timeline styling */

.timeline {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  width: 60%;
  margin: 40px auto 0;
  z-index: 10; /* ABOVE the intro box */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(var(--color-text-rgb), 0.6);
  transform: translateY(-50%);
}

.milestone {
  position: relative;
  text-align: center;
}

.marker {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--color-ui);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marker i {
  font-size: 18px;
  color: var(--color-surface);
}

.connector {
  position: absolute;
  width: 1px;
  height: 10px;
  background-color: var(--color-text);
  display: none;
  left: 45%;
  transform: translateX(-45%);
}

.box {
  background-color: var(--color-surface);
  border: 1px dotted var(--color-text);
  padding: 8px 6px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  width: 150px;
  min-height: 50px;
  height: auto;
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  line-height: 1.2;
  text-align: center;
}

.milestone.active .box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.milestone.active .connector {
  display: block;
  top: -10px;
}

/* Optional active marker highlight */
.milestone.active .marker {
    background-color: rgba(var(--color-brand-rgb), 0.8);
}

.milestone p {
  margin: 0;
}

.timeline-caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  font-family: 'Nunito', serif;
  margin-top: 15px;
  font-style: italic;
  margin-bottom: 50px;
}
