.nova-process-section {
  /* background-color: #05030a; */
  padding: 60px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.nova-process-container {
  max-width: 1200px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: 70px;
}

.process-badge {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

.process-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 8px;
  color: #ffffff;
  letter-spacing: 1px;
}

.process-wrapper {
  position: relative;
  width: 100%;
}

/* Ensure the SVG scales precisely without stretching distortion */
.process-circuit-svg {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Match grid gaps exactly to SVG coordinate spacing */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 100px; /* Fixed row spacing for precise path alignment */
  column-gap: 140px;
  position: relative;
  z-index: 2;
}

.process-step-card {
  min-height: 120px; /* Fixed height consistency across cards */
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(18, 10, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Precise 2-Column Grid matching the connected SVG coordinates */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 60px;
  column-gap: 140px;
  position: relative;
  z-index: 2;
}

.process-step-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(18, 10, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Distinct glowing highlight on the final phase card */
.process-step-card.final-phase {
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.35), inset 0 0 15px rgba(192, 132, 252, 0.15);
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.step-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.step-phase {
  display: inline-block;
  font-size: 0.72rem;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.step-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Mobile & Tablet Responsiveness */
/* Keep Desktop styles intact (above this line) */

/* Keep Desktop styles intact (above this line) */

/* ----------------------------------------------------
 * Mobile & Tablet Responsiveness (Centered Card Slider)
 * ---------------------------------------------------- */
/* ----------------------------------------------------
 * Mobile & Tablet Responsiveness (Clean CSS without !important)
 * ---------------------------------------------------- */

@media (max-width: 992px) {
  /* Prevent section-level page overflow */
  .nova-process-section {
    padding: 50px 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }

  .nova-process-section .nova-process-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .nova-process-section .process-header {
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
  }

  /* Hide Desktop SVG circuit line */
  .nova-process-section .process-circuit-svg {
    display: none;
  }

  /* Slider Container Track */
  .nova-process-section .process-steps-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 15px 10vw 25px 10vw;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nova-process-section .process-steps-grid::-webkit-scrollbar {
    display: none;
  }

  /* Individual Card Slide */
  .nova-process-section .process-step-card {
    flex: 0 0 80vw;
    width: 80vw;
    min-width: 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    
    padding: 30px 24px;
    height: auto;
    min-height: 250px;
    opacity: 1;
    transform: none;
    box-sizing: border-box;
  }

  .nova-process-section .process-step-card:not(:last-child)::after {
    display: none;
  }

  .nova-process-section .step-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .nova-process-section .step-content {
    width: 100%;
  }

  .nova-process-section .step-content h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .nova-process-section .step-phase {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .nova-process-section .step-content p {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 768px) {
  .nova-process-section {
    padding: 40px 0;
  }

  .nova-process-section .process-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
  }

  .nova-process-section .process-steps-grid {
    padding: 15px 8vw 25px 8vw;
  }

  .nova-process-section .process-step-card {
    flex: 0 0 calc(100% - 50px);
    width: calc(100% - 50px);
    min-width: calc(100% - 50px);
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nova-process-section .process-steps-grid {
    padding: 15px 20px;
  }

  .nova-process-section .process-step-card {
    flex: 0 0 86vw;
    width: 86vw;
    min-width: 86vw;
    padding: 24px 20px;
  }
}