/* HEADER */

.timeline-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 15px 45px;
}

.timeline-header small {
  color: #00eaff;
  font-size: 10px;
  letter-spacing: 4px;
}

.timeline-header h1 {
  font-size: clamp(32px, 5vw, 55px);
  letter-spacing: 4px;
  margin: 15px 0;
}

.timeline-header h1 span {
  color: #00eaff;
  text-shadow: 0 0 20px #00eaff;
}

.timeline-header p {
  color: #888;
  font-size: 13px;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid #00eaff55;
  border-radius: 30px;
  color: #00eaff;
  font-size: 9px;
  letter-spacing: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6dffae;
  box-shadow: 0 0 12px #6dffae;
  animation: pulse 1.5s infinite;
}

/* TIMELINE */

.timeline-container {
  position: relative;
  z-index: 1;
  width: min(750px, 92%);
  margin: auto;
  padding: 15px 0 60px;
}

.timeline-line {
  position: absolute;
  left: 42px;
  top: 30px;
  bottom: 70px;
  width: 2px;

  background: linear-gradient(
    to bottom,
    transparent,
    #00eaff,
    #a855f7,
    #ff35cf,
    transparent
  );

  box-shadow: 0 0 12px #00eaff88;
}

/* TIMELINE ROW */

.timeline-item {
  position: relative;
  width: 100%;
  padding: 12px 0 12px 0;

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* DOT */

.timeline-dot {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);

  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: #00eaff;
  border: 3px solid #03040a;

  box-shadow:
    0 0 10px #00eaff,
    0 0 25px #00eaff;

  z-index: 3;
}

/* ROW LAYOUT */

.event-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 75px;
}

/* CIRCLE IMAGE */

.event-image {
  position: relative;
  width: 90px;
  height: 90px;
  padding: 4px;

  flex-shrink: 0;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #00eaff,
    #7b5cff,
    #ff35cf
  );

  box-shadow:
    0 0 15px #00eaff77,
    0 0 30px #7b5cff33;

  transition: .4s;
}

.event-image::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #00eaff66;
  border-radius: 50%;
  animation: orbitGlow 4s linear infinite;
}

.event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #03040a;
}

/* HOVER */

.event-wrapper:hover .event-image {
  transform: scale(1.08);
  box-shadow:
    0 0 20px #00eaff,
    0 0 40px #a855f7;
}

/* INFORMATION CARD */

.timeline-card {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;

  background: rgba(8, 13, 25, .93);
  border: 1px solid #00eaff44;
  border-radius: 12px;

  backdrop-filter: blur(12px);

  transition: .35s;
}

.timeline-card:hover {
  transform: translateX(5px);
  border-color: #00eaff;

  box-shadow:
    0 0 18px #00eaff33,
    inset 0 0 15px #00eaff08;
}

/* YEAR */

.timeline-card .year {
  display: inline-block;
  color: #00eaff;
  font-size: 25px;
  font-weight: bold;
  margin-right: 10px;
  text-shadow: 0 0 12px #00eaff88;
}

/* CATEGORY */

.timeline-card small {
  color: #a855f7;
  font-size: 9px;
  letter-spacing: 2px;
}

/* TITLE */

.timeline-card h2 {
  color: white;
  font-size: 16px;
  margin: 8px 0;
}

/* DESCRIPTION */

.timeline-card p {
  color: #999;
  font-size: 11px;
  line-height: 1.7;
}

/* TAG */

.event-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;

  color: #00eaff;
  background: #00eaff10;
  border: 1px solid #00eaff44;
  border-radius: 20px;

  font-size: 9px;
  letter-spacing: 1px;
}

/* FOOTER */

.timeline-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 25px;
  color: #555;
  font-size: 9px;
  letter-spacing: 3px;
}

.timeline-footer p {
  color: #00eaff;
  margin-top: 10px;
}

/* ANIMATIONS */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

@keyframes orbitGlow {
  0% {
    transform: rotate(0deg);
    opacity: .5;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(360deg);
    opacity: .5;
  }
}

/* MOBILE */

@media (max-width: 550px) {

  .timeline-container {
    width: 96%;
  }

  .timeline-line {
    left: 18px;
  }

  .timeline-dot {
    left: 12px;
  }

  .event-wrapper {
    margin-left: 42px;
    gap: 12px;
  }

  .event-image {
    width: 65px;
    height: 65px;
  }

  .timeline-card {
    padding: 13px;
  }

  .timeline-card .year {
    font-size: 20px;
  }

  .timeline-card h2 {
    font-size: 13px;
  }

  .timeline-card p {
    font-size: 10px;
  }

  .event-tag {
    font-size: 8px;
  }
}
