/* ================================================================
   THE CONCEPT TRADER — Animated section backgrounds
   Alternating pattern: skip platforms / onboarding / funded-trading
   so consecutive sections don't all use line motifs.
   Hero (#home-hero) is intentionally NOT touched.
   ================================================================ */

/* 1. Prep the sections so the overlay sits behind the content */
#paths,
#why-the-concept,
#trading-conditions,
#faq,
#contact,
#final-cta {
  position: relative;
  overflow: hidden;
}

/* 2. Shared overlay layer */
#paths::before,
#why-the-concept::before,
#trading-conditions::before,
#faq::before,
#contact::before,
#final-cta::before {
  content: "";
  position: absolute;
  inset: -4%;                 /* bleed so the drift never shows edges */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: tct-bg-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* 3. Keep the real content above the overlay */
#paths > *,
#why-the-concept > *,
#trading-conditions > *,
#faq > *,
#contact > *,
#final-cta > * {
  position: relative;
  z-index: 1;
}

/* 4. One slow, subtle drift (scale is baked into inset bleed) */
@keyframes tct-bg-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.04) translate3d(-1.5%, 1.5%, 0); }
}

/* 5. Assign SVG images — root-relative so any domain works (local/staging/prod) */
#paths::before {
  background-image: url("/wp-content/uploads/2026/08/bg-paths.svg");
}

#why-the-concept::before {
  background-image: url("/wp-content/uploads/2026/08/bg-why-concept.svg");
  animation-duration: 24s;
}

#trading-conditions::before {
  background-image: url("/wp-content/uploads/2026/08/bg-trading-conditions.svg");
  animation-duration: 28s;
}

#faq::before {
  background-image: url("/wp-content/uploads/2026/08/bg-faq.svg");
  animation-duration: 30s;
}

#contact::before {
  background-image: url("/wp-content/uploads/2026/08/bg-contact.svg");
  animation-duration: 22s;
}

#final-cta::before {
  background-image: url("/wp-content/uploads/2026/08/bg-final-cta.svg");
  animation-duration: 38s;
}

/* 6. Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #paths::before,
  #why-the-concept::before,
  #trading-conditions::before,
  #faq::before,
  #contact::before,
  #final-cta::before {
    animation: none;
  }
}
