/* ════════════════════════════════════════════
   INDEX PAGE — NEW DESIGN (matching reference)
   ════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   SECTION 1: HERO
   ───────────────────────────────────────── */

.idx-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Image sits in normal flow — dictates section height */
.idx-hero-bg {
  position: relative;
  z-index: 0;
  line-height: 0;
}

.idx-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.idx-hero-overlay {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
}

/* Content floats absolutely centered over image */
.idx-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  gap: 16px;
  text-align: center;
}

.idx-hero-heading {
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 800;
  color: #000;
  line-height: 1.35;
  text-align: center;
}

/* Hero pill highlights — colour-wipe effect */
.idx-hero-highlight {
  border-radius: 999px;
  padding: 2px 14px;
  display: inline-block;
  vertical-align: baseline;
  color: #fff;
  font-weight: inherit;
  /* gradient: left = incoming colour, right = current colour */
  background-image: linear-gradient(to right, var(--pill-next, #8C0000) 50%, var(--pill-cur, #1B3B8A) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  /* start: show right half = current */
  transition: background-position 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.idx-hero-highlight.pill-wipe {
  background-position: 0% 0;
  /* slide to left half = incoming */
}

/* .idx-hero-bottom removed — subtext is now inside .idx-hero-content */

.idx-hero-sub {
  font-size: 1.1rem;
  color: #000;
  line-height: 1.65;
}

@media (max-width: 640px) {

  /* Push hero below fixed navbar so full image shows */
  .idx-hero {
    margin-top: 58px;
  }

  /* Use the taller image on mobile */
  .idx-hero-img {
    content: url('../index-hero-2.png');
  }

  .idx-hero-content {
    padding: 0 20px;
  }

  .idx-hero-heading {
    font-size: 1.05rem;
  }

  .idx-hero-sub {
    font-size: 0.8rem;
  }

  .idx-hero-sub br {
    display: none;
  }

  .idx-why-now {
    margin-top: 0 !important;
    border-radius: 10px 10px 0 0 !important;
  }
}

/* Desktop only — constrain hero height and clear fixed navbar */
@media (min-width: 641px) {
  .idx-hero {
    padding-top: 62px;
  }

  .idx-hero-img {
    height: 75vh;
    max-height: 75vh;
    object-fit: cover;
    object-position: center top;
  }

  .idx-hero-content {
    top: 50%;
  }

  .idx-hero-sub {
    font-weight: 600;
  }
}

/* Medium laptops */
@media (min-width: 641px) and (max-width: 1100px) {
  .idx-hero-heading {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  }
}




/* ─────────────────────────────────────────
   SECTION 2: WHY NOW
   ───────────────────────────────────────── */

.idx-why-now {
  position: relative;
  background: #fff;
  border-radius: 48px 48px 0 0;
  margin-top: -48px;
  z-index: 10;
  padding: 40px 48px 36px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.25);
}

.idx-why-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 640px;
}

.idx-why-label {
  text-align: center;
}

.idx-why-label-text {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #000;
  display: block;
}

.idx-why-label-red {
  color: var(--red);
}

.idx-why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.idx-why-card {
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #e2e2e2;
  cursor: default;
  transition: background 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease;
  padding: 24px 20px;
}

.idx-why-card:hover {
  background: var(--blue);
  transform: scale(1.03);
  box-shadow: 0 10px 32px rgba(27, 59, 138, 0.25);
}

.idx-why-card:hover .idx-why-card-title {
  color: #fff;
}

.idx-why-card:hover .idx-why-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.idx-why-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  transition: color 0.4s ease;
}

.idx-why-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #000;
  transition: color 0.4s ease;
}

.idx-why-bottom-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 640px) {
  .idx-why-now {
    padding: 28px 20px 24px;
    border-radius: 28px 28px 0 0;
  }

  .idx-why-inner {
    gap: 16px;
  }

  .idx-why-label-text {
    font-size: 1.6rem;
  }

  .idx-why-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .idx-why-bottom-line {
    font-size: 0.92rem;
  }
}

/* Decorative background elements */
.idx-why-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.idx-why-deco--bl {
  bottom: 0;
  left: 0;
  width: 220px;
}

.idx-why-deco--tr {
  top: 0;
  right: 0;
  width: 220px;
}


/* ─────────────────────────────────────────
   SECTION 3: VIDEO
   ───────────────────────────────────────── */

.idx-video-section {
  background: #3B9FD4;
  padding: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.idx-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border: 6px solid #fff;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.idx-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.idx-video-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .idx-video-section {
    padding: 28px 20px;
  }
}

/* ── Custom video controls ── */
.vid-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.idx-video-wrap:hover .vid-controls {
  opacity: 1;
}

.vid-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vid-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.vid-btn svg {
  width: 20px;
  height: 20px;
}

.vid-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.idx-video-wrap:hover .vid-progress {
  height: 5px;
}

.vid-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}

.vid-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  left: 0%;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.vid-progress:hover .vid-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.vid-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}




/* ─────────────────────────────────────────
   SECTION 4: WORK INDIA
   ───────────────────────────────────────── */

.idx-work-india {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 48px;
}

/* Decorative absolute images */
.idx-work-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.idx-work-deco--bl {
  bottom: 0;
  left: 0;
  width: 220px;
}

.idx-work-deco--tr {
  top: 0;
  right: 0;
  width: 220px;
}

/* Inner container — fixed height for absolutely positioned children */
.idx-work-inner {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  height: 370px;
  z-index: 1;
}

/* Cards */
.idx-work-card {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 24px 24px;
  width: 306px;
}

.idx-work-card--left {
  top: 15px;
  left: 15px;
  text-align: left;
}

.idx-work-card--right {
  bottom: 15px;
  right: 15px;
  text-align: right;
}

.idx-work-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #000;
  line-height: 1.3;
  margin-bottom: 10px;
}

.idx-work-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.idx-work-card-list li {
  font-size: 0.9rem;
  color: #000;
  line-height: 1.45;
}

/* Centre badge */
.idx-work-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, #8C0000, #260000);
  color: #fff;
  border-radius: 10px;
  padding: 14px 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  z-index: 3;
}

/* Arrow PNGs — positioned in the open spaces */
.idx-work-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 170px;
}

/* Top-right arc: tail near badge top-right, sweeps into top-right space */
.idx-work-arrow--tr {
  left: 387px;
  top: 20px;
  transform: rotate(366deg);
}

/* Bottom-left arc: same image rotated 180°, arrowhead near badge bottom-left */
.idx-work-arrow--bl {
  left: 191px;
  top: 192px;
  transform: rotate(183deg);
}

@media (max-width: 900px) {
  .idx-work-india {
    padding: 40px 20px;
  }

  .idx-work-inner {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
    align-items: center;
  }

  .idx-work-card,
  .idx-work-card--left,
  .idx-work-card--right {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    width: 70%;
    max-width: none;
    text-align: left;
  }

  /* Global companies — flush left */
  .idx-work-card--left {
    align-self: flex-start;
  }

  /* Indian founders — flush right */
  .idx-work-card--right {
    align-self: flex-end;
    text-align: right;
  }

  .idx-work-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 4px auto;
  }

  /* Hide decorative deco images on smaller screens */
  .idx-work-arrows-svg {
    display: none;
  }

  /* Badge row: flex so arrows flank left & right of the badge */
  .idx-work-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
  }

  /* Arrows: pull out of absolute flow, sit inline beside badge */
  .idx-work-arrow {
    position: static !important;
    width: 90px;
    flex-shrink: 0;
  }

  .idx-work-arrow--bl {
    transform: rotate(239deg);
    margin-right: 0px;
  }

  .idx-work-arrow--tr {
    transform: rotate(60deg);
    margin-left: 0px;
  }
}



/* ─────────────────────────────────────────
   SECTION 5: NEC STORY
   ───────────────────────────────────────── */

.idx-nec-story {
  background: #F2F0F0;
  padding: 64px 64px 80px;
}

.idx-nec-story-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.idx-nec-story-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #000;
  margin-bottom: 20px;
}

.idx-nec-story-red {
  color: var(--red);
}

.idx-nec-story-desc {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  color: #111;
  margin-bottom: 40px;
  max-width: 700px;
}

/* 3-column items */
.idx-nec-story-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.idx-nec-story-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Blue top bar */
.idx-nec-story-bar {
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.idx-nec-story-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #222;
}

@media (max-width: 768px) {
  .idx-nec-story {
    padding: 40px 20px;
  }

  .idx-nec-story-title {
    font-size: 2.2rem;
  }

  .idx-nec-story-items {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}



/* ─────────────────────────────────────────
   SECTION 6: OUR ECOSYSTEM
   ───────────────────────────────────────── */

.idx-ecosystem {
  background: #fff;
  padding: 64px 64px 80px;
}

.idx-ecosystem-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.idx-ecosystem-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #000;
  margin-bottom: 40px;
}

.idx-ecosystem-red {
  color: var(--red);
}

/* 2-column grid */
.idx-ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Each item: card + text below */
.idx-eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* The card itself */
.idx-eco-card {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.idx-eco-card:hover {
  transform: scale(1.05);
  border-color: rgba(140, 0, 0, 0.45);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(140, 0, 0, 0.15),
    0 0 50px rgba(140, 0, 0, 0.22);
}

.idx-eco-card img {
  max-width: 220px;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

/* Text below the card */
.idx-eco-item-desc {
  font-size: 1.16rem;
  color: #000;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .idx-ecosystem {
    padding: 40px 10px;
  }

  .idx-ecosystem-title {
    font-size: 2.2rem;
  }

  .idx-ecosystem-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .idx-eco-card {
    padding: 28px 20px;
  }

  .idx-eco-item-desc {
    font-size: 0.82rem;
    white-space: nowrap;
    margin: 0;
    padding: 0;
  }
}