/* ==========================================================================
   Home: "The Development Journey with CodeCurious" — five steps joined by a dotted path,
   and a strip of four working values. Class names avoid the "-card" suffix, which
   luxury.js would otherwise pick up and animate.
   ========================================================================== */

.djr-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #F3F7FE 0%, #EEF4FD 100%);
  font-family: var(--font-sans);
}

.djr-wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.djr-wave--left {
  top: -120px;
  left: -260px;
  width: 620px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.85), rgba(191, 219, 254, 0));
}

.djr-wave--right {
  right: -220px;
  bottom: -240px;
  width: 600px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0));
}

.djr-inner {
  max-width: 1440px;
}

/* ---- Heading ---- */
.djr-header {
  max-width: 860px;
  margin: 0 auto 64px;
  text-align: center;
}

.djr-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  background: #E8F1FD;
  color: #1D4ED8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.djr-pill svg {
  width: 18px;
  height: 18px;
}

.djr-heading {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #071827;
  text-wrap: balance;
}

.djr-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: #1D4ED8;
}

.djr-swoosh {
  position: absolute;
  left: 30%;
  bottom: -8px;
  width: 64%;
  height: 16px;
}

.djr-sub {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  text-wrap: pretty;
}

/* ---- Steps ---- */
.djr-track {
  position: relative;
}

.djr-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the dotted path between the icons, and the dots on it (wide screens only) */
.djr-path,
.djr-dots {
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  pointer-events: none;
}

.djr-path {
  width: 100%;
  overflow: visible;
}

.djr-path path {
  fill: none;
  stroke: url(#djr-path-gradient);
  stroke-width: 2;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.djr-dots span {
  position: absolute;
  top: 68px;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 0 4px #FFFFFF, 0 4px 10px rgba(37, 99, 235, 0.35);
}

.djr-dots span:nth-child(1) { left: 20%; }
.djr-dots span:nth-child(2) { left: 40%; background: #4F46E5; }
.djr-dots span:nth-child(3) { left: 60%; }
.djr-dots span:nth-child(4) { left: 80%; background: #6D28D9; }

.djr-step {
  --tone: #2563EB;
  --tone-2: #1D4ED8;
  --tone-hi: #60A5FA;
  --tone-soft: #DBEAFE;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px; /* most of the icon sits above the card */
  text-align: center;
}

.djr-step:nth-child(even) {
  --tone: #6D28D9;
  --tone-2: #5B21B6;
  --tone-hi: #A78BFA;
  --tone-soft: #EDE9FE;
  margin-top: 40px;
}

.djr-icon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 7px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 18px 32px -14px rgba(30, 64, 175, 0.45);
  transform: translateX(-50%) rotate(-5deg);
  transition: transform 0.35s ease;
}

.djr-step:nth-child(even) .djr-icon {
  transform: translateX(-50%) rotate(5deg);
}

.djr-icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--tone-hi) 0%, var(--tone) 55%, var(--tone-2) 100%);
  color: #FFFFFF;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.45), inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}

/* glossy light across the top of the tile */
.djr-icon-tile::before {
  content: "";
  position: absolute;
  inset: -40% -20% 52%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.djr-icon svg {
  position: relative;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2));
}

.djr-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 46px 22px 34px;
  border: 1px solid #E3EBF6;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow: 0 24px 46px -30px rgba(11, 34, 57, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* the coloured bar along the bottom edge */
.djr-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 62%;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, var(--tone-hi), var(--tone));
  transform: translateX(-50%);
}

.djr-step:hover .djr-body {
  box-shadow: 0 30px 52px -30px rgba(11, 34, 57, 0.5);
}

.djr-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-2);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.djr-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #071827;
  text-wrap: balance;
}

.djr-desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #334155;
  text-wrap: pretty;
}

/* ---- Values strip ---- */
.djr-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1220px;
  margin: 72px auto 0;
  padding: 10px;
  border: 1px solid #E3EBF6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 44px -32px rgba(11, 34, 57, 0.4);
  list-style: none;
}

.djr-values li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #0B2239;
}

.djr-values li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 36px;
  background: #E2E8F0;
  transform: translateY(-50%);
}

.djr-values svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: #2563EB;
}

.djr-values li:nth-child(even) svg {
  color: #4F46E5;
}

/* ---- Entrance: steps rise in turn once the section is in view ---- */
.djr-armed .djr-step {
  opacity: 0;
  transform: translateY(24px);
}

.djr-armed.djr-in .djr-step {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.djr-armed.djr-in .djr-step:nth-child(2) { transition-delay: 90ms; }
.djr-armed.djr-in .djr-step:nth-child(3) { transition-delay: 180ms; }
.djr-armed.djr-in .djr-step:nth-child(4) { transition-delay: 270ms; }
.djr-armed.djr-in .djr-step:nth-child(5) { transition-delay: 360ms; }

.djr-armed .djr-path,
.djr-armed .djr-dots {
  opacity: 0;
}

.djr-armed.djr-in .djr-path,
.djr-armed.djr-in .djr-dots {
  opacity: 1;
  transition: opacity 0.8s ease 0.45s;
}

/* ---- Narrower laptops: smaller type in the five columns ---- */
@media (max-width: 1399px) {
  .djr-steps {
    gap: 16px;
  }

  .djr-body {
    padding: 44px 16px 30px;
  }

  .djr-title {
    font-size: 19px;
  }

  .djr-desc {
    font-size: 14.5px;
  }

  .djr-values li {
    font-size: 15.5px;
  }
}

/* ---- Tablets and phones: cards in rows, no path ---- */
@media (max-width: 1099px) {
  .djr-path,
  .djr-dots {
    display: none;
  }

  .djr-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 20px;
  }

  .djr-step {
    width: calc((100% - 40px) / 3);
  }

  .djr-step:nth-child(even) {
    margin-top: 0;
  }

  .djr-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 28px;
  }

  .djr-values li:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 799px) {
  .djr-step {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 560px) {
  .djr-section {
    padding: 72px 0;
  }

  .djr-header {
    margin-bottom: 44px;
  }

  .djr-sub {
    font-size: 16px;
  }

  .djr-step {
    width: 100%;
  }

  .djr-title {
    font-size: 21px;
  }

  .djr-desc {
    font-size: 15.5px;
  }

  .djr-values {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
  }

  .djr-values li {
    justify-content: flex-start;
  }

  .djr-values li + li::before {
    left: 18px;
    right: 18px;
    top: 0;
    width: auto;
    height: 1px;
    transform: none;
  }

  .djr-values li:nth-child(3)::before {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .djr-armed .djr-step,
  .djr-armed .djr-path,
  .djr-armed .djr-dots {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .djr-icon,
  .djr-body {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .djr-step:hover .djr-icon {
    transform: translateX(-50%) rotate(0deg) translateY(-4px);
  }
}

.djr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* "hidden" on the section must win over any display rule */
.djr-section[hidden] {
  display: none !important;
}
