/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --bg-color: #111111;
  --text-light: #ffffff;
  --accent-yellow: #eec802;
  --font-primary: 'Outfit', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: var(--font-primary);
  overflow: hidden;
  user-select: none;
}

/* Main Container (Scroll Snap Wrapper) */
main {
  width: 100vw;
  height: 100vh;
  /* Scroll locking initially - Javascript changes this to auto/scroll after video ends */
  overflow-y: hidden;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Hide Scrollbar */
main::-webkit-scrollbar {
  display: none;
}

main {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Slide Styles */
.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
}

/* Media styling (sharpness for 4K) */
img, video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); /* hardware acceleration */
}

/* Play Button Styling */
#play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 10;
}

.play-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 6px; /* visually center the triangle */
  transition: transform 0.3s ease;
}

.play-btn:hover svg {
  transform: scale(1.1);
}

/* Mobile Block Styling */
#mobile-block {
  display: none;
}

@media (max-width: 768px) {
  #mobile-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: var(--accent-yellow);
    color: #111111;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    padding: 2.5rem;
    box-sizing: border-box;
    text-align: center;
  }
  
  main {
    display: none !important;
  }
  
  .mobile-container {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .mobile-icon {
    width: 64px;
    height: 64px;
    opacity: 0.95;
    animation: pulse 2.5s infinite ease-in-out;
  }
  
  .mobile-text {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: var(--font-primary);
  }
}

/* Custom Micro-animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
