/* ==========================================================================
   TECHFLUE — ANIMATIONS
   ========================================================================== */

[data-animate] {
  opacity: 0;
}

[data-animate="fade-up"] {
  transform: translateY(24px);
}

[data-animate="fade-in"] {
  transform: translateY(0);
}

.dashboard__panel {
  animation: float 6s ease-in-out infinite;
}

.dashboard__panel--main { animation-delay: 0s; }
.dashboard__panel--metric1 { animation-delay: 0.4s; }
.dashboard__panel--metric2 { animation-delay: 0.8s; }
.dashboard__panel--donut { animation-delay: 1.2s; }
.dashboard__panel--list { animation-delay: 0.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dashboard__chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 2s var(--ease) 0.4s forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.dashboard__donut-arc {
  animation: draw-donut 1.4s var(--ease) 0.6s backwards;
}

@keyframes draw-donut {
  from { stroke-dashoffset: 201; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  .dashboard__panel,
  .dashboard__chart-line,
  .dashboard__donut-arc {
    animation: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
