/* ============================================
   So Marketing — Design System
   Premium Dark Tech Aesthetic
   ============================================ */

/* 字型改由 includes/header.php 以 <link> 載入。
   唔好喺呢度用 @import：會造成 HTML → styles.css → Google CSS → woff2
   四層串連請求，全程阻塞 render。 */

:root {
  --primary: #0066FF;
  --secondary: #00D4FF;
  --accent: #6C63FF;
  --dark: #0B1020;
  --dark-elevated: #111827;
  --dark-card: rgba(17, 24, 39, 0.6);
  --text: #F8FAFC;
  --text-muted: rgba(248, 250, 252, 0.65);
  --text-dim: rgba(248, 250, 252, 0.45);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glow-primary: rgba(0, 102, 255, 0.4);
  --glow-secondary: rgba(0, 212, 255, 0.3);
  --glow-accent: rgba(108, 99, 255, 0.35);
  --gradient-hero: linear-gradient(135deg, #0066FF 0%, #6C63FF 50%, #00D4FF 100%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(108, 99, 255, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 60% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  /* 中文字型堆疊
   *
   * Syne 同 Outfit 都冇中文字符，所以全站中文一直係跌落最後嗰個
   * 泛用 sans-serif —— 即係交畀作業系統隨便揀。Windows 上面好多時
   * 會揀到中英混排難睇嘅預設，字重亦唔一致。呢度明確指定返
   * 各平台嘅正體中文字型，行「拉丁字型 → 中文字型 → 泛用」次序，
   * 拉丁字母仍然由 Syne / Outfit 出，中文就有得揀好嗰個。
   *
   * 注意：呢項純粹係排版質素，同 SEO / 排名冇關。 */
  --font-cjk: 'PingFang HK', 'PingFang TC', 'Hiragino Sans CNS',
              'Microsoft JhengHei UI', 'Microsoft JhengHei',
              'Noto Sans HK', 'Noto Sans CJK TC', sans-serif;
  --font-display: 'Syne', var(--font-cjk);
  --font-body: 'Outfit', var(--font-cjk);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px var(--glow-primary);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --container: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ---- Aurora Background ---- */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--dark);
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: var(--gradient-mesh);
  animation: auroraShift 20s ease-in-out infinite alternate;
}

.aurora-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatOrb 15s ease-in-out infinite;
  filter: blur(80px);
  opacity: 0.5;
}

.aurora-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.aurora-orb--1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: 40%; left: -10%;
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.aurora-orb--2 {
  width: 300px; height: 300px;
  background: var(--secondary);
  bottom: 10%; right: 5%;
  animation: floatOrb 22s ease-in-out infinite 2s;
}

.mesh-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
}

/* ---- Mouse Glow ---- */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.mouse-active .mouse-glow { opacity: 1; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3rem);
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--accent {
  background: linear-gradient(135deg, #fcff81 0%, #ffdb63 50%, #30dcff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.nav__item--has-submenu .nav__link--parent {
  padding-right: 34px;
}

.nav__submenu-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav__submenu-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 12px;
  background: rgba(10, 16, 30, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 1002;
}

.nav__item--has-submenu:hover .nav__submenu,
.nav__item--has-submenu:focus-within .nav__submenu,
.nav__item--has-submenu.is-open .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sublink {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav__sublink:hover,
.nav__sublink.active {
  color: var(--text);
  background: rgba(0, 102, 255, 0.18);
}

.nav__cta {
  margin-left: 12px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-hero);
  color: var(--text);
  box-shadow: 0 4px 24px var(--glow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-primary);
}

.btn--ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: var(--glass-hover);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 0 20px var(--glow-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn--outline:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--glow-primary);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--dark-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 102, 255, 0.12);
  transform: translateY(-4px);
}

/* ---- Section Background (Hero / Page Title) ---- */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-bg__image {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.section-bg__video {
  position: absolute;
  inset: -8%;
  z-index: 1;
  width: calc(100% + 16%);
  height: calc(100% + 16%);
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease, opacity 1.2s ease;
  opacity: 1;
}

.section-bg__video.is-ready {
  opacity: 1;
}

.hero:hover .section-bg__image,
.page-hero:hover .section-bg__image,
.hero:hover .section-bg__video,
.page-hero:hover .section-bg__video {
  transform: scale(1.08);
}

.section-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, transparent 55%, var(--dark) 100%),
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(11, 16, 32, 0.48) 45%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.page-hero .section-bg__overlay {
  background:
    linear-gradient(to bottom, transparent 50%, var(--dark) 100%),
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(11, 16, 32, 0.6) 50%,
      rgba(0, 0, 0, 0.5) 100%
    );
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 2;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 560px;
  z-index: 1;
}

.hero__visual-inner {
  position: relative;
  aspect-ratio: 1;
}

.hero__float-card {
  position: absolute;
  padding: 16px 20px;
  background: var(--dark-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  animation: floatCard 6s ease-in-out infinite;
}

.hero__float-card--1 { top: 10%; left: 0; animation-delay: 0s; }
.hero__float-card--2 { top: 45%; right: -5%; animation-delay: 1.5s; }
.hero__float-card--3 { bottom: 15%; left: 10%; animation-delay: 3s; }

.hero__glow-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}

.hero__glow-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--accent), transparent);
  opacity: 0.3;
  animation: spinSlow 20s linear infinite reverse;
}

/* ---- Stats ---- */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Section ---- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--alt {
  background: rgba(0, 0, 0, 0.15);
}

.section__header {
  margin-bottom: 60px;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section-desc {
  margin-inline: auto;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.video-card__body {
  padding: 20px;
}

.video-card__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.video-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.marketing-marquee {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 0;
}

.marketing-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: tickerMove 24s linear infinite;
}

.marketing-marquee__tag {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 102, 255, 0.14);
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.service-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(0, 102, 255, 0.2);
  box-shadow: 0 0 24px var(--glow-primary);
}

.service-card__title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card__tag {
  padding: 4px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-card__cta {
  margin-top: auto;
}

/* ---- Process ---- */
.process {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  min-width: 140px;
}

.process__number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--gradient-hero);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.process__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.process__arrow {
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Values Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.value-card {
  padding: 32px;
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.value-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Portfolio Masonry ---- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.4);
  color: var(--text);
}

.portfolio-masonry {
  columns: 3;
  column-gap: 24px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 24px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.portfolio-item__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(108,99,255,0.2));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  overflow: hidden;
}

.portfolio-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-item__image img {
  transform: scale(1.05);
}

.portfolio-item__body {
  padding: 24px;
}

.portfolio-item__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.portfolio-item__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.portfolio-item__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.portfolio-item__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.portfolio-item__tech span {
  padding: 3px 10px;
  background: var(--glass);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 16, 32, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox__content {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark-elevated);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.lightbox__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.lightbox__info p {
  color: var(--text-muted);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.faq-item__question:hover { color: var(--secondary); }

.faq-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  background: rgba(0, 102, 255, 0.2);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-item__answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- SEO Content ---- */
.seo-content {
  max-width: 800px;
}

.seo-content h2 {
  font-size: 1.75rem;
  margin: 48px 0 20px;
  padding-top: 24px;
}

.seo-content h2:first-child { margin-top: 0; padding-top: 0; }

.seo-content h3 {
  font-size: 1.25rem;
  margin: 32px 0 14px;
  color: var(--secondary);
}

.seo-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.seo-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.seo-content li {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.seo-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.seo-pillar {
  padding: 28px;
  text-align: center;
}

.seo-pillar__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.seo-pillar__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.seo-pillar__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 500;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.map-container {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(1.1);
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner {
  padding: 60px 40px;
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner__desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-inline: auto;
}

/* ---- Footer ---- */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--header-height) + 64px) clamp(24px, 5vw, 64px) 120px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
  display: flex;
  align-items: center;
  width: 100%;
}

.page-hero > .container {
  flex: 1;
  padding: 80px clamp(32px, 6vw, 80px) 96px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.page-hero .section-desc {
  color: rgba(248, 250, 252, 0.78);
  max-width: 720px;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 20px;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 380px;
    padding: calc(var(--header-height) + 32px) 20px 64px;
  }

  .page-hero > .container {
    padding: 40px 16px 48px;
  }
}

.page-hero__breadcrumb a:hover { color: var(--secondary); }

/* ---- Clients / Industries ---- */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.industry-tag {
  padding: 12px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.industry-tag:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text);
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col__visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.two-col__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.two-col__visual:hover img {
  transform: scale(1.03);
}

.two-col--reverse .service-row__content {
  order: 2;
}

.two-col--reverse .two-col__visual {
  order: 1;
}

.service-row .section-title {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.service-row__desc {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.75;
}

.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JS 未執行／執行失敗時，內容唔可以永遠隱形（搜尋器同無障礙都受影響） */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.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; }

/* ---- Parallax ---- */
.parallax-layer {
  will-change: transform;
}

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  font-size: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---- Animations ---- */
@keyframes auroraShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5%, 3%) rotate(3deg); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__visual { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-masonry { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse .service-row__content,
  .two-col--reverse .two-col__visual { order: unset; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__toggle { display: flex; }
  .nav__cta { margin-left: 0; width: 100%; text-align: center; }
  .nav__link { width: 100%; text-align: center; padding: 12px; }
  .nav__item { width: 100%; display: block; }
  .nav__submenu-toggle {
    position: absolute;
    right: 8px;
    top: 12px;
    transform: none;
  }
  .nav__submenu {
    position: static;
    margin-top: 8px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__item--has-submenu.is-open .nav__submenu {
    display: grid;
  }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .portfolio-masonry { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .process { flex-direction: column; }
  .process__arrow { transform: rotate(90deg); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
