/* Base reset */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #070709;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Background video container */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Vignette overlay for contrast and luxury look */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(7, 7, 9, 0.2) 0%, rgba(4, 4, 5, 0.6) 70%, rgba(4, 4, 5, 0.8) 100%);
  pointer-events: none;
}

/* Top Bar Animations */
@keyframes fadeInTopBar {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Instagram Follow Button - Text Only (No frame/border/box) */
.instagram-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: rgba(254, 245, 240, 0.85);
  text-decoration: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
  animation: fadeInTopBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  -webkit-tap-highlight-color: transparent;
}

.instagram-btn .instagram-icon {
  width: 16px;
  height: 16px;
  stroke: rgba(254, 245, 240, 0.85);
  transition: transform 0.3s ease, stroke 0.3s ease;
}

/* Minimal Text Hover State */
.instagram-btn:hover {
  background: transparent !important;
  border: none !important;
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.instagram-btn:hover .instagram-icon {
  stroke: #ffffff;
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.instagram-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Minimal Audio Mute/Unmute Button */
.audio-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(254, 245, 240, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: color 0.3s ease, transform 0.3s ease;
  animation: fadeInTopBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  -webkit-tap-highlight-color: transparent;
}

.audio-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.audio-btn:hover {
  color: rgba(254, 245, 240, 0.95);
  transform: scale(1.08);
}

.audio-btn:active {
  transform: scale(0.92);
}

/* Sound Icon Toggle Display Logic */
.audio-btn .icon-sound-off {
  display: none;
}

.audio-btn.muted .icon-sound-on {
  display: none;
}

.audio-btn.muted .icon-sound-off {
  display: block;
  opacity: 0.8;
}

/* Logo container at the bottom center */
.logo-container {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 220px;
  max-width: 85%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUpLogo 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  pointer-events: none;
}

.logo-container img {
  width: 140px;
  max-width: 80%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
  animation: floatLogo 6s ease-in-out infinite 1.4s;
  pointer-events: auto;
}

/* Brand Title under logo */
.brand-title {
  margin: 12px 0 0 0;
  font-family: '29LT Bukra Wide', '29LT Bukra', 'Montserrat', 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fef5f0;
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(254, 245, 240, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

/* Animations for Bottom Bar / Logo */
@keyframes fadeInUpLogo {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* General Fade In Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-container {
    width: 170px;
    bottom: 8%;
  }

  .logo-container img {
    width: 110px;
  }

  .brand-title {
    font-size: 14px;
    letter-spacing: 0.22em;
    margin-top: 10px;
  }

  .audio-btn {
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
  }

  .audio-btn svg {
    width: 16px;
    height: 16px;
  }

  .instagram-btn {
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .instagram-btn .instagram-icon {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   Parallax Eyewear Brands Ticker & Continuous Motion Animation
   ========================================================================== */
.brands-parallax-container {
  position: absolute;
  bottom: 22%;
  top: auto;
  left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  perspective: 1200px;
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.brands-track-wrapper {
  width: 100%;
  display: flex;
  overflow: visible;
  padding: 10px 0;
  will-change: transform;
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.brands-track-wrapper.layer-far {
  opacity: 0.7;
  filter: blur(0.2px);
}

.brands-track-wrapper.layer-near {
  opacity: 0.92;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 38px;
  white-space: nowrap;
  will-change: transform;
  padding: 6px 0;
  pointer-events: none;
}

.track-left {
  animation: marqueeScrollLeft 38s linear infinite !important;
}

.track-right {
  animation: marqueeScrollRight 44s linear infinite !important;
}

/* Pure Floating Logos - Continuous Motion without hover pausing or color/scale changes */
.brand-item {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  height: 36px;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* Visually Normalized & Equalized Brand Logos */
.brand-logo-img {
  height: 20px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  opacity: 0.88;
  pointer-events: none;
}

.layer-near .brand-logo-img {
  height: 22px;
  opacity: 0.95;
}

/* Specific Logo Size Balancing */
.brand-item[title="Ray-Ban"] .brand-logo-img,
.brand-item[title="Persol"] .brand-logo-img {
  height: 26px !important;
  max-width: 145px !important;
}

.brand-item[title="Prada"] .brand-logo-img,
.brand-item[title="Gucci"] .brand-logo-img,
.brand-item[title="Versace"] .brand-logo-img,
.brand-item[title="Fendi"] .brand-logo-img {
  height: 16px;
}

.brand-item[title="Saint Laurent"] .brand-logo-img,
.brand-item[title="Oliver Peoples"] .brand-logo-img,
.brand-item[title="Tom Ford"] .brand-logo-img,
.brand-item[title="Cartier"] .brand-logo-img {
  height: 22px;
  max-width: 135px;
}

.brand-dot {
  color: rgba(254, 245, 240, 0.3);
  font-size: 7px;
  pointer-events: none;
}

/* Scroll Animations */
@keyframes marqueeScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Mobile Responsiveness for Brands Ticker */
@media (max-width: 768px) {
  .brands-parallax-container {
    bottom: 20%;
    gap: 10px;
    padding: 12px 0;
  }
  .brand-logo-img {
    height: 14px;
    max-width: 95px;
  }
  .layer-near .brand-logo-img {
    height: 16px;
  }
}