/* ── Sticky Scroll Services Layout ── */
.service-scroll-section {
  position: relative;
  padding: 100px 0;
  z-index: 5;
}

.service-scroll-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── LEFT STICKY COLUMN ── */
.ssc-left {
  position: sticky;
  top: 150px;
  padding-right: 40px;
  height: max-content;
}

.ssc-step-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ssc-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ssc-step-circle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssc-step-circle svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.ssc-step-circle circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.ssc-step-circle .bg {
  stroke: rgba(255, 255, 255, 0.05);
}

.ssc-step-circle .progress {
  stroke: var(--primary);
  stroke-dasharray: 283; /* 2 * pi * 45 */
  stroke-dashoffset: 283; 
  transition: stroke-dashoffset 0.5s ease-out;
}

#ssc-active-step {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.ssc-active-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.ssc-left h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.1;
  transition: opacity 0.3s ease;
}

.ssc-left p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  transition: opacity 0.3s ease;
}

/* Pagination Dots */
.ssc-pagination {
  display: flex;
  gap: 8px;
  margin-top: 50px;
  align-items: center;
}

.ssc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ssc-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ── RIGHT SCROLL COLUMN ── */
.ssc-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 50vh; /* Allow scrolling past the last card nicely */
}

/* Card Style imitating the layout but using dark theme */
.ssc-card {
  position: relative;
  background: rgba(18, 18, 28, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.4s ease;
  min-height: 160px;
  opacity: 0.5;
  transform: scale(0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.ssc-card.active {
  background: rgba(30, 30, 45, 0.95);
  border: 1px solid var(--primary);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 106, 0, 0.06);
}

.ssc-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.ssc-card.active .ssc-card-icon {
  background: var(--primary);
  color: white;
}

.ssc-card-content {
  flex-grow: 1;
}

.ssc-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}

.ssc-card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ssc-card-num {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.4s ease;
}

.ssc-card.active .ssc-card-num {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .service-scroll-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .ssc-left {
    position: relative;
    top: 0;
    padding-right: 0;
  }
  
  .ssc-right {
    padding-bottom: 0;
  }
  
  .ssc-card {
    opacity: 1;
    transform: scale(1);
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .ssc-card-num {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .service-scroll-section {
    padding: 72px 0;
  }

  .service-scroll-container {
    gap: 30px;
  }

  .ssc-left h2 {
    font-size: 1.8rem;
  }

  .ssc-left p {
    font-size: 0.95rem;
  }

  .ssc-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .ssc-card-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .ssc-card-content h3 {
    font-size: 1.15rem;
  }

  .ssc-card-content p {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .service-scroll-section {
    padding: 56px 0;
  }

  .ssc-step-wrapper {
    margin-bottom: 24px;
  }

  .ssc-step-circle {
    width: 50px;
    height: 50px;
  }

  .ssc-left h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .ssc-left p {
    font-size: 0.9rem;
  }

  .ssc-pagination {
    margin-top: 30px;
  }

  .ssc-card {
    padding: 20px 16px;
  }
}
