/* Modern, Premium Web Design System for Agentic AI Roadmap */

:root {
  --bg-color: #0b0c10;
  --panel-bg: #131520;
  --card-bg: rgba(20, 22, 37, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f5f6fa;
  --text-sub: #9ea2b6;
  --primary-glow: rgba(0, 255, 135, 0.4);
  --plane-color: #ffd54f;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Neon Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00ff87 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #9d00ff 0%, transparent 70%);
  bottom: 20%;
  right: -200px;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #00f0ff 0%, transparent 70%);
  top: 40%;
  left: 30%;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header Design */
.roadmap-header {
  text-align: center;
  padding: 60px 0 30px;
  max-width: 800px;
  margin: 0 auto;
}

.header-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: #00ff87;
  background: rgba(0, 255, 135, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 135, 0.2);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.1);
}

.roadmap-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffd54f 10%, #ff007f 50%, #9d00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roadmap-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* Control Panel */
.control-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 50px;
  width: max-content;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn.primary {
  background: #ffd54f;
  color: #0b0c10;
  box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
}

.control-btn.primary:hover {
  background: #ffe082;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 213, 79, 0.45);
}

.control-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.control-btn.secondary.active {
  background: rgba(0, 255, 135, 0.1);
  color: #00ff87;
  border-color: rgba(0, 255, 135, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.progress-display {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#progress-val {
  color: #ffd54f;
}

/* Roadmap Wrapper & Containers */
.roadmap-wrapper {
  padding: 40px 0;
  overflow: visible;
}

.roadmap-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 4800px; /* Exact height scaled to the SVG path viewbox */
}

/* SVG Road Settings */
.road-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.road-bg {
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(47, 49, 66, 0.6));
}

.road-track {
  stroke-dasharray: none;
}

.road-line {
  filter: drop-shadow(0 0 5px rgba(255, 213, 79, 0.3));
}

.connector-line {
  stroke-dasharray: 6, 6;
  stroke-width: 2;
  opacity: 0.6;
  animation: connector-pulse 2s infinite ease-in-out, line-dash-flow 30s linear infinite;
}

@keyframes connector-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes line-dash-flow {
  to {
    stroke-dashoffset: -100;
  }
}

/* Paper Plane */
.paper-plane {
  position: absolute;
  width: 44px;
  height: 44px;
  z-index: 20;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.8));
  will-change: transform, left, top;
}

.paper-plane svg {
  width: 100%;
  height: 100%;
}

/* Roadmap Nodes */
.road-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #11121d;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color), inset 0 0 8px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  z-index: 10;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.road-node:hover, .road-node.active {
  transform: translate(-50%, -50%) scale(1.25);
  background: var(--accent-color);
  color: #0b0c10;
  box-shadow: 0 0 25px var(--accent-color);
}

/* Detail Cards */
.roadmap-card {
  position: absolute;
  width: 330px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 14px;
  padding: 22px;
  z-index: 5;
  transform: translateY(-50%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 1px var(--accent-color);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.roadmap-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.roadmap-card:hover, .roadmap-card.active {
  transform: translateY(-50%) translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-color);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-bullets li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-sub);
  position: relative;
  padding-left: 16px;
  transition: color 0.2s ease;
}

.roadmap-card:hover .card-bullets li {
  color: var(--text-main);
}

.card-bullets li::before {
  content: '•';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}

/* Footer Section */
.roadmap-footer {
  margin-top: 100px;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer-content p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-content .tagline {
  font-family: var(--font-title);
  font-size: 0.8rem;
}

.footer-content code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffd54f;
  font-size: 0.85rem;
}

/* RESPONSIVE LAYOUT (Tablets & Mobile) */
@media (max-width: 991px) {
  .roadmap-container {
    height: auto !important; /* Stack vertically */
    aspect-ratio: auto !important;
  }

  .road-svg {
    display: none; /* Hide road path on mobile for clean design */
  }

  .nodes-container {
    display: none; /* Hide node dots */
  }

  .cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid rgba(255, 255, 255, 0.05);
    margin-left: 10px;
    height: auto !important;
  }

  .roadmap-card {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin-bottom: 0;
  }

  .roadmap-card:hover {
    transform: translateY(-5px) !important;
  }

  /* Left dot on mobile */
  .roadmap-card::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #11121d;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 10;
  }

  .paper-plane {
    display: none !important; /* Hide plane since road is hidden */
  }

  .control-panel {
    display: none; /* Hide controls on mobile since no plane */
  }

  .roadmap-title {
    font-size: 2.5rem;
  }
}
