@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@500;700;800&display=swap");

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

@keyframes journeyDraw {
  from { stroke-dashoffset: 2400; }
  to { stroke-dashoffset: 0; }
}

@keyframes journeyDashFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -40; }
}

.journey {
  width: 100%;
  max-width: 100vw;
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 162, 76, 0.1), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(30, 58, 95, 0.1), transparent 45%),
    linear-gradient(150deg, #eef4ff 0%, #e6edfb 45%, #f3ecdf 100%);
  padding: clamp(28px, 5vw, 48px) clamp(16px, 5vw, 48px) clamp(32px, 6vw, 56px);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow-x: clip;
}

.journey__inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* ---------- badge ---------- */
.journey__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(28px);
  flex-wrap: wrap;
  max-width: 100%;
}

.journey--visible .journey__badge {
  animation: journeyFadeInUp 0.7s ease forwards;
  animation-delay: 0.05s;
}

.journey__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;
}

.journey__badge-text {
  color: #1e3a5f;
  font-size: clamp(10.5px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: normal;
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
  min-width: 0;
}

/* ---------- heading ---------- */
.journey__heading {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.4;
  color: #1e3a5f;
  margin: 0 0 12px 0;
  padding-top: 4px;
  overflow: visible;
  letter-spacing: -0.3px;
  font-family: "Plus Jakarta Sans", sans-serif;
  opacity: 0;
  transform: translateY(28px);
  word-break: break-word;
}

.journey--visible .journey__heading {
  animation: journeyFadeInUp 0.7s ease forwards;
  animation-delay: 0.15s;
}

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

.journey__underline {
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: #d4a24c;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(28px);
}

.journey--visible .journey__underline {
  animation: journeyFadeInUp 0.7s ease forwards;
  animation-delay: 0.25s;
}

.journey__para {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 24px 0;
  max-width: 480px;
  opacity: 0;
  transform: translateY(28px);
}

.journey--visible .journey__para {
  animation: journeyFadeInUp 0.7s ease forwards;
  animation-delay: 0.3s;
}

/* ============================================================
   DESKTOP CURVY ROAD (5 points)
   ============================================================ */
.journey__roadWrap {
  position: relative;
  width: 100%;
  height: 440px;
}

.journey__roadSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.journey__roadPath--base {
  stroke: #d7deee;
  stroke-width: 34;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}

.journey--visible .journey__roadPath--base {
  animation: journeyDraw 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.journey__roadPath--dash {
  stroke: #d4a24c;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 14 14;
  opacity: 0;
}

.journey--visible .journey__roadPath--dash {
  animation: journeyDashReveal 0.5s ease forwards 1.9s, journeyDashFlow 3.5s linear infinite 2.4s;
}

@keyframes journeyDashReveal {
  to { opacity: 0.75; }
}

.journey__points {
  position: absolute;
  inset: 0;
}

.journey__point {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 190px;
  max-width: 26vw;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.journey__point:hover {
  z-index: 10;
}

.journey--visible .journey__point {
  animation: journeyPinFadeIn 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.28s + 0.35s);
}

@keyframes journeyPinFadeIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.journey__pointCard {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.journey__point--top .journey__pointCard {
  top: 68px;
}

.journey__point--bottom .journey__pointCard {
  bottom: 68px;
}

.journey__point::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(212, 162, 76, 0.9), rgba(212, 162, 76, 0.15));
  transform: translateX(-50%);
  z-index: 1;
}

.journey__point--top::after {
  top: 48px;
}

.journey__point--bottom::after {
  bottom: 48px;
  background: linear-gradient(to top, rgba(212, 162, 76, 0.9), rgba(212, 162, 76, 0.15));
}

/* 6 points positioned along the road — evenly spaced */
.journey__point--0 { left: 5%;    top: 76%; }
.journey__point--1 { left: 22.6%; top: 28%; }
.journey__point--2 { left: 40.2%; top: 68%; }
.journey__point--3 { left: 57.8%; top: 24%; }
.journey__point--4 { left: 75.4%; top: 66%; }
.journey__point--5 { left: 93%;   top: 26%; }

.journey__pin {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  color: #d4a24c;
  border: 2.5px solid #d4a24c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3), 0 0 0 5px rgba(212, 162, 76, 0.12);
  flex-shrink: 0;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey__point:hover .journey__pin {
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.35), 0 0 0 7px rgba(212, 162, 76, 0.2);
}

.journey__pointCard {
  width: 190px;
  max-width: 26vw;
  min-height: 148px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 162, 76, 0.3);
  border-radius: 14px;
  padding: 14px 16px 15px;
  box-shadow: 0 12px 26px rgba(30, 58, 95, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.journey--visible .journey__point--top .journey__pointCard,
.journey--visible .journey__point--bottom .journey__pointCard {
  animation: journeyCardReveal 0.45s ease forwards;
  animation-delay: calc(var(--i) * 0.28s + 0.55s);
}

@keyframes journeyCardReveal {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.journey__point:hover .journey__pointCard {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 18px 34px rgba(30, 58, 95, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(212, 162, 76, 0.6);
}

.journey__pointYear {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #d4a24c;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 2px;
}

.journey__pointTitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 4px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  word-break: break-word;
}

.journey__pointDesc {
  font-size: 11.5px;
  line-height: 1.5;
  color: #5b6472;
  margin: 0;
}

/* ============================================================
   MOBILE VERTICAL LIST (hidden on desktop)
   ============================================================ */
.journey__mobileList {
  display: none;
}

.journey__mobileItem {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
}

.journey--visible .journey__mobileItem {
  animation: journeyFadeInUp 0.55s ease forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.3s);
}

.journey__mobileItem::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(212, 162, 76, 0.6), rgba(212, 162, 76, 0.15));
}

.journey__mobileItem:last-child::before {
  display: none;
}

.journey__mobileDot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  color: #d4a24c;
  border: 2px solid #d4a24c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.28);
  flex-shrink: 0;
}

.journey__mobileContent {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 162, 76, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.06);
}

.journey__mobileContent .journey__pointDesc {
  display: block;
  margin-top: 4px;
}

/* ---------- footer ---------- */
.journey__footer {
  margin-top: 48px;
  text-align: center;
  border-top: 1px solid rgba(212, 162, 76, 0.3);
  padding-top: 22px;
  opacity: 0;
  transform: translateY(24px);
}

.journey--visible .journey__footer {
  animation: journeyFadeInUp 0.7s ease forwards;
  animation-delay: 1.4s;
}

.journey__footerLine {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1e3a5f;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 6px;
}

.journey__footerNote {
  font-size: 13px;
  color: #6b7280;
  margin: 0 auto;
  max-width: 90%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Small laptop ---- */
@media (max-width: 1300px) {
  .journey__roadWrap {
    height: 400px;
  }

  .journey__point {
    width: 168px;
  }

  .journey__pointCard {
    width: 168px;
    min-height: 138px;
  }
}

/* ---- Tablet landscape: keep road, shrink cards & hide long desc ---- */
@media (max-width: 1100px) {
  .journey {
    padding: 40px 28px 48px;
  }

  .journey__roadWrap {
    height: 380px;
  }

  .journey__point {
    width: 150px;
  }

  .journey__pointCard {
    width: 150px;
    min-height: 130px;
    padding: 12px 13px 13px;
  }

  .journey__pointDesc {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .journey__pointYear {
    font-size: 13px;
  }

  .journey__pointTitle {
    font-size: 12px;
  }

  .journey__pin {
    width: 40px;
    height: 40px;
  }
}

/* ---- Fix overlap specifically around 1024px (laptop) ---- */
@media (max-width: 1100px) and (min-width: 901px) {
  .journey__roadWrap {
    height: 460px;
  }

  .journey__point {
    width: 138px;
  }

  .journey__pointCard {
    width: 138px;
    min-height: 118px;
    padding: 10px 10px 11px;
  }

  .journey__pointDesc {
    font-size: 10px;
    line-height: 1.35;
  }

  .journey__pointYear {
    font-size: 12px;
  }

  .journey__pointTitle {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .journey__pin {
    width: 36px;
    height: 36px;
  }

  /* more breathing room between points so cards don't collide, evenly spaced */
  .journey__point--0 { left: 5%;    top: 82%; }
  .journey__point--1 { left: 22.6%; top: 22%; }
  .journey__point--2 { left: 40.2%; top: 76%; }
  .journey__point--3 { left: 57.8%; top: 20%; }
  .journey__point--4 { left: 75.4%; top: 74%; }
  .journey__point--5 { left: 93%;   top: 24%; }
}

/* ---- Tablet portrait / small: switch to vertical timeline list ---- */
@media (max-width: 900px) {
  .journey {
    padding: 40px 20px 48px;
  }

  .journey__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .journey__inner {
    text-align: center;
  }

  .journey__badge,
  .journey__underline {
    display: inline-flex;
  }

  .journey__underline {
    margin-left: auto;
    margin-right: auto;
  }

  .journey__para {
    margin-left: auto;
    margin-right: auto;
  }

  .journey__roadWrap {
    display: none;
  }

  .journey__mobileList {
    display: block;
    text-align: left;
    margin-top: 8px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .journey {
    padding: 36px 16px 40px;
  }

  .journey__heading {
    font-size: clamp(20px, 5vw, 26px);
  }

  .journey__para {
    font-size: 14px;
  }

  .journey__mobileDot {
    width: 40px;
    height: 40px;
  }

  .journey__mobileItem::before {
    left: 19px;
  }

  .journey__mobileContent {
    padding: 12px 14px;
  }
}

/* ---- Mobile small ---- */
@media (max-width: 480px) {
  .journey {
    padding: 32px 14px 36px;
  }

  .journey__heading {
    font-size: 21px;
  }

  .journey__badge-text {
    font-size: 10.5px;
  }

  .journey__mobileDot {
    width: 38px;
    height: 38px;
  }

  .journey__mobileItem {
    gap: 12px;
    padding-bottom: 26px;
  }

  .journey__mobileItem::before {
    left: 18px;
    top: 40px;
  }

  .journey__mobileContent {
    padding: 10px 12px;
  }

  .journey__footer {
    margin-top: 36px;
  }
}

/* ---- Extra small ---- */
@media (max-width: 360px) {
  .journey__heading {
    font-size: 19px;
  }

  .journey__mobileDot {
    width: 34px;
    height: 34px;
  }

  .journey__mobileItem::before {
    left: 16px;
  }
}
