html {
  scroll-behavior: smooth;  /* 點 menu 時平滑滾動 */
}

/* 由 JS 寫入真實 header 高度 + buffer */
:root {
  --scroll-offset: 120px;   /* 初始值，JS 會覆蓋 */
}



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

body.theme-stage {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background-color: #05060a;
  color: #f5f5f5;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;

/* ========= Desktop Nav 基本設定 ========= */

.nav-desktop {
  display: flex;
  align-items: center;
}

/* ========= Hamburger Button ========= */

.nav-toggle {
  display: none;                 /* Desktop 隱藏，手機再顯示 */
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0.2rem;
  margin-left: 0.8rem;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #f5f5f5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 3 條 line 之間距 */
.nav-toggle-line + .nav-toggle-line {
  margin-top: 4px;
}

/* 打開時變 X icon */
.nav-toggle.open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========= Mobile Nav Panel ========= */

.nav-mobile {
  display: none;  /* 預設唔顯示，手機 breakpoint 先處理 */
}

/* ========= Mobile breakpoint ========= */
@media (max-width: 900px) {
  /* 原本 .nav { display:none } 可以保持，用於隱藏 desktop menu */
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;             /* 手機顯示 hamburger */
  }

  .nav-mobile {
    position: fixed;
    top: 56px;                  /* header 高度，如有需要可微調  */
    left: 0;
    right: 0;
    background: rgba(5, 6, 12, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    z-index: 90;
  }

  .nav-mobile a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-mobile a:last-child {
    border-bottom: none;
  }

  /* 打開狀態 */
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* 打開 menu 時，禁止背景 page 捲動（可選） */
  body.nav-open {
    overflow: hidden;
  }
}
  
}

/* Logo + Sub-logo */
.logo {
  position: relative;
  top: 20px;  /* 整個 logo 向下少少 */
}

.logo-main {
  display: block;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.logo-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px; /* logo 同 sub-logo 之間的距離 */
}

.nav a {
  color: #f5f5f5;
  text-decoration: none;
  margin-left: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav a:hover {
  opacity: 1;
  color: #ffd66b;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 107, 0.8);
}

/* Hero */
.hero-stage {
  position: relative;
  min-height: 80vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("hero-bg.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;

  /* 👇 Hero 背景輕微上下移動 + 整個 hero 淡入 */
  animation: heroBgPan 26s ease-in-out infinite alternate,
             heroHeroFade 1.2s ease-out 0s both;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4);  /* 柔黑 overlay */
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 4rem 0 3rem;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #ffd66b;
  margin-top: 200px;  /* 如要整低少少可以減呢個數 */
}

.hero-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.3rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

/* 👇 Hero 左邊文字區：入場 fade-in + 向上浮現 */
.hero-text {
  opacity: 0;
  transform: translateY(24px);
  animation: heroTextIntro 1s ease-out 0.2s forwards;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: radial-gradient(circle at top left, #ffd66b, #ffb347);
  color: #17181c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.1);
}

.btn.secondary:hover {
  border-color: rgba(255, 214, 107, 0.85);
  color: #ffd66b;
}

.btn.full-width { width: 100%; }

/* Hero right card — Neon Ring */
.hero-card {
  width: 300px;          /* 圓圈大小：改呢度 */
  height: 300px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;

  background: radial-gradient(circle at center,
    rgba(0, 0, 0, 0.92) 0%,
    #05060a 55%,
    #05060a 100%
  );

  padding: 1.6rem 1.8rem;
  text-align: center;
  font-size: 0.9rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.75);
  z-index: 0;

  /* 👇 先淡入，再開始浮動 */
  opacity: 0;
  animation:
    heroCardIntro 0.9s ease-out 0.4s forwards,
    cardFloat 5s ease-in-out 1.3s infinite;
}

/* 霓虹主圈：藍 → 粉紅 → 藍 */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    #29e0ff,
    #ff4fd8,
    #ff4fd8,
    #29e0ff
  );

  /* 中間透明 → 圓圈粗幼控制點 */
  -webkit-mask: radial-gradient(farthest-side,
    transparent 90%,
    #000 92%
  );
  mask: radial-gradient(farthest-side,
    transparent 90%,
    #000 92%
  );

  filter: blur(1.2px);
  z-index: -1;

  animation: neonRotate 14s linear infinite;
}

/* 外圍柔光呼吸 */
.hero-card::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(41, 224, 255, 0.18) 0%,
    rgba(255, 79, 216, 0.32) 35%,
    transparent 75%
  );
  filter: blur(24px);
  z-index: -2;

  animation: neonGlow 4.5s ease-in-out infinite;
}

/* 內容浮在光環之上，並收窄啲，唔好頂到圓邊 */
.hero-card > * {
  position: relative;
  z-index: 1;
  max-width: 85%;
  margin: 0 auto;
}

.hero-note-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-note-list {
  font-size: 0.82rem;
  line-height: 1.5;
  padding-left: 1.0rem;
  margin-bottom: 0.6rem;
}

.hero-note-small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Hero Social */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.hero-social a {
  text-decoration: none;
  color: #f5f5f5;
  opacity: 0.9;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.hero-social a:hover {
  background: rgba(255, 214, 107, 0.1);
  opacity: 1;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 3.5rem 0;
  scroll-margin-top: var(--scroll-offset);  /* ⭐ 重要：避免被 header 遮住 */
}

.section-alt {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 107, 0.07), transparent 60%),
    radial-gradient(circle at bottom right, rgba(128, 90, 213, 0.12), transparent 60%),
    #060711;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 700px;
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 auto 2rem;
}

/* Section title deco */
.section-title { margin-bottom: 1.4rem; }
.section-title.center { text-align: center; }

.section-deco {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.section-title.center .section-deco { justify-content: center; }

.deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 214, 107, 0.1), rgba(255, 214, 107, 0.9), rgba(255, 214, 107, 0.1));
}

.deco-icon { font-size: 0.8rem; opacity: 0.9; }

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
}

/* Text */
.section-text p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.small-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Cards */
.section-card {
  background: rgba(10, 10, 18, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.3rem 1.3rem;
}

/* Photo placeholders */
.profile-photo,
.venue-photo {
  border-radius: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at center, rgba(255, 214, 107, 0.08), transparent 60%),
    rgba(5, 5, 12, 0.9);
}

.profile-photo-placeholder {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Meta list */
.profile-meta h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.profile-meta ul,
.bullet-list {
  list-style: none;
  font-size: 0.9rem;
}

.profile-meta li,
.bullet-list li {
  margin-bottom: 0.4rem;
}

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.video-card {
  background: rgba(10, 10, 18, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.video-thumb {
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.35), rgba(255, 179, 120, 0.25));
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.video-placeholder { font-size: 0.85rem; }

.video-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.video-card p { margin-bottom: 0.5rem; }

.text-link {
  font-size: 0.85rem;
  color: #ffd66b;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Events */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.event-card {
  background: rgba(10, 10, 18, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.event-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.event-card ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.event-card li { margin-bottom: 0.35rem; }

/* Contact */
.contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card { background: rgba(10, 10, 18, 0.98); }

.contact-form .form-group { margin-bottom: 0.8rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #090912;
  color: #f5f5f5;
  font-size: 0.85rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffd66b;
}

.form-note {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Social links */
.social-links { margin-top: 0.8rem; font-size: 0.85rem; }

.social-links a {
  color: #ffd66b;
  margin-left: 0.5rem;
  text-decoration: none;
}

.social-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding: 1.5rem 0 1.8rem;
  background: #030309;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-small { margin-top: 0.2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-content,
  .two-col,
  .video-grid,
  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stage { 
      min-height: auto;
      scroll-margin-top: var(--scroll-offset); }

  .hero-content { padding-top: 3rem; }

  .nav { display: none; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .section { padding: 2.6rem 0; }

  .hero-card {
    width: 260px;
    height: 260px;
    padding: 1.2rem;
  }

  .hero-note-list {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* Scroll reveal (for下面 sections用) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none !important;
}

.reveal.fade-left  { transform: translateX(40px); }
.reveal.fade-right { transform: translateX(-40px); }
.reveal.fade-down  { transform: translateY(-22px); }

.hero.hero-stage.parallax-bg {
  will-change: transform;
}

/* ===== Animations ===== */

/* Hero 背景輕微上下移動 + 整塊 Hero 淡入 */
@keyframes heroBgPan {
  0%   { background-position: center 45%; }
  100% { background-position: center 55%; }
}

@keyframes heroHeroFade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Hero 左邊文字入場 */
@keyframes heroTextIntro {
  0% {
    opacity: 0;
    transform: translateY(26px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero 霓虹圈淡入（只控制 opacity） */
@keyframes heroCardIntro {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Neon 動畫 */
@keyframes cardFloat {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes neonRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0%   { opacity: 0.45; }
  50%  { opacity: 0.9; }
  100% { opacity: 0.45; }
}

/* =========================
   Mobile Nav (<= 900px)
   ========================= */

/* 預設：Desktop 用，唔顯示 mobile nav */
.nav-mobile {
  display: none;
}

/* 漢堡按鈕預設隱藏（只在 mobile 出現） */
.nav-mobile-toggle {
  display: none;
}

/* ---- 900px 以下：啟動手機版 menu ---- */
@media (max-width: 900px) {

  /* 隱藏 desktop nav（你原本嘅 .nav） */
  .nav {
    display: none;
  }

  /* 顯示漢堡按鈕 */
  .nav-mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0;
    margin-left: 1rem;
  }

  .nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #f5f5f5;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* 手機版 menu panel（預設收起） */
  .nav-mobile {
    display: flex;                 /* mobile 才啟用 */
    flex-direction: column;
    position: fixed;
    top: 56px;                     /* header 下邊 */
    left: 0;
    right: 0;
    background: rgba(5, 6, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    z-index: 90;
  }

  /* 打開狀態（JS 會加 .open） */
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mobile a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: #f5f5f5;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-mobile a:hover {
    background: rgba(255, 214, 107, 0.06);
    color: #ffd66b;
  }

  /* 漢堡變成 X（可選） */
  .nav-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

