/* ============================================================
   XtremeIPTVHD.live - Animations Stylesheet
   ============================================================ */

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Gradient background shift */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Pulse glow */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(8, 145, 178, 0.3); }
  50% { box-shadow: 0 0 40px rgba(103, 232, 249, 0.6), 0 0 80px rgba(8, 145, 178, 0.2); }
}

/* Spin */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: ease-in; }
  50% { transform: translateY(-8px); animation-timing-function: ease-out; }
}

/* Scale in */
@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Slide up */
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Slide left */
@keyframes slideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Count up animation trigger */
@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ============================================================
   GRADIENT ANIMATED BACKGROUND
   ============================================================ */
.animated-gradient {
  background: linear-gradient(270deg, #001a1f, #0891b2, #0891b2, #67e8f9, #0891b2, #001a1f);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.float-slow { animation: float 6s ease-in-out infinite; }
.float-mid { animation: float 4s ease-in-out infinite 1s; }
.float-fast { animation: float 3s ease-in-out infinite 0.5s; }

/* ============================================================
   GLOW EFFECTS
   ============================================================ */
.glow-primary {
  box-shadow: 0 0 24px rgba(8, 145, 178, 0.4);
  transition: box-shadow 0.3s ease;
}

.glow-primary:hover {
  box-shadow: 0 0 40px rgba(8, 145, 178, 0.6), 0 0 80px rgba(8, 145, 178, 0.2);
}

.glow-accent {
  box-shadow: 0 0 24px rgba(103, 232, 249, 0.4);
  transition: box-shadow 0.3s ease;
}

.glow-accent:hover {
  box-shadow: 0 0 40px rgba(103, 232, 249, 0.6), 0 0 80px rgba(103, 232, 249, 0.2);
}

.pulse-glow { animation: glowPulse 3s ease-in-out infinite; }

/* ============================================================
   HOVER MICRO-INTERACTIONS
   ============================================================ */

/* Magnetic button hover effect */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Icon rotate on hover */
.icon-rotate {
  transition: transform 0.4s ease;
}
.icon-rotate:hover { transform: rotate(15deg); }

/* Card lift + glow */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.2), 0 0 0 1px rgba(103, 232, 249, 0.3);
  border-color: rgba(103, 232, 249, 0.5);
}

/* ============================================================
   LOADING SHIMMER
   ============================================================ */
.shimmer {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ============================================================
   HERO SPECIFIC ANIMATIONS
   ============================================================ */

/* Orb glow blobs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0891b2, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #67e8f9, transparent 70%);
  bottom: -50px;
  left: 10%;
  animation: float 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #90e0ef, transparent 70%);
  top: 30%;
  left: 40%;
  animation: float 7s ease-in-out infinite 1s;
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */

/* Default state */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="none"] { transform: none; }

/* Visible state */
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   COUNTING ANIMATION
   ============================================================ */
.count-pop { animation: countPop 0.4s ease; }

/* ============================================================
   BUTTON RIPPLE
   ============================================================ */
.ripple-container {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(8, 145, 178, 0.25);
  color: var(--text-primary);
}

/* ============================================================
   FOCUS STYLES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TRANSITION UTILITIES
   ============================================================ */
.transition-fast { transition: all 0.15s ease; }
.transition-med { transition: all 0.3s ease; }
.transition-slow { transition: all 0.6s ease; }
