/* COCA-COLA 360° SCROLL ANIMATION - FIXED CANVAS & HEADING FADE STYLING */

:root {
  --coke-red: #F40009;
  --carbon-black: #1A1A1A;
  --silver-lining: #F2F2F2;
  --pure-white: #FFFFFF;
  --bg-surface: #fff8f7;
  --text-on-surface: #2a1613;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #050508;
  color: var(--text-on-surface);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050508;
}
::-webkit-scrollbar-thumb {
  background: var(--coke-red);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bc0005;
}

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: #050508;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.brand-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--coke-red);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(244, 0, 9, 0.2);
  border-top-color: var(--coke-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8e99b0;
}

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

/* FIXED CANVAS VIEWPORT */
.canvas-fixed-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050508;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ANIMATION OVERLAY HEADING */
.anim-overlay-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  width: 90%;
  max-width: 700px;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-overlay-header.fade-out {
  opacity: 0;
  transform: translate(-50%, -65%);
}

.pill-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coke-red);
  background: rgba(244, 0, 9, 0.12);
  border: 1px solid rgba(244, 0, 9, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.anim-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.anim-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.arrow-bounce {
  color: var(--coke-red);
  font-size: 1.4rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* SCROLL TRACK FOR ANIMATION SCRUB */
.anim-scroll-track {
  position: relative;
  height: 300vh;
  z-index: 2;
  pointer-events: none;
}

/* CONTENT SECTION (SLIDES UP OVER CANVAS AFTER ANIMATION TRACK) */
.content-section {
  position: relative;
  z-index: 20;
  background-color: var(--bg-surface);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
}

/* REVEAL TRANSITIONS */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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