/* ==========================================
   FLOWZY v2 — Animations & Effects
   Scroll reveals, fade-ins, transitions
   ========================================== */

/* ---------- Fade In Up ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease calc(var(--delay, 0s)),
              transform 0.7s ease calc(var(--delay, 0s));
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Problem Lines (staggered reveal) ---------- */
.problem-line {
  opacity: 0.1;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance ---------- */
.hero__content {
  animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.hero .overline {
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section entrance ---------- */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Timeline step connector glow ---------- */
.timeline__step::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(184, 115, 51, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.timeline__step.visible::before {
  opacity: 1;
}

/* ---------- Demo card 3D tilt base styles ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* ---------- Winding path reveal ---------- */
.winding-path {
  transition: stroke-dashoffset 0.05s linear;
}