/* ============================================
   PERFECT TIMELINE - BIGGER CARDS
   ============================================ */

/* Remove any stray circles */
.timeline-item::before,
.timeline-item::after {
  display: none !important;
}

/* Timeline Container */
.timeline-modern {
  position: relative;
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 40px 0;
}

/* Vertical Line - Centered */
.timeline-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--accent-primary) 10%, 
    var(--accent-primary) 90%, 
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Timeline Item - BIGGER CARDS, SMALLER GAP */
.timeline-item {
  position: relative;
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr; /* LEFT | SMALL CENTER GAP | RIGHT */
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Dot - IN CENTER COLUMN */
.timeline-dot {
  grid-column: 2;
  justify-self: center;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border: 4px solid #000;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 20px rgba(187, 51, 255, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  position: relative;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 20px rgba(187, 51, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(187, 51, 255, 1);
  }
}

/* Timeline Card - BIGGER */
.timeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.4s ease;
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* ODD items - card on RIGHT side */
.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 3;
  text-align: left;
  justify-self: start;
  margin-left: 20px;
}

/* EVEN items - card on LEFT side */
.timeline-item:nth-child(even) .timeline-card {
  grid-column: 1;
  text-align: left;
  justify-self: end;
  margin-right: 20px;
}

/* Empty space on opposite side */
.timeline-item:nth-child(odd)::before {
  content: '';
  grid-column: 1;
}

.timeline-item:nth-child(even)::after {
  content: '';
  grid-column: 3;
  display: block !important;
}

/* Arrow pointing to center */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  transform: translateY(-50%);
}

/* ODD items (RIGHT side) - arrow on LEFT */
.timeline-item:nth-child(odd) .timeline-card::before {
  left: -24px;
  border-right-color: var(--border-color);
}

/* EVEN items (LEFT side) - arrow on RIGHT */
.timeline-item:nth-child(even) .timeline-card::before {
  right: -24px;
  border-left-color: var(--border-color);
}

/* Hover Effects */
.timeline-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-primary);
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(187, 51, 255, 0.3);
}

.timeline-card:hover::before {
  border-right-color: var(--accent-primary);
  border-left-color: var(--accent-primary);
}

/* Timeline Year Badge */
.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(187, 51, 255, 0.4);
}

/* Timeline Content */
.timeline-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 1.1rem;
}

.timeline-card a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.timeline-card a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Glow effect on hover */
.timeline-card:hover .timeline-year {
  box-shadow: 0 6px 20px rgba(187, 51, 255, 0.6);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Animation stagger */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }

/* Mobile Responsive - Single Column */
@media (max-width: 991px) {
  .timeline-modern {
    max-width: 100%;
    padding: 40px 20px;
  }
  
  .timeline-modern::before {
    left: 40px;
  }
  
  .timeline-item {
    grid-template-columns: 80px 1fr;
    padding-left: 0;
    margin-bottom: 60px;
  }
  
  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    margin-top: 24px;
  }
  
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    justify-self: start;
    margin: 0;
    max-width: none;
  }
  
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::after {
    display: none !important;
  }
  
  .timeline-card::before {
    left: -24px !important;
    right: auto !important;
    border-right-color: var(--border-color) !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .timeline-card {
    padding: 24px;
  }
  
  .timeline-card h3 {
    font-size: 1.5rem;
  }
  
  .timeline-card p {
    font-size: 1rem;
  }
}