@import "main.css";
@import "team-grid.css";
@import "contact.css";

/* --- MISSION TIMELINE HORIZONTAL (AWWWARDS STYLE) --- */
.timeline-wrapper {
  height: 400vh; /* Determines scroll duration */
  position: relative;
  background: #ffffff; /* Light Mode Background */
}

.timeline-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Removed mask-image fading per USER request */
}


.timeline-track {
  display: flex;
  padding: 0 50vw 0 100vw; /* Start at 100vw (right edge) and end with 50vw buffer */
  height: 100%;
  align-items: center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.timeline-section {
  display: flex;
  flex-direction: row; /* Horizontal cards within a section */
  align-items: center; /* Center cards vertically */
  height: 100%;
  position: relative;
}

.timeline-bg-year {
  display: none; /* Removed year from BG */
}

.timeline-card {
  flex: 0 0 450px; /* Specific card width for density */
  margin: 0 30px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  /* Push everything up to clear the bottom scale */
  margin-bottom: 120px;
  opacity: 0; /* Managed via JS for center-focus visibility */
}

.timeline-card:hover {
  transform: translateY(-10px);
}

.timeline-image-card {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 4px;
}

.timeline-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.timeline-image-card:hover .timeline-asset {
  filter: grayscale(0%);
}

.timeline-text-card {
  background: #1a1a1a; /* Industrial Dark Card for contrast */
  color: #fff;
  padding: 40px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.timeline-text-card .timeline-tag {
  color: var(--color-signal);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.timeline-text-card .timeline-header {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #fff;
}

.timeline-text-card .timeline-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aaa;
  font-family: var(--font-mono);
}

/* --- MISSION SCALE (BOTTOM NAV) --- */
.timeline-scale-container {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.timeline-scale-track {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.timeline-scale-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-signal);
  box-shadow: 0 0 10px rgba(var(--color-signal-rgb), 0.4);
}

.scale-cursor {
  position: absolute;
  top: -12px;
  left: 0%; /* Synced via JS */
  width: 60px;
  height: 24px;
  background: var(--color-signal);
  border-radius: 4px;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(var(--color-signal-rgb), 0.6);
  transition: left 0.1s ease-out;
  cursor: grab;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-cursor:active {
  cursor: grabbing;
}

.scale-cursor::after {
  content: "::";
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 900;
}

.scale-ticks {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 5vw;
}

.tick {
  width: 1px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.tick.year-marker {
  height: 15px;
  background: var(--color-signal);
  position: relative;
}

.tick.year-marker::after {
  content: attr(data-year);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.tick.year-marker.active {
  background: var(--color-signal);
  height: 20px;
}

.tick.year-marker.active::after {
  color: var(--color-signal);
  transform: translateX(-50%) scale(1.2); /* 0.2x bigger */
}

/* Kinetic Connector Line Removed per USER request */

/* --- FINAL REVELATION SECTION --- */
.final-revelation-section {
  height: 100vh;
  width: 100vw;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10vw;
  position: relative;
  z-index: 5;
}

.verse-container {
  text-align: center;
  max-width: 1200px;
}

.verse-sanskrit, .verse-transliteration {
  font-family: var(--font-heading);
  color: #000;
  text-align: center;
}

.verse-sanskrit {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 40px;
}

.verse-transliteration {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Word-by-Word Base State */
.reveal-word {
  display: inline-block;
  filter: blur(20px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
  margin-right: 0.25em;
}

/* Active Highlight for specific spans if they were manually added */
.accent-text .reveal-word {
  color: var(--color-signal);
}

.final-revelation-section.revealed .reveal-word {
  filter: blur(0px);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .verse-sanskrit { font-size: 3rem; }
  .verse-transliteration { font-size: 0.9rem; }
}

/* 
 * ═══════════════════════════════════════════
 * MANIFESTO SPECIFIC RESPONSIVE TIERS
 * ═══════════════════════════════════════════
 */

/* XS: MOBILE (Up to 480px) */
@media (max-width: 480px) {
  .timeline-card {
    flex: 0 0 320px;
    margin: 0 15px;
    margin-bottom: 15vh;
  }
  .timeline-text-card {
    padding: 25px;
    min-height: 350px;
  }
  .timeline-text-card .timeline-header {
    font-size: 1.5rem;
  }
  .verse-sanskrit {
    font-size: 2.2rem;
    padding: 0 20px;
  }
  .timeline-scale-container {
    bottom: 20px;
    width: 90vw;
  }
  .scale-ticks {
    padding: 0 2vw;
  }
}

/* ULTRA: 4K (1921px and up) */
@media (min-width: 1921px) {
  .timeline-card {
    flex: 0 0 700px;
    margin: 0 60px;
    margin-bottom: 15vh;
  }
  .timeline-text-card {
    padding: 60px;
    min-height: 600px;
  }
  .timeline-text-card .timeline-header {
    font-size: 4rem;
  }
  .timeline-text-card .timeline-body {
    font-size: 1.5rem;
  }
  .verse-sanskrit {
    font-size: 8rem;
  }
  .verse-transliteration {
    font-size: 1.8rem;
  }
}
