/* brain-workflow.css
   Background SVG "brain" kòm yon layer dèyè paj la.
   Mete z-index negative pou li pa entèfere ak UI.
*/
#brain-workflow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;          /* dèyè tout kontni */
  pointer-events: none; /* pa entèfere ak klik */
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(60,80,120,0.12), transparent 10%),
              radial-gradient(circle at 80% 80%, rgba(30,20,60,0.12), transparent 10%),
              #06070a; /* baz nwa ble */
  overflow: hidden;
}

/* SVG responsif */
#brain-workflow svg {
  width: min(1100px, 95%);
  height: auto;
  max-height: 95vh;
  display: block;
  mix-blend-mode: screen; /* pi bon melanj glow sou background */
}

/* Kontou sèvo (lèg, men prezan) */
.brain-outline {
  fill: url(#brainFillGradient);
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1.2;
  filter: url(#softInnerShadow);
}

/* Chemen nèwon (liy workflow) */
.neuron {
  fill: none;
  stroke: rgba(90,209,230,0.18);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* subtle animated dash to give life */
  stroke-dasharray: 8 14;
  animation: dashMove 6s linear infinite;
  filter: url(#glowFilter);
}

/* Glow + spark color overrides for stronger paths */
.neuron.strong {
  stroke: rgba(90,209,230,0.28);
  stroke-width: 1.8;
  stroke-dasharray: 12 10;
}

/* Spark / patikil (ti boul ki deplase) */
.spark {
  transition: opacity 150ms linear, transform 150ms linear;
  filter: url(#glowFilter);
  transform-origin: center;
}

/* Twinkle animation via CSS (applike sou svg circle pa JS) */
@keyframes twinkle {
  0%   { opacity: 0.1; transform: scale(0.6); }
  30%  { opacity: 1; transform: scale(1.1); }
  60%  { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0.15; transform: scale(0.7); }
}

/* subtle dash movement on neuron strokes */
@keyframes dashMove {
  to { stroke-dashoffset: 9999; }
}

/* Responsiveness: pi piti svg sou telefòn */
@media (max-width: 520px) {
  #brain-workflow svg { width: 95vw; }
  .neuron { stroke-width: 1; }
}
