/* ============================================================
   Alchotech Solutions - Process Page Stylesheet (process.css)
   ============================================================ */

.process-snake-section {
  padding: 100px 0 130px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Center Straight Connecting Line Container */
.snake-line-container {
  position: absolute;
  top: 90px;
  bottom: 90px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 1;
}

.snake-line-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #cbd5e1;
  border-radius: 3px;
}

/* Dynamic Animated Straight Progress Fill Line */
.snake-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #0d52f3 0%, #38bdf8 50%, #10b981 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(13, 82, 243, 0.5);
  transition: height 0.1s linear;
}

/* Timeline Layout Grid */
.snake-timeline {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 85px;
  max-width: 1180px;
  margin: 0 auto;
}

.snake-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  position: relative;
}

/* Center Node Badge Circle */
.snake-node-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 4;
  height: 100%;
}

.snake-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Horizontal Line Connecting Center Node BEHIND Icon Circle */
.snake-icon-connector {
  position: absolute;
  top: 50%;
  height: 2.5px;
  background: #0d52f3;
  box-shadow: 0 0 10px rgba(13, 82, 243, 0.5);
  z-index: 1; /* Layered BEHIND the circle nodes */
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.12s;
}

/* Left Step (Card Left | Icon Right) - Line expands right behind right icon */
.left-step .snake-icon-connector {
  left: 50%;
  width: calc(25% + 80px);
  transform-origin: left center;
}

/* Right Step (Icon Left | Card Right) - Line expands left behind left icon */
.right-step .snake-icon-connector {
  right: 50%;
  width: calc(25% + 80px);
  transform-origin: right center;
}

/* Active State on Scroll - Line slides out smoothly behind icon AFTER vertical line reaches node! */
.snake-row.active .snake-icon-connector {
  transform: translateY(-50%) scaleX(1);
}

/* Active Node State */
.snake-node {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.snake-row.active .snake-node {
  border-color: #0d52f3;
  background: #0d52f3;
  color: #ffffff;
  box-shadow: 0 0 0 8px rgba(13, 82, 243, 0.18), 0 8px 24px rgba(13, 82, 243, 0.35);
  transform: scale(1.15);
}

/* Process Step Card Container */
.snake-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 38px 38px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 3;
  transition: all 0.35s ease;
}

.snake-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 4px;
  background: linear-gradient(90deg, #0d52f3 0%, #38bdf8 100%);
  border-radius: 4px 4px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.snake-row.active .snake-card::before,
.snake-card:hover::before {
  opacity: 1;
}

.snake-row.active .snake-card,
.snake-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(13, 82, 243, 0.1);
  border-color: #cbd5e1;
}

/* Step Badge Pill */
.snake-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(13, 82, 243, 0.08);
  color: #0d52f3;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.snake-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.3;
}

.snake-card-desc {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 0;
}

/* --- Full Outer Ring Graphic Node Styling --- */
.side-arc-col {
  position: relative;
  z-index: 3; /* Placed above connector line (z-index 1) */
}

.side-arc-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  z-index: 3;
}

.side-arc-node {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s;
}

.snake-row.active .side-arc-node,
.side-arc-node:hover {
  transform: scale(1.1);
}

/* Full 360-Degree Outer Donut Ring */
.side-arc-ring {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 198px;
  height: 198px;
  border-radius: 50%;
  z-index: 1;
  clip-path: none !important;
  transition: all 0.4s ease 0.35s;
}

/* Arc Color Palette */
.arc-bg-1 { background: #38bdf8; } /* Step 1 - Cyan Blue */
.arc-bg-2 { background: #a855f7; } /* Step 2 - Purple */
.arc-bg-3 { background: #f59e0b; } /* Step 3 - Golden Orange */
.arc-bg-4 { background: #10b981; } /* Step 4 - Emerald Green */
.arc-bg-5 { background: #6366f1; } /* Step 5 - Indigo */
.arc-bg-6 { background: #ec4899; } /* Step 6 - Rose Pink */

/* White Center Circle Node */
.side-arc-circle {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #ffffff !important; /* Solid white hides connector line behind it! */
  border: 2.5px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: border-color 0.4s ease 0.35s, box-shadow 0.4s ease 0.35s;
}

.snake-row.active .side-arc-circle {
  border-color: #1053f3;
  box-shadow: 0 16px 40px rgba(16, 83, 243, 0.22);
}

/* Line-art Icon Box Inside Circle - Active Scroll Enlarge Animation */
.side-arc-icon-box {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.side-arc-icon-box svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enlarge icon when step is active on scroll */
.snake-row.active .side-arc-icon-box,
.snake-row.active .side-arc-icon-box svg,
.side-arc-node:hover .side-arc-icon-box {
  transform: scale(1.15);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .snake-line-container {
    left: 68px;
  }

  .snake-timeline {
    gap: 45px;
  }

  .snake-row {
    grid-template-columns: 80px 1fr;
    align-items: flex-start;
  }

  .snake-icon-connector {
    display: none;
  }

  .snake-row.left-step .side-arc-col,
  .snake-row.right-step .side-arc-col {
    display: none;
  }

  .snake-row.left-step .snake-card-col {
    grid-column: 2;
    grid-row: 1;
  }

  .snake-row.left-step .snake-node-col {
    grid-column: 1;
    grid-row: 1;
  }

  .snake-node {
    width: 54px;
    height: 54px;
    font-size: 0.95rem;
  }
}
