/* ============================================================
   NZ Agency — animations.css
   Keyframes et animations CSS
   ============================================================ */

/* ===== ROTATING GRADIENT BORDER ===== */
@keyframes border-rotate {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ===== BADGE FLOAT ===== */
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ===== BADGE STAR SPIN ===== */
@keyframes badge-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== TYPEWRITER CURSOR BLINK ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== PULSE DOT ===== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

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

/* ===== RIPPLE ===== */
@keyframes ripple-anim {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* ===== SPARKLE PULSE ===== */
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* ===== GLOW PULSE ===== */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.14);
  }
}

/* ===== HERO GLOW ===== */
@keyframes hero-glow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 2px 40px rgba(255, 255, 255, 0.12); }
}

/* ===== FLOAT ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(1deg); }
  66%       { transform: translateY(-4px) rotate(-1deg); }
}

/* ===== FADE IN UP (for hero content) ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== SCALE IN ===== */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SLIDE IN LEFT ===== */
@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SLIDE IN RIGHT ===== */
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== HERO CONTENT ENTRANCE ===== */
.hero-badge {
  animation: fade-in-up 0.7s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
  animation-delay: 0.1s;
}

.hero-title {
  animation: fade-in-up 0.7s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
  animation-delay: 0.25s;
}

.hero-subtitle {
  animation: fade-in-up 0.7s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
  animation-delay: 0.4s;
}

.hero-ctas {
  animation: fade-in-up 0.7s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
  animation-delay: 0.55s;
}

.hero-stats {
  animation: fade-in-up 0.7s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
  animation-delay: 0.7s;
}

/* ===== SHIMMER LOADING TEXT ===== */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-secondary) 25%,
    var(--text-primary) 50%,
    var(--text-secondary) 75%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

/* ===== STEP BUBBLE ENTRANCE ===== */
.process-step.is-visible .step-bubble {
  animation: scale-in 0.4s var(--ease, cubic-bezier(0.4,0,0.2,1)) both;
}

/* ===== NEON TEXT GLOW (Hero title gradient words) ===== */
.hero-title .text-gradient {
  animation: hero-glow 3s ease-in-out infinite;
}

/* ===== CARD HOVER ICON FLOAT ===== */
.service-card:hover .card-icon svg {
  animation: float 2.5s ease-in-out infinite;
}

/* ===== SOCIAL LINK HOVER ===== */
.social-link:hover svg {
  animation: neon-pulse 1.5s ease-in-out infinite;
}

/* ===== TAG DOT SEQUENTIAL ===== */
.service-card:nth-child(1) .tag-dot { animation-delay: 0s; }
.service-card:nth-child(2) .tag-dot { animation-delay: 0.3s; }
.service-card:nth-child(3) .tag-dot { animation-delay: 0.6s; }

/* ===== BADGE STARS ALTERNATE ===== */
.hero-badge .badge-star:nth-child(1) {
  animation-direction: normal;
}
.hero-badge .badge-star:nth-child(3) {
  animation-direction: reverse;
}

/* ===== PROCESS LINE FILL trigger ===== */
.process-line-fill.animate {
  width: 100%;
}

/* ===== RIPPLE CONTAINER ===== */
.btn-primary, .btn-outline {
  overflow: hidden;
}

/* ===== PHOTO GLOW ENTRANCE ===== */
.team-card.is-visible .photo-glow {
  animation: neon-pulse 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* ===== MOBILE MENU LINES ===== */
.burger-line {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.2s ease,
    background 0.2s ease;
}
