/* ===================================
   RESET & GLOBAL STYLES
   (original reset + global styles)
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  color: #333;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6F4FF 50%, #FFFFFF 100%);
}



.common-section {
  padding-top: 30px;
  padding-bottom: 10px
}



:root {
  --pipe-color: #F2FAFF;
  /* ✅ All lines single color */
  --accent-pink: rgba(245, 187, 190, 0.18);
  --bg: #ffffff;
  --text: #0b2340;
}

/* ✅ PROCESS SECTION BASE STYLES */
.wrap-animate {
  max-width: 1200px;
  margin: 0px auto;
  padding: 14px;
}

.process-section-animate h2 {
  font-size: 65px;
  font-weight: 700;
  margin: 0px 0 28px;
  text-align: center;
}

.process-stage-animate {
  position: relative;
  width: 100%;
  height: 560px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

/* ✅ Pipes & Dots */
.pipe-main {
  fill: none;
  stroke: var(--pipe-color);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-soft {
  fill: none;
  stroke: var(--accent-pink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

.branch-dot {
  fill: rgba(245, 187, 190, 0.9);
  opacity: 0.9;
}

.flow-dot {
  fill: var(--pipe-color);
  r: 6;
}

/* ✅ Center Node */
.center-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #f5f9ff;
  box-shadow: 0 0 20px rgba(0, 157, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 6;
  cursor: pointer;
}

.center-node img {
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
}

.center-node h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

/* ✅ Side Icons */
.side-icon {
  position: absolute;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.icon-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(232, 248, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 157, 255, 0.05);
}

.icon-circle img {
  width: 58px;
  height: 58px;
}

.side-icon p {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: var(--text);
}

/* ✅ Position Classes */
.top-left {
  left: 6%;
  top: 2%;
}

.mid-left {
  left: 7%;
  top: 35%;
}

.bottom-left {
  left: 6%;
  bottom: 2%;
}

.top-right {
  right: 6%;
  top: 2%;
}

.mid-right {
  right: 7%;
  top: 35%;
}

.bottom-right {
  right: 6%;
  bottom: 2%;
}




/* ✅ LINE ANIMATION */
@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.pipe-main.animate {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 1.2s forwards ease-in-out;
}

/* ========== MOBILE OPTIMIZATION (PROCESS SECTION) ========== */
@media (max-width: 600px) {

  .process-stage-animate {
    transform: scale(0.65);
    transform-origin: center;
    height: 420px;
    /* smaller height for phone */
    margin: -113px 0px;
  }

  .center-node {
    width: 160px;
    height: 160px;
  }

  .center-node img {
    width: 70px;
    height: 70px;
  }

  .center-node h3 {
    font-size: 14px;
  }

  .icon-circle {
    width: 80px;
    height: 80px;
    border-width: 4px;
  }

  .icon-circle img {
    width: 42px;
    height: 42px;
  }

  .side-icon p {
    font-size: 11px;
  }

  /* ✅ Adjusted positions for small screens */
  .bottom-right {
    right: -32%;
    bottom: 5%;
  }

  .bottom-left {
    left: -32%;
    bottom: 5%;
  }
}

.text-above {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
}

.text-above p {
  order: 1;
  margin-bottom: 6px;
}

.text-above .icon-circle {
  order: 2;
}

/* Only move text above icon for these two */
.top-left,
.top-right {
  display: flex;
  flex-direction: column-reverse;
}


/* ========== MOBILE RESPONSIVE (MAX 768PX) ========== */
@media (max-width: 768px) {

  .process-section-animate h2 {
    font-size: 32px;
  }

  .process-stage-animate {
    height: 440px;
  }

  /* 🔥 Center Box Smaller */
  .center-node {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  .center-node img {
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
  }

  .center-node h3 {
    font-size: 12px;
  }

  /* Icons */
  .side-icon {
    width: 115px;
    gap: 4px;
  }

  .icon-circle {
    width: 64px;
    height: 64px;
    border-width: 3px;
  }

  .icon-circle img {
    width: 34px;
    height: 34px;
  }

  .side-icon p {
    font-size: 10px;
    line-height: 12px;
  }

  /* Safe mobile positioning */
  .top-left {
    left: 0%;
    top: 17%;
  }

  .mid-left {
    left: -4%;
    top: 38%;
  }

  .bottom-left {
    left: 0%;
    bottom: 20%;
  }

  .top-right {
    right: 0%;
    top: 17%;
  }

  .mid-right {
    right: -4%;
    top: 38%;
  }

  .bottom-right {
    right: 0%;
    bottom: 21%;
  }
}


/* ========== SUPER SMALL PHONES (MAX 480PX) ========== */
@media (max-width: 480px) {

  .process-stage-animate {
    height: 400px;
  }

  /* 🔥 Center even smaller for very small screens */
  .center-node {
    width: 105px;
    height: 105px;
  }

  .center-node img {
    width: 40px;
    height: 40px;
  }

  .center-node h3 {
    font-size: 11px;
  }

  .side-icon {
    width: 105px;
  }

  .icon-circle {
    width: 58px;
    height: 58px;
  }

  .icon-circle img {
    width: 30px;
    height: 30px;
  }

  .side-icon p {
    font-size: 9px;
  }
}

@media (max-width: 768px) {

  /* Title ke niche extra gap hatao */
  .process-section-animate h2 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Diagram / boxes section ko upar le aao */
  .process-stage-animate {
    margin-top: -38px !important;
    padding-top: 0 !important;
    margin-bottom: -87px;
  }
}

.pipe-main {
  stroke: #21BDE1;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 16 24;
}

/* LEFT → CENTER */
.pipe-main.left {
  animation: leftFlow 2s linear infinite;
}

@keyframes leftFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -260;
  }
}

/* CENTER → RIGHT */
.pipe-main.right {
  animation: rightFlow 2s linear infinite;
  animation-delay: 1s;
  /* waits until left wave reaches center */
}

@keyframes rightFlow {
  from {
    stroke-dashoffset: 260;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.branch-dot {
  fill: #EDEDED;

}

.branch-soft {
  stroke: #EDEDED;
}

.icon-circle {
  border: 2px solid #21BDE1;
}

.mid-left {
  left: 0;
}

.mid-right {
  right: 0;
}