/**
 * Genpro Futuristic — scroll reveal + ambient particles
 */

/* Hidden only after JS boots (prevents permanent invisible content) */
body.genpro-futuristic.fx-motion-ready [data-reveal]:not(.fx-revealed) {
  opacity: 0;
  transform: translateY(24px);
}

body.genpro-futuristic.fx-motion-ready [data-reveal="fade"]:not(.fx-revealed) {
  transform: none;
}

body.genpro-futuristic.fx-motion-ready [data-reveal-stagger]:not(.fx-revealed) > * {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal],
[data-reveal-stagger] > * {
  transition: opacity var(--fx-duration-slow) var(--fx-ease-out),
    transform var(--fx-duration-slow) var(--fx-ease-out);
}

[data-reveal].fx-revealed,
body.genpro-futuristic:not(.fx-motion-ready) [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"].fx-revealed {
  transform: none;
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal="scale"].fx-revealed {
  transform: scale(1);
}

[data-reveal-stagger].fx-revealed > *,
body.genpro-futuristic:not(.fx-motion-ready) [data-reveal-stagger] > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].fx-revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].fx-revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].fx-revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-stagger].fx-revealed > *:nth-child(4) { transition-delay: 0.2s; }
[data-reveal-stagger].fx-revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-reveal-stagger].fx-revealed > *:nth-child(6) { transition-delay: 0.3s; }

/* Text shimmer accent on hero titles */
.fx-text-glow {
  background: linear-gradient(90deg, var(--fx-text) 0%, var(--fx-accent-bright) 50%, var(--fx-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fx-shimmer 8s linear infinite;
}

@keyframes fx-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Neon underline on section headings */
body.genpro-futuristic .section-title-enhanced::after,
body.genpro-futuristic .fx-section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-cyan));
  border-radius: var(--fx-radius-pill);
  box-shadow: var(--fx-shadow-neon);
}

body.genpro-futuristic.fx-page-enter main {
  animation: fx-page-in var(--fx-duration-slow) var(--fx-ease-out);
}

@keyframes fx-page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.genpro-futuristic .btn-primary:active,
body.genpro-futuristic .cta-btn-enhanced:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fx-text-glow {
    animation: none;
    -webkit-text-fill-color: var(--fx-text);
  }

  body.genpro-futuristic.fx-page-enter main {
    animation: none;
  }

  #genpro-ambient-canvas {
    display: none;
  }
}
