/* ============================================================
   AI Workflow Lab — Animations & GSAP Support
   ============================================================ */

/* ===== Key Visual / KV (alias for landing.css kv-section) ===== */
/* Kept for compatibility – actual styles live in landing.css */

/* ===== Fade In ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

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

/* ===== Float (used on hero images) ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ===== Parallax support ===== */
.parallax-container { position: relative; overflow: hidden; }
.parallax-element { will-change: transform; }

/* ===== GSAP stagger base state ===== */
.gsap-stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Shimmer (loading state) ===== */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Toast notification ===== */
@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ===== Modal entrance ===== */
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ===== Pulse glow (for accent elements) ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(59, 130, 246, 0.3); }
  50%       { box-shadow: 0 0 32px rgba(59, 130, 246, 0.6); }
}

.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }

/* ===== Gradient shimmer on text ===== */
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.animate-gradient {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* ===== Spin ===== */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Lock Overlay ===== */
.pack-grid.locked {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(10, 15, 30, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  z-index: 10;
  padding: 40px;
  text-align: center;
}
