/* ============================================
   HOG ANIMATIONS — Hardcore Online Gaming
   ============================================ */

/* ---- Keyframes ---- */

@keyframes hog-pulse-glow {
  0%, 100% { text-shadow: 0 0 8px var(--hog-accent), 0 0 20px var(--hog-accent); }
  50%       { text-shadow: 0 0 20px var(--hog-accent), 0 0 50px var(--hog-accent), 0 0 80px var(--hog-accent-alt); }
}

@keyframes hog-border-glow {
  0%, 100% { box-shadow: 0 0 6px var(--hog-accent), 0 0 20px rgba(0,255,170,0.2); }
  50%       { box-shadow: 0 0 18px var(--hog-accent), 0 0 50px rgba(0,255,170,0.4), inset 0 0 12px rgba(0,255,170,0.05); }
}

@keyframes hog-slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hog-slide-down {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes hog-scan-line {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

@keyframes hog-counter-flash {
  0%   { color: var(--hog-accent); }
  50%  { color: #fff; }
  100% { color: var(--hog-accent); }
}

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

@keyframes hog-bar-fill {
  from { width: 0%; }
  to   { width: var(--hog-bar-target); }
}

@keyframes hog-ping {
  0%   { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

@keyframes hog-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hog-glitch {
  0%, 100% { clip-path: inset(0 0 98% 0); transform: translate(0); }
  20%  { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  40%  { clip-path: inset(50% 0 30% 0); transform: translate(3px, -2px); }
  60%  { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 3px); }
  80%  { clip-path: inset(85% 0 5% 0); transform: translate(2px, -1px); }
}

@keyframes hog-particle-drift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes hog-typewriter-cursor {
  0%, 50% { border-right-color: var(--hog-accent); }
  51%, 100%{ border-right-color: transparent; }
}

/* ---- Utility Animation Classes ---- */

.hog-anim-slide-up {
  animation: hog-slide-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hog-anim-fade-in {
  animation: hog-fade-in 0.5s ease both;
}
.hog-anim-scale-in {
  animation: hog-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hog-anim-float {
  animation: hog-float 4s ease-in-out infinite;
}
.hog-anim-glow-text {
  animation: hog-pulse-glow 2.5s ease-in-out infinite;
}
.hog-anim-gradient {
  background-size: 400% 400%;
  animation: hog-gradient-shift 8s ease infinite;
}

/* ---- Stagger Delays ---- */
.hog-delay-100 { animation-delay: 0.1s; }
.hog-delay-200 { animation-delay: 0.2s; }
.hog-delay-300 { animation-delay: 0.3s; }
.hog-delay-400 { animation-delay: 0.4s; }
.hog-delay-500 { animation-delay: 0.5s; }
.hog-delay-600 { animation-delay: 0.6s; }
.hog-delay-700 { animation-delay: 0.7s; }
.hog-delay-800 { animation-delay: 0.8s; }

/* ---- Scroll-Triggered Base ---- */
.hog-scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hog-scroll-reveal.hog-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hog-scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hog-scroll-reveal-left.hog-revealed {
  opacity: 1;
  transform: translateX(0);
}

.hog-scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hog-scroll-reveal-right.hog-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Hover FX ---- */
.hog-hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.hog-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.hog-hover-glow {
  transition: box-shadow 0.3s ease;
}
.hog-hover-glow:hover {
  box-shadow: 0 0 25px rgba(0,255,170,0.4), 0 0 60px rgba(0,255,170,0.15);
}

/* ---- Shimmer Text ---- */
.hog-shimmer-text {
  background: linear-gradient(
    120deg,
    var(--hog-accent) 0%,
    #fff 40%,
    var(--hog-accent) 60%,
    var(--hog-accent-alt) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hog-shimmer 3s linear infinite;
}

/* ---- Particle Container ---- */
.hog-particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hog-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hog-accent);
  opacity: 0;
  animation: hog-particle-drift linear infinite;
}

/* ---- Progress Bar Animated ---- */
.hog-stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hog-accent), var(--hog-accent-alt));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hog-stat-bar-fill.hog-animated {
  width: var(--hog-bar-target);
}

/* ---- Glitch Layer ---- */
.hog-glitch-layer {
  position: relative;
}
.hog-glitch-layer::before,
.hog-glitch-layer::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.6;
}
.hog-glitch-layer::before {
  color: #ff0055;
  animation: hog-glitch 3s infinite step-start;
  left: 2px;
}
.hog-glitch-layer::after {
  color: #00ffaa;
  animation: hog-glitch 3s infinite step-start 0.3s;
  left: -2px;
}

/* ---- Typewriter Cursor ---- */
.hog-typewriter {
  border-right: 3px solid var(--hog-accent);
  animation: hog-typewriter-cursor 0.8s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}
