/* ✦ Designed & Coded by Averil0814 ✦ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
picture { display: contents; }
:root {
  --hud-amber:   #f5a623;
  --hud-red:     #e8132c;
  --hud-green:   #39ff8e;
  --hud-blue:    #00cfff;
  --dark-void:   #04060a;
  --panel-dark:  #080d14;
  --panel-mid:   #0d1a26;
  --glass:       rgba(0,207,255,0.06);
  --glass-border:rgba(0,207,255,0.2);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--dark-void);
  color: #c8d8e8;
  overflow-x: hidden;
}
::selection { background: var(--hud-blue); color: #000; }

/* ─── SCREEN-READER ONLY (SEO / a11y) ─── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── SCANLINES ─── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  animation: scanFlicker 8s infinite;
}
@keyframes scanFlicker {
  0%,100% { opacity: 1; }
  95% { opacity: 1; }
  96% { opacity: 0.85; }
  97% { opacity: 1; }
}

/* ─── CANVAS PARTICLES ─── */
#canvas-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: 64px;
  background: linear-gradient(180deg, rgba(4,6,10,0.95) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,207,255,0.08);
  backdrop-filter: blur(6px);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-emblem {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(245,166,35,0.35);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 12px rgba(245,166,35,0.35); }
  50%      { box-shadow: 0 0 24px rgba(245,166,35,0.65), 0 0 48px rgba(245,166,35,0.2); }
}
.nav-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px; font-weight: 700;
  color: #e0eaf5;
  letter-spacing: 3px;
}
nav ul {
  list-style: none;
  display: flex; gap: 32px;
}
nav ul li a {
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  color: rgba(200,216,232,0.7);
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
  position: relative;
}
nav ul li a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--hud-blue);
  transform: scaleX(0);
  transition: transform 0.25s;
}
nav ul li a:hover { color: var(--hud-blue); text-shadow: 0 0 12px var(--hud-blue); }
nav ul li a:hover::after { transform: scaleX(1); }
.nav-join {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--dark-void) !important;
  text-transform: uppercase;
  background: var(--hud-amber);
  padding: 7px 20px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.25s, box-shadow 0.25s !important;
}
.nav-join:hover {
  background: #ffc044 !important;
  box-shadow: 0 0 24px rgba(245,166,35,0.6) !important;
  color: var(--dark-void) !important;
}
.nav-join::after { display: none !important; }

/* ─── HERO SECTION ─── */
#hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,6,10,0.55) 0%, rgba(4,6,10,0.15) 40%, rgba(4,6,10,0.8) 100%),
    url('img/Digital_Combat_Simulator_Black_Shark_Screenshot_2026.03.17_-_22.31.19.87-1920w.webp') center/cover no-repeat;
  will-change: transform;
  /* Ken Burns + mouse parallax driven by JS */
}
/* ── HERO LIGHT SWEEP ── */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255,255,255,0.045) 50%,
    transparent 75%
  );
  animation: heroLightSweep 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroLightSweep {
  0%   { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(230%)  skewX(-12deg); opacity: 0; }
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,207,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,207,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
/* HUD corner brackets */
.hud-corner {
  position: absolute;
  width: 60px; height: 60px;
  border-color: rgba(0,207,255,0.5);
  border-style: solid;
}
.hud-corner.tl { top: 90px;  left: 3vw;  border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 90px;  right: 3vw; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 3vh; left: 3vw;  border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 3vh; right: 3vw; border-width: 0 2px 2px 0; }

/* HUD scanning line */
.hud-scan {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-blue), transparent);
  opacity: 0.4;
  animation: hudScan 6s linear infinite;
  top: 90px;
}
@keyframes hudScan {
  0%   { top: 64px;  opacity: 0.4; }
  50%  { opacity: 0.6; }
  100% { top: 100vh; opacity: 0; }
}

.hero-content { position: relative; z-index: 10; padding: 0 20px; }

.hero-classification {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 6px;
  color: var(--hud-red);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; animation: fadeInUp 0.8s 0.3s forwards;
}
.hero-classification span { display: inline-block; width: 30px; height: 1px; background: var(--hud-red); }

.hero-logo-img {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,0.6);
  box-shadow: 0 0 40px rgba(245,166,35,0.3), inset 0 0 20px rgba(245,166,35,0.08);
  object-fit: cover;
  margin-bottom: 24px;
  opacity: 0; animation: fadeInDown 0.8s 0.2s forwards;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, #a8c8e8 50%, var(--hud-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(0,207,255,0.4));
  opacity: 0; animation: fadeInUp 0.9s 0.5s forwards;
}
.hero-subtitle-line {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--hud-amber);
  margin-top: 8px;
  opacity: 0; animation: fadeInUp 0.8s 0.7s forwards;
}
.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(180,210,240,0.75);
  margin-top: 20px;
  max-width: 600px;
  opacity: 0; animation: fadeInUp 0.8s 0.9s forwards;
}
.hero-slogan {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 16px;
  background: linear-gradient(90deg, #ff0018, #ffa52c, #ffff41, #008018, #0000f9, #86007d);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
  animation: fadeInUp 0.8s 0.8s forwards, rainbowShift 4s linear infinite;
  opacity: 0;
}
.hero-slogan:empty {
  display: none;
}
@keyframes rainbowShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-cta-group {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 40px;
  opacity: 0; animation: fadeInUp 0.8s 1.1s forwards;
}
.btn-primary {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  background: var(--hud-amber);
  padding: 14px 36px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 0 30px rgba(245,166,35,0.3);
}
.btn-primary:hover {
  background: #ffc044;
  box-shadow: 0 0 50px rgba(245,166,35,0.7), 0 0 100px rgba(245,166,35,0.3);
  transform: translateY(-2px);
}
.btn-secondary {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--hud-blue);
  border: 1px solid rgba(0,207,255,0.5);
  padding: 13px 36px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s;
  display: inline-block;
  background: rgba(0,207,255,0.05);
}
.btn-secondary:hover {
  background: rgba(0,207,255,0.12);
  border-color: var(--hud-blue);
  box-shadow: 0 0 30px rgba(0,207,255,0.3);
  transform: translateY(-2px);
}

/* scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeIn 1s 2s forwards;
}
.hero-scroll span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 4px;
  color: rgba(200,216,232,0.4);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--hud-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── STATS BAR ─── */
#stats-bar {
  position: relative; z-index: 10;
  background: linear-gradient(90deg, var(--panel-dark), var(--panel-mid), var(--panel-dark));
  border-top: 1px solid rgba(0,207,255,0.15);
  border-bottom: 1px solid rgba(0,207,255,0.15);
  padding: 20px 0;
  overflow: hidden;
}
#stats-bar::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,207,255,0.03), transparent);
  animation: slideShine 4s linear infinite;
}
@keyframes slideShine {
  to { left: 150%; }
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 4vw;
  flex-wrap: wrap; gap: 20px;
}
.stat-item {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px; font-weight: 900;
  color: var(--hud-amber);
  line-height: 1;
  text-shadow: 0 0 20px rgba(245,166,35,0.5);
}
.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px;
  color: rgba(200,216,232,0.5);
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(0,207,255,0.3), transparent);
}

/* ─── SECTION BASE ─── */
section { position: relative; z-index: 10; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--hud-blue);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.section-eyebrow::before,.section-eyebrow::after {
  content: '';
  display: inline-block; width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, var(--hud-blue));
}
.section-eyebrow::after { background: linear-gradient(to left, transparent, var(--hud-blue)); }
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #e8f0f8;
  letter-spacing: 2px;
}
.section-title em {
  font-style: normal;
  color: var(--hud-amber);
}

/* ─── DONATE ─── */
#donate {
  padding: 100px 4vw;
  text-align: center;
}
.donate-inner {
  max-width: 700px;
  margin: 0 auto;
}
.donate-body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(200,216,232,0.7);
  margin-top: 18px;
}
.donate-cta {
  margin-top: 32px;
}

/* ─── ABOUT ─── */
#about {
  padding: 100px 4vw;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,207,255,0.04) 0%, transparent 60%),
    var(--dark-void);
}
.about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid rgba(0,207,255,0.2);
  box-shadow: 0 0 60px rgba(0,207,255,0.08), 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}
.about-img-accent {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 55%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid rgba(245,166,35,0.3);
  box-shadow: 0 0 40px rgba(245,166,35,0.1), 0 10px 40px rgba(0,0,0,0.6);
}
.about-hud-frame {
  position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px;
  border: 1px solid rgba(0,207,255,0.1);
  pointer-events: none;
}
.about-hud-frame::before,.about-hud-frame::after {
  content: ''; position: absolute;
  width: 20px; height: 20px;
  border-color: var(--hud-blue);
  border-style: solid;
  opacity: 0.6;
}
.about-hud-frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.about-hud-frame::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.about-text h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  color: #e8f0f8;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-text h2 span { color: var(--hud-amber); }
.about-lead {
  font-size: 17px; line-height: 1.8;
  color: rgba(180,210,240,0.8);
  margin-bottom: 28px;
  border-left: 3px solid var(--hud-blue);
  padding-left: 20px;
}
.about-body {
  font-size: 15px; line-height: 1.9;
  color: rgba(160,190,220,0.7);
  margin-bottom: 32px;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.about-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(0,207,255,0.25);
  color: var(--hud-blue);
  background: rgba(0,207,255,0.05);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

/* ─── GALLERY ─── */
#gallery {
  padding: 100px 4vw;
  background: var(--panel-dark);
}
.gallery-inner { max-width: 1300px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background: #0a1520;
  cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 5 / 9; grid-row: 2; }
.gallery-item:nth-child(6) { grid-column: 9 / 13; grid-row: 2; }
.gallery-item img {
  width: 100%; height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item-label {
  position: absolute; bottom: 12px; left: 14px;
  z-index: 2;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.0);
  transition: color 0.4s;
}
.gallery-item:hover .gallery-item-label { color: rgba(255,255,255,0.8); }

.gallery-item:nth-child(1) { aspect-ratio: 16/9; }

/* ─── PHILOSOPHY / DOCTRINE ─── */
#doctrine {
  padding: 100px 4vw;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.04) 0%, transparent 60%),
    var(--dark-void);
}
.doctrine-inner {
  max-width: 1200px; margin: 0 auto;
}
.doctrine-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.doctrine-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 40px 32px;
  transition: all 0.4s;
  overflow: hidden;
}
.doctrine-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.doctrine-card:hover { background: rgba(0,207,255,0.08); border-color: rgba(0,207,255,0.4); transform: translateY(-4px); }
.doctrine-card:hover::before { opacity: 1; }
.doctrine-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,207,255,0.4));
}
.doctrine-num {
  position: absolute; top: 20px; right: 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 48px; font-weight: 900;
  color: rgba(0,207,255,0.06);
  line-height: 1;
}
.doctrine-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--hud-amber);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.doctrine-card p {
  font-size: 14px; line-height: 1.85;
  color: rgba(160,190,220,0.75);
}

/* ─── MODULES SHOWCASE ─── */
#modules {
  padding: 100px 4vw;
  background: var(--panel-dark);
  position: relative;
  overflow: hidden;
}
#modules::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,207,255,0.03) 0%, transparent 70%);
}
.modules-inner { max-width: 1200px; margin: 0 auto; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 60px;
}
.module-card {
  position: relative;
  border: 1px solid rgba(0,207,255,0.15);
  background: rgba(13,26,38,0.8);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.35s;
  cursor: default;
}
.module-card:hover {
  border-color: var(--hud-amber);
  background: rgba(13,26,38,0.95);
  box-shadow: 0 0 30px rgba(245,166,35,0.1);
  transform: translateY(-3px);
}
.module-card .aircraft-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 6px rgba(245,166,35,0.3));
}
.module-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #d0e4f0;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.module-card p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px;
  color: rgba(200,216,232,0.45);
  text-transform: uppercase;
}
.module-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--hud-green);
  color: #000;
}

/* ─── RECRUITMENT / JOIN ─── */
#join {
  padding: 120px 4vw;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, var(--dark-void), var(--panel-mid), var(--dark-void));
}
.join-bg {
  position: absolute; inset: 0;
  background:
    url('img/Digital_Combat_Simulator_Black_Shark_Screenshot_2026.03.30_-_20.36.22.94.webp') center/cover no-repeat;
  opacity: 0.12;
}
.join-inner {
  position: relative; z-index: 2;
  max-width: 800px; margin: 0 auto;
  text-align: center;
}
.join-inner .section-eyebrow { color: var(--hud-red); }
.join-inner .section-eyebrow::before { background: linear-gradient(to right, transparent, var(--hud-red)); }
.join-inner .section-eyebrow::after  { background: linear-gradient(to left, transparent, var(--hud-red)); }
.join-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  color: #e8f0f8;
  margin-bottom: 10px;
  line-height: 1.1;
}
.join-title span {
  color: var(--hud-red);
  text-shadow: 0 0 30px rgba(232,19,44,0.6);
}
.join-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(200,216,232,0.6);
  margin-bottom: 30px;
}
.join-body {
  font-size: 16px; line-height: 1.9;
  color: rgba(180,210,240,0.75);
  margin-bottom: 50px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.join-requirements {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-bottom: 50px;
}
.req-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200,216,232,0.8);
}
.req-item .check { color: var(--hud-green); font-size: 16px; }
.join-cta {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.btn-danger {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 5px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  background: var(--hud-red);
  padding: 18px 48px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  display: inline-block;
  box-shadow: 0 0 40px rgba(232,19,44,0.4);
  transition: all 0.3s;
}
.btn-danger:hover {
  background: #ff2d45;
  box-shadow: 0 0 60px rgba(232,19,44,0.7), 0 0 120px rgba(232,19,44,0.3);
  transform: translateY(-3px);
}

/* ─── PARALLAX FEATURE IMAGE ─── */
#feature-break {
  height: 50vh; min-height: 320px;
  position: relative; overflow: hidden;
  z-index: 10;
}
.feature-bg {
  position: absolute; inset: -20%;
  background: url('img/DCS_2025-04-13_00-10-09_00-10-09_294_.webp') center/cover no-repeat;
  will-change: transform;
}
.feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(4,6,10,0.9) 0%,
    rgba(4,6,10,0.4) 50%,
    rgba(4,6,10,0.8) 100%);
  display: flex; align-items: center; padding-left: 8vw;
}
.feature-quote {
  max-width: 500px;
}
.feature-quote blockquote {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: #e8f0f8;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.feature-quote blockquote em {
  font-style: normal;
  color: var(--hud-amber);
}
.feature-quote cite {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200,216,232,0.4);
}

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 10;
  background: var(--panel-dark);
  border-top: 1px solid rgba(0,207,255,0.1);
  padding: 60px 4vw 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px; flex-wrap: wrap; gap: 40px;
}
.footer-brand .nav-emblem { width: 52px; height: 52px; margin-bottom: 14px; }
.footer-brand h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px; font-weight: 900;
  color: #e8f0f8; letter-spacing: 4px;
}
.footer-brand p {
  font-size: 13px; color: rgba(160,190,220,0.65);
  margin-top: 8px; max-width: 260px; line-height: 1.7;
}
.footer-links h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--hud-blue); margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  text-decoration: none;
  font-size: 14px; color: rgba(160,190,220,0.72);
  transition: color 0.25s;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500; letter-spacing: 1px;
}
.footer-links ul li a:hover { color: var(--hud-blue); }
.footer-bottom {
  border-top: 1px solid rgba(0,207,255,0.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; color: rgba(160,190,220,0.65);
  text-transform: uppercase;
}
.footer-bottom p span { color: var(--hud-amber); }

/* ─── FOOTER PHOTO CREDITS ─── */
.footer-credits {
  border-top: 1px solid rgba(0,207,255,0.08);
  border-bottom: 1px solid rgba(0,207,255,0.08);
  padding: 20px 0;
  margin-bottom: 28px;
  text-align: center;
}
.footer-credits-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--hud-blue);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 8px;
}
.footer-credits-label::before,
.footer-credits-label::after {
  content: ''; display: inline-block;
  width: 28px; height: 1px;
}
.footer-credits-label::before { background: linear-gradient(to right, transparent, var(--hud-blue)); }
.footer-credits-label::after  { background: linear-gradient(to left,  transparent, var(--hud-blue)); }
.footer-credits-sub {
  font-size: 12px; letter-spacing: 1px;
  color: rgba(178,204,229,0.78);  /* WCAG AA：對比度 ≥ 4.5:1 */
  margin-bottom: 14px;
}
.footer-credits-names {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px;
}
.footer-credits-names span,
.footer-credits-names a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(200,216,232,0.65);
  padding: 4px 14px;
  border: 1px solid rgba(0,207,255,0.12);
  background: rgba(0,207,255,0.03);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.footer-credits-names span:hover,
.footer-credits-names a:hover {
  color: var(--hud-blue);
  border-color: rgba(0,207,255,0.35);
}

/* ─── FOOTER SPECIAL THANKS ─── */
.footer-thanks {
  border-bottom: 1px solid rgba(0,207,255,0.08);
  padding-bottom: 20px;
  margin-bottom: 28px;
  text-align: center;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav ul { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-img-accent { display: none; }
  .doctrine-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { grid-column: auto !important; grid-row: auto !important; }
  .stat-divider { display: none; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; align-items: center; }
}

/* ─── COUNTER ANIMATION ─── */
.counting { display: inline-block; }

/* ─── LIGHTBOX ─── */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox img {
  max-width: 90vw; max-height: 85vh;
  border: 1px solid rgba(0,207,255,0.3);
  box-shadow: 0 0 80px rgba(0,207,255,0.15);
}
#lightbox .lb-close {
  position: absolute; top: 24px; right: 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; color: rgba(200,216,232,0.6);
  cursor: pointer; transition: color 0.2s;
}
#lightbox .lb-close:hover { color: var(--hud-red); }

/* ─── SCROLL PROGRESS BAR ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--hud-blue) 0%, var(--hud-amber) 50%, var(--hud-red) 100%);
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(0,207,255,0.7);
  pointer-events: none;
}

/* ─── NAVBAR SCROLLED STATE ─── */
nav.scrolled {
  background: rgba(4,6,10,0.97);
  border-bottom-color: rgba(0,207,255,0.18);
  box-shadow: 0 2px 40px rgba(0,0,0,0.6);
  transition: background 0.3s, box-shadow 0.3s;
}

/* ─── HAMBURGER BUTTON ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(0,207,255,0.2);
  cursor: pointer;
  padding: 4px;
  z-index: 110;
  transition: border-color 0.25s;
}
.nav-hamburger:hover { border-color: var(--hud-blue); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--hud-blue);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV PANEL ─── */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(4,6,10,0.98);
  border-bottom: 1px solid rgba(0,207,255,0.2);
  backdrop-filter: blur(20px);
  max-height: 0; overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav ul { list-style: none; padding: 8px 0 16px; }
.mobile-nav ul li { border-bottom: 1px solid rgba(0,207,255,0.07); }
.mobile-nav ul li:last-child { border-bottom: none; }
.mobile-nav-link {
  display: block;
  padding: 16px 6vw;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(200,216,232,0.8);
  transition: color 0.2s, padding-left 0.25s;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus { color: var(--hud-blue); padding-left: 9vw; outline: none; }
.mobile-nav-join { color: var(--hud-amber) !important; font-weight: 700 !important; }
.mobile-nav-join:hover { color: #ffc044 !important; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 150;
  width: 46px; height: 46px;
  background: rgba(0,207,255,0.08);
  border: 1px solid rgba(0,207,255,0.35);
  color: var(--hud-blue);
  font-size: 13px;
  font-family: 'Orbitron', sans-serif;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s, box-shadow 0.25s;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1; transform: none;
  pointer-events: all;
}
#back-to-top:hover {
  background: rgba(0,207,255,0.18);
  box-shadow: 0 0 24px rgba(0,207,255,0.45);
}

/* ─── CUSTOM TACTICAL CURSOR ─── */
@media (pointer: fine) {
  body, body a, body button { cursor: none; }
  /* Restore default cursor inside modal (video controls need it) */
  .reel-modal, .reel-modal * { cursor: default; }
  .reel-modal button, .reel-modal a,
  .reel-modal .reel-seek, .reel-modal .reel-btn { cursor: pointer; }

  /* —— Fighter Jet (top-down silhouette, nose = up) —— */
  #cursor-dot {
    position: fixed; z-index: 9998;
    width: 24px; height: 24px;
    pointer-events: none;
    margin-left: -12px; margin-top: -12px;
    background: var(--hud-blue);
    clip-path: polygon(
      50%  0%,    /* nose */
      58%  33%,   /* right fuselage */
      100% 54%,   /* right wing tip */
      67%  63%,   /* right wing-body junction */
      71%  92%,   /* right tail fin */
      56%  79%,   /* right tail inner */
      50%  96%,   /* tail center */
      44%  79%,   /* left tail inner */
      29%  92%,   /* left tail fin */
      33%  63%,   /* left wing-body junction */
      0%   54%,   /* left wing tip */
      42%  33%    /* left fuselage */
    );
    filter: drop-shadow(0 0 5px rgba(0,207,255,0.9));
    will-change: transform;
    transform-origin: center center;
  }

  /* —— Tactical Targeting Reticle —— */
  #cursor-ring {
    position: fixed; z-index: 9997;
    width: 44px; height: 44px;
    border: 1px solid rgba(0,207,255,0.42);
    border-radius: 50%;
    pointer-events: none;
    margin-left: -22px; margin-top: -22px;
    transition: border-color 0.25s, width 0.3s, height 0.3s, margin 0.3s;
  }
  /* crosshair lines inside the reticle */
  #cursor-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 10px; right: 10px;
    height: 1px;
    background: rgba(0,207,255,0.26);
    transform: translateY(-50%);
  }
  #cursor-ring::after {
    content: '';
    position: absolute;
    left: 50%; top: 10px; bottom: 10px;
    width: 1px;
    background: rgba(0,207,255,0.26);
    transform: translateX(-50%);
  }

  /* —— Hover states (links & buttons) —— */
  body:has(a:hover) #cursor-ring,
  body:has(button:hover) #cursor-ring {
    width: 56px; height: 56px;
    margin-left: -28px; margin-top: -28px;
    border-color: var(--hud-amber);
  }
  body:has(a:hover) #cursor-ring::before,
  body:has(a:hover) #cursor-ring::after,
  body:has(button:hover) #cursor-ring::before,
  body:has(button:hover) #cursor-ring::after {
    background: rgba(245,166,35,0.28);
  }
  body:has(a:hover) #cursor-dot,
  body:has(button:hover) #cursor-dot {
    background: var(--hud-amber);
    filter: drop-shadow(0 0 8px rgba(245,166,35,1));
  }
}

/* ─── HERO RADAR ─── */
.hero-radar {
  position: absolute;
  bottom: 90px; right: 5vw;
  width: 96px; height: 96px;
  opacity: 0;
  animation: fadeIn 1s 2.8s forwards;
}
.radar-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(57,255,142,0.18);
  border-radius: 50%;
}
.radar-ring.r1 { transform: scale(0.33); }
.radar-ring.r2 { transform: scale(0.66); }
.radar-ring.r3 { transform: scale(1); }
.hero-radar::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(57,255,142,0.15);
}
.hero-radar::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(57,255,142,0.15);
}
.radar-sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(57,255,142,0.08) 50deg,
    rgba(57,255,142,0.35) 70deg,
    transparent 70deg
  );
  animation: radarSpin 3.5s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar-blip {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--hud-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--hud-green);
  opacity: 0;
}
.radar-blip.b1 { top: 28%; left: 58%; animation: blipFade 3.5s 1.2s infinite; }
.radar-blip.b2 { top: 62%; left: 34%; animation: blipFade 3.5s 2.8s infinite; }
.radar-blip.b3 { top: 45%; left: 72%; animation: blipFade 3.5s 0.6s infinite; }
@keyframes blipFade {
  0%,100% { opacity: 0; transform: scale(0.5); }
  25%,75% { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) { .hero-radar { display: none; } }

/* ─── HERO GLITCH EFFECT ─── */
@keyframes glitchFlicker {
  0%,88%,100% {
    filter: drop-shadow(0 0 30px rgba(0,207,255,0.4));
    transform: none;
  }
  89% {
    filter: drop-shadow(-5px 0 0 rgba(232,19,44,0.9)) drop-shadow(5px 0 0 rgba(0,207,255,0.9));
    transform: translateX(-3px) skewX(-2deg);
  }
  90% {
    filter: drop-shadow(5px 0 0 rgba(232,19,44,0.9)) drop-shadow(-5px 0 0 rgba(0,207,255,0.9));
    transform: translateX(3px) skewX(2deg);
  }
  91% {
    filter: drop-shadow(0 0 30px rgba(245,166,35,0.9));
    transform: none;
  }
  92% {
    filter: drop-shadow(-3px 0 0 rgba(232,19,44,0.5)) drop-shadow(0 0 30px rgba(0,207,255,0.6));
    transform: translateX(-1px);
  }
  94% {
    filter: drop-shadow(0 0 30px rgba(0,207,255,0.4));
    transform: none;
  }
}
.hero-title.glitch-active {
  animation: fadeInUp 0.9s 0.5s forwards, glitchFlicker 11s 2.5s infinite;
}

/* ─── TYPING CURSOR ON SUBTITLE ─── */
.hero-subtitle-line::after {
  content: '_';
  color: var(--hud-amber);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── MODULE CARD UNDERLINE SWEEP ─── */
.module-card {
  overflow: hidden;
}
.module-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hud-amber), transparent);
  transform: scaleX(0);
  transition: transform 0.35s;
}
.module-card:hover::after { transform: scaleX(1); }

/* ─── STAT ITEM HOVER ─── */
.stat-item { transition: transform 0.25s; cursor: default; }
.stat-item:hover { transform: translateY(-3px); }
.stat-item:hover .stat-num { text-shadow: 0 0 32px rgba(245,166,35,0.9); }

/* ─── GALLERY — ALWAYS SHOW LABEL ON TOUCH ─── */
@media (hover: none) {
  .gallery-item::after { opacity: 1 !important; }
  .gallery-item-label { color: rgba(255,255,255,0.85) !important; }
}

/* ─── PREFERS REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
  #scroll-progress { transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   REELS MODULE  —  Designed by Averil0814
   ════════════════════════════════════════════════════════════════ */

/* ─── Section wrapper ─── */
#reels {
  padding: 100px 0 80px;
  background: var(--panel-dark);
  position: relative; z-index: 10;
  overflow: hidden;
}
#reels::before {
  content: '';
  position: absolute; top: 15%; right: -5%;
  width: 45%; height: 70%;
  background: radial-gradient(ellipse, rgba(232,19,44,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Header row ─── */
.reels-header {
  padding: 0 4vw;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.reels-header .section-header {
  margin-bottom: 0;
  text-align: left;
}

/* ─── Social badges（Instagram / YouTube 成對）─── */
.reels-social {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.reels-ig-badge,
.reels-yt-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(232,19,44,0.3);
  background: rgba(232,19,44,0.05);
  text-decoration: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.reels-ig-badge:hover,
.reels-yt-badge:hover {
  border-color: var(--hud-red);
  background: rgba(232,19,44,0.12);
  box-shadow: 0 0 24px rgba(232,19,44,0.25);
}
/* YouTube 用自家品牌紅，與 IG 的 HUD 紅做出區隔但維持同一組視覺語彙 */
.reels-yt-badge {
  border-color: rgba(255,0,0,0.32);
  background: rgba(255,0,0,0.05);
}
.reels-yt-badge:hover {
  border-color: #ff0000;
  background: rgba(255,0,0,0.12);
  box-shadow: 0 0 24px rgba(255,0,0,0.28);
}
.reels-social-icon {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--hud-red);
  transition: transform 0.3s, color 0.3s;
}
.reels-yt-badge .reels-social-icon { color: #ff0000; }
.reels-ig-badge:hover .reels-social-icon,
.reels-yt-badge:hover .reels-social-icon { transform: scale(1.12); }

.reels-ig-icon { font-size: 16px; }
.reels-ig-handle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: rgba(200,216,232,0.85); text-transform: uppercase;
}
.reels-ig-follow,
.reels-yt-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--hud-red); text-transform: uppercase;
}
.reels-yt-sub { color: #ff2b2b; }

/* ─── Track wrapper + edge fades ─── */
.reels-track-wrapper {
  position: relative;
  padding-bottom: 8px;
}
.reels-track-wrapper::before,
.reels-track-wrapper::after {
  content: ''; position: absolute;
  top: 0; bottom: 8px; width: 80px; z-index: 3; pointer-events: none;
}
.reels-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--panel-dark) 20%, transparent);
}
.reels-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left,  var(--panel-dark) 20%, transparent);
}

/* ─── Scrollable track ─── */
.reels-track {
  display: flex; gap: 14px;
  padding: 12px 5vw 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: flex-start;
}
.reels-track::-webkit-scrollbar { display: none; }

/* ─── Navigation arrows ─── */
.reels-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 40px; height: 40px;
  background: rgba(0,207,255,0.07);
  border: 1px solid rgba(0,207,255,0.22);
  color: var(--hud-blue);
  font-size: 22px; font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: background 0.25s, box-shadow 0.25s;
  line-height: 1;
}
.reels-nav:hover {
  background: rgba(0,207,255,0.16);
  box-shadow: 0 0 20px rgba(0,207,255,0.4);
}
.reels-nav-prev { left: 6px; }
.reels-nav-next { right: 6px; }
@media (max-width: 600px) { .reels-nav { display: none; } }

/* ─── Reel card base ─── */
.reel-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(0,207,255,0.14);
  background: var(--panel-mid);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.reel-card:hover {
  border-color: rgba(0,207,255,0.5);
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 28px rgba(0,207,255,0.12);
  z-index: 2;
}
/* Active cursor feedback */
.reel-card[data-shortcode] { cursor: pointer; }

/* Card inner link */
.reel-card-link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; position: relative;
}

/* Media container */
.reel-media {
  position: absolute; inset: 0; overflow: hidden;
}
.reel-media > img,
.reel-media > .reel-thumb {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reel-card:hover .reel-media > img { transform: scale(1.06); }

/* ─── Tap hint inside overlay ─── */
.reel-tap-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--hud-amber);
  opacity: 0.75;
  text-transform: uppercase;
}

/* ─── HUD animated placeholder (no thumbnail) ─── */
.reel-hud-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0,207,255,0.09) 0%, transparent 62%),
    linear-gradient(180deg, rgba(4,6,10,0.85) 0%, var(--panel-dark) 100%);
  overflow: hidden;
}
.reel-hud-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-blue), transparent);
  opacity: 0.35;
  animation: reel-scan 5s linear infinite;
  top: 0;
}
@keyframes reel-scan {
  from { top: 0;    opacity: 0.4; }
  90%  { opacity: 0.15; }
  to   { top: 100%; opacity: 0; }
}
.reel-hud-corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(0,207,255,0.35); border-style: solid;
}
.reel-hud-corner.tl { top: 8px;    left: 8px;   border-width: 1px 0 0 1px; }
.reel-hud-corner.tr { top: 8px;    right: 8px;  border-width: 1px 1px 0 0; }
.reel-hud-corner.bl { bottom: 8px; left: 8px;   border-width: 0 0 1px 1px; }
.reel-hud-corner.br { bottom: 8px; right: 8px;  border-width: 0 1px 1px 0; }
.reel-hud-rings {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 80px; height: 80px;
}
.reel-hud-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(0,207,255,0.1);
  border-radius: 50%;
  animation: reel-ring-pulse 3s ease-in-out infinite;
}
.reel-hud-ring.r1 { transform: scale(0.33); animation-delay: 0s; }
.reel-hud-ring.r2 { transform: scale(0.66); animation-delay: 1s; }
.reel-hud-ring.r3 { transform: scale(1);    animation-delay: 2s; }
@keyframes reel-ring-pulse {
  0%,100% { opacity: 0.1; } 50% { opacity: 0.4; }
}
/* Fighter jet silhouette (CSS clip-path, same as cursor) */
.reel-hud-aircraft {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -58%) scale(1.8);
  width: 24px; height: 24px;
  display: block;
  background: rgba(0,207,255,0.18);
  clip-path: polygon(
    50%  0%,
    58%  33%,
    100% 54%,
    67%  63%,
    71%  92%,
    56%  79%,
    50%  96%,
    44%  79%,
    29%  92%,
    33%  63%,
    0%   54%,
    42%  33%
  );
  filter: drop-shadow(0 0 4px rgba(0,207,255,0.5));
  animation: reel-aircraft-pulse 4s ease-in-out infinite;
}
@keyframes reel-aircraft-pulse {
  0%,100% { opacity: 0.2; transform: translate(-50%, -58%) scale(1.8); }
  50%     { opacity: 0.5; transform: translate(-50%, -58%) scale(2.0); }
}

/* ─── Overlay gradient + info ─── */
.reel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,6,10,0.93) 0%,
    rgba(4,6,10,0.28) 44%,
    transparent 65%
  );
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: background 0.35s;
}
.reel-card:hover .reel-overlay {
  background: linear-gradient(
    to top,
    rgba(4,6,10,0.88) 0%,
    rgba(4,6,10,0.12) 50%,
    transparent 68%
  );
}

/* Play icon (visible on hover) */
.reel-play-icon {
  font-size: 20px;
  color: transparent;
  width: 46px; height: 46px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.reel-card:hover .reel-play-icon {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 18px rgba(255,255,255,0.12);
}

/* Bottom text info */
.reel-info {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
}
.reel-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  color: var(--hud-blue); text-transform: uppercase;
  display: block; margin-bottom: 4px;
}
.reel-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.92); line-height: 1.3;
  margin-bottom: 4px;
}
.reel-duration {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: rgba(200,216,232,0.45);
}

/* ─── CTA Card (trailing "Follow" card) ─── */
.reel-card-cta { border-color: rgba(232,19,44,0.18); }
.reel-card-cta:hover {
  border-color: rgba(232,19,44,0.6);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 32px rgba(232,19,44,0.14);
}
.reel-cta-anchor { display: flex; height: 100%; }
.reel-cta-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(232,19,44,0.1) 0%, transparent 70%),
    var(--panel-dark);
}
.reel-cta-inner {
  text-align: center; padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.reel-cta-at {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px; font-weight: 900;
  color: rgba(232,19,44,0.55); line-height: 1;
}
.reel-cta-handle {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(200,216,232,0.9); text-transform: uppercase;
}
.reel-cta-sub {
  font-size: 11px; line-height: 1.6;
  color: rgba(160,190,220,0.5); margin: 4px 0;
}
.reel-cta-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--hud-red); text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(232,19,44,0.38);
  display: inline-block;
  transition: background 0.25s, box-shadow 0.25s;
}
.reel-card-cta:hover .reel-cta-btn {
  background: rgba(232,19,44,0.1);
  box-shadow: 0 0 14px rgba(232,19,44,0.3);
}

/* ─── Skeleton loading shimmer ─── */
.reel-skeleton {
  background: linear-gradient(
    110deg,
    var(--panel-dark) 30%,
    rgba(0,207,255,0.04) 50%,
    var(--panel-dark) 70%
  );
  background-size: 200% 100%;
  animation: reel-shimmer 1.8s linear infinite;
  pointer-events: none;
}
@keyframes reel-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .reels-header { flex-direction: column; align-items: flex-start; }
  .reel-card { flex: 0 0 185px; }
}
@media (max-width: 600px) {
  .reel-card { flex: 0 0 155px; }
}

/* ════════════════════════════════════════════════════════════════
   REEL MODAL + VIDEO PLAYER  —  Designed by Averil0814
   ════════════════════════════════════════════════════════════════ */

/* ── Modal shell ── */
.reel-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.reel-modal.reel-modal-open { pointer-events: auto; opacity: 1; }
.reel-modal[hidden] { display: none; }

.reel-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,6,10,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reel-modal-frame {
  position: relative;
  width: min(360px, 88vw);
  background: var(--panel-dark);
  border: 1px solid rgba(0,207,255,0.3);
  box-shadow: 0 0 60px rgba(0,207,255,0.1), 0 24px 64px rgba(0,0,0,0.85);
  display: flex; flex-direction: column;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.reel-modal-open .reel-modal-frame { transform: none; }

/* HUD corner accents */
.reel-modal-hud-tl, .reel-modal-hud-tr,
.reel-modal-hud-bl, .reel-modal-hud-br {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--hud-amber); border-style: solid;
  pointer-events: none; z-index: 3;
}
.reel-modal-hud-tl { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.reel-modal-hud-tr { top: 0;    right: 0; border-width: 2px 2px 0 0; }
.reel-modal-hud-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.reel-modal-hud-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.reel-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px solid rgba(0,207,255,0.12);
  background: rgba(0,207,255,0.04);
  gap: 8px; flex-shrink: 0;
}
.reel-modal-title-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hud-blue);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel-modal-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.reel-modal-ig-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--hud-amber); text-decoration: none;
  padding: 3px 8px;
  border: 1px solid rgba(245,166,35,0.35);
  transition: background 0.2s, border-color 0.2s;
}
.reel-modal-ig-link:hover { background: rgba(245,166,35,0.08); border-color: var(--hud-amber); }
.reel-modal-close {
  background: transparent;
  border: 1px solid rgba(232,19,44,0.4);
  color: var(--hud-red);
  width: 28px; height: 28px;
  font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; padding: 0;
}
.reel-modal-close:hover { background: rgba(232,19,44,0.12); }

/* ── Modal body: 9:16 video container ── */
.reel-modal-body {
  aspect-ratio: 9 / 16;
  max-height: min(640px, 66vh);
  background: #000;
  overflow: hidden;
  position: relative;
  flex-shrink: 1;
}

/* ── Native video player ── */
.reel-player {
  width: 100%; height: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
  user-select: none;
}
.reel-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── YouTube Shorts 內嵌 ── */
.reel-yt-frame {
  width: 100%; height: 100%;
  display: block;
  border: 0;
  background: #000;
}

/* Big center play button */
.reel-big-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(4,6,10,0.55);
  border: 2px solid var(--hud-amber);
  color: var(--hud-amber);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(245,166,35,0.25);
  z-index: 3;
  padding-left: 4px; /* optical center for ▶ */
}
.reel-big-play:hover {
  background: rgba(245,166,35,0.14);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 36px rgba(245,166,35,0.4);
}

/* Controls bar */
.reel-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 10px 10px;
  background: linear-gradient(to top, rgba(4,6,10,0.95) 0%, rgba(4,6,10,0.5) 60%, transparent 100%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
  z-index: 4;
}
.reel-controls.reel-ctrl-visible { opacity: 1; pointer-events: auto; }

.reel-progress-wrap { margin-bottom: 8px; }
.reel-seek {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  border-radius: 2px; cursor: pointer; outline: none;
  background: linear-gradient(
    to right,
    var(--hud-amber) var(--pct, 0%),
    rgba(255,255,255,0.18) var(--pct, 0%)
  );
}
.reel-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hud-amber);
  box-shadow: 0 0 8px rgba(245,166,35,0.7);
  cursor: pointer; transition: transform 0.12s;
}
.reel-seek:hover::-webkit-slider-thumb { transform: scale(1.3); }
.reel-seek::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hud-amber); border: none; cursor: pointer;
}
.reel-seek::-moz-range-progress { background: var(--hud-amber); height: 3px; border-radius: 2px; }

.reel-controls-row {
  display: flex; align-items: center; gap: 4px;
}
.reel-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem; cursor: pointer;
  padding: 4px 5px; line-height: 1;
  transition: color 0.15s; flex-shrink: 0;
  display: flex; align-items: center;
}
.reel-btn:hover { color: var(--hud-amber); }
.reel-btn svg { pointer-events: none; }
.reel-time-display {
  font-family: 'Rajdhani', monospace;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.reel-controls-right { display: flex; align-items: center; gap: 2px; }

/* Fallback: no local video */
.reel-no-video {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; background: var(--panel-dark);
}
.reel-no-video-msg {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}
.reel-no-video-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--hud-amber); text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(245,166,35,0.5);
  transition: background 0.2s;
}
.reel-no-video-link:hover { background: rgba(245,166,35,0.1); }

/* Footer */
.reel-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px;
  border-top: 1px solid rgba(0,207,255,0.1);
  background: rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.reel-modal-status {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hud-green);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.reel-modal-kbd {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.28);
}
@media (max-width: 480px) {
  .reel-modal-frame { width: 92vw; }
  .reel-modal-kbd { display: none; }
}
/* ════════════════════════════════════════════════════════════════ */

