/* ============================================================
   Gaming Zebra — gz-animations.css
   Animation & Motion Stylesheet
   ============================================================ */

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes gz-fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gz-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes gz-scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes gz-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

@keyframes gz-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes gz-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes gz-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(232,255,71,0.2); }
  50%       { box-shadow: 0 0 40px rgba(232,255,71,0.5); }
}

@keyframes gz-hero-title-reveal {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

@keyframes gz-counter-bounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* ── Hero Entrance Animations ──────────────────────────────── */
.gz-hero-eyebrow {
  animation: gz-fade-in-up 0.7s ease both;
  animation-delay: 0.2s;
}

.gz-hero-title {
  animation: gz-fade-in-up 0.8s ease both;
  animation-delay: 0.35s;
}

.gz-hero-desc {
  animation: gz-fade-in-up 0.8s ease both;
  animation-delay: 0.5s;
}

.gz-hero-actions {
  animation: gz-fade-in-up 0.8s ease both;
  animation-delay: 0.65s;
}

.gz-hero-stats {
  animation: gz-fade-in-up 0.8s ease both;
  animation-delay: 0.8s;
}

/* ── Float Animation ───────────────────────────────────────── */
.gz-animate-float {
  animation: gz-float 4s ease-in-out infinite;
}

.gz-animate-float-slow {
  animation: gz-float 6s ease-in-out infinite;
}

.gz-animate-float-fast {
  animation: gz-float 2.5s ease-in-out infinite;
}

/* ── Pulse Ring ────────────────────────────────────────────── */
.gz-pulse-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gz-pulse-wrapper::before,
.gz-pulse-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--gz-accent);
  animation: gz-pulse-ring 2s ease-out infinite;
}

.gz-pulse-wrapper::after {
  animation-delay: 1s;
}

/* ── Shimmer Effect ────────────────────────────────────────── */
.gz-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% auto;
  animation: gz-shimmer 2s linear infinite;
}

/* ── Glow Pulse ────────────────────────────────────────────── */
.gz-glow-accent {
  animation: gz-glow-pulse 3s ease-in-out infinite;
}

/* ── Marquee / Ticker ──────────────────────────────────────── */
.gz-ticker-wrapper {
  overflow: hidden;
  background: rgba(232,255,71,0.05);
  border-top: 1px solid rgba(232,255,71,0.15);
  border-bottom: 1px solid rgba(232,255,71,0.15);
  padding: 0.85rem 0;
}

.gz-ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: gz-marquee 25s linear infinite;
  width: max-content;
}

.gz-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 3rem;
  font-family: var(--gz-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gz-accent);
}

.gz-ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gz-accent);
  opacity: 0.5;
}

/* ── Hover Lift ────────────────────────────────────────────── */
.gz-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gz-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ── Hover Scale ───────────────────────────────────────────── */
.gz-hover-scale {
  transition: transform 0.25s ease;
}

.gz-hover-scale:hover { transform: scale(1.04); }

/* ── Image Overlay Zoom ────────────────────────────────────── */
.gz-img-zoom-wrap {
  overflow: hidden;
  border-radius: inherit;
}

.gz-img-zoom-wrap img {
  transition: transform 0.6s ease;
}

.gz-img-zoom-wrap:hover img {
  transform: scale(1.08);
}

/* ── Underline Hover ───────────────────────────────────────── */
.gz-underline-anim {
  position: relative;
}

.gz-underline-anim::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: var(--gz-accent);
  transition: width 0.3s ease;
}

.gz-underline-anim:hover::after { width: 100%; }

/* ── Stagger Children ──────────────────────────────────────── */
.gz-stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.gz-stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.gz-stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.gz-stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.gz-stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.gz-stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

.gz-stagger-children > * {
  animation: gz-fade-in-up 0.6s ease both;
  opacity: 0;
}

.gz-stagger-children.gz-in-view > * {
  opacity: 1;
}

/* ── Cursor Blink ──────────────────────────────────────────── */
.gz-cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gz-accent);
  vertical-align: middle;
  animation: gz-blink 1s step-end infinite;
}

/* ── Number Bounce ─────────────────────────────────────────── */
.gz-counter-animated {
  display: inline-block;
}

.gz-counter-animated.gz-bounce {
  animation: gz-counter-bounce 0.4s ease;
}

/* ── Loading Spinner ───────────────────────────────────────── */
.gz-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gz-accent);
  border-radius: 50%;
  animation: gz-spin 0.8s linear infinite;
}

/* ── Page Transition ───────────────────────────────────────── */
.gz-page-enter {
  animation: gz-fade-in 0.4s ease;
}

/* ── Card Appear on Scroll ─────────────────────────────────── */
[data-gz-appear] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-gz-appear].gz-appeared {
  opacity: 1;
  transform: none;
}

/* ── Typing cursor for heading ─────────────────────────────── */
.gz-typed-heading::after {
  content: '|';
  color: var(--gz-accent);
  animation: gz-blink 0.8s step-end infinite;
  margin-left: 2px;
}

/* ── Interactive hover ring ────────────────────────────────── */
.gz-hover-ring {
  transition: all 0.25s ease;
}

.gz-hover-ring:hover {
  outline: 2px solid var(--gz-accent);
  outline-offset: 4px;
}

/* ── Section slide indicator ───────────────────────────────── */
.gz-progress-line {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gz-accent), var(--gz-accent2));
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
}
