/* Load TCCC Unity Fonts (Coca-Cola Font) */
@font-face {
  font-family: 'TCCC Unity Text';
  src: url('fonts/TCCC-UnityText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TCCC Unity Text';
  src: url('fonts/TCCC-UnityText-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TCCC Unity Text';
  src: url('fonts/TCCC-UnityText-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TCCC Unity Text';
  src: url('fonts/TCCC-UnityText-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TCCC Unity Text';
  src: url('fonts/TCCC-UnityText-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Design System & Custom Properties */
:root {
  --coca-cola-red: #ea0000;
  --bg-color-center: #f8f8f8;
  --bg-color-edge: #dddddd;
  /* Centered around #eee */
  --text-main: #2b2b2b;
  --text-white: #ffffff;
  --font-family: 'TCCC Unity Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background: radial-gradient(circle at center, var(--bg-color-center) 0%, var(--bg-color-edge) 100%);
  color: var(--text-main);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Animation for initial page load */
body {
  opacity: 0;
  animation: fadeInPage 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Content Wrapper - Centering the Vimeo Video */
.presentation-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  /* Leave room for the fixed footer */
  padding-bottom: 88px;
  width: 100%;
  min-height: calc(100vh - 48px);
}

/* Video Box - Premium drop shadow and border */
.video-viewport {
  width: 100%;
  max-width: 1200px;
  /* Perfect presentation width on screens */
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  animation: slideUpVideo 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Premium Download Presentation Button */
.cta-wrapper {
  margin-top: 35px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

/* Hide the CTA container if the download link is missing an href, has an empty href, or has '#' */
.cta-wrapper:has(#download-link:not([href])),
.cta-wrapper:has(#download-link[href=""]),
.cta-wrapper:has(#download-link[href="#"]) {
  display: none !important;
}


.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background-color: var(--coca-cola-red);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-download:hover {
  background-color: #c20000;
  color: var(--text-white);
}

.btn-download svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-download:hover svg {
  transform: translateY(2px);
}

/* Coca-Cola Branding Footer Bar */
.presentation-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: var(--coca-cola-red);
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
}

.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-center {
  flex: 2;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.coca-cola-logo {
  height: 18px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.coca-cola-logo:hover {
  opacity: 0.85;
}

.coca-cola-logo svg {
  height: 100%;
  width: auto;
}

/* Core Animation Keyframes */
@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

@keyframes slideUpVideo {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

/* Responsive Adaptations for Mobile Access via NFC */
@media (max-width: 800px) {
  .presentation-footer {
    position: relative;
    /* Unfix footer for seamless mobile scrolling */
    height: auto;
    min-height: 80px;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .presentation-container {
    padding-bottom: 30px;
    min-height: auto;
    justify-content: flex-start;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: none;
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
  }

  .coca-cola-logo {
    height: 36px;
  }

  .video-viewport {
    border-radius: 12px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Landscape Fullscreen Override */
@media (max-width: 980px) and (orientation: landscape) {

  html,
  body {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed;
  }

  .presentation-footer,
  .cta-wrapper {
    display: none !important;
  }

  .presentation-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .video-viewport {
    aspect-ratio: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    width: 100svw !important;
    height: 100svh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}