/* ============================================================
   WEEZY AGENCY — animations.css
   Keyframes · Reveals · Transitions · Marquee · Noise
   ============================================================ */

/* ── Reveal ao Scroll ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Stagger Delays ─────────────────────────────────────────── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Todos os filhos ficam visíveis — nth-child abaixo apenas adiciona delay */
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para os primeiros 8 filhos */
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s;    }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }

/* Stagger individual para elementos com classe própria */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

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

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--fade-color, #000) 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--fade-color, #000) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content;
  gap: 0;
}


.marquee-track.reverse {
  animation: marquee-reverse 28s linear infinite;
}

/* ── Hero Scroll Indicator ──────────────────────────────────── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--weezy-gray-500);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--weezy-lime), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Float Animation ────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0px); }
  50%       { transform: rotate(2deg) translateY(-12px); }
}

.float-card {
  animation: float 5s ease-in-out infinite;
}

/* ── Pulse Glow ─────────────────────────────────────────────── */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(149, 242, 28, 0.1); }
  50%       { box-shadow: 0 0 60px rgba(149, 242, 28, 0.25); }
}

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

/* ── Spin Slow ──────────────────────────────────────────────── */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* ── Noise Texture Overlay ──────────────────────────────────── */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Grid Texture (CTA section) ─────────────────────────────── */
.grid-texture {
  position: relative;
}

.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(149, 242, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 242, 28, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Radial Gradient BG (Hero) ──────────────────────────────── */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 242, 28, 0.07) 0%, transparent 70%);
  pointer-events: none;
  top: -100px;
  right: -100px;
}

/* ── Fade In Up (initial page load) ────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-in.delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in.delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in.delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-in.delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-in.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ── Process connector line ────────────────────────────────── */
.process-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 1px;
  border-top: 1px dashed rgba(149, 242, 28, 0.3);
}

/* ── Clients Bar ────────────────────────────────────────────── */
.clients-bar {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  overflow: visible;          /* permite o círculo sangrar fora */
  position: relative;
  z-index: 2;                 /* sobrepõe as seções adjacentes */
}

/* Clip isolado só para o marquee */
.clients-marquee-clip {
  overflow: hidden;
}

/* Círculo central — sangra ~30px acima e abaixo da seção */
.clients-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.16);
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 28px;
  gap: 10px;
  pointer-events: none;
}

.cc-badge {
  background: var(--weezy-lime);
  color: var(--weezy-black);
  font-size: 14px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.cc-text {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  font-family: var(--font-body);
}

/* Logo cards — sem padding, só border arredondado */
.logo-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.logo-card:hover {
  border-color: rgba(255,255,255,0.22);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(1.8);
  opacity: 0.55;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.logo-card:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
  }

  .float-card {
    animation: none;
  }

  .animate-in {
    animation: none;
    opacity: 1;
  }
}
