/* css/roadmap.css */

:root {
  --cosmic-primary: #9d00ff;
  --cosmic-secondary: #00f7ff;
  --cosmic-tertiary: #ffd700;
  --cosmic-dark: #0a0e17;
  --cosmic-darker: #050a0f;
  --cosmic-light: rgba(255, 255, 255, 0.9);
  --cosmic-lighter: rgba(255, 255, 255, 0.7);
}

body {
  font-family: 'Exo 2', sans-serif;
  color: var(--cosmic-light);
  margin: 0;
  overflow-x: hidden;
  background-color: var(--cosmic-dark);
}

/* Lock scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Fixed Navigation */
.quantum-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem clamp(1rem, 5vw, 3rem);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid rgba(157, 0, 255, 0.2);
  box-sizing: border-box;
}

.nav-portal {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: portalSpin 12s linear infinite;
  box-sizing: border-box;
}

.portal-ring.outer {
  width: 100%;
  height: 100%;
  border-top-color: var(--cosmic-primary);
  border-right-color: var(--cosmic-secondary);
  animation-duration: 15s;
}

.portal-ring.middle {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: var(--cosmic-tertiary);
  border-left-color: var(--cosmic-secondary);
  animation-duration: 10s;
  animation-direction: reverse;
}

.portal-ring.inner {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-bottom-color: var(--cosmic-secondary);
  border-right-color: var(--cosmic-primary);
  animation-duration: 8s;
}

.portal-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--cosmic-light);
}

/* Portal hover class used by site.js */
.portal-spinning {
  animation: portalSpin 2s linear infinite;
}

.nav-links-container {
  display: flex;
  align-items: center;
  overflow: visible;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--cosmic-lighter);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link .link-icon {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.nav-link .link-text {
  position: relative;
}

.nav-link .link-pulse {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--cosmic-primary);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--cosmic-light);
}

.nav-link:hover .link-icon {
  color: var(--cosmic-primary);
  text-shadow: 0 0 10px var(--cosmic-primary);
}

.nav-link.active {
  color: var(--cosmic-tertiary);
}

.nav-link.active .link-icon {
  color: var(--cosmic-tertiary);
  text-shadow: 0 0 10px var(--cosmic-tertiary);
}

.nav-link.active .link-pulse {
  width: 100%;
  background: var(--cosmic-tertiary);
}

.nav-scanline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cosmic-primary), transparent);
  box-shadow: 0 0 10px var(--cosmic-primary);
  animation: scanlineMove 3s linear infinite;
}

@keyframes portalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

/* Mobile Navigation */
.nav-toggle,
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cosmic-light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.nav-toggle:hover,
.mobile-menu-toggle:hover {
  transform: rotate(90deg);
}

/* Cosmic Video Background */
.cosmic-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

#roadmap-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  opacity: 0.5;
  filter: brightness(0.4) contrast(1.2);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(10,14,23,0.9) 0%, rgba(5,10,15,0.95) 100%);
  z-index: -1;
}

/* Roadmap Header */
.roadmap-header {
  padding: 12rem 2rem 6rem;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.roadmap-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--cosmic-primary), var(--cosmic-secondary), var(--cosmic-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
  letter-spacing: 2px;
}

.roadmap-header .subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--cosmic-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.header-glyphs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.header-glyphs span {
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.header-glyphs span:nth-child(1) {
  color: var(--cosmic-primary);
  animation-delay: 0s;
}

.header-glyphs span:nth-child(2) {
  color: var(--cosmic-secondary);
  animation-delay: 1s;
}

.header-glyphs span:nth-child(3) {
  color: var(--cosmic-tertiary);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* Roadmap Container */
.roadmap-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

/* Zig Zag Timeline Axis */
.timeline-axis {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    var(--cosmic-primary),
    var(--cosmic-secondary),
    var(--cosmic-tertiary),
    transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.axis-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    rgba(157, 0, 255, 0.1),
    rgba(0, 247, 255, 0.1),
    rgba(255, 215, 0, 0.1),
    transparent);
  animation: axisPulse 5s infinite alternate;
}

.axis-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="100%" viewBox="0 0 4 100"><circle cx="2" cy="10" r="1" fill="%239d00ff"/><circle cx="2" cy="30" r="1" fill="%2300f7ff"/><circle cx="2" cy="50" r="1" fill="%23ffd700"/><circle cx="2" cy="70" r="1" fill="%2300f7ff"/><circle cx="2" cy="90" r="1" fill="%239d00ff"/></svg>');
  opacity: 0.7;
}

@keyframes axisPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Roadmap Phases - Zig Zag Layout */
.roadmap-phases {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.phase {
  width: calc(50% - 40px);
  margin-bottom: 4rem;
  position: relative;
}

.phase:nth-child(odd) {
  margin-right: auto;
  padding-right: 40px;
}

.phase:nth-child(even) {
  margin-left: auto;
  padding-left: 40px;
}

.phase-card {
  width: 100%;
  max-width: 500px;
  background: rgba(20, 30, 40, 0.8);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.1);
  position: relative;
  transition: all 0.5s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 247, 255, 0.2);
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent, rgba(0, 247, 255, 0.05));
  pointer-events: none;
}

.phase:nth-child(odd) .phase-card {
  border-left: 4px solid var(--cosmic-primary);
}

.phase:nth-child(even) .phase-card {
  border-right: 4px solid var(--cosmic-secondary);
}

.phase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 247, 255, 0.3);
  border-color: rgba(0, 247, 255, 0.5);
}

.phase-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Marker Positioning */
.phase-marker {
  position: absolute;
  top: 30px;
  width: 24px;
  height: 24px;
  z-index: 3;
}

.phase:nth-child(odd) .phase-marker { right: -12px; }
.phase:nth-child(even) .phase-marker { left: -12px; }

.marker-core {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.phase:nth-child(1) .marker-core { background: var(--cosmic-primary); box-shadow: 0 0 15px var(--cosmic-primary); }
.phase:nth-child(2) .marker-core { background: var(--cosmic-secondary); box-shadow: 0 0 15px var(--cosmic-secondary); }
.phase:nth-child(3) .marker-core { background: var(--cosmic-tertiary); box-shadow: 0 0 15px var(--cosmic-tertiary); }
.phase:nth-child(4) .marker-core { background: white; box-shadow: 0 0 15px white; }

.marker-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2s infinite;
  border: 1px solid currentColor;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.phase-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-right: 1rem;
  font-weight: bold;
}

.phase:nth-child(1) .phase-date { background: var(--cosmic-primary); color: var(--cosmic-dark); }
.phase:nth-child(2) .phase-date { background: var(--cosmic-secondary); color: var(--cosmic-dark); }
.phase:nth-child(3) .phase-date { background: var(--cosmic-tertiary); color: var(--cosmic-dark); }
.phase:nth-child(4) .phase-date { background: white; color: var(--cosmic-dark); }

.phase-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--cosmic-primary), var(--cosmic-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: 1px;
}

.phase-desc {
  margin-bottom: 1.5rem;
  color: var(--cosmic-lighter);
  line-height: 1.6;
  font-size: 1.1rem;
}

.phase-achievements {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.phase-achievements li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--cosmic-light);
  line-height: 1.6;
}

.phase-achievements li span {
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  top: 0.1rem;
  color: var(--cosmic-secondary);
}

.phase-progress {
  height: 6px;
  background: rgba(0, 247, 255, 0.1);
  border-radius: 3px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.phase:nth-child(1) .progress-bar { background: var(--cosmic-primary); }
.phase:nth-child(2) .progress-bar { background: var(--cosmic-secondary); }
.phase:nth-child(3) .progress-bar { background: var(--cosmic-tertiary); }
.phase:nth-child(4) .progress-bar { background: white; }

.progress-text {
  position: absolute;
  right: 0;
  top: -25px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: var(--cosmic-secondary);
  font-weight: bold;
}

/* Footer */
.cosmic-footer {
  position: relative;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.95), transparent);
  border-top: 1px solid rgba(157, 0, 255, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.footer-about h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  color: var(--cosmic-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-about p {
  max-width: 400px;
  color: var(--cosmic-lighter);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h5 {
  font-family: 'Orbitron', sans-serif;
  color: var(--cosmic-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li { margin-bottom: 1rem; }

.footer-section a {
  color: var(--cosmic-lighter);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--cosmic-secondary);
  transform: translateX(5px);
}

.footer-pulse {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cosmic-primary), transparent);
  box-shadow: 0 0 15px var(--cosmic-primary);
  opacity: 0.5;
  animation: pulseWidth 3s infinite alternate;
}

@keyframes pulseWidth {
  0% { width: 100%; }
  100% { width: 80%; }
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-sections { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-about { text-align: center; margin: 0 auto; }
  .footer-about p { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-toggle,
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid rgba(157, 0, 255, 0.3);
  }

  .nav-links-container.active { right: 0; }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 2rem;
    justify-content: center;
  }

  .nav-link { font-size: 1.1rem; }

  .timeline-axis { left: 30px; }

  .phase {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
  }

  .phase-marker {
    left: 30px !important;
    right: auto !important;
  }

  .footer-sections { grid-template-columns: 1fr; text-align: center; }
  .roadmap-header { padding: 10rem 1.5rem 4rem; }
}

@media (max-width: 576px) {
  .roadmap-header h1 { font-size: 2rem; }
  .roadmap-header .subtitle { font-size: 1.1rem; }
  .phase-title { font-size: 1.3rem; }
  .phase-desc { font-size: 1rem; }
  .phase-achievements li { font-size: 0.95rem; }
  .phase-card { padding: 1.5rem; }
  .phase-marker { width: 20px; height: 20px; left: 25px !important; }
  .phase-date { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .quantum-nav { padding: 1rem; }
  .nav-portal { width: 40px; height: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}