﻿/* ============================================================
   FORTIGLASS — Vehicle Anatomy Section
   Pixel-perfect hotspot diagram — image is 1440×810 (16:9)
   SVG viewBox matches image exactly: 0 0 1440 810
   ============================================================ */

.anatomy-section {
  position: relative;
  padding: 120px 0 100px;
  background: var(--dark);
  overflow: hidden;
}

/* grid bg */
.anatomy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* radial glow */
.anatomy-section::after {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(154,122,46,0.14) 0%,
    rgba(201,168,76,0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

/* ── Stage: full-width, aspect-ratio locked to Raptor image (1376×768 ≈ 16:9) ── */
.anatomy-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  aspect-ratio: 1376 / 768;
}

/* ── Car image ── */
.anatomy-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* contain so the full car is visible, no crop */
  object-position: center;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  /* PNG has transparent bg — no blend mode needed */
  filter:
    brightness(1.05)
    drop-shadow(0 0 60px rgba(201,168,76,0.15))
    drop-shadow(0 20px 80px rgba(0,0,0,0.6));
}

/* ── SVG overlay — same 16:9 box, viewBox 0 0 1440 810 ── */
.anatomy-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

/* ── Hotspot dot ── */
.anatomy-dot {
  fill: var(--gold);
  filter: drop-shadow(0 0 5px rgba(201,168,76,1));
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* expanding ring */
.anatomy-ring {
  fill: none;
  stroke: rgba(201,168,76,0.5);
  stroke-width: 1.5;
  animation: ringExpand 2.5s ease-out infinite;
}
@keyframes ringExpand {
  0%   { r: 8;  opacity: 0.9; }
  100% { r: 22; opacity: 0; }
}

/* dashed connector line */
.anatomy-line {
  fill: none;
  stroke: rgba(201,168,76,0.6);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  animation: dashFlow 2.5s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

/* ── Label cards — positioned in % relative to stage ── */
.anatomy-label {
  position: absolute;
  z-index: 4;
  width: 200px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.anatomy-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger */
.anatomy-label:nth-child(3) { transition-delay: 0.05s; }
.anatomy-label:nth-child(4) { transition-delay: 0.15s; }
.anatomy-label:nth-child(5) { transition-delay: 0.25s; }
.anatomy-label:nth-child(6) { transition-delay: 0.35s; }
.anatomy-label:nth-child(7) { transition-delay: 0.45s; }
.anatomy-label:nth-child(8) { transition-delay: 0.55s; }

.anatomy-label-inner {
  background: rgba(4, 9, 18, 0.92);
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 3px solid var(--gold);
  padding: 11px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.6), 0 0 16px rgba(201,168,76,0.07);
}
.anatomy-label-inner p {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--silver-mid);
  margin: 0;
}
.anatomy-label-inner strong {
  color: var(--white);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-size: 0.85rem;
}

/* ── Label positions — tighter to car edges ── */
.anatomy-label--cristales { top: 10%;  left: 2%; }
.anatomy-label--techo     { top: 4%;   right: 2%; text-align:left; }
.anatomy-label--puertas   { top: 44%;  left: 2%; }
.anatomy-label--bateria   { bottom: 6%; left: 2%; }
.anatomy-label--portalon  { top: 36%;  right: 2%; text-align:left; }
.anatomy-label--chasis    { bottom: 4%; right: 2%; text-align:left; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .anatomy-stage { aspect-ratio: auto; min-height: 260px; }
  .anatomy-car { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; }
  .anatomy-label { position: static; width: 100%; margin-bottom: 10px; }
  .anatomy-svg { display: none; }
  .anatomy-labels-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }
}
@media (min-width: 901px) {
  .anatomy-labels-mobile { display: none; }
}


