@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --coke-red: #f40009;
  --coke-red-bright: #ff1e27;
  --coke-red-dark: #a30006;
  --coke-red-glow: rgba(244, 0, 9, 0.45);
  --coke-black: #060607;
  --coke-dark: #0f0f12;
  --coke-card: #151518;
  --coke-card-hover: #1c1c22;
  --coke-border: rgba(255, 255, 255, 0.08);
  --coke-border-active: rgba(244, 0, 9, 0.4);
  --coke-text-muted: #8e8e93;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--coke-black);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--coke-black);
  color: #f5f5f7;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--coke-red);
}

/* Typography Utilities */
.font-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
}
.font-tech {
  font-family: 'Space Grotesk', sans-serif;
}

/* Red Ambient Light Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}

.ambient-glow-red {
  background: radial-gradient(circle, rgba(244, 0, 9, 0.35) 0%, rgba(244, 0, 9, 0) 70%);
}

.ambient-glow-cold {
  background: radial-gradient(circle, rgba(0, 162, 255, 0.15) 0%, rgba(0, 162, 255, 0) 70%);
}

/* Frosted Glass Effect */
.glass-panel {
  background: rgba(18, 18, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-interactive {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-interactive:hover {
  border-color: rgba(244, 0, 9, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(244, 0, 9, 0.25);
}

/* 3D Can Stage & Physics */
.can-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.can-3d-wrap {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.can-floating {
  animation: floatCan 6s ease-in-out infinite;
}

@keyframes floatCan {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

/* Floating Ice Cubes */
.ice-cube {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(200,230,255,0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  animation: floatIce 8s ease-in-out infinite;
}

.ice-cube-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 8%;
  transform: rotate(25deg);
  animation-delay: 0s;
}

.ice-cube-2 {
  width: 48px;
  height: 48px;
  top: 65%;
  right: 10%;
  transform: rotate(-35deg);
  animation-delay: -3s;
}

.ice-cube-3 {
  width: 36px;
  height: 36px;
  top: 40%;
  left: 2%;
  transform: rotate(15deg);
  animation-delay: -5s;
}

@keyframes floatIce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(12deg);
  }
}

/* Effervescence Canvas Layer */
#fizz-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Sound Wave Visualizer Bars */
.sound-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--coke-red);
  margin: 0 1.5px;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.sound-bar.active {
  animation: soundBounce 0.6s ease-in-out infinite alternate;
}

@keyframes soundBounce {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Button & Micro-Interactions */
.btn-coke-primary {
  background: linear-gradient(135deg, #ff1e27 0%, #d40008 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(244, 0, 9, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-coke-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-coke-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px -2px rgba(244, 0, 9, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-coke-primary:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.btn-coke-primary:active {
  transform: translateY(1px) scale(0.99);
}

.btn-coke-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-coke-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Flavor Badge Pill Styles */
.flavor-pill {
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 24, 0.7);
}

.flavor-pill.active,
.flavor-pill:hover {
  border-color: var(--coke-red);
  background: rgba(244, 0, 9, 0.15);
  transform: scale(1.04);
}

/* Interactive Split Slider */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

/* Radial Gauge / Meter */
.meter-fill {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sensory Timeline Item Pulse */
.sensory-step {
  position: relative;
}
.sensory-step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20px;
  bottom: -24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.sensory-step:last-child::before {
  display: none;
}

/* Tag Pill */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Confetti Particle */
.confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(600px) rotate(720deg) scale(0.3);
  }
}

/* Interactive Sound Trigger Ripple */
@keyframes acousticRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 0, 9, 0.6);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(244, 0, 9, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 0, 9, 0);
  }
}

.ripple-active {
  animation: acousticRipple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ice-cube-1 { width: 38px; height: 38px; }
  .ice-cube-2 { width: 32px; height: 32px; }
  .ice-cube-3 { display: none; }
}
