/* ============================================
   SVIJET IGRAONICA - Animations
   animations.css
   ============================================ */

/* ---- Pulse Glow on Platform Cards ---- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(0,0,0,0.4),
      0 0 0 0 rgba(201,168,76,0);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(0,0,0,0.4),
      0 0 24px 4px rgba(201,168,76,0.22),
      0 0 48px 8px rgba(201,168,76,0.08);
  }
}

/* ---- Stronger hover glow ---- */
@keyframes hoverGlowIn {
  to {
    box-shadow:
      0 8px 40px rgba(0,0,0,0.5),
      0 0 32px 6px rgba(201,168,76,0.35),
      0 0 60px 12px rgba(201,168,76,0.12);
  }
}

/* ---- Platform card border scan effect ---- */
@keyframes borderScan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.platform-card {
  animation: pulseGlow 3.5s ease-in-out infinite;
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.35s;
}
.platform-card:hover {
  animation: none;
  box-shadow:
    0 10px 50px rgba(0,0,0,0.6),
    0 0 36px 8px rgba(201,168,76,0.4),
    0 0 70px 16px rgba(201,168,76,0.15) !important;
  border-color: var(--accent) !important;
  transform: translateY(-6px) !important;
}

/* ---- Shimmer on card logos ---- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.card-logo-wrap {
  position: relative;
  overflow: hidden;
}
.card-logo-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(201,168,76,0.08) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  pointer-events: none;
}

/* ---- Floating badge on featured card ---- */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.badge-featured {
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #080d18;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 var(--radius) 0 var(--radius);
  animation: floatBadge 2.5s ease-in-out infinite;
}

/* ---- Fade-in on scroll ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }

/* ---- Counter-up for hero stats ---- */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-stat strong {
  animation: countUp 0.6s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
.hero-stat:nth-child(2) strong { animation-delay: 0.15s; }
.hero-stat:nth-child(3) strong { animation-delay: 0.3s; }

/* ---- Regulator logos hover ---- */
.reg-item img, .footer-reg-item img {
  transition: filter 0.3s, transform 0.3s;
}
.reg-item:hover img { transform: scale(1.06); }

/* ---- CTA button pulse ---- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}
.btn-primary {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.btn-primary:hover { animation: none; }

/* ---- Page load transition ---- */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageIn 0.4s ease; }

/* ---- Hero title word highlight ---- */
.hero h1 span {
  position: relative;
  display: inline;
}
.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

/* ---- Section reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Gold gradient text ---- */
.gold-text {
  background: linear-gradient(135deg, #f0d060, #c9a84c, #a07830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
