/* ══════════════════════════════════════
   Ankur Oxygen — Scroll & Page Animations
   ══════════════════════════════════════ */

/* ── FADE IN UP (default reveal) ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FADE IN LEFT ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── FADE IN RIGHT ── */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── SCALE IN ── */
.reveal-scale {
  opacity: 0;
  transform: scale(.88);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── STAGGER DELAYS ── */
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }
.delay-6 { transition-delay: .6s !important; }

/* ── HERO ENTRANCE ── */
.hero-content .hero-badge  { animation: heroFadeUp .8s ease .1s both; }
.hero-content h1           { animation: heroFadeUp .8s ease .25s both; }
.hero-content p            { animation: heroFadeUp .8s ease .4s both; }
.hero-content .hero-btns   { animation: heroFadeUp .8s ease .55s both; }
.hero-content .hero-stats  { animation: heroFadeUp .8s ease .7s both; }

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

/* ── COUNTER ANIMATION ── */
.stat-num { transition: color .3s; }

/* ── CARD HOVER GLOW ── */
.product-card:hover {
  box-shadow: 0 20px 56px rgba(26,95,168,.14),
              0 0 0 1px rgba(59,158,222,.1);
}
.why-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

/* ── PAGE TRANSITION ── */
.page-fade {
  animation: pageFadeIn .5s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FLOATING PARTICLES (hero) ── */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .3; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* ── PULSE RING (nav cta) ── */
.nav-cta {
  animation: none;
}
.nav-cta:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240,165,0,.4);
}

/* ── SECTION DIVIDER LINE ── */
.divider {
  width: 60px; height: 4px; background: var(--gold);
  border-radius: 2px; margin: 20px 0 32px;
}
.divider-center { margin: 20px auto 32px; }

/* ── TYPING CURSOR ── */
.typed-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--sky); margin-left: 4px;
  animation: blink .75s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── SHIMMER LOADING SKELETON ── */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── BOUNCE IN (for success messages) ── */
@keyframes bounceIn {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}
.bounce-in { animation: bounceIn .5s cubic-bezier(.36,.07,.19,.97) both; }

/* ── GRADIENT TEXT ANIMATION ── */
.gradient-text {
  background: linear-gradient(135deg, var(--sky) 0%, var(--gold) 50%, var(--sky) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift { to { background-position: 200% center; } }

/* ── NUMBER COUNTER ROLL ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.count-up { animation: countUp .6s ease both; }

/* ── RIPPLE EFFECT (buttons) ── */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: rippleAnim .6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
