/* ============================================
   ToldUntold China — Static Site Styles
   ============================================ */

/* === Font Faces === */
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/signifier/Signifier-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/signifier/Signifier-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/signifier/Signifier-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/signifier/Signifier-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spaceGrotesk/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spaceGrotesk/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spaceGrotesk/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spaceGrotesk/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spaceGrotesk/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === i18n: Show/hide by language === */
html:not([lang="zh"]) .zh { display: none !important; }
html[lang="zh"] .en { display: none !important; }

/* === Selection === */
::selection {
  background: #6FD867;
  color: black;
}

/* === Animations === */
@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator { animation: scroll-hint 2s ease-in-out infinite; }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; opacity: 0; }

/* === Pillar cards === */
.pillar-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card:hover .pillar-overlay { opacity: 0.3; }
.pillar-card .pillar-overlay { transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* === Snap scrolling for mobile carousels === */
.snap-x { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.snap-mandatory { scroll-snap-type: x mandatory; }
.snap-center { scroll-snap-align: center; }

/* === Scrollbar hide for carousels === */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Language switcher === */
.lang-switch {
  cursor: pointer;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-switch:hover {
  background: white;
  color: black;
}
.lang-switch-dark:hover {
  background: black;
  color: white;
}

/* === Full-screen video sections (matches EN VideoWithBlurBackground) === */
.video-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: white;
}

.video-section-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.05);
}

.video-section-overlay {
  position: absolute;
  inset: -4px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(50px);
  z-index: 1;
}

.video-section-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 0;
}

.video-section-text {
  margin-top: 96px;
  padding: 0 30px;
  width: 85%;
}

.video-frame {
  height: 75vh;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 14px;
}

.video-frame video {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

@media (min-width: 1024px) {
  .video-section {
    aspect-ratio: 16 / 9;
  }

  .video-section-overlay {
    backdrop-filter: none;
  }

  .video-section-inner {
    position: absolute;
    inset: 0;
    display: block;
    min-height: auto;
    padding: 0;
  }

  .video-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .video-section-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    max-width: 320px;
    width: auto;
    margin-top: 0;
    padding: 0;
  }
}
