/* ═══════════════════════════════════════════════════════════
   RU HORIZON — animations.css
   Keyframes · Scroll-triggered states · Hover effects
   ═══════════════════════════════════════════════════════════ */

/* ——— HERO GRADIENT PULSE ——— */
@keyframes gradientPulse {
  0%   { opacity: 0.35; filter: hue-rotate(0deg); }
  50%  { opacity: 0.5;  filter: hue-rotate(15deg); }
  100% { opacity: 0.35; filter: hue-rotate(0deg); }
}
.hero-bg-gradient {
  animation: gradientPulse 8s ease-in-out infinite;
}

/* ——— SVG SPHERE ROTATE (MOBILE FALLBACK) ——— */
@keyframes sphereRotate {
  0%   { transform: translate(200px,200px) rotate(0deg); }
  100% { transform: translate(200px,200px) rotate(360deg); }
}
.hero-sphere-fallback g {
  transform-origin: 0 0;
  animation: sphereRotate 20s linear infinite;
}

/* ——— LOGO TICKER ——— */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* ——— SCROLL INDICATOR BOUNCE ——— */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
.scroll-indicator svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ——— WHATSAPP PULSE ——— */
@keyframes whatsappPulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 0 rgba(37,211,102,0.3); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-float {
  animation: whatsappPulse 4s ease-in-out infinite;
}

/* ——— BUTTON SHIMMER ——— */
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.btn-pricing::after,
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: none;
  pointer-events: none;
}
.btn-pricing:hover::after,
.btn-submit:hover::after {
  animation: shimmer 0.8s ease-out;
}

/* ——— GRADIENT BORDER ANIMATION (FEATURED CARD) ——— */
@keyframes borderGlow {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(30deg); }
}
.pricing-card.featured::before {
  animation: borderGlow 4s ease-in-out infinite alternate;
}

/* ——— TIMELINE DOT PULSE ——— */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}
.timeline-item.active .timeline-dot {
  animation: dotPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   REVEAL SYSTEM — Initial hidden states
   GSAP will toggle .revealed on scroll
   ═══════════════════════════════════════════════════════════ */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-text.revealed {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
}

/* ——— SERVICE CARD GLOW ON HOVER ——— */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,130,246,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

/* ——— PRICING CARD HOVER GLOW ——— */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139,92,246,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: -1;
}
.pricing-card:hover::after { opacity: 1; }

/* ——— NAV CTA GRADIENT SWEEP ——— */
.btn-header {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), var(--accent-cyan));
  z-index: -1;
  transition: opacity var(--transition);
}
.btn-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-blue));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-header:hover::after { opacity: 1; }

/* ——— PARALLAX ORB FLOAT ——— */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(20px, -30px); }
  50%      { transform: translate(-10px, 20px); }
  75%      { transform: translate(30px, 10px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-25px, 15px); }
  50%      { transform: translate(15px, -20px); }
  75%      { transform: translate(-20px, -10px); }
}
.orb-1 { animation: orbFloat1 12s ease-in-out infinite; }
.orb-2 { animation: orbFloat2 15s ease-in-out infinite; }

/* ——— FORM SUCCESS CHECK ——— */
@keyframes checkDraw {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
.form-success svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.contact-form.submitted .form-success svg path {
  animation: checkDraw 0.6s ease-out 0.2s forwards;
}

/* ——— HEADER SCROLL HIDE/SHOW ——— */
.site-header.hidden {
  transform: translateY(-100%);
}

/* ——— CURSOR GLOW ——— */
.magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
