.process {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, var(--darker) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(16, 185, 129, 0.03), transparent),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(245, 158, 11, 0.02), transparent);
  pointer-events: none;
}

/* Main wrapper */
.process-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Animated Snake Line Container */
.process-line-container {
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 0;
}

.process-snake-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.process-snake-path-bg {
  fill: none;
  stroke: rgba(16, 185, 129, 0.1);
  stroke-width: 4;
  stroke-linecap: round;
}

.process-snake-path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 4;
  stroke-linecap: round;
  filter: url(#lineGlow);
  stroke-dasharray: var(--path-length, 2000);
  stroke-dashoffset: var(--path-length, 2000);
  animation: flowLine 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flowLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Steps Container */
.process-steps {
  position: relative;
  z-index: 1;
}

/* Individual Step Item */
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.process-item:last-child {
  margin-bottom: 0;
}

/* Connecting Line between steps */
.process-item::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 72px;
  bottom: -40px;
  width: 4px;
  background: linear-gradient(180deg, 
    rgba(16, 185, 129, 0.4) 0%,
    rgba(16, 185, 129, 0.15) 100%
  );
  border-radius: 2px;
  transform-origin: top;
  animation: growLine 0.6s ease-out forwards;
  animation-delay: calc(var(--step-index, 0) * 0.15s);
}

.process-item:last-child::before {
  display: none;
}

@keyframes growLine {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Node (Number Circle) */
.process-node {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  z-index: 2;
}

.process-node-num {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d9668 0%, var(--primary) 50%, #059669 100%);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: 
    0 4px 20px rgba(16, 185, 129, 0.4),
    0 0 40px rgba(16, 185, 129, 0.2),
    inset 0 2px 0 rgba(255,255,255,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-item:hover .process-node-num {
  transform: scale(1.08);
  box-shadow: 
    0 6px 30px rgba(16, 185, 129, 0.5),
    0 0 60px rgba(16, 185, 129, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.2),
    inset 0 -2px 0 rgba(0,0,0,0.1);
}

.process-node-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: calc(var(--step-index, 0) * 0.3s);
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.3;
  }
}

/* Final Node - Gold */
.process-node-final .process-node-num {
  background: linear-gradient(145deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  box-shadow: 
    0 4px 25px rgba(245, 158, 11, 0.5),
    0 0 50px rgba(245, 158, 11, 0.25),
    inset 0 2px 0 rgba(255,255,255,0.2),
    inset 0 -2px 0 rgba(0,0,0,0.1);
}

.process-item-final:hover .process-node-num {
  box-shadow: 
    0 6px 35px rgba(245, 158, 11, 0.6),
    0 0 70px rgba(245, 158, 11, 0.35),
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.1);
}

.process-node-final .process-node-glow {
  background: #f59e0b;
}

.process-node-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  animation: ringExpand 2s ease-out infinite;
}

@keyframes ringExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Process Card */
.process-card {
  flex: 1;
  background: linear-gradient(165deg, 
    rgba(30, 35, 45, 0.95) 0%,
    rgba(22, 27, 35, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(16, 185, 129, 0.5) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse 300px 200px at 50% -50px,
    rgba(16, 185, 129, 0.08),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.process-item:hover .process-card {
  transform: translateY(-4px) translateX(4px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(16, 185, 129, 0.1);
}

.process-item:hover .process-card::before,
.process-item:hover .process-card::after {
  opacity: 1;
}

/* Final Card - Gold Accent */
.process-card-final {
  border-color: rgba(245, 158, 11, 0.15);
}

.process-card-final::before {
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(245, 158, 11, 0.5) 50%,
    transparent 100%
  );
}

.process-card-final::after {
  background: radial-gradient(
    ellipse 300px 200px at 50% -50px,
    rgba(245, 158, 11, 0.08),
    transparent
  );
}

.process-item-final:hover .process-card {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(245, 158, 11, 0.15);
}

/* Card Header */
.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.process-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-radius: 14px;
  transition: all 0.3s ease;
}

.process-item:hover .process-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
}

.process-card-final .process-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
}

.process-time {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.process-time svg {
  opacity: 0.7;
}

/* Card Title */
.process-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.process-item:hover .process-title {
  color: var(--primary-light);
}

.process-card-final .process-title {
  color: #fcd34d;
}

/* Card Description */
.process-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Tags */
.process-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.process-tag-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.process-tag-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.process-tag-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  animation: goldShimmer 2s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 20px 2px rgba(245, 158, 11, 0.2);
  }
}

/* Total Block */
.process-total {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.process-total-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  animation: fadeInUp 0.6s ease-out 0.9s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-total-icon {
  font-size: 32px;
}

.process-total-text {
  display: flex;
  flex-direction: column;
}

.process-total-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.process-total-value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #06d6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Step Index for Animation Delays */
.process-item:nth-child(1) { --step-index: 0; }
.process-item:nth-child(2) { --step-index: 1; }
.process-item:nth-child(3) { --step-index: 2; }
.process-item:nth-child(4) { --step-index: 3; }
.process-item:nth-child(5) { --step-index: 4; }
.process-item:nth-child(6) { --step-index: 5; }

/* Tablet */
@media (max-width: 768px) {
  .process-item {
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .process-node {
    width: 60px;
    height: 60px;
  }
  
  .process-node-num {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  
  .process-node-glow {
    width: 60px;
    height: 60px;
  }
  
  .process-line-container {
    left: 29px;
  }
  
  .process-item::before {
    left: 29px;
    top: 60px;
    bottom: -32px;
  }
  
  .process-card {
    padding: 24px;
  }
  
  .process-title {
    font-size: 18px;
  }
  
  .process-desc {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .process-item {
    gap: 16px;
    margin-bottom: 28px;
  }
  
  .process-node {
    width: 52px;
    height: 52px;
  }
  
  .process-node-num {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  
  .process-node-glow {
    width: 52px;
    height: 52px;
  }
  
  .process-node-ring {
    width: 68px;
    height: 68px;
  }
  
  .process-line-container {
    left: 25px;
  }
  
  .process-item::before {
    left: 25px;
    top: 52px;
    bottom: -28px;
    width: 3px;
  }
  
  .process-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .process-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .process-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 12px;
  }
  
  .process-time {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .process-title {
    font-size: 16px;
  }
  
  .process-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }
  
  .process-tag {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .process-total {
    margin-top: 40px;
  }
  
  .process-total-inner {
    padding: 16px 28px;
    gap: 12px;
  }
  
  .process-total-icon {
    font-size: 26px;
  }
  
  .process-total-value {
    font-size: 18px;
  }
}
