@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

@keyframes eco2FadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eco2FadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eco2LineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.eco2 {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(30, 58, 95, 0.09) 1.5px, transparent 0) 0 0/28px 28px,
    #edf3ff;
  padding: 56px 48px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

.eco2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #edf3ff 0%, rgba(237, 243, 255, 0.4) 40%, rgba(237, 243, 255, 0.4) 60%, #edf3ff 100%);
  pointer-events: none;
  z-index: 0;
}

.eco2__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.eco2__glow--one {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(212, 173, 82, 0.32), transparent 70%);
}

.eco2__glow--two {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.26), transparent 70%);
}

.eco2__glow--three {
  width: 520px;
  height: 300px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212, 162, 76, 0.14), transparent 72%);
}

.eco2__inner {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- top: badge + heading ---------- */
.eco2__top {
  text-align: center;
  margin-bottom: 56px;
}

.eco2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  animation-play-state: paused;
}

.eco2__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #1e3a5f;
  border-radius: 6px;
  flex-shrink: 0;
}

.eco2__badge-text {
  color: #1e3a5f;
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
}

.eco2__heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  color: #1e3a5f;
  margin: 0 auto 20px;
  max-width: 920px;
  font-family: "Plus Jakarta Sans", sans-serif;
  opacity: 0;
  animation-play-state: paused;
}

.eco2__heading--accent {
  color: #d4a24c;
}

.eco2__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto 22px;
}

.eco2__dividerLine {
  flex: 1;
  height: 1px;
  background: #d4a24c;
  opacity: 0.5;
}

.eco2__dividerIcon {
  color: #d4a24c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco2__para {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a5568;
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- zigzag timeline (no card wrapper) ---------- */
@keyframes eco2BorderSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.eco2__timelineCardOuter {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  margin-bottom: 44px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30, 58, 95, 0.1);
}

.eco2__timelineCardOuter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  padding-top: 220%;
  background: conic-gradient(
    from 0deg,
    rgba(212, 162, 76, 0.55) 0deg,
    rgba(240, 200, 120, 0.5) 60deg,
    transparent 130deg,
    transparent 200deg,
    rgba(30, 58, 95, 0.4) 260deg,
    rgba(45, 84, 128, 0.4) 300deg,
    transparent 340deg,
    rgba(212, 162, 76, 0.55) 360deg
  );
  animation: eco2BorderSpin 14s linear infinite;
  z-index: 0;
}

.eco2__timelineCard {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24.5px;
  padding: 76px 40px 44px;
}

.eco2__timeline {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 0;
}

.eco2__timelineLine {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #d4a24c 0,
    #d4a24c 8px,
    transparent 8px,
    transparent 16px
  );
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation-play-state: paused;
  z-index: 0;
}

.eco2__node {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation-play-state: paused;
}

.eco2__node--up {
  justify-content: flex-end;
  margin-bottom: 44px;
}

.eco2__node--down {
  justify-content: flex-start;
  margin-top: 44px;
}

.eco2__nodeIconWrap {
  position: relative;
  z-index: 1;
  order: 1;
}

.eco2__node--down .eco2__nodeIconWrap {
  order: 3;
}

.eco2__nodeIcon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d4a24c;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.15);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.eco2__node:hover .eco2__nodeIcon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  color: #d4a24c;
  box-shadow: 0 14px 30px rgba(30, 58, 95, 0.3);
}

.eco2__nodeNum {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d4a24c;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.eco2__nodeStem {
  order: 2;
  width: 2px;
  height: 40px;
  background: linear-gradient(#d4a24c, rgba(212, 162, 76, 0.15));
}

.eco2__node--down .eco2__nodeStem {
  background: linear-gradient(rgba(212, 162, 76, 0.15), #d4a24c);
}

.eco2__nodeTitle {
  order: 4;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3a5f;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  max-width: 150px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.eco2__node--up .eco2__nodeTitle {
  order: 0;
  margin-bottom: 14px;
}

/* ---------- scroll-triggered reveal ---------- */
.eco2.eco2--visible .eco2__badge {
  animation: eco2FadeInDown 0.7s ease both;
  animation-play-state: running;
}

.eco2.eco2--visible .eco2__heading {
  animation: eco2FadeInUp 0.8s ease 0.1s both;
  animation-play-state: running;
}

.eco2.eco2--visible .eco2__timelineLine {
  animation: eco2LineGrow 1.1s ease 0.2s both;
  animation-play-state: running;
  opacity: 1;
}

.eco2.eco2--visible .eco2__node {
  animation: eco2FadeInUp 0.7s ease both;
  animation-play-state: running;
}

.eco2.eco2--visible .eco2__node:nth-child(2) { animation-delay: 0.15s; }
.eco2.eco2--visible .eco2__node:nth-child(3) { animation-delay: 0.25s; }
.eco2.eco2--visible .eco2__node:nth-child(4) { animation-delay: 0.35s; }
.eco2.eco2--visible .eco2__node:nth-child(5) { animation-delay: 0.45s; }
.eco2.eco2--visible .eco2__node:nth-child(6) { animation-delay: 0.55s; }
.eco2.eco2--visible .eco2__node:nth-child(7) { animation-delay: 0.65s; }

/* ---------- bottom ---------- */
.eco2__bottom {
  text-align: center;
}

.eco2__bottomText {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 26px 0;
}

.eco2__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e3a5f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  border: none;
  border-radius: 10px;
  padding: 15px 32px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.eco2__btn:hover {
  background: #d4a24c;
  color: #1e2a3c;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1200px) {
  .eco2 {
    padding: 56px 36px;
  }

  .eco2__nodeTitle {
    max-width: 130px;
  }
}

@media (max-width: 1024px) {
  .eco2 {
    padding: 64px 28px;
  }

  .eco2__top {
    margin-bottom: 56px;
  }

  .eco2__timelineCard {
    padding: 36px 24px 32px;
  }

  .eco2__timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    padding: 0;
  }

  .eco2__timelineLine {
    display: none;
  }

  .eco2__node,
  .eco2__node--up,
  .eco2__node--down {
    margin: 0;
    justify-content: flex-start;
  }

  .eco2__nodeIconWrap,
  .eco2__node--down .eco2__nodeIconWrap {
    order: 1;
  }

  .eco2__nodeStem {
    display: none;
  }

  .eco2__nodeTitle,
  .eco2__node--up .eco2__nodeTitle {
    order: 2;
    margin: 14px 0 0;
    max-width: 190px;
  }
}

@media (max-width: 768px) {
  .eco2 {
    padding: 56px 20px;
  }

  .eco2__badge-text {
    font-size: 12px;
  }

  .eco2__heading {
    font-size: 24px;
  }

  .eco2__para {
    font-size: 15px;
  }

  .eco2__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 16px;
  }

  .eco2__nodeIcon {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 480px) {
  .eco2 {
    padding: 48px 16px;
  }

  .eco2__top {
    margin-bottom: 44px;
  }

  .eco2__heading {
    font-size: 21px;
  }

  .eco2__para {
    font-size: 14px;
  }

  .eco2__timelineCardOuter {
    border-radius: 20px;
    margin-bottom: 44px;
  }

  .eco2__timelineCard {
    padding: 26px 16px 24px;
    border-radius: 18.5px;
  }

  .eco2__timeline {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .eco2__node {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: flex-start !important;
  }

  .eco2__nodeTitle {
    text-align: left;
    max-width: none;
    margin: 0 !important;
  }

  .eco2__btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}