/* Modern Roadmap Styles - Solid Background Design */
:root {
  --roadmap-primary: #2563eb;
  --roadmap-secondary: #7c3aed;
  --roadmap-accent: #10b981;
  --roadmap-warning: #f59e0b;
  --roadmap-danger: #ef4444;
  --roadmap-text-dark: #0f172a;
  --roadmap-text-light: #64748b;
  --roadmap-background: #0f172a;
  --roadmap-card-bg: #1e293b;
  --roadmap-border: #334155;
  --roadmap-line: #475569;
  --roadmap-dot: #64748b;
}

/* Roadmap Section Container */
#roadmap {
  background: linear-gradient(135deg, var(--roadmap-background), #0b1220);
  padding: 4rem 2rem;
  margin: 4rem 0 auto;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
}

#roadmap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--roadmap-primary), var(--roadmap-secondary));
  z-index: 10;
}

/* Roadmap Container */
.roadmap-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Roadmap Header */
.roadmap-header {
  text-align: center;
  margin-bottom: 4rem;
}

.roadmap-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--roadmap-primary), var(--roadmap-secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.roadmap-title {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.roadmap-subtitle {
  color: var(--roadmap-text-light);
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Timeline */
.roadmap-timeline {
  position: relative;
  padding: 2rem 0;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--roadmap-primary), var(--roadmap-secondary));
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--roadmap-dot);
  border: 3px solid var(--roadmap-card-bg);
  box-shadow: 0 0 0 4px var(--roadmap-background);
  transition: all 0.3s ease;
}

.marker-line {
  flex-grow: 1;
  width: 2px;
  background: var(--roadmap-line);
  margin-top: 10px;
}

/* Timeline Content */
.timeline-content {
  flex: 1;
  padding: 0 2rem;
  position: relative;
}

.timeline-item:last-child .marker-line {
  display: none;
}

/* Phase Card */
.phase-card {
  background: var(--roadmap-card-bg);
  border: 1px solid var(--roadmap-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-left: 4px solid transparent;
  opacity: 1; /* Ensure all phase cards are fully opaque */
}

.timeline-item.active .phase-card {
  border-left-color: var(--roadmap-primary);
  transform: translateX(0);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.timeline-item.upcoming .phase-card {
  border-left-color: var(--roadmap-line);
  opacity: 1; /* Ensure upcoming phase cards are fully opaque */
}

.phase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-left-color: var(--roadmap-secondary);
}

/* Phase Header */
.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.phase-badge {
  background: linear-gradient(135deg, var(--roadmap-primary), var(--roadmap-secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.phase-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.phase-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-in-progress {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.status-upcoming {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.phase-time {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Phase Content */
.phase-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.phase-description {
  color: var(--roadmap-text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.phase-goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.goal-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.goal-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.goal-item span:last-child {
  color: #e2e8f0;
  font-weight: 500;
}

/* Current Status Section */
.current-status {
  margin-top: 4rem;
  text-align: center;
}

.status-card {
  background: linear-gradient(135deg, var(--roadmap-primary), var(--roadmap-secondary));
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.status-header h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.status-indicators {
  display: flex;
  gap: 1rem;
}

.status-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-content p {
  color: white;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.focus-areas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.focus-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.focus-tag:hover {
  background: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .roadmap-title {
    font-size: 2.5rem;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content {
    padding: 0 1rem;
  }
  
  .roadmap-timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    position: absolute;
    left: 20px;
  }
  
  .timeline-content {
    flex: 1;
    padding-left: 60px;
  }
}

@media (max-width: 768px) {
  #roadmap {
    padding: 2rem 1rem;
    margin: 2rem 0 auto;
  }
  
  .roadmap-title {
    font-size: 2rem;
  }
  
  .roadmap-subtitle {
    font-size: 1rem;
  }
  
  .phase-card {
    padding: 1.5rem;
  }
  
  .phase-title {
    font-size: 1.3rem;
  }
  
  .phase-description {
    font-size: 1rem;
  }
  
  .goal-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .status-card {
    padding: 2rem;
  }
  
  .status-header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .roadmap-title {
    font-size: 1.75rem;
  }
  
  .roadmap-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .phase-card {
    padding: 1rem;
  }
  
  .phase-title {
    font-size: 1.2rem;
  }
  
  .status-card {
    padding: 1.5rem;
  }
  
  .status-content p {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item:nth-child(odd) .phase-card {
  animation: slideInLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) .phase-card {
  animation: slideInRight 0.6s ease-out;
}

.roadmap-header {
  animation: fadeInUp 0.8s ease-out;
}

.status-card {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Background decoration */
#roadmap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  z-index: 0;
}

/* Floating elements */
.roadmap-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}