/* Cyberpunk Service Timeline - Modern Connected Line Design */

/* Cyberpunk Service Timeline - Modern Connected Line Design - Fixed */

.neon-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,204,255,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.neon-icon {
  filter: drop-shadow(0 0 10px var(--nexus-blue));
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from { filter: drop-shadow(0 0 10px var(--nexus-blue)); }
  to { filter: drop-shadow(0 0 20px var(--nexus-blue)) drop-shadow(0 0 30px var(--nexus-blue)); }
}

.neon-text {
  background: linear-gradient(45deg, var(--nexus-cyan), var(--nexus-blue), var(--nexus-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0,163,255,0.5));
  font-family: 'Orbitron', monospace !important;
  font-weight: 800;
}

.glass-badge {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--nexus-steel);
  font-size: 0.85em;
  padding: 0.5em 1em;
}

.glass-badge:hover {
  border-color: var(--nexus-blue);
  box-shadow: 0 0 15px rgba(0,163,255,0.3);
}

.service-card-hover,
.hover-lift {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid var(--glass-border) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-hover:hover,
.hover-lift:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: var(--nexus-blue) !important;
  box-shadow: 0 20px 40px rgba(0, 163, 255, 0.25), 0 0 40px rgba(0, 204, 255, 0.1) !important;
}

.cta-section {
  background: linear-gradient(135deg, var(--nexus-blue) 0%, var(--nexus-cyan) 100%) !important;
  box-shadow: 0 20px 60px rgba(0, 163, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(15px) !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 30%, rgba(255,255,255,0.1) 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-light {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--nexus-steel);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.btn-light:hover::before {
  left: 100%;
}

.btn-light:hover {
  border-color: var(--nexus-cyan);
  box-shadow: 0 0 25px rgba(0,204,255,0.4);
  color: white !important;
  transform: translateY(-2px);
}

/* NEW MODERN TIMELINE - Line Connected Icons, No Backgrounds */

/* Wrapper & Line */
.timeline-wrapper {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, var(--nexus-blue), var(--nexus-cyan));
  box-shadow: 0 0 20px rgba(0,163,255,0.6);
  border-radius: 2px;
  opacity: 0.8;
  transition: all 0.4s ease;
}

/* Desktop Horizontal Line */
@media (min-width: 768px) {
  .timeline-line {
    top: 50%;
    left: 2.5%;
    right: 2.5%;
    height: 4px;
    transform: translateY(-50%);
  }

  /* Vertical connectors for multi-row if needed */
  .timeline-tabs .nav-item:nth-child(4n+1)::before,
  .timeline-tabs .nav-item:nth-child(4n+2)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 60px;
    background: linear-gradient(var(--nexus-blue), var(--nexus-cyan));
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,163,255,0.4);
  }
}

/* Mobile Vertical Line */
@media (max-width: 767.98px) {
  .timeline-line {
    left: 50%;
    top: 2rem;
    bottom: 2rem;
    width: 4px;
    transform: translateX(-50%);
  }
}

/* Nav Items & Links - NO BACKGROUNDS */
.timeline-tabs {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-color: var(--nexus-cyan);
}

.timeline-tabs .nav-link {
  background: none !important;
  border: none !important;
  color: var(--nexus-steel);
  position: relative;
  z-index: 3;
  padding: 1rem 0.5rem !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 100px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeline-tabs .nav-link:hover {
  color: var(--nexus-cyan) !important;
  transform: translateY(-4px);
}

.timeline-tabs .nav-link.active,
.timeline-tabs .nav-link.active:hover {
  color: var(--nexus-cyan) !important;
  background: none !important;
  /* transform: translateY(-6px); */
}

/* Icon Nodes - Central, Connected */
.etape-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--glass-bg);
  border: 3px solid var(--nexus-blue);
  border-radius: 50%;
  color: var(--nexus-steel);
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 4;
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
}

.timeline-tabs .nav-link:hover .etape-tab-icon {
  border-color: var(--nexus-cyan);
  background: rgba(0,204,255,0.1);
  box-shadow: 0 0 25px rgba(0,204,255,0.5), 0 4px 20px rgba(0,0,0,0.4);
  transform: scale(1.1);
  animation: neonPulse 1s ease-in-out;
}

.nav-link.active .etape-tab-icon {
  background: linear-gradient(135deg, var(--nexus-cyan), var(--nexus-blue));
  border-color: var(--nexus-cyan);
  color: white;
  box-shadow: 0 0 30px rgba(0,204,255,0.8), inset 0 2px 10px rgba(255,255,255,0.2);
  transform: scale(1.15);
}

/* Completed State */
.etape-completed .etape-tab-icon::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--nexus-cyan);
  z-index: 5;
  text-shadow: 0 0 10px var(--nexus-blue);
}

/* Titles */
.etape-title {
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 120px;
  text-align: center;
  color: inherit;
}

/* Content preserved */
.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.etape-main-icon i {
  filter: drop-shadow(0 0 20px var(--nexus-blue));
  animation: neonPulse 1.5s ease-in-out infinite alternate;
  font-size: 4rem;
  color: var(--nexus-cyan);
}

.etape-img {
  max-height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
}

.etape-img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(0,204,255,0.3);
}

.cyber-glow {
  box-shadow: 0 0 25px rgba(0,204,255,0.5), 0 0 50px rgba(0,163,255,0.3);
}

.cyber-glow:hover {
  box-shadow: 0 0 40px rgba(0,204,255,0.7), 0 0 80px rgba(0,163,255,0.5);
  transform: scale(1.08);
}

.neon-btn {
  background: linear-gradient(135deg, var(--nexus-cyan), var(--nexus-blue));
  border: none;
  box-shadow: 0 10px 30px rgba(0,163,255,0.4);
  font-weight: 700;
  letter-spacing: 1px;
}

.neon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,163,255,0.6);
}

/* Responsive Optimizations */
@media (max-width: 767.98px) {
  .timeline-wrapper {
    padding: 1.5rem 1rem;
  }

  .etape-tab-icon {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .timeline-line {
    width: 3px;
  }

  .etape-title {
    font-size: 0.8rem;
    max-width: 100px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .timeline-line {
    height: 3px;
  }
}

.next-etape-btn {
  background: linear-gradient(135deg, var(--nexus-cyan), var(--nexus-blue));
  border: none;
}

.next-etape-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,163,255,0.5);
}

/* Line glow on hover/active */
.timeline-wrapper:hover .timeline-line,
.nav-link.active ~ .timeline-line {
  box-shadow: 0 0 30px rgba(0,204,255,0.9);
  opacity: 1;
}

