/* ============================================================
   AGGARWAL TAXI — 3D.CSS
   Tasteful 3D depth: floating hero visual, tilt cards, glass,
   layered pins, road curves. Premium, not gaming-style.
   ============================================================ */

/* ---------- Hero 3D visual stack ---------- */
.hero-visual { position: relative; z-index: 2; perspective: 1200px; }
.hero-scene { position: relative; transform-style: preserve-3d; }

.scene-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  transform: rotateY(-9deg) rotateX(2deg);
  box-shadow: -30px 40px 80px rgba(3,10,20,.55), 0 0 0 1px rgba(255,255,255,.12);
  position: relative; z-index: 2;
}
.scene-photo img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; display: block; }
.scene-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(201,162,39,.10), transparent 40%, rgba(8,22,39,.28));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); border-radius: inherit;
}

.scene-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; padding: 16px 20px; color: #fff;
  box-shadow: 0 24px 48px rgba(3,10,20,.4);
}
.scene-card h4 { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.scene-card p { color: #C9D4E4; margin: 0; font-size: .82rem; }
.scene-card .bi { color: var(--gold-300); }

.float-a { top: -26px; right: -18px; animation: floatY 5.5s ease-in-out infinite; }
.float-b { bottom: 40px; left: -34px; animation: floatY 6.5s ease-in-out .8s infinite; }
.float-c { bottom: -24px; right: 30px; animation: floatY 7s ease-in-out .4s infinite; }

.scene-road {
  position: absolute; z-index: 1; bottom: -34px; left: -30px; right: -20px; height: 120px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(201,162,39,.18), transparent 70%);
  border-radius: 50%; filter: blur(6px);
}

.scene-pin {
  position: absolute; z-index: 4; color: var(--gold-400); font-size: 1.6rem;
  filter: drop-shadow(0 10px 16px rgba(3,10,20,.5));
}
.pin-a { top: 8%; left: 12%; animation: floatY 5s ease-in-out .3s infinite; }
.pin-b { bottom: 18%; right: 8%; animation: floatY 6s ease-in-out 1s infinite; }

/* ---------- Tilt cards ---------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .18s ease-out; }
[data-tilt] .card-ico { transform: translateZ(30px); }
[data-tilt] h3 { transform: translateZ(18px); }

/* ---------- Glass panel (light sections) ---------- */
.glass-light {
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}

/* ---------- 3D icon container ---------- */
.ico-3d {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 1.6rem; color: var(--navy-900); position: relative;
  background: linear-gradient(140deg, #FFEFC2 0%, #E9C968 55%, #C9A227 100%);
  box-shadow: 0 14px 26px rgba(201,162,39,.35), inset 0 2px 3px rgba(255,255,255,.85), inset 0 -3px 6px rgba(122,90,10,.35);
  transform: translateZ(0);
}
.ico-3d::after {
  content: ""; position: absolute; top: 6px; left: 8px; right: 8px; height: 40%;
  border-radius: 14px 14px 40px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent);
  pointer-events: none;
}
.ico-3d.blue {
  background: linear-gradient(140deg, #3E6DA8 0%, #1A3760 100%);
  color: var(--gold-300);
  box-shadow: 0 14px 26px rgba(11,31,58,.4), inset 0 2px 3px rgba(255,255,255,.25), inset 0 -3px 6px rgba(0,0,0,.35);
}

/* ---------- Floating badge chips on images ---------- */
.float-chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8,22,39,.78); color: #EAF0F8; border: 1px solid rgba(201,162,39,.45);
  backdrop-filter: blur(10px); border-radius: 999px; padding: 9px 16px;
  font-family: var(--font-accent); font-weight: 700; font-size: .8rem;
  box-shadow: 0 16px 30px rgba(3,10,20,.35);
}
.float-chip .bi { color: var(--gold-300); }
.chip-float { animation: floatY 5.5s ease-in-out infinite; }

/* ---------- Depth ribbon behind section titles ---------- */
.depth-ribbon { position: relative; }
.depth-ribbon::before {
  content: attr(data-word); position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  font-family: var(--font-num); font-weight: 800; font-size: clamp(3rem, 8vw, 5.6rem);
  color: transparent; -webkit-text-stroke: 1px rgba(201,162,39,.16);
  letter-spacing: .08em; white-space: nowrap; pointer-events: none; z-index: 0;
}
.depth-ribbon .sec-head { position: relative; z-index: 1; }

/* ---------- Route hero (route pages) ---------- */
.route-hero {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  padding: 150px 0 130px;
}
.route-hero .hero-bg { position: absolute; inset: 0; }
.route-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.route-hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,22,39,.97) 20%, rgba(8,22,39,.75) 55%, rgba(8,22,39,.5));
}
.route-hero .hero-badge-row { margin-bottom: 16px; }
.route-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 800; }
.route-hero .hero-sub { color: #C9D4E4; }

.route-facts {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotateY(-8deg);
  z-index: 3; display: none;
}
@media (min-width: 992px) { .route-facts { display: grid; gap: 16px; } }
.fact-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px); border-radius: 18px; padding: 18px 22px; min-width: 230px;
  box-shadow: 0 24px 50px rgba(3,10,20,.45); animation: floatY 6s ease-in-out infinite;
}
.fact-card:nth-child(2) { animation-delay: 1.2s; }
.fact-card .fact-k { font-family: var(--font-accent); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); display: block; }
.fact-card .fact-v { font-family: var(--font-num); font-weight: 800; color: #fff; font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .scene-pin, .fact-card, .chip-float, .fab-pulse { animation: none !important; }
  [data-tilt] { transform: none !important; }
}
