/* ============================
   SONIC WAVE 聲波音樂祭 — Style Sheet
   Design: Dark + Neon Tech Aesthetic
   ============================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050510;
  --bg-card: #0c0c1e;
  --surface: #12122a;
  --text: #e8e8f0;
  --text-dim: #8888aa;
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --yellow: #ffe100;
  --gradient-main: linear-gradient(135deg, #00f0ff, #ff00aa);
  --font-en: 'Orbitron', sans-serif;
  --font-tc: 'Noto Sans TC', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-tc);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- Section Shared --- */
.section__container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.in-view .section__label,
.in-view .section__title { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 240, 255, 0.1);
}
.nav__logo {
  font-family: var(--font-en);
  font-size: 1.2rem; font-weight: 900; letter-spacing: 3px;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 0.88rem; letter-spacing: 0.5px; color: var(--text-dim); transition: color 0.3s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 8px 20px; border: 1px solid var(--cyan); border-radius: 4px;
  color: var(--cyan) !important; font-weight: 700 !important; transition: all 0.3s;
}
.nav__cta:hover { background: var(--cyan); color: var(--bg) !important; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(5, 5, 16, 0.97);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1.3rem; letter-spacing: 1px; color: var(--text-dim); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .nav__cta { border-color: var(--cyan); color: var(--cyan); padding: 10px 28px; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav { padding: 16px 20px; }
}

/* --- Hero --- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35) saturate(1.2); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%),
              linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, transparent 50%, rgba(255, 0, 170, 0.08) 100%);
}
.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.hero__date {
  font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 6px;
  color: var(--cyan); margin-bottom: 24px; animation: fadeUp 1s 0.2s both;
}
.hero__title { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.hero__title-line { font-family: var(--font-en); font-weight: 900; line-height: 1; }
.hero__title-line--top {
  font-size: clamp(4rem, 12vw, 9rem);
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeUp 1s 0.4s both;
}
.hero__title-line--bottom {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  color: rgba(255, 255, 255, 0.12);
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.3);
  animation: fadeUp 1s 0.5s both;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem); letter-spacing: 12px; font-weight: 300;
  color: var(--text-dim); margin-bottom: 16px; animation: fadeUp 1s 0.6s both;
}
.hero__desc {
  font-size: 1rem; color: var(--text-dim); max-width: 460px; margin: 0 auto 36px;
  animation: fadeUp 1s 0.7s both;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: transparent;
  border: 1.5px solid var(--cyan); border-radius: 4px;
  font-family: var(--font-tc); font-size: 1rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 1px; transition: all 0.4s;
  animation: fadeUp 1s 0.8s both;
}
.hero__cta:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 30px rgba(0, 240, 255, 0.3); }
.hero__scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  animation: fadeUp 1s 1.2s both;
}
.hero__scroll-hint span { font-family: var(--font-en); font-size: 0.65rem; letter-spacing: 4px; color: var(--text-dim); }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--cyan), transparent); animation: scrollPulse 2s ease-in-out infinite; }

.particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); opacity: 0; animation: particleFloat linear infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }
@keyframes particleFloat { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-100vh) scale(0.5); } }

/* --- About --- */
.about { padding: 120px 0; background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about__text p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.9; opacity: 0; transform: translateY(20px); }
.in-view .about__text p { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.in-view .about__text p:nth-child(2) { transition-delay: 0.15s; }

.about__features { display: flex; flex-direction: column; gap: 28px; }
.about__feature {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px;
  opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.in-view .about__feature { opacity: 1; transform: translateY(0); }
.in-view .about__feature:nth-child(2) { transition-delay: 0.12s; }
.in-view .about__feature:nth-child(3) { transition-delay: 0.24s; }
.about__feature:hover { border-color: rgba(0, 240, 255, 0.15); box-shadow: 0 0 30px rgba(0, 240, 255, 0.04); }
.about__feature-icon { flex-shrink: 0; padding-top: 2px; }
.about__feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.about__feature p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 768px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }

/* --- Lineup --- */
.lineup { padding: 120px 0; background: var(--bg); }
.lineup__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lineup__card {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.in-view .lineup__card { opacity: 1; transform: translateY(0); }
.in-view .lineup__card:nth-child(2) { transition-delay: 0.1s; }
.in-view .lineup__card:nth-child(3) { transition-delay: 0.2s; }
.in-view .lineup__card:nth-child(4) { transition-delay: 0.3s; }
.lineup__card-img { position: relative; height: 260px; overflow: hidden; }
.lineup__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.lineup__card:hover .lineup__card-img img { transform: scale(1.08); }
.lineup__card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 16, 0.9) 100%); }
.lineup__card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.lineup__card-tag {
  font-family: var(--font-en); font-size: 0.65rem; letter-spacing: 3px;
  color: var(--cyan); padding: 3px 10px; border: 1px solid var(--cyan); border-radius: 2px;
  margin-bottom: 10px; display: inline-block;
}
.lineup__card-info h3 { font-family: var(--font-en); font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.lineup__card-info p { font-size: 0.85rem; color: var(--text-dim); }
.lineup__more { text-align: center; margin-top: 40px; font-size: 0.9rem; color: var(--text-dim); letter-spacing: 2px; }

@media (max-width: 768px) { .lineup__grid { grid-template-columns: 1fr; } .lineup__card-img { height: 220px; } }

/* --- Info --- */
.info { padding: 120px 0; background: var(--surface); }
.info__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info__card {
  padding: 32px 24px; background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; text-align: center;
  opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.in-view .info__card { opacity: 1; transform: translateY(0); }
.in-view .info__card:nth-child(2) { transition-delay: 0.08s; }
.in-view .info__card:nth-child(3) { transition-delay: 0.16s; }
.in-view .info__card:nth-child(4) { transition-delay: 0.24s; }
.info__card:hover { border-color: rgba(0, 240, 255, 0.15); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.info__card-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.info__card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.info__card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 900px) { .info__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .info__grid { grid-template-columns: 1fr; } }

/* --- Registration --- */
.register { padding: 120px 0; background: var(--bg); text-align: center; }
.register__note { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 40px; opacity: 0; transform: translateY(20px); }
.in-view .register__note { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

.register__form { max-width: 480px; margin: 0 auto; text-align: left; opacity: 0; transform: translateY(30px); }
.in-view .register__form { opacity: 1; transform: translateY(0); transition: all 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1); }

.form__group { margin-bottom: 24px; }
.form__group label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; color: var(--text); }
.required { color: var(--magenta); }
.form__group input {
  width: 100%; padding: 14px 16px; background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px;
  color: var(--text); font-family: var(--font-tc); font-size: 1rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form__group input::placeholder { color: #555570; }
.form__group input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
.form__group input.error { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 0, 170, 0.1); }
.form__error { display: block; font-size: 0.78rem; color: var(--magenta); margin-top: 6px; }

.register__submit {
  width: 100%; padding: 16px; background: var(--gradient-main);
  border: none; border-radius: 6px; font-family: var(--font-tc);
  font-size: 1.05rem; font-weight: 700; color: var(--bg);
  cursor: pointer; letter-spacing: 1px; transition: opacity 0.3s, transform 0.2s; margin-top: 8px;
}
.register__submit:hover { opacity: 0.9; }
.register__submit:active { transform: scale(0.98); }

.register__success { max-width: 480px; margin: 0 auto; padding: 48px 24px; }
.register__success-icon { margin-bottom: 20px; }
.register__success h3 {
  font-size: 1.6rem; font-weight: 900; margin-bottom: 12px;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.register__success p { color: var(--text-dim); }

/* --- Footer --- */
.footer { padding: 60px 0 40px; background: var(--bg); border-top: 1px solid rgba(255, 255, 255, 0.04); }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer__brand h3 {
  font-family: var(--font-en); font-size: 1.1rem; font-weight: 900; letter-spacing: 3px;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.footer__brand p { font-size: 0.8rem; color: var(--text-dim); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-dim); transition: color 0.3s; }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.footer__bottom p { font-size: 0.78rem; color: var(--text-dim); }

@media (max-width: 500px) { .footer__top { flex-direction: column; gap: 20px; text-align: center; } }
@media (max-width: 768px) { .about, .lineup, .info, .register { padding: 80px 0; } }