/* ═══════════════════════════════════════════════════════════════
   SAASKART — ANIMATION SYSTEM
   Scope: Keyframes, scroll reveal, motion utilities
═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -18px) scale(1.04); }
  66%       { transform: translate(-18px, 26px) scale(0.96); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.9); }
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

@keyframes progressFill {
  from { width: 0; }
  to   { width: var(--w, 100%); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,53,42,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(232,53,42,0.15); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Scroll reveal ── */
/* Scroll reveal — DISABLED (animations on scroll removed)
   Elements are always fully visible. Class kept for markup compatibility. */
.reveal,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4,
.reveal-delay-5 { transition-delay: 0s !important; }

/* ── Hero entrance animations ── */
.anim-fade-up        { animation: fadeUp 0.8s ease both; }
.anim-fade-up-d1     { animation: fadeUp 0.8s 0.1s ease both; }
.anim-fade-up-d2     { animation: fadeUp 0.8s 0.2s ease both; }
.anim-fade-up-d3     { animation: fadeUp 0.8s 0.3s ease both; }
.anim-fade-up-d4     { animation: fadeUp 0.8s 0.4s ease both; }
.anim-fade-up-d5     { animation: fadeUp 0.8s 0.5s ease both; }
.anim-fade-up-d6     { animation: fadeUp 0.9s 0.6s ease both; }

/* ── Floating elements ── */
.float-1 { animation: floatCard 6s ease-in-out infinite; }
.float-2 { animation: floatCard 7s ease-in-out infinite; animation-delay: -2s; }
.float-3 { animation: floatCard 6.5s ease-in-out infinite; animation-delay: -4s; }
.float-4 { animation: floatCard 7.5s ease-in-out infinite; animation-delay: -1s; }

/* ── Pulse ── */
.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ── Typing dots ── */
.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── Logo scroll ── */
.logo-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* ── Progress bars ── */
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad1);
  animation: progressFill 1.5s ease both;
}

/* ── Shimmer skeleton ── */
.skeleton {
  background: var(--bg3);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}

/* ── Motion reduce ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
