/* ========================================
   FONTS
   ======================================== */
@font-face {
  font-family: 'GlowSansTC';
  src: url('../fonts/GlowSansTC-Normal-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'GlowSansTC';
  src: url('../fonts/GlowSansTC-Normal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GlowSansTC';
  src: url('../fonts/GlowSansTC-Normal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GlowSansTC';
  src: url('../fonts/GlowSansTC-Normal-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Condensed';
  src: url('../fonts/Helvetica Condensed Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Condensed';
  src: url('../fonts/Helvetica Condensed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* ========================================
   CUSTOM PROPERTIES
   ======================================== */
:root {
  --color-primary: #F93822;
  --color-bg: #2D333A;
  --color-card: #F93822;
  --font-en: 'Helvetica Condensed', sans-serif;
  --font-zh: 'GlowSansTC', sans-serif;
  --nav-right: 160px;
  --page-padding-left: 165px;
  --back-btn-size: 55px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--color-primary);
  font-family: var(--font-zh);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   RIGHT-SIDE NAVIGATION
   ======================================== */
#main-nav {
  position: fixed;
  right: var(--nav-right);
  top: 125px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 60px;
  text-align: right;
}

.nav-item {
  display: block;
  transition: opacity 0.3s;
  opacity: 0.7;
}

.nav-item:hover,
.nav-item.active {
  opacity: 1;
}

.nav-en {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 5px;
  line-height: 1.2;
}

.nav-zh {
  display: block;
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  margin-top: 4px;
}

/* ========================================
   BARCODE LOGO
   ======================================== */
#barcode-logo {
  position: fixed;
  bottom: 40px;
  right: 125px;
  z-index: 100;
  width: 140px;
  cursor: pointer;
}

#barcode-logo img {
  width: 100%;
  height: auto;
}

/* Mobile top logo - hidden on desktop */
#mobile-top-logo {
  display: none;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ========================================
   RED GLOW (right edge)
   ======================================== */
#red-glow {
  position: fixed;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to left, rgba(249, 56, 34, 0.6), transparent);
  z-index: 50;
  pointer-events: none;
}

/* ========================================
   PAGE SECTIONS
   ======================================== */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow-y: auto;
  z-index: 1;
}

.page.active {
  opacity: 1;
  visibility: visible;
}

.page-content {
  min-height: 100vh;
  position: relative;
}

/* ========================================
   BACK BUTTON
   ======================================== */
.back-btn {
  position: absolute;
  top: var(--back-btn-size);
  left: var(--back-btn-size);
  width: var(--back-btn-size);
  height: var(--back-btn-size);
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 300;
  font-family: var(--font-en);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
  z-index: 10;
  line-height: 1;
}

.back-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ========================================
   SECTION 1: HOME
   ======================================== */
.home-content {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 120px;
}

/* Screen-reader only (for SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Credits wrapper - masks the scroll area */
.credits-wrapper {
  width: 100%;
  max-width: 600px;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* Fade edges */
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

/* Credits scroll - duplicated content for seamless loop */
.credits-scroll {
  text-align: left;
  padding: 20px 40px;
  animation: credits-roll 30s linear infinite;
}

.credits-block {
  padding-bottom: 50vh;
}

@keyframes credits-roll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.credits-scroll h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.credits-scroll .zh {
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0.9;
}

.credits-scroll .statement {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.home-subtitle {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 4px;
}

.home-subtitle-zh {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.home-tagline {
  font-size: 16px;
  font-style: italic;
  opacity: 0.85;
  margin-top: 8px;
}

.credits-scroll br {
  display: block;
  margin-top: 20px;
}

/* ========================================
   SECTION 2: ABOUT
   ======================================== */
.about-content {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 320px 0 160px;
}

.about-credits-wrapper {
  max-width: 600px;
}

.about-credits-scroll {
  text-align: center;
}

.about-subtitle {
  font-size: 14px;
  font-style: italic;
  margin-bottom: 4px;
}

.about-tagline {
  font-size: 16px;
  font-style: italic;
  opacity: 0.85;
  margin-top: 8px;
}

.about-credits-scroll h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.about-credits-scroll .zh {
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0.9;
}

.about-credits-scroll .statement {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.about-credits-scroll .zh-inline {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 14px;
}

.about-credits-scroll br {
  display: block;
  margin-top: 20px;
}

/* ========================================
   SECTION 3: JOIN (Form)
   ======================================== */
.join-content {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 55px 320px 55px var(--page-padding-left);
  height: 100vh;
}

.join-card {
  background: var(--color-card);
  color: var(--color-bg);
  width: 800px;
  max-width: 100%;
  padding: 45px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 45px;
  padding-bottom: 0;
  margin-bottom: 13px;
  position: relative;
}

.form-row::after {
  content: '';
  position: absolute;
  top: 95px;
  left: 410px;
  right: 0;
  height: 2px;
  background: #000;
}

.form-photo-placeholder {
  width: 120px;
  height: 143px;
  background: var(--color-bg);
  flex-shrink: 0;
}

.form-row .form-field {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.form-field {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 45px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  position: relative;
}

.join-card > .form-field::after {
  content: '';
  position: absolute;
  top: 37px;
  left: 245px;
  right: 0;
  height: 2px;
  background: #000;
}

.join-card > .form-field {
  margin-left: var(--page-padding-left);
}

.form-field label {
  flex-shrink: 0;
  width: 200px;
}

.field-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  display: block;
}

.field-zh {
  font-family: var(--font-zh);
  font-size: 13px;
  display: block;
  margin-top: 3px;
}

.form-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--color-bg);
  text-align: center;
  font-family: var(--font-zh);
  line-height: 1.2;
}

.form-field input:focus {
  outline: none;
}

/* ========================================
   SECTION 4: ARTISTS LIST
   ======================================== */
.artists-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 55px 320px 55px var(--page-padding-left);
  height: 100vh;
}

.artists-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 800px;
  max-width: 100%;
}

.artist-card {
  background: var(--color-card);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 30px 40px 30px 30px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 240px;
}

.artist-card:hover {
  transform: translateX(8px);
  box-shadow: -8px 0 30px rgba(249, 56, 34, 0.3);
}

.artist-photo {
  width: 140px;
  height: 140px;
  background: var(--color-bg);
  flex-shrink: 0;
}

.artist-info {
  flex: 1;
}

.artist-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 4px;
}

.artist-name-zh {
  font-family: var(--font-zh);
  font-size: 15px;
  margin-top: 3px;
}

.artist-tags {
  font-style: italic;
  font-size: 15px;
  margin-top: 18px;
  opacity: 0.7;
}

.artist-tags-zh {
  font-family: var(--font-zh);
  font-size: 13px;
  margin-top: 3px;
  opacity: 0.7;
}

/* ========================================
   SECTION 5: ARTIST DETAIL
   ======================================== */
.artist-detail-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 55px 320px 55px var(--page-padding-left);
}

.detail-card {
  background: var(--color-card);
  color: var(--color-bg);
  width: 800px;
  max-width: 100%;
  padding: 40px 50px 35px;
}

.detail-top {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
}

.detail-photo {
  width: 160px;
  height: 190px;
  background: var(--color-bg);
  flex-shrink: 0;
}

.detail-header {
  flex: 1;
}

.detail-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 3px;
}

.detail-name-zh {
  font-size: 15px;
  margin-top: 4px;
}

.detail-tags {
  font-style: italic;
  font-size: 14px;
  opacity: 0.7;
}

.detail-tags-zh {
  font-size: 12px;
  opacity: 0.7;
}

.detail-bio {
  margin-top: 10px;
}

.detail-bio p {
  font-size: 14px;
  line-height: 1.65;
}

.detail-bio br {
  display: block;
  margin-top: 10px;
}

.detail-bio .bio-label {
  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
   SECTION 6: CONTACT
   ======================================== */
.contact-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 320px 40px 125px;
  height: 100vh;
}

.contact-info {
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.contact-item {
  margin-bottom: 60px;
}

.contact-item h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 16px;
  letter-spacing: 2px;
}

.contact-qr-row {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 40px;
}

.contact-qr {
  text-align: center;
}

.contact-qr h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 5px;
  margin-bottom: 8px;
}

.contact-qr p {
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-qr .qr-code {
  width: 100px;
  height: 100px;
}

/* App icon row - hidden on desktop, visible on mobile */
.contact-icons-row {
  display: none;
}

/* ========================================
   COLLAB (placeholder)
   ======================================== */
.collab-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 320px 40px 125px;
  height: 100vh;
}

.collab-placeholder {
  text-align: center;
}

.collab-placeholder h2 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: 8px;
}

.collab-placeholder .zh {
  font-size: 16px;
  margin-top: 8px;
}

.collab-placeholder .coming-soon {
  font-size: 14px;
  margin-top: 30px;
  opacity: 0.5;
  font-style: italic;
}

/* ========================================
   MOBILE RESPONSIVE (< 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Video background - rotate 90deg for portrait mobile */
  #bg-video {
    width: 100vh;
    height: 100vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  /* Navigation - right side, visible on Home & About only */
  #main-nav {
    right: 35px;
    gap: 50px;
    top: 140px;
  }

  .nav-en {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .nav-zh {
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 3px;
  }

  /* Hide nav on all pages except about */
  body[data-active-page="join"] #main-nav,
  body[data-active-page="artists"] #main-nav,
  body[data-active-page="artist-detail"] #main-nav,
  body[data-active-page="contact"] #main-nav,
  body[data-active-page="collab"] #main-nav {
    display: none;
  }

  /* Hide back button on mobile */
  .back-btn {
    display: none;
  }

  /* Barcode logo - bottom center */
  #barcode-logo {
    bottom: 35px;
    right: 50%;
    transform: translateX(50%);
    width: 90px;
  }

  /* Mobile top logo - W O T M text at top */
  #mobile-top-logo {
    display: block;
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 100;
    cursor: pointer;
  }

  #mobile-top-logo img {
    width: 100%;
    height: auto;
  }

  /* Red glow */
  #red-glow {
    width: 30px;
  }

  /* HOME - credits visible on mobile too */
  .home-content {
    padding: 0;
    padding-left: 25px;
    height: 100vh;
  }

  .credits-wrapper {
    max-width: 280px;
  }

  .credits-scroll h3 {
    font-size: 14px;
  }

  .credits-scroll .zh {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .credits-scroll .statement {
    font-size: 14px;
  }

  .home-subtitle {
    font-size: 13px;
  }

  .home-subtitle-zh {
    font-size: 12px;
  }

  .home-tagline {
    font-size: 13px;
  }

  /* ABOUT */
  .about-content {
    padding: 0 100px 0 25px;
  }

  .about-credits-wrapper {
    max-width: 280px;
  }

  .about-credits-scroll h3 {
    font-size: 14px;
  }

  .about-credits-scroll .zh {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .about-credits-scroll .statement {
    font-size: 12px;
  }

  .about-credits-scroll .zh-inline {
    font-size: 11px;
  }

  .about-subtitle {
    font-size: 13px;
  }

  .about-tagline {
    font-size: 13px;
  }

  /* JOIN - full width card, no nav */
  .join-content {
    padding: 100px 35px 100px 35px;
    align-items: flex-start;
    height: auto;
  }

  .join-card {
    width: 100%;
    padding: 30px 25px;
  }

  .form-row {
    gap: 10px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .form-row::after {
    left: auto;
    right: 0;
    width: 120px;
    top: 39px;
  }

  .form-photo-placeholder {
    display: none;
  }

  .form-row .form-field {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .form-field {
    align-items: flex-start;
    padding-bottom: 25px;
    margin-bottom: 25px;
    gap: 10px;
  }

  .join-card > .form-field::after {
    left: auto;
    right: 0;
    width: 120px;
  }

  .join-card > .form-field {
    margin-left: 0;
  }

  .form-field label {
    width: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .field-en {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .field-zh {
    font-size: 11px;
  }

  .form-field input {
    font-size: 12px;
    flex: none;
    width: 120px;
    margin-left: auto;
  }

  /* ARTISTS - centered cards, no nav */
  .artists-content {
    padding: 100px 25px 100px 25px;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
  }

  .artists-list {
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .artist-card {
    gap: 20px;
    padding: 20px;
    height: auto;
  }

  .artist-photo {
    width: 110px;
    height: 110px;
  }

  .artist-name {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .artist-name-zh {
    font-size: 13px;
  }

  .artist-tags {
    font-size: 13px;
    margin-top: 12px;
  }

  .artist-tags-zh {
    font-size: 11px;
  }

  /* ARTIST DETAIL - full width card, no nav */
  .artist-detail-content {
    padding: 100px 25px 100px 25px;
    height: auto;
    align-items: flex-start;
  }

  .detail-card {
    width: 100%;
    padding: 30px 25px 30px 20px;
  }

  .detail-top {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 15px;
  }

  .detail-photo {
    width: 150px;
    height: 180px;
  }

  .detail-name {
    font-size: 26px;
  }

  .detail-tags {
    font-size: 14px;
  }

  .detail-tags-zh {
    font-size: 13px;
  }

  .detail-bio p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* CONTACT - vertical layout */
  .contact-content {
    padding: 60px 20px 100px 20px;
    height: auto;
  }

  .contact-info {
    max-width: 100%;
  }

  .contact-item {
    margin-bottom: 40px;
  }

  .contact-item h3 {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .contact-item p {
    font-size: 13px;
  }

  .contact-qr-row {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .contact-qr h3 {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .contact-qr p {
    font-size: 13px;
    margin-bottom: 0;
  }

  /* Hide QR codes on mobile */
  .contact-qr .qr-code {
    display: none;
  }

  /* Show app icon row on mobile */
  .contact-icons-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
  }

  .contact-icons-row img {
    width: 70px;
    height: 70px;
  }

  /* COLLAB */
  .collab-content {
    padding: 60px 20px 100px 20px;
    height: auto;
  }

  .collab-placeholder h2 {
    font-size: 28px;
    letter-spacing: 5px;
  }
}
