/* ============================================================
   ZEFIORA — Animations Stylesheet
   ze-animations.css
   ============================================================ */

/* ── Keyframes ── */
@keyframes ze-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ze-fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ze-fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes ze-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(2deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes ze-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,61,232,0.4); }
  50%       { box-shadow: 0 0 0 20px rgba(108,61,232,0); }
}

@keyframes ze-glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes ze-scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes ze-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ze-rotateGradient {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ze-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes ze-slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ze-bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ── Scroll-triggered Reveal Classes ── */
.ze-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ze-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ze-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ze-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ze-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Stagger Delays ── */
.ze-delay-100 { transition-delay: 0.1s; }
.ze-delay-200 { transition-delay: 0.2s; }
.ze-delay-300 { transition-delay: 0.3s; }
.ze-delay-400 { transition-delay: 0.4s; }
.ze-delay-500 { transition-delay: 0.5s; }
.ze-delay-600 { transition-delay: 0.6s; }

/* ── Hero Entrance Animations ── */
.ze-animate-hero-label {
  animation: ze-fadeIn 0.6s ease 0.2s both;
}

.ze-animate-hero-title {
  animation: ze-fadeIn 0.7s ease 0.4s both;
}

.ze-animate-hero-sub {
  animation: ze-fadeIn 0.7s ease 0.6s both;
}

.ze-animate-hero-cta {
  animation: ze-fadeIn 0.7s ease 0.8s both;
}

.ze-animate-hero-stats {
  animation: ze-fadeIn 0.7s ease 1.0s both;
}

.ze-animate-hero-img {
  animation: ze-scaleIn 0.9s ease 0.5s both;
}

/* ── Floating Background Shapes ── */
.ze-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: ze-glowPulse 4s ease-in-out infinite;
}

.ze-bg-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(108,61,232,0.2);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.ze-bg-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6,182,212,0.15);
  top: 30%;
  right: -50px;
  animation-delay: -2s;
}

.ze-bg-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(139,92,246,0.15);
  bottom: 10%;
  left: 30%;
  animation-delay: -3.5s;
}

/* ── Hover Glow Effect ── */
.ze-hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ze-hover-glow:hover {
  box-shadow: 0 0 25px rgba(108,61,232,0.5);
  transform: translateY(-3px);
}

/* ── Shimmer loading ── */
.ze-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: ze-shimmer 2s infinite;
}

/* ── Counter animation ── */
.ze-counter-animated {
  display: inline-block;
}

/* ── Gradient text animation ── */
.ze-gradient-animate {
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ze-shimmer 3s linear infinite;
}

/* ── Border glow animation ── */
.ze-border-glow-anim {
  position: relative;
  overflow: hidden;
}

.ze-border-glow-anim::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--ze-purple), var(--ze-cyan), var(--ze-purple));
  background-size: 200% 100%;
  animation: ze-shimmer 3s linear infinite;
  border-radius: inherit;
  z-index: -1;
}
