/* ===== ABOUT PAGE ===== */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* Intro section */
.intro {
  margin-bottom: 72px;
  padding: 0;
}

.intro h2 {
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #bb86fc);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(187, 134, 252, 0.15), transparent);
}

.intro p {
  font-size: 1rem;
  color: #7a7a9a;
  line-height: 1.8;
  max-width: 640px;
}

.intro strong {
  color: var(--accent, #bb86fc);
  font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
  width: 100%;
}

.outer {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Center vertical line */
.outer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(187, 134, 252, 0.3) 5%,
    rgba(187, 134, 252, 0.3) 95%,
    transparent
  );
  transform: translateX(-50%);
}

/* ===== CARD ===== */
.card {
  position: relative;
  width: 47%;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}
.card:nth-child(2) {
  animation-delay: 0.1s;
}
.card:nth-child(3) {
  animation-delay: 0.15s;
}
.card:nth-child(4) {
  animation-delay: 0.2s;
}
.card:nth-child(5) {
  animation-delay: 0.25s;
}
.card:nth-child(6) {
  animation-delay: 0.3s;
}
.card:nth-child(7) {
  animation-delay: 0.35s;
}
.card:nth-child(8) {
  animation-delay: 0.4s;
}

/* Odd: left side */
.card:nth-child(odd) {
  align-self: flex-start;
  margin-right: auto;
}

/* Even: right side */
.card:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
}

/* Connector dot in center */
.card::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--accent, #bb86fc);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent, #bb86fc);
  border: 2px solid var(--bg, #0a0a0f);
}

.card:nth-child(odd)::after {
  right: -28px;
}

.card:nth-child(even)::after {
  left: -28px;
}

/* Horizontal connector line */
.card::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 24px;
  height: 1px;
  background: rgba(187, 134, 252, 0.4);
}

.card:nth-child(odd)::before {
  right: -24px;
}

.card:nth-child(even)::before {
  left: -24px;
}

/* ===== INFO BOX ===== */
.info {
  background: #10101a;
  border: 1px solid rgba(187, 134, 252, 0.1);
  border-radius: 12px;
  padding: 20px 22px;
  transition:
    border-color 0.25s,
    background 0.25s;
  position: relative;
  overflow: hidden;
}

.info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(187, 134, 252, 0.4),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.info:hover {
  border-color: rgba(187, 134, 252, 0.25);
  background: #16162a;
}

.info:hover::before {
  opacity: 1;
}

/* ===== TITLE ===== */
.title {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, #bb86fc);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-top: 2px;
  line-height: 1.4;
}

.info p {
  font-size: 0.875rem;
  color: #7a7a9a;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  main {
    padding: 60px 20px;
  }

  .outer::before {
    left: 10px;
  }

  .card {
    width: 100%;
    padding-left: 36px;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card::after {
    left: 5px !important;
    right: auto !important;
  }

  .card::before {
    left: 15px !important;
    right: auto !important;
    width: 16px;
  }

  .title {
    text-align: left !important;
  }
}
