/* ═══════════════════════════════════════════════
   AZ SEO — Animations
   Scroll reveals, orbs, marquee, counters,
   hover effects, decorative elements
═══════════════════════════════════════════════ */

/* ── Scroll reveal targets (GSAP controls these) */
.reveal       { opacity: 0; transform: translateY(30px); }
.reveal-left  { opacity: 0; transform: translateX(-45px); }
.reveal-right { opacity: 0; transform: translateX(45px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
}

/* ── Floating orbs (hero background) ─────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px)   rotate(0deg); }
  33%       { transform: translateY(-22px) rotate(5deg); }
  66%       { transform: translateY(12px)  rotate(-4deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0px)   rotate(0deg); }
  33%       { transform: translateY(16px)  rotate(-3deg); }
  66%       { transform: translateY(-26px) rotate(3deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.06); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.orb-1 {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  background: radial-gradient(circle, rgba(124,58,237,0.38) 0%, transparent 70%);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 10s ease-in-out infinite;
}

.orb-2 {
  width: clamp(200px, 25vw, 340px);
  height: clamp(200px, 25vw, 340px);
  background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 70%);
  top: 15%;
  right: 4%;
  animation: floatB 13s ease-in-out infinite;
}

.orb-3 {
  width: clamp(150px, 20vw, 280px);
  height: clamp(150px, 20vw, 280px);
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  bottom: 8%;
  left: 4%;
  animation: float 9s ease-in-out infinite;
  animation-delay: -3s;
}

/* ── Scroll bounce indicator ─────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

.scroll-indicator { animation: bounce 2s ease-in-out infinite; }

/* ── Marquee (logo strip) ─────────────────────  */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  gap: var(--space-10);
  align-items: center;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity var(--t-base), filter var(--t-base);
}

.marquee-item:hover { opacity: 0.7; filter: grayscale(0); }

/* ── Counter numbers ─────────────────────────── */
.counter-number {
  font-size: var(--fs-4xl);
  font-family: var(--f-heading);
  font-weight: 700;
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

/* ── Gradient card border glow ───────────────── */
.card-glow { position: relative; }

.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--g-card-border);
  z-index: var(--z-below);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.card-glow:hover::after { opacity: 1; }

/* ── Grid overlay (hero decoration) ─────────── */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
}

/* ── Typing cursor ───────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--c-purple-light);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ── Pulse ring (CTA / badge) ────────────────── */
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.6; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.pulse-ring {
  position: relative;
  display: inline-flex;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--c-purple);
  animation: pulseRing 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* ── Shimmer skeleton ────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--c-surface) 25%,
    var(--c-surface-2) 50%,
    var(--c-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Hover line underline (nav links) ────────── */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--g-button);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}

.hover-underline:hover::after { width: 100%; }

/* ── Number badge ────────────────────────────── */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-family: var(--f-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-purple-light);
  flex-shrink: 0;
}

/* ── Feature icon wrapper ────────────────────── */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: rgba(124, 58, 237, 0.12);
  color: var(--c-purple-light);
  margin-bottom: var(--space-5);
  transition: background var(--t-base), transform var(--t-base);
  flex-shrink: 0;
}

.card:hover .feature-icon {
  background: rgba(124, 58, 237, 0.22);
  transform: scale(1.08);
}
