/* ============================================================
   ZAHID MUDASSER — "THE WILD STALLION" 野馬
   Dark fight-poster theme
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --card: #16161b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f2ef;
  --muted: #9b9ba3;
  --red: #e11d2e;
  --red-deep: #8f0f1c;
  --gold: #d9a441;
  --font-display: "Anton", "Noto Sans TC", sans-serif;
  --font-zh: "Noto Sans TC", sans-serif;
  --font-body: "Barlow", "Noto Sans TC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- language toggle ---------- */
html[lang="zh"] .en-only { display: none !important; }
html[lang="en"] .zh-only { display: none !important; }

/* ============================================================ NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.nav__logo {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(225, 29, 46, 0.6));
}
.nav__name b { color: var(--red); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 30px);
  list-style: none;
}
.nav__links a:not(.nav__lang) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__lang {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav__lang:hover { background: var(--red); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.82) 0%, rgba(11,11,13,0.55) 45%, rgba(11,11,13,0.96) 100%),
    radial-gradient(ellipse at 50% 110%, rgba(225,29,46,0.28), transparent 55%),
    url("../img/hero.jpg") center 30% / cover no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 120px 20px 90px;
  max-width: 1000px;
}
.hero__flags { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.4em; margin-bottom: 14px; }
.hero__kicker {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.28em;
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title { display: grid; gap: 4px; }
.hero__zh {
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero__en {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero__en--stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  text-shadow: none;
}
.hero__record {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 26px;
  padding: 10px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: rgba(11,11,13,0.55);
  backdrop-filter: blur(6px);
}
.hero__score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--red);
  letter-spacing: 0.05em;
}
.hero__rec-label {
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  text-transform: uppercase;
  color: var(--text);
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px rgba(225, 29, 46, 0.35);
}
.btn--red:hover {
  transform: translateY(-2px);
  background: #f42c3e;
  box-shadow: 0 12px 38px rgba(225, 29, 46, 0.5);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  animation: bob 2s ease-in-out infinite;
}
.hero__scroll i { font-style: normal; color: var(--red); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================ QUOTE */
.quote {
  padding: clamp(60px, 9vw, 110px) 24px;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 9rem;
  color: rgba(225, 29, 46, 0.18);
  line-height: 1;
}
.quote__zh, .quote__en {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.6vw, 2.3rem);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}
.quote__en { font-family: var(--font-body); font-weight: 600; }

/* ============================================================ SECTIONS */
.section { padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px); }
.section__tag {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: clamp(30px, 5vw, 56px);
}

/* ============================================================ ABOUT */
.about {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  filter: contrast(1.05) saturate(0.95);
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--red);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.55;
}
.about__badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--red);
  color: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 12px 34px rgba(225, 29, 46, 0.45);
}
.about__badge b { font-family: var(--font-display); font-size: 2.2rem; display: block; }
.about__badge span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; }
.about__bio p { margin-bottom: 18px; color: #cfcec9; }
.about__bio b { color: var(--text); }
.about__goal {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: var(--gold) !important;
  font-weight: 500;
}
.about__text .btn { margin-top: 8px; }

/* ============================================================ STATS */
.stats {
  background:
    linear-gradient(180deg, rgba(225,29,46,0.10), rgba(225,29,46,0.02)),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto clamp(20px, 3vw, 34px);
}
.stat { padding: 26px 10px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--text);
  line-height: 1;
}
.stat:first-child .stat__num { color: var(--red); }
.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.stats__note { color: var(--muted); letter-spacing: 0.12em; font-size: 0.95rem; }

/* ============================================================ GALLERY */
.gallery { max-width: 1280px; margin: 0 auto; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 185px;
  grid-auto-flow: dense;
  gap: 12px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  background: var(--card);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.g-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.g-item--tall { grid-row: span 2; }
.g-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.3s;
}
.g-item:hover .g-item__cap { opacity: 1; }

/* ============================================================ VIDEOS */
.videos { background: var(--bg-2); border-top: 1px solid var(--line); }
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}
.v-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
}
.v-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s, transform 0.4s; }
.v-card:hover img { opacity: 1; transform: scale(1.04); }
.v-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.v-card__play i {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.92);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.5);
  transition: box-shadow 0.3s, transform 0.2s;
}
.v-card:hover .v-card__play i {
  transform: scale(1.1);
  box-shadow: 0 0 0 14px rgba(225, 29, 46, 0.18);
}
.v-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 30px 14px 11px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.v-card__label { font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; }
.v-card__chip {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 3px;
  padding: 2px 8px;
}
.v-card iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================ MISSION */
.mission {
  position: relative;
  text-align: center;
  padding: clamp(110px, 16vw, 200px) 24px;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.88), rgba(11,11,13,0.72) 50%, rgba(11,11,13,0.94)),
    url("../img/mission.jpg") center 25% / cover no-repeat fixed;
}
.mission__tag {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.mission__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.9);
}
.mission__title .zh-only { font-family: var(--font-zh); font-weight: 900; }
.mission__sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.08em;
}

/* ============================================================ FOOTER */
.footer {
  text-align: center;
  padding: 56px 20px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__name { font-family: var(--font-display); letter-spacing: 0.06em; font-size: 1.15rem; }
.footer__name span { color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }
.footer__flags { margin: 12px 0 6px; letter-spacing: 0.3em; font-size: 1.2rem; }
.footer__record { color: var(--red); font-family: var(--font-display); letter-spacing: 0.14em; }
.footer__copy { margin-top: 18px; color: var(--muted); font-size: 0.8rem; }

/* ============================================================ LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(8px);
  padding: 40px 70px;
}
.lightbox.open { display: grid; }
.lightbox__fig { max-width: min(1200px, 100%); text-align: center; }
.lightbox__fig img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.8);
}
.lightbox__fig figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.08em; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close { top: 22px; right: 26px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .mission { background-attachment: scroll; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.nav__lang) { font-size: 1.15rem; color: var(--text); }
  .lightbox { padding: 40px 8px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
