/* ============================================================
   DRUTHION — Animations & Keyframes
   ============================================================ */

/* ── KEYFRAMES ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0,196,180,0.3); }
  50%       { box-shadow: 0 0 32px rgba(0,196,180,0.7); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
  from { transform: scale(0); opacity: 0.6; }
  to   { transform: scale(2.5); opacity: 0; }
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(0,196,180,0.15); }
  50%       { border-color: rgba(0,196,180,0.5); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── AOS-LIKE CLASSES (fallback if CDN fails) ── */
[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: none; }
[data-aos="fade-up"]    { transform: translateY(30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"]    { transform: scale(0.9); }

/* ── HERO ENTRANCE ── */
.hero-content > * {
  animation: fadeUp 0.7s ease both;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1      { animation-delay: 0.2s; }
.hero-sub     { animation-delay: 0.3s; }
.hero-ctas    { animation-delay: 0.4s; }
.hero-stats   { animation-delay: 0.5s; }
.hero-visual  { animation: fadeLeft 0.8s 0.3s ease both; }

/* ── GLOW EFFECTS ── */
.glow-teal { animation: pulse-glow 3s ease-in-out infinite; }
.float-anim { animation: float 4s ease-in-out infinite; }

/* ── SHIMMER GRADIENT TEXT ── */
.shimmer-text {
  background: linear-gradient(90deg, #00C4B4, #1B9CFC, #00C4B4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── RIPPLE ON BUTTONS ── */
.btn-primary, .btn-secondary {
  position: relative; overflow: hidden;
}
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ── PAGE TRANSITION ── */
.page-transition {
  animation: fadeIn 0.4s ease;
}

/* ── COUNTER ANIMATION ── */
.counter-animate {
  animation: count-up 0.5s ease both;
}

/* ── STAT NUMBER GLOW ── */
.stat-num, .num {
  text-shadow: 0 0 20px rgba(0,196,180,0.4);
}

/* ── BORDER PULSE ON HOVER-READY CARDS ── */
.pulse-border { animation: borderPulse 3s ease-in-out infinite; }

/* ── LOADING BAR ── */
.loading-bar {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: shimmer 1.5s linear infinite;
  background-size: 200% 100%;
}

/* ── SCROLL REVEAL (JS driven) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
