/* public/future.css */

.future-app {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,30 50,50 T100,50" fill="none" stroke="rgba(77,208,225,0.05)" stroke-width="0.5"/></svg>') repeat-y center;
  background-size: 100% auto;
}

.future-header {
  padding: 80px 20px 40px;
  text-align: center;
}

.future-title {
  font-family: var(--font-display);
  color: var(--accent-future);
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(77,208,225,0.3);
}

.future-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(77,208,225,0.3) 10%, rgba(77,208,225,0.3) 90%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50%;
  padding-right: 40px;
  position: relative;
  opacity: 0.3;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
}

/* Node on the line */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%; right: -8px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-future);
  box-shadow: 0 0 10px rgba(77,208,225,0.5);
  transition: all 0.3s ease;
}

.timeline-item:nth-child(even)::after {
  right: auto;
  left: -8px;
}

/* Content card */
.timeline-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  position: relative;
  backdrop-filter: blur(5px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-desc {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* In-view states */
.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.is-visible::after {
  background: var(--accent-future);
  box-shadow: 0 0 20px rgba(77,208,225,0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px !important;
    padding-right: 20px !important;
    justify-content: flex-start;
  }
  .timeline-item::after {
    left: 22px !important;
    right: auto !important;
  }
  .timeline-content {
    max-width: 100%;
    text-align: left !important;
  }
}
