/* ================= ROOT ================= */
:root{
  --brand: #2F4DBA;
  --brand-2: #1F3A8A;
  --accent: #F2994A;
  --bg: #FFFFFF;
  --section-bg: #F7F8FC;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --button-bg: #3F455A;
  --border: #cbcdcf;
  --cta-dark: #1C1C1C;
  --cta-text: #FFFFFF;
  --glass: rgba(47,77,186,0.08);
  --line: #000;
  --radius: 10px;
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter', sans-serif;
  background:#fff;
  padding-top: 80px !important;
  color:#0f172a;
}


/* ================= PROCESS SECTION ================= */
.process-section {
  background: var(--bg);
  padding: 60px 0 ;
  font-family: var(--font-sans);
}

.process-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ================= TEXT ================= */
.process-content {
  max-width: 620px;
  padding: 0 20px;
}

.process-content h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.process-content p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 620px;
  text-align: justify;
}

/* ================= IMAGE ================= */
.process-image {
  margin-top: 70px;
}

.process-image img {
  width: 100%;
  max-width: 100%;
  display: block;
}



/* ================= STAGES SECTION ================= */
.stages-section {
  background: var(--bg);
  padding: 60px 0;
  font-family: var(--font-sans);
}

.stages-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

/* ================= TITLE ================= */
.stages-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 70px;
}

/* ================= STAGES ================= */
.stages-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 160px;
  margin-top: 60px;
}

.stages-wrapper::before {
  content: "";
  position: absolute;
  top: 215px; /* aligns exactly with dot center */
  max-width: 820px;
  margin-left: 18%;
  left: 10%;
  right: 10%;
  height: 4px;

  background-image: radial-gradient(
    circle at 2px,
    var(--button-bg) 2px,
    transparent 2px
  );
  background-repeat: repeat-x;
  background-size: 26px 4px;
  opacity: 0.4;
}

/* EACH STAGE */
.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  position: relative;
  z-index: 2; /* ABOVE the line */
  transition: 
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.35s ease;

  will-change: transform;
  cursor: pointer;
}

.stage-item a{
  text-decoration:none;
  color:inherit;
}



/* 🔑 ICON CONTAINER (KEY FIX) */
.icon-box {
  height: 180px;           /* SAME HEIGHT FOR ALL ICONS */
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-item img {
  max-width: 175px;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}



/* DOT */
.dot {  
  width: 30px;
  height: 30px;
  background: var(--button-bg);
  border-radius: 20%;
  margin: 18px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: 
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.35s ease;

  will-change: transform;
}


.dot span{
    color: #ffffff;
    font-size: 17px;
    font-weight: 1000;

}
/* LABEL */
.stage-item p {
  font-size: 35px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  transition: color 0.3s ease;

}

.stage-item:hover img {
  transform: scale(1.2);
}

.stage-item:hover .dot {
  transform: scale(1.2);
}

.stage-item:hover p {
  color: #26a0f8; /* blue */
  font-size: 36px;
}


.stage-connector {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG */
.stage-connector svg {
  width: 100%;
  height: 6px;
}

/* DOTTED LINE */
.connector-line {
  stroke: var(--border);
  stroke-width: 2;
  stroke-dasharray: 4 6;  /* DOT GAP */
  stroke-linecap: round;
}


/* ================= STAGE DETAIL ================= */
.stage-detail {
  background: var(--bg);
  padding: 40px 0;
  font-family: var(--font-sans);
}

.stage-detail-container {
  max-width: 1000px;
  margin: auto;
  padding: 0 30px;
}

/* TITLE */
.stage-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 60px;
}

/* CONTENT GRID */
.stage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* LEFT */
.stage-left p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
}

/* RIGHT */
.stage-intro {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* POINT LIST */
.stage-points {
  max-width: 350px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stage-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.stage-points .icon {
  font-size: 26px;
  color: var(--brand);
}

.icon img{
  width: 40px;
}

.stage-points span:last-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}



/* ================= CTA SECTION ================= */
.cta-section {
  background: var(--bg);
  padding: 30px 0 70px;
  font-family: var(--font-sans);
}

.cta-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* SMALL TEXT */
.cta-eyebrow {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* MAIN TITLE */
.cta-title {
  max-width: 850px;
  font-size: 40px;

  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
}


.word{
  position:relative;
  display:inline-block;
  cursor:pointer;
}

.word a{
  text-decoration:none;
  color:inherit;
}



.hero-line{
  position:absolute;
  left:5px;
  top: 55px;
  width:95%;
  height:14px;
}


/* waves draw logic */
.wave{
  stroke-dasharray:var(--len);
  stroke-dashoffset:0;
}

.u-line{
  fill:none;
  stroke:#696868;
  stroke-width:2;
}

/* hover → LTR */
.word.is-hover .wave{
  stroke:url(#rgb-gradient);
  animation:wave-ltr 3.2s ease forwards;
}

/* leave → RTL */
.word.is-leave .wave{
  stroke:url(#rgb-gradient);
  animation:wave-rtl 3.2s ease forwards;
}

/* reset */
.word.is-reset .wave{
  stroke:#696868;
  animation:none;
}


/* ================= KEYFRAMES ================= */

@keyframes wave-ltr{
  from{stroke-dashoffset:var(--len)}
  to{stroke-dashoffset:0}
}

@keyframes wave-rtl{
  from{stroke-dashoffset:0}
  to{stroke-dashoffset:var(--len)}
}


/* ================= LARGE DESKTOP (1025px – 1366px) ================= */
@media (min-width: 1025px) and (max-width: 1366px) {

  .process-image img {
    width: 90%;
    margin: 0 auto;
  }

  .stages-wrapper {
    gap: 120px;
  }

  .stage-item p {
    font-size: 32px;
  }

  .process-content h1 {
    font-size: 42px;
  }

  .stages-title {
    font-size: 34px;
  }
}


/* ================= LAPTOP / TABLET LANDSCAPE (769px – 1024px) ================= */
@media (min-width: 769px) and (max-width: 1024px) {

  .process-wrapper {
    padding: 0 30px;
  }

  .process-content h1 {
    font-size: 38px;
  }

  .stages-wrapper {
    gap: 90px;
  }

  .stage-item img {
    max-width: 150px;
  }

  .stage-title {
    font-size: 36px;
  }

  .stage-item p {
    font-size: 30px;
  }

  .stage-item:hover p {
    font-size: 31px;
  }

  .stage-content {
    gap: 60px;
  }

  .cta-title {
    font-size: 34px;
  }

  .hero-line {
    top: 45px;
  }
}


/* ================= TABLET (601 – 768px) ================= */
@media (min-width: 601px) and (max-width: 768px) {

  .process-content h1 {
    font-size: 34px;
  }

  .process-content p {
    font-size: 16px;
  }

  .stages-wrapper {
    align-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
  }

  .stages-wrapper::before {
    display: none; /* remove horizontal dotted line */
  }

  .stages-title{
    font-size: 26px ;
    margin-bottom: 20px ;
    font-weight: 700 ;
    text-align: center;
  }

  .stage-item p {
    font-size: 26px;
  }

  .stage-item:hover p {
    font-size: 27px;
  }

  .stage-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage-detail{
     padding: 20px 0;
  }

  .stage-points{
    max-width: 450px;
    margin-left: 5% ;
  }

  .stage-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .stage-item img {
    max-width: 130px;
  }
  .stage-title {
    font-size: 32px;
  }

  .cta-title {
    font-size: 26px;
  }

  .hero-line{
    top: 35px;
  }
}


/* ================= LARGE MOBILE (481px – 600px) ================= */
@media (min-width: 481px) and (max-width: 600px) {

  .process-content h1 {
    font-size: 30px;
  }

  .process-content p {
    font-size: 16px;
  }

  .stages-wrapper {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stages-wrapper::before {
    display: none;
  }

  .stage-detail{
     padding: 20px 0;
  }

  .stages-title {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 500;
  }

  .stage-item img {
    max-width: 120px;
  }

  .stage-item p {
    font-size: 25px;
  }
  .stage-item:hover p {
    font-size: 26px;
  }

  .stage-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .stage-title {
    font-size: 30px;
  }

  .stage-points{
    max-width: 400px;
    margin-left: 5% ;
  }

  
  .stage-left p {
    font-size: 17px;
    text-align: justify;
  }

  .cta-title {
    font-size: 28px;
    line-height: 1.8;
  }

  .hero-line {
    top: 38px;
  }
}


/* ================= MOBILE (≤ 480px) ================= */
@media (max-width: 480px) {

  body {
    padding-top: 70px !important;
  }

  .process-section {
    padding: 40px 0;
  }

  .process-content h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .process-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .process-image {
    margin-top: 35px;
  }

  .stages-wrapper {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stage-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage-detail{
     padding: 20px 0;
  }

  .stage-points{
    max-width: 400px;
    margin-left: 5% ;
  }

  .stages-title {
    font-size: 21px;
    margin-bottom: 40px;
  }

  .stage-item img {
    max-width: 120px;
  }

  .stage-item p {
    font-size: 24px;
  }

  .stage-item:hover p {
    font-size: 25px;
  }

  .dot {
    width: 26px;
    height: 26px;
  }

  .stage-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .stage-left p {
    font-size: 16px;
  }

  .stage-points span:last-child {
    font-size: 15px;
  }

  .cta-title {
    font-size: 25px;
    line-height: 1.8;
  }

  .hero-line {
    top: 40px;
  }
}
