/* =====================================================
   ELISTAR GROUP — ANIMATIONS & KEYFRAMES
   ===================================================== */

/* ==== ENTRANCE ANIMATIONS ==== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ==== TICKER ==== */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== FLOATING ==== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

/* ==== PULSE ==== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,168,79,0.4); }
  50%       { box-shadow: 0 0 0 14px rgba(46,168,79,0); }
}
@keyframes pulsePrimary {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,36,114,0.4); }
  50%       { box-shadow: 0 0 0 14px rgba(26,36,114,0); }
}

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

/* ==== ROTATE ==== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateY {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* ==== WAVE ==== */
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(1.4); }
}

/* ==== HERO GRADIENT SHIFT ==== */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==== COUNT UP (handled by JS, this is the reveal) ==== */
@keyframes countReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==== DRAW LINE ==== */
@keyframes drawLine {
  from { width: 0; }
  to   { width: 100%; }
}

/* ==== BOUNCE ==== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-10px); }
  60%       { transform: translateY(-5px); }
}

/* =====================================================
   AOS-LIKE SCROLL CLASSES
   (Triggered by IntersectionObserver in main.js)
   ===================================================== */

/* Initial hidden state */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-30px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="scale-in"]   { transform: scale(0.88); }
[data-animate="fade-in"]    { transform: none; }

/* Visible state (class added by JS) */
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* =====================================================
   UTILITY / DECORATION ANIMATIONS
   ===================================================== */

/* Hero blob */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatSlow 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--clr-accent);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--clr-sky);
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}

/* Floating CTA pulse animation */
.float-whatsapp { animation: pulse 2.5s ease-in-out infinite; }

/* Concern card hover — icon spin */
.icon-spin:hover { animation: spin 0.6s ease; }

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--clr-muted) 25%, var(--clr-border) 50%, var(--clr-muted) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-sm);
}

/* Progress bar animation on reveal */
.progress-fill[data-width] { width: 0; }
.progress-fill.animated { width: attr(data-width); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}
.scroll-wheel {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}

/* Particle dots decoration */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: floatSlow var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Section wave separator */
.wave-sep {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}
.wave-sep svg { display: block; width: 100%; height: 60px; }
.wave-sep-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--clr-accent);
  margin-left: 2px;
  animation: wave 0.7s ease-in-out infinite;
  vertical-align: text-bottom;
}
