/* ===== Base / Shared Styles ===== */

body {
  background-color: #111;
}

html {
  scroll-behavior: smooth;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  filter: brightness(1.1);
  box-shadow: 0 0 10px var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
  opacity: 0.8;
  z-index: 5;

}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 1.5s infinite;
}

/* ===== Hero Fade-In Animation ===== */

.hero .container {
  opacity: 0;
  transform: translateY(8px);
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes scrollBounce {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(10px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Gallery container (anchor for overlay) */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Image */
.gallery-item img {
  display: block;
  width: 100%;
  transition: transform .35s ease;
  position: relative;
  z-index: 1;
}

/* Subtle zoom on hover */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

/* Fade overlay in */
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Main text (BUILD / BRAND / etc) */
.gallery-label {
  color: #fff;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

/* Subtitle text */
.gallery-sub {
  color: #ddd;
  margin-top: 6px;
  font-size: 0.9rem;
  letter-spacing: .05em;
}

/* Subtle pulse when players > 0 */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background-color: inherit; /* ✅ makes the pulse visible */
  opacity: 0;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.65); opacity: 0.55; }
  80%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
