/* ══════════════════════════════════════════════════════════════
   SKILL TENET INTERNATIONAL SERVICES
   Globe Section CSS - Canvas, Cards, Fog, Motion Blur, Cursor
   ══════════════════════════════════════════════════════════════ */

/* ── GLOBE CANVAS ── */
#globe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
}

/* ── SCROLL SPACE ── */
#scroll-space {
  height: 1000vh;
  position: relative;
  z-index: var(--z-scroll-space);
  pointer-events: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-blue);
  pointer-events: none;
  z-index: var(--z-cursor-dot);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.5);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition:
    left 0.15s ease-out,
    top 0.15s ease-out;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--clr-red),
    var(--clr-blue),
    var(--clr-accent-green),
    var(--clr-accent)
  );
  z-index: var(--z-progress);
  box-shadow: 0 0 8px var(--clr-blue);
  transition: width 0.08s linear;
  width: 0%;
}

/* ── NAVIGATION ARROWS ── */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-stage-counter);
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--globe-border);
  color: var(--globe-text);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-arrow:hover {
  background: rgba(26, 111, 196, 0.15);
  border-color: var(--clr-red);
  color: var(--clr-red);
  transform: translateY(-50%) scale(1.05);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-arrow-prev {
  left: 24px;
}

.nav-arrow-next {
  right: 24px;
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
}

/* ── SCROLL HINT ── */
#scroll-hint {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-stage-counter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.5s;
  pointer-events: none;
}

#scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--globe-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--clr-red));
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ── STAGE CARDS ── */
.stage-card {
  position: fixed;
  z-index: var(--z-cards);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  contain: layout style;
}

.stage-card.active {
  opacity: 1;
  pointer-events: all;
}

/* ── HERO TEXT CARD ── */
#hero-text {
  top: 50%;
  bottom: auto;
  left: 8%;
  transform: translateY(-40%);
  text-align: left;
  width: min(600px, 45vw);
}

#hero-text.active {
  transform: translateY(-50%);
}

#hero-text h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, #f0f2ff 40%, rgba(240, 242, 255, 0.45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero-text .highlight-red {
  color: var(--clr-red);
  -webkit-text-fill-color: var(--clr-red);
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--globe-muted);
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  pointer-events: all;
  flex-wrap: wrap;
}

#hero-text .btn {
  border-radius: 4px;
  padding: 12px 24px;
}

#hero-text .btn-primary {
  background: var(--clr-red);
  border-color: var(--clr-red);
}

#hero-text .btn-secondary {
  background: transparent;
  border-color: var(--globe-border);
  color: var(--globe-text);
  box-shadow: 0 0 0 rgba(10, 10, 187, 0);
  transition: all 0.3s ease;
}

#hero-text .btn-secondary:hover {
  border-color: var(--clr-blue);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
  color: #fff;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--globe-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge svg {
  color: var(--clr-blue);
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  margin-top: clamp(20px, 3vh, 30px);
  flex-wrap: wrap;
}

.stat-num {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--clr-red);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--globe-muted);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* ── LOCATION CARDS ── */
.loc-card {
  bottom: 9%;
  background: var(--globe-surface);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--globe-border);
  border-left: 3px solid var(--clr-red);
  padding: 30px 34px;
  width: min(360px, 45vw);
  transform: translateY(28px);
}

.loc-card.active {
  transform: translateY(0);
}

/* Card side positioning */
.loc-card[data-card-side='left'] {
  left: 5%;
}

.loc-card[data-card-side='right'] {
  right: 5%;
}

.loc-card[data-card-side='center'] {
  left: 50%;
  transform: translateX(-50%) translateY(28px);
}

.loc-card[data-card-side='center'].active {
  transform: translateX(-50%) translateY(0);
}

/* ── CARD CONTENT ── */
.card-region {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-red);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-region::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
  box-shadow:
    0 0 8px var(--clr-red),
    0 0 18px var(--clr-red);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.55;
  }
}

.card-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.card-sub {
  font-size: 13px;
  color: var(--globe-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* ── SECTOR TAGS ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 5px 10px;
  border: 1px solid var(--globe-border);
  color: var(--globe-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag.hot {
  border-color: rgba(26, 111, 196, 0.4);
  color: var(--clr-red);
  background: rgba(26, 111, 196, 0.07);
}

/* ── SKETCH WRAPPER ── */
.sketch-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  position: relative;
}

.sketch-wrap svg {
  width: 200px;
  height: 100px;
}

/* ── CARD FOOTER ── */
.card-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--globe-text);
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: all;
  transition: color 0.2s;
}

.card-cta:hover {
  color: var(--clr-red);
}

/* ── GOD VIEW CARD ── */
#card-god {
  left: 50%;
  transform: translateX(-50%) translateY(28px);
  width: min(740px, 90vw);
}

#card-god.active {
  transform: translateX(-50%) translateY(0);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--globe-border);
  margin-top: 18px;
}

.sector-node {
  background: rgba(4, 6, 15, 0.95);
  padding: 13px 15px;
  transition: background 0.2s;
  cursor: pointer;
  pointer-events: all;
}

.sector-node:hover {
  background: rgba(26, 111, 196, 0.09);
}

.sector-name {
  font-size: 11px;
  font-weight: 700;
}

.sector-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clr-red);
  margin-top: 3px;
}

.sector-bar {
  height: 2px;
  background: var(--globe-border);
  margin-top: 7px;
}

.sector-bar-fill {
  height: 100%;
  background: var(--clr-red);
  transition: width 1.1s 0.3s ease;
  width: 0%;
}

.god-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Act 2 is now #card-reach — see styles below */

/* ── STAGE COUNTER (PIPS) ── */
#stage-counter {
  position: fixed;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-stage-counter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.stage-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  pointer-events: all;
}

.stage-pip.active {
  background: var(--clr-red);
  transform: scale(2.2);
  box-shadow: 0 0 8px var(--clr-red);
}

.stage-tag {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ── FOG OVERLAY ── */
#fog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-fog);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: radial-gradient(
    ellipse 52% 52% at 50% 50%,
    transparent 0%,
    rgba(4, 6, 15, 0.88) 100%
  );
}

/* ── MOTION BLUR ── */
#motion-blur {
  position: fixed;
  inset: 0;
  z-index: var(--z-motion-blur);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 35%, var(--globe-bg) 100%);
}

/* ── LIVE FEED TICKER ── */
#live-feed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-ticker);
  height: 34px;
  overflow: hidden;
  background: rgba(4, 6, 15, 0.92);
  border-top: 1px solid var(--globe-border);
  display: flex;
  align-items: center;
}

.feed-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 18px;
  white-space: nowrap;
  border-right: 1px solid var(--globe-border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}

.feed-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-red);
  animation: pulse 2s ease-in-out infinite;
}

.feed-ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.feed-ticker {
  display: flex;
  animation: ticker-scroll 80s linear infinite;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.feed-item {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--globe-muted);
  padding: 0 28px;
  border-right: 1px solid var(--globe-border);
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fi-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-red);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .loc-card {
    width: min(340px, 90vw);
  }

  .stat-row {
    gap: 32px;
  }

  #stage-counter {
    right: 24px;
  }

  .nav-arrow {
    padding: 12px 16px;
    font-size: 10px;
  }

  .nav-arrow-prev {
    left: 16px;
  }

  .nav-arrow-next {
    right: 16px;
  }
}

@media (max-width: 767px) {
  .loc-card {
    width: 90vw;
    padding: 16px 20px;
    /* Remove backdrop-filter on mobile — it forces full recomposite of the
       WebGL canvas on every scroll frame, causing the strobe-flicker effect */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(4, 6, 15, 0.97);
  }

  .loc-card[data-card-side='left'],
  .loc-card[data-card-side='right'] {
    left: 5%;
  }

  /* Mobile Hero Text */
  #hero-text {
    top: auto;
    bottom: 15%;
    left: 50%;
    transform: translate(-50%, 24px);
    text-align: center;
    width: 90vw;
  }

  #hero-text.active {
    transform: translate(-50%, 0);
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .card-title {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .card-sub {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .sketch-wrap {
    padding: 10px 14px;
    margin-bottom: 12px;
    min-height: 70px;
  }

  .stat-row {
    gap: 24px;
  }

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

  #stage-counter {
    display: flex;
    right: 12px;
    gap: 20px;
  }

  #stage-counter .stage-tag {
    display: none;
  }

  #stage-counter .stage-pip {
    width: 6px;
    height: 6px;
    padding: 19px;
    margin: -19px;
  }

  #live-feed {
    height: 28px;
  }

  .feed-item {
    height: 28px;
    padding: 0 20px;
    font-size: 9px;
  }

  /* Make navigation arrows more prominent on mobile */
  .nav-arrow {
    padding: 14px 18px;
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .nav-arrow span {
    display: none;
    /* Hide text, keep only arrows */
  }

  .nav-arrow-prev {
    left: 12px;
  }

  .nav-arrow-next {
    right: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════
   INDIA HUB CARD (Act 1)
   ══════════════════════════════════════════════════════════════ */
#card-india.india-hub {
  width: min(400px, 47vw);
}

.india-creds {
  display: flex;
  gap: 0;
  margin: 18px 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--globe-border);
  border-bottom: 1px solid var(--globe-border);
}

.india-cred {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--globe-border);
}

.india-cred:last-child {
  border-right: none;
}

.ic-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--clr-red);
  letter-spacing: 0.05em;
}

.ic-key {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--globe-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 3px;
}

.india-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.india-nav-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  text-decoration: none;
  color: var(--globe-text);
  transition:
    background 0.2s,
    border-color 0.2s;
  pointer-events: all;
}

.india-nav-tile:hover {
  background: rgba(26, 111, 196, 0.09);
  border-color: var(--clr-red);
}

.int-icon {
  color: var(--clr-red);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.int-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--globe-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.india-nav-tile:hover .int-label {
  color: var(--globe-text);
}

/* ══════════════════════════════════════════════════════════════
   REACH CARD (Act 2) — matches mockup 1
   ══════════════════════════════════════════════════════════════ */
#card-reach {
  position: fixed;
  right: 4%;
  top: 50%;
  transform: translateY(-54%);
  width: min(500px, 46vw);
  background: var(--globe-surface);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--globe-border);
  border-left: 3px solid var(--clr-red);
  padding: 28px 32px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--globe-border) transparent;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#card-reach.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%);
}

.reach-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-red);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.reach-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--globe-text);
}

.rt-accent {
  color: var(--clr-accent);
}

.reach-sub {
  font-size: 12px;
  color: var(--globe-muted);
  margin-bottom: 16px;
}

.reach-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(26, 111, 196, 0.08);
  border: 1px solid rgba(26, 111, 196, 0.2);
  border-radius: 2px;
  font-size: 12px;
  color: var(--globe-muted);
  margin-bottom: 18px;
}

.reach-stat-pill strong {
  color: var(--globe-text);
  margin: 0 2px;
  font-size: 16px;
  font-weight: 800;
}

.process-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--globe-muted);
  margin-bottom: 14px;
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pipeline::-webkit-scrollbar {
  display: none;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  flex: 1;
  min-width: 72px;
}

.pipe-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(26, 111, 196, 0.3);
  background: rgba(26, 111, 196, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.pipe-step:hover .pipe-circle {
  border-color: var(--clr-red);
  background: rgba(26, 111, 196, 0.12);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--clr-red);
  letter-spacing: 0.1em;
}

.pipe-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--globe-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pipe-desc {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--globe-muted);
  line-height: 1.4;
  padding: 0 4px;
}

.pipe-line {
  flex-shrink: 0;
  width: 18px;
  height: 1px;
  background: rgba(26, 111, 196, 0.25);
  margin-top: 23px;
  position: relative;
}

.pipe-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(26, 111, 196, 0.4);
  border-right: 1px solid rgba(26, 111, 196, 0.4);
  transform: rotate(45deg);
}

/* Reach bottom nav (3-column) */
.reach-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--globe-border);
}

.rb-heading {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--globe-muted);
  margin-bottom: 10px;
}

.rb-btn {
  display: inline-block;
  padding: 8px 12px;
  background: rgba(26, 111, 196, 0.08);
  border: 1px solid rgba(26, 111, 196, 0.2);
  color: var(--globe-text);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  pointer-events: all;
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.rb-btn:hover {
  background: rgba(26, 111, 196, 0.16);
  border-color: var(--clr-red);
  color: var(--globe-text);
}

.rb-blog-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rb-blog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  pointer-events: all;
  transition: opacity 0.2s;
}

.rb-blog-item:hover {
  opacity: 0.8;
}

.rb-blog-thumb {
  width: 38px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.rb-thumb-1 {
  background: linear-gradient(135deg, #0a2540 0%, #1a4a80 50%, #0d3060 100%);
  border: 1px solid rgba(26, 111, 196, 0.2);
}

.rb-thumb-2 {
  background: linear-gradient(135deg, #1a0808 0%, #3d1a00 50%, #2a1200 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rb-blog-title {
  font-size: 9px;
  color: var(--globe-muted);
  line-height: 1.4;
  transition: color 0.2s;
}

.rb-blog-item:hover .rb-blog-title {
  color: var(--globe-text);
}

/* ══════════════════════════════════════════════════════════════
   DESTINATIONS CARD (Act 3) — full-screen explorer, mockup 2
   ══════════════════════════════════════════════════════════════ */
#card-destinations {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 15, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dest-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 111, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 196, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.dest-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    transparent 30%,
    rgba(4, 6, 15, 0.45) 100%
  );
}

.dest-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.dest-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clr-red);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dest-title {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, #f0f2ff 40%, rgba(240, 242, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.dest-sub {
  font-size: 13px;
  color: var(--globe-muted);
  text-align: center;
  max-width: 560px;
  line-height: 1.6;
}

/* Destination Carousel */
.dest-carousel-wrap {
  width: 100%;
  position: relative;
  /* side fade hints for more content */
}

.dest-carousel-wrap::before,
.dest-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}

.dest-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(4, 6, 15, 0.5) 0%, transparent 100%);
}

.dest-carousel-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(4, 6, 15, 0.5) 0%, transparent 100%);
}

.dest-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 4px 12px;
  justify-content: center;
}

.dest-carousel::-webkit-scrollbar {
  display: none;
}

.dest-country-card {
  flex: 0 0 min(170px, 20vw);
  height: clamp(220px, 28vh, 300px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dest-country-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(26, 111, 196, 0.3);
}

.dcc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* City silhouette gradients per country */
.dcc-bg-uae {
  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(245, 158, 11, 0.15) 70%,
      rgba(245, 158, 11, 0.08) 100%
    ),
    linear-gradient(180deg, #0a0806 0%, #1a1005 60%, #0d0a04 100%);
}

.dcc-bg-uae::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: rgba(245, 158, 11, 0.04);
  clip-path: polygon(
    0 100%,
    5% 60%,
    10% 50%,
    14% 38%,
    17% 24%,
    20% 35%,
    24% 55%,
    30% 40%,
    35% 30%,
    40% 50%,
    45% 42%,
    52% 15%,
    56% 28%,
    60% 45%,
    65% 38%,
    70% 55%,
    75% 48%,
    82% 58%,
    88% 52%,
    94% 60%,
    100% 55%,
    100% 100%
  );
}

.dcc-bg-ksa {
  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(249, 115, 22, 0.12) 70%,
      rgba(249, 115, 22, 0.06) 100%
    ),
    linear-gradient(180deg, #0a0600 0%, #1c0e00 60%, #100800 100%);
}

.dcc-bg-ksa::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(249, 115, 22, 0.04);
  clip-path: polygon(
    0 100%,
    10% 65%,
    18% 45%,
    22% 38%,
    26% 48%,
    32% 60%,
    38% 35%,
    44% 22%,
    48% 35%,
    54% 50%,
    60% 38%,
    66% 52%,
    72% 62%,
    80% 50%,
    88% 62%,
    95% 58%,
    100% 65%,
    100% 100%
  );
}

.dcc-bg-qatar {
  background:
    linear-gradient(
      180deg,
      transparent 35%,
      rgba(110, 231, 183, 0.1) 65%,
      rgba(110, 231, 183, 0.05) 100%
    ),
    linear-gradient(180deg, #020c12 0%, #041a26 55%, #030f18 100%);
}

.dcc-bg-qatar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: rgba(110, 231, 183, 0.04);
  clip-path: polygon(
    0 100%,
    8% 65%,
    16% 48%,
    22% 35%,
    28% 48%,
    35% 55%,
    42% 28%,
    48% 38%,
    55% 20%,
    60% 35%,
    68% 50%,
    75% 42%,
    82% 58%,
    90% 52%,
    100% 60%,
    100% 100%
  );
}

.dcc-bg-kuwait {
  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(34, 211, 238, 0.1) 70%,
      rgba(34, 211, 238, 0.05) 100%
    ),
    linear-gradient(180deg, #020b0e 0%, #041520 55%, #020d16 100%);
}

.dcc-bg-kuwait::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: rgba(34, 211, 238, 0.04);
  clip-path: polygon(
    0 100%,
    12% 70%,
    20% 55%,
    28% 45%,
    35% 58%,
    44% 42%,
    52% 30%,
    60% 44%,
    68% 55%,
    75% 48%,
    82% 60%,
    90% 55%,
    100% 65%,
    100% 100%
  );
}

.dcc-bg-oman {
  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(129, 140, 248, 0.1) 70%,
      rgba(129, 140, 248, 0.05) 100%
    ),
    linear-gradient(180deg, #060408 0%, #120a1a 55%, #0a0612 100%);
}

.dcc-bg-oman::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: rgba(129, 140, 248, 0.04);
  clip-path: polygon(
    0 100%,
    15% 65%,
    25% 50%,
    35% 60%,
    45% 42%,
    55% 55%,
    65% 40%,
    75% 52%,
    85% 62%,
    95% 55%,
    100% 62%,
    100% 100%
  );
}

.dcc-bg-malta {
  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(251, 113, 133, 0.1) 70%,
      rgba(251, 113, 133, 0.05) 100%
    ),
    linear-gradient(180deg, #0a0506 0%, #200a0c 55%, #160608 100%);
}

.dcc-bg-malta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: rgba(251, 113, 133, 0.04);
  clip-path: polygon(
    0 100%,
    8% 70%,
    18% 55%,
    28% 48%,
    38% 55%,
    48% 42%,
    55% 52%,
    62% 40%,
    70% 55%,
    80% 48%,
    90% 60%,
    100% 55%,
    100% 100%
  );
}

.dcc-bg-europe {
  background:
    linear-gradient(
      180deg,
      transparent 35%,
      rgba(147, 197, 253, 0.1) 65%,
      rgba(147, 197, 253, 0.05) 100%
    ),
    linear-gradient(180deg, #020408 0%, #060c1e 55%, #040910 100%);
}

.dcc-bg-europe::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: rgba(147, 197, 253, 0.04);
  clip-path: polygon(
    0 100%,
    6% 62%,
    14% 50%,
    20% 38%,
    25% 48%,
    30% 55%,
    38% 30%,
    44% 22%,
    50% 32%,
    56% 45%,
    62% 35%,
    68% 25%,
    74% 38%,
    80% 50%,
    86% 42%,
    92% 55%,
    100% 50%,
    100% 100%
  );
}

.dcc-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(4, 6, 15, 0.96) 0%,
    rgba(4, 6, 15, 0.2) 55%,
    transparent 100%
  );
}

.dcc-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 12px;
  gap: 2px;
}

.dcc-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.dcc-count {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.dcc-pl-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dcc-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(26, 111, 196, 0.4);
  color: rgba(240, 242, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  pointer-events: all;
}

.dcc-btn:hover {
  background: rgba(26, 111, 196, 0.18);
  border-color: var(--clr-red);
  color: #fff;
}

/* Destinations action buttons */
.dest-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dest-action-btn {
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 242, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  pointer-events: all;
}

.dest-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--globe-text);
}

.dest-dive-all-btn {
  border-color: rgba(26, 111, 196, 0.3);
  color: rgba(26, 111, 196, 0.7);
}

.dest-dive-all-btn:hover {
  background: rgba(26, 111, 196, 0.1);
  border-color: var(--clr-red);
  color: var(--clr-red);
}

/* ══════════════════════════════════════════════════════════════
   COUNTRY DETAIL CARDS (hidden — not shown in tour, referenced
   only by config; the globe camera is the visual experience)
   ══════════════════════════════════════════════════════════════ */
.country-detail-card {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   DEEP-DIVE GLOBE TOUR HUD
   Styled as a floating side card — mirrors .loc-card aesthetics.
   ══════════════════════════════════════════════════════════════ */

.tour-hud {
  position: fixed;
  bottom: 9%;
  left: 5%;
  z-index: 200;
  width: min(360px, 45vw);

  background: var(--globe-surface);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--globe-border);
  border-left: 3px solid var(--clr-red);
  padding: 22px 28px 20px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-hud.active {
  opacity: 1;
  pointer-events: none;
  transform: translateY(0);
}

/* ── Status bar (top of card) ── */
.tour-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--globe-border);
}

.tour-status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--clr-red);
  text-transform: uppercase;
}

.tour-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
  box-shadow:
    0 0 8px var(--clr-red),
    0 0 18px var(--clr-red);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.tour-exit-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--globe-border);
  color: var(--globe-muted);
  cursor: pointer;
  pointer-events: auto;
  border-radius: 2px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.tour-exit-btn:hover {
  color: var(--globe-text);
  border-color: var(--clr-red);
  background: rgba(230, 57, 70, 0.07);
}

/* ── Card mount: country detail card rendered inline ── */
.tour-card-mount {
  /* country-detail-card is `display:none` by default; override here */
}

#tour-card-mount .country-detail-card {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
}

#tour-card-mount .card-cta {
  pointer-events: auto;
}

/* ── Navigation footer ── */
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--globe-border);
}

.tour-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tour-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--globe-border);
  cursor: pointer;
  transition:
    background 0.22s,
    transform 0.22s;
}

.tour-dot.active {
  background: var(--clr-red);
  transform: scale(1.6);
}

.tour-dot:hover:not(.active) {
  background: var(--globe-muted);
}

.tour-counter {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--globe-muted);
  white-space: nowrap;
}

.tour-next-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 13px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--clr-red);
  cursor: pointer;
  pointer-events: auto;
  border-radius: 2px;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.tour-next-btn:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--clr-red);
  color: #fff;
}

/* ── Mobile: go full-width at bottom ── */
@media (max-width: 767px) {
  .tour-hud {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-left: none;
    border-top: 3px solid var(--clr-red);
    border-radius: 0;
    max-height: 56vh;
    overflow: hidden;
  }

  .tour-hud .tour-status-bar {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  #tour-card-mount .card-region {
    margin-bottom: 8px;
  }

  #tour-card-mount .card-title {
    font-size: 17px;
  }

  #tour-card-mount .card-sub {
    font-size: 11px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  #tour-card-mount .sketch-wrap {
    min-height: 56px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }

  #tour-card-mount .sketch-wrap svg {
    width: 140px;
    height: 64px;
  }

  #tour-card-mount .tag-row {
    gap: 5px;
    margin-bottom: 10px;
  }

  #tour-card-mount .tag {
    font-size: 8px;
    padding: 4px 7px;
  }

  #tour-card-mount .card-cta {
    height: 26px;
    font-size: 8px;
  }

  .tour-footer {
    margin-top: 10px;
    padding-top: 10px;
  }
}

/* ── Reach card & Destinations responsive ── */
@media (max-width: 1024px) {
  #card-reach {
    width: min(460px, 90vw);
    right: 5%;
  }

  .dest-country-card {
    flex: 0 0 min(150px, 24vw);
  }

  .reach-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .rb-blog-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  #card-reach {
    position: fixed;
    right: 5%;
    left: 5%;
    width: 90vw;
    top: auto;
    bottom: 80px;
    transform: translateY(0);
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #card-reach.active {
    transform: translateY(0);
  }

  #card-india.india-hub {
    width: 90vw;
  }

  .india-nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dest-inner {
    padding: 0 20px;
    gap: 20px;
  }

  .dest-title {
    font-size: 22px;
  }

  .dest-sub {
    font-size: 11px;
  }

  .dest-country-card {
    flex: 0 0 140px;
    height: 200px;
  }

  .dcc-count {
    font-size: 24px;
  }

  .pipeline {
    gap: 0;
  }

  .pipe-step {
    min-width: 60px;
  }

  .pipe-circle {
    width: 38px;
    height: 38px;
  }

  .reach-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Slow ticker on mobile and isolate it in its own compositing layer to
     prevent it from triggering full-page repaints during scroll */
  .feed-ticker {
    animation-duration: 120s;
  }

  #live-feed {
    will-change: transform;
    contain: layout style paint;
  }
}
