@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0c0d0f;
  --bg-soft: #131417;
  --surface: #17181c;
  --surface-2: #1e2024;
  --line: #2a2c31;
  --text: #f2f0e9;
  --text-dim: #a8a7a1;
  --text-mute: #6f706f;
  --red: #ff4b3e;
  --red-dim: #c73b30;
  --gold: #ffc63d;
  --green: #3ddc84;
}

html {
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Glassmorphic Navbar */
.glass-header {
  background: rgba(12, 13, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 44, 49, 0.5);
  transition: all 0.3s ease;
}

.glass-header.scrolled {
  background: rgba(12, 13, 15, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(42, 44, 49, 0.8);
}

/* Glow effects */
.glow-red {
  box-shadow: 0 0 20px rgba(255, 75, 62, 0.35);
}

.glow-red:hover {
  box-shadow: 0 0 30px rgba(255, 75, 62, 0.6);
}

.glow-text-red {
  text-shadow: 0 0 15px rgba(255, 75, 62, 0.6);
}

.glow-text-gold {
  text-shadow: 0 0 15px rgba(255, 198, 61, 0.6);
}

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Infinite Marquee */
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* LED Scoreboard Counter */
.led-scoreboard {
  background-color: #050505;
  border: 4px solid #1c1d22;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 10px 25px rgba(0,0,0,0.8);
  border-radius: 12px;
}

.led-digit {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #111215;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 198, 61, 0.95);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05);
}

/* Horizontal line inside mechanical digit */
.led-digit::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Custom Webkit scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-mute);
}

/* Gradient background accents */
.bg-glow-gradient {
  background-image: radial-gradient(circle 600px at 50% -100px, rgba(255, 75, 62, 0.15), transparent);
}

.bg-glow-right {
  background-image: radial-gradient(circle 500px at 120% 40%, rgba(255, 198, 61, 0.08), transparent);
}

.bg-glow-left {
  background-image: radial-gradient(circle 500px at -20% 80%, rgba(255, 75, 62, 0.08), transparent);
}

/* Before/After range slider styling */
.comparison-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 75, 62, 0.8);
}

.comparison-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 75, 62, 0.8);
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

/* Chat overlay transition */
#chatPanel {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatPanel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
