/* ============================================
   360 DEGREE M - PROCESS SECTION
   ============================================ */

.process {
  position: relative;
  overflow: hidden;
}

.process-timeline {
  position: relative;
  padding: var(--space-8) 0;
}

/* Timeline Line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(123, 44, 255, 0.3) 10%, 
    rgba(123, 44, 255, 0.3) 90%, 
    transparent 100%);
  transform: translateY(-50%);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Timeline Steps */
.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  position: relative;
}

.step-marker {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid rgba(123, 44, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--primary-purple-light);
  margin-bottom: var(--space-4);
  position: relative;
  transition: all var(--transition-base);
}

.step-marker::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  transition: opacity var(--transition-base);
}

.timeline-step:hover .step-marker,
.timeline-step.active .step-marker {
  background: rgba(123, 44, 255, 0.2);
  border-color: var(--primary-purple);
  color: var(--text-white);
  transform: scale(1.1);
}

.timeline-step:hover .step-marker::before,
.timeline-step.active .step-marker::before {
  opacity: 0.6;
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.step-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.timeline-step.active .step-content {
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Step Connector */
.step-connector {
  position: absolute;
  top: 30px;
  left: 100%;
  width: calc(100% - 60px);
  height: 2px;
  background: rgba(123, 44, 255, 0.2);
  transform: translateX(30px);
}

/* Alternative Vertical Timeline for Mobile */
@media (max-width: 768px) {
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, 
      transparent 0%, 
      rgba(123, 44, 255, 0.3) 10%, 
      rgba(123, 44, 255, 0.3) 90%, 
      transparent 100%);
    transform: none;
  }
  
  .timeline-steps {
    flex-direction: column;
    gap: var(--space-8);
    padding-left: 80px;
  }
  
  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    gap: var(--space-4);
  }
  
  .step-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .step-connector {
    display: none;
  }
}

/* Process Cards Alternative */
.process-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.process-card {
  background: rgba(123, 44, 255, 0.04);
  border: 1px solid rgba(123, 44, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-base);
}

.process-card:hover {
  background: rgba(123, 44, 255, 0.08);
  border-color: rgba(123, 44, 255, 0.3);
  transform: translateY(-4px);
}

.process-card-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: rgba(123, 44, 255, 0.1);
  line-height: 1;
}

.process-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(123, 44, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.process-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.process-card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
