/* ============================================================
   ANIMATIONS — THOR DESENVOLVIMENTOS
   ============================================================ */

/* -------- REVEAL ON SCROLL -------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delay helpers */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* -------- HERO SCROLL BOUNCE -------- */
@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0.4; transform: translateY(8px); }
}

/* -------- LOGO SCROLL -------- */
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------- ORB PULSE -------- */
@keyframes orbPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.05); }
}

.hero-orb-1 { animation: orbPulse 8s ease-in-out infinite; }
.hero-orb-2 { animation: orbPulse 10s ease-in-out infinite 2s; }

/* -------- GRADIENT TEXT SHIMMER -------- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #00d5ff, #5b8bff, #00d5ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

/* -------- GLOW PULSE (CTA button) -------- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(10, 108, 255, 0.3); }
  50%       { box-shadow: 0 8px 36px rgba(10, 108, 255, 0.55); }
}

.btn-primary { animation: glowPulse 3s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* -------- COUNTER ANIMATION -------- */
.metric-value.counting {
  animation: countUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* -------- CARD HOVER GLOW -------- */
.bento-card,
.about-card,
.case-card,
.sla-item {
  position: relative;
}

.bento-card::after,
.about-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::after,
.about-card:hover::after {
  opacity: 0.15;
}

/* -------- WHATSAPP PULSE RING -------- */
@keyframes waRing {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waRing 2.5s ease-out infinite;
  pointer-events: none;
}

/* -------- NAV LINK UNDERLINE ANIMATION -------- */
.nav-links .nav-link:not(.nav-cta) {
  position: relative;
}

.nav-links .nav-link:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

.nav-links .nav-link:not(.nav-cta):hover::after { width: 100%; }
.nav-links .nav-link.active:not(.nav-cta)::after { width: 100%; }

/* -------- PROCESS STEP HOVER -------- */
.process-step {
  transition: background 0.2s;
  border-radius: var(--r-md);
  padding-left: 12px;
  padding-right: 12px;
}

.process-step:hover { background: rgba(255,255,255,0.02); }

/* -------- PAGE LOAD FADE IN -------- */
@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: fadeInPage 0.4s ease; }

/* -------- HERO CONTENT STAGGER -------- */
.hero-content .hero-eyebrow  { animation: revealUp 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content .hero-title    { animation: revealUp 0.8s 0.35s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content .hero-subtitle { animation: revealUp 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content .hero-actions  { animation: revealUp 0.8s 0.62s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content .hero-stats    { animation: revealUp 0.8s 0.75s cubic-bezier(0.16,1,0.3,1) both; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- GRID SLIDE-IN -------- */
.about-grid .about-card:nth-child(1) { transition-delay: 0.0s; }
.about-grid .about-card:nth-child(2) { transition-delay: 0.1s; }
.about-grid .about-card:nth-child(3) { transition-delay: 0.2s; }

.services-bento .bento-card:nth-child(1) { transition-delay: 0.0s; }
.services-bento .bento-card:nth-child(2) { transition-delay: 0.1s; }
.services-bento .bento-card:nth-child(3) { transition-delay: 0.2s; }
.services-bento .bento-card:nth-child(4) { transition-delay: 0.3s; }
.services-bento .bento-card:nth-child(5) { transition-delay: 0.2s; }
.services-bento .bento-card:nth-child(6) { transition-delay: 0.3s; }

.diff-grid .diff-item:nth-child(1) { transition-delay: 0.0s; }
.diff-grid .diff-item:nth-child(2) { transition-delay: 0.08s; }
.diff-grid .diff-item:nth-child(3) { transition-delay: 0.16s; }
.diff-grid .diff-item:nth-child(4) { transition-delay: 0.24s; }
.diff-grid .diff-item:nth-child(5) { transition-delay: 0.32s; }
.diff-grid .diff-item:nth-child(6) { transition-delay: 0.40s; }

/* -------- SMOOTH HOVER SCALE -------- */
.about-card,
.bento-card,
.case-card {
  will-change: transform;
}

/* -------- STEP DOT GLOW ON SCROLL -------- */
.process-step.visible .step-dot {
  box-shadow: 0 0 16px rgba(0, 213, 255, 0.25);
}

/* -------- FOCUS STYLES -------- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
