/**
 * PHASE 9: VISION PAGE RESTORATION
 * ALL CAPS gradient heading, timeline, scroll-linked reveals
 */

/* Vision Page Hero */
.vision-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 5, 5, 0.95) 100%);
}

.vision-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.vision-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #d4af37 0%, #8B0000 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.vision-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.vision-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(139, 0, 0, 0.9);
  border: 1px solid #8B0000;
  color: white;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
}

.vision-cta:hover {
  background: #8B0000;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(139, 0, 0, 0.4);
}

/* Gradient Animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.vision-title {
  background-size: 200% 200%;
}

/* Timeline Section */
.vision-timeline {
  position: relative;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Center Line - ALWAYS VISIBLE */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #8B0000, rgba(139, 0, 0, 0.4), #8B0000);
  opacity: 1;
  z-index: 0;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.timeline-item.in-view {
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

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

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8B0000;
  border: 3px solid rgba(212, 175, 55, 0.3);
  top: 24px;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item.in-view .timeline-dot {
  background: #d4af37;
  border-color: #8B0000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Timeline Content */
.timeline-content {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 0, 0, 0.5);
  transform: translateY(-4px);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Connector Line */
.timeline-connector {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(139, 0, 0, 0.2);
  top: -2rem;
  z-index: 0;
}

.timeline-item:first-child .timeline-connector {
  display: none;
}

.timeline-item.in-view .timeline-connector {
  animation: expandLine 0.6s ease-out forwards;
}

@keyframes expandLine {
  from {
    background: rgba(139, 0, 0, 0.2);
  }
  to {
    background: rgba(139, 0, 0, 0.6);
  }
}

/* Staggered Animation Delays */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(n+7) { animation-delay: 0.7s; }

@media (max-width: 768px) {
  .vision-hero {
    min-height: 70vh;
    padding: 4rem 1rem;
  }

  .vision-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .vision-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Mobile: Center line retained, single column layout */
  .timeline-line {
    left: 50%;
    width: 3px;
  }

  .timeline-items {
    gap: 3rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 1.5rem;
  }

  .timeline-connector {
    left: auto;
    right: auto;
    width: 100%;
  }
}

/* Tablet Layout */
@media (max-width: 1024px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: left;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-line {
    left: 8px;
  }
}

/* Scroll Reveal Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .vision-title,
  .timeline-item,
  .timeline-item:hover,
  .timeline-content:hover {
    animation: none;
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
  .timeline-line {
    width: 3px;
  }

  .timeline-dot {
    border-width: 4px;
  }

  .timeline-content {
    border-width: 2px;
  }
}

/* Focus Visible */
.vision-cta:focus-visible,
.timeline-content:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
/* =========================================================
   HORIZONTAL TIMELINE LAYOUT (PRODUCTION POLISH)
   ========================================================= */
.vision-timeline-horizontal {
  position: relative;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  overflow-x: auto;
}

.timeline-horizontal-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #8B0000, transparent, #8B0000);
  transform: translateY(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  min-width: max-content;
}

.timeline-item {
  flex: 0 0 auto;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.timeline-item.in-view {
  opacity: 1;
}

.timeline-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8B0000;
  border: 3px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.timeline-content {
  text-align: center;
}

@media (max-width: 1024px) {
  .vision-timeline-horizontal {
    padding: 3rem 1rem;
  }
  
  .timeline-items {
    gap: 2rem;
  }
  
  .timeline-item {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .timeline-items {
    flex-direction: column;
    min-width: auto;
  }
  
  .timeline-item {
    width: 100%;
  }
  
  .timeline-horizontal-line {
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}