/* ============================================================
   Oke Gaming — ce-animations.css
   Keyframes & Animation Utilities
   ============================================================ */

/* ── Particle Float ── */
@keyframes ce-float-up {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes ce-drift {
  0%   { transform: translateX(0) translateY(0); }
  33%  { transform: translateX(20px) translateY(-15px); }
  66%  { transform: translateX(-10px) translateY(-30px); }
  100% { transform: translateX(0) translateY(0); }
}

/* ── Glow Pulse ── */
@keyframes ce-glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,229,255,0.2); }
  50%       { box-shadow: 0 0 30px rgba(0,229,255,0.6), 0 0 60px rgba(0,229,255,0.2); }
}

@keyframes ce-glow-purple {
  0%, 100% { box-shadow: 0 0 10px rgba(168,85,247,0.2); }
  50%       { box-shadow: 0 0 30px rgba(168,85,247,0.6), 0 0 60px rgba(168,85,247,0.2); }
}

/* ── Typing Cursor ── */
@keyframes ce-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.ce-cursor { animation: ce-blink 0.8s step-end infinite; }

/* ── Scan Line ── */
@keyframes ce-scanline {
  0%   { top: -5%; }
  100% { top: 105%; }
}

.ce-scanline-fx::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(0,229,255,0.3), transparent);
  animation: ce-scanline 4s linear infinite;
  pointer-events: none;
}

/* ── Gradient Shift ── */
@keyframes ce-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ce-gradient-anim {
  background-size: 200% 200%;
  animation: ce-gradient-shift 6s ease infinite;
}

/* ── Neon Flicker ── */
@keyframes ce-neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 10px rgba(0,229,255,0.8),
                 0 0 20px rgba(0,229,255,0.5),
                 0 0 40px rgba(0,229,255,0.3);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.ce-neon-text-fx { animation: ce-neon-flicker 3s infinite; }

/* ── Spin / Rotate ── */
@keyframes ce-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ce-spin-slow { animation: ce-spin-slow 20s linear infinite; }

/* ── Bounce ── */
@keyframes ce-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.ce-bounce { animation: ce-bounce 2s ease-in-out infinite; }

/* ── Slide In ── */
@keyframes ce-slide-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ce-slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ce-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ce-anim-up   { animation: ce-slide-in-up    0.7s ease forwards; }
.ce-anim-left { animation: ce-slide-in-left  0.7s ease forwards; }
.ce-anim-right{ animation: ce-slide-in-right 0.7s ease forwards; }

.ce-delay-1 { animation-delay: 0.1s; }
.ce-delay-2 { animation-delay: 0.2s; }
.ce-delay-3 { animation-delay: 0.3s; }
.ce-delay-4 { animation-delay: 0.4s; }
.ce-delay-5 { animation-delay: 0.5s; }
.ce-delay-6 { animation-delay: 0.6s; }

/* ── Fade In ── */
@keyframes ce-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ce-fade-in { animation: ce-fade-in 0.5s ease forwards; }

/* ── Scale In ── */
@keyframes ce-scale-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.ce-scale-in { animation: ce-scale-in 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ── Hero BG mesh ── */
@keyframes ce-mesh-move {
  0%   { transform: translateX(0) translateY(0) scale(1); }
  33%  { transform: translateX(30px) translateY(-20px) scale(1.05); }
  66%  { transform: translateX(-20px) translateY(30px) scale(0.97); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}

.ce-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: ce-mesh-move 12s ease-in-out infinite;
  pointer-events: none;
}

.ce-mesh-blob-1 {
  width: 500px; height: 500px;
  background: rgba(0,229,255,0.06);
  top: -100px; left: -100px;
  animation-duration: 15s;
}

.ce-mesh-blob-2 {
  width: 400px; height: 400px;
  background: rgba(168,85,247,0.06);
  bottom: -50px; right: -50px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.ce-mesh-blob-3 {
  width: 300px; height: 300px;
  background: rgba(57,255,20,0.03);
  top: 40%; left: 40%;
  animation-duration: 22s;
  animation-delay: -8s;
}

/* ── Hover Shine ── */
.ce-shine {
  position: relative;
  overflow: hidden;
}

.ce-shine::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.ce-shine:hover::after { left: 125%; }

/* ── Stagger children ── */
.ce-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.ce-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.ce-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.ce-stagger > *:nth-child(4) { animation-delay: 0.35s; }
.ce-stagger > *:nth-child(5) { animation-delay: 0.45s; }
.ce-stagger > *:nth-child(6) { animation-delay: 0.55s; }

/* ── Loading spinner ── */
@keyframes ce-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ce-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--ce-border);
  border-top-color: var(--ce-neon-cyan);
  border-radius: 50%;
  animation: ce-rotate 0.7s linear infinite;
  display: inline-block;
}

/* ── Word fade ── */
@keyframes ce-word-slide {
  0%   { transform: translateY(0);    opacity: 1; }
  40%  { transform: translateY(-20px); opacity: 0; }
  60%  { transform: translateY(20px);  opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.ce-word-cycle { animation: ce-word-slide 3.5s ease-in-out infinite; }
