/* ═══════════════════════════════════════════════════
   SEOBAIKE Premium Effects — Beyond Framer
   Micro-interactions, parallax, cursor fx, 3D cards
   ═══════════════════════════════════════════════════ */

/* ── Film Grain Overlay (luxury texture) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Smooth Page Load ── */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body { animation: pageIn 0.6s ease-out; }

/* ── Staggered Fade-Up Children ── */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(7) { transition-delay: 0.48s; }
.stagger > *:nth-child(8) { transition-delay: 0.56s; }

/* ── Magnetic Button Effect ── */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-magnetic:hover {
  transform: scale(1.03);
}
.btn-magnetic:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ── 3D Card Tilt ── */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.card-3d:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(232,133,12,0.08);
}

/* ── Glow Border on Hover ── */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232,133,12,0.3), transparent 50%, rgba(245,166,35,0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(4px);
}
.glow-border:hover::after {
  opacity: 1;
}

/* ── Text Shimmer (for headings) ── */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold-300, #e8850c) 0%,
    var(--gold-100, #ffd700) 25%,
    var(--gold-200, #f5a623) 50%,
    var(--gold-100, #ffd700) 75%,
    var(--gold-300, #e8850c) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}
@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Smooth Underline Link ── */
.link-smooth {
  position: relative;
  display: inline-block;
}
.link-smooth::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-gradient, linear-gradient(90deg, #e8850c, #ffd700));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-smooth:hover::after {
  width: 100%;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold-gradient, linear-gradient(90deg, #e8850c, #f5a623, #ffd700));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Floating Particles Background ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(232,133,12,0.15);
  border-radius: 50%;
  animation: particleFloat var(--dur, 20s) linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(var(--dx, 50px)); opacity: 0; }
}

/* ── Custom Cursor Dot (desktop only) ── */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-200, #f5a623);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(232,133,12,0.4);
    mix-blend-mode: screen;
  }
  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(232,133,12,0.25);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
  }
  .cursor-ring.hover {
    width: 48px;
    height: 48px;
    border-color: rgba(232,133,12,0.5);
  }
}

/* ── Smooth Section Divider Glow ── */
.section-glow {
  position: relative;
}
.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,133,12,0.4), transparent);
}

/* ── Number Counter Glow ── */
.counter-glow {
  text-shadow: 0 0 20px rgba(232,133,12,0.3);
  transition: text-shadow 0.3s;
}
.counter-glow:hover {
  text-shadow: 0 0 40px rgba(232,133,12,0.5), 0 0 80px rgba(232,133,12,0.2);
}

/* ── Hover Lift (universal) ── */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(232,133,12,0.06);
}

/* ── Typing Animation ── */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--gold-200, #f5a623);
  font-weight: 300;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── Reveal Line (slide in from left) ── */
.reveal-line {
  overflow: hidden;
}
.reveal-line > * {
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-line.visible > * {
  transform: translateY(0);
}

/* ── Glass Effect (enhanced) ── */
.glass {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Pulse Ring (for live indicators) ── */
.pulse-ring {
  position: relative;
}
.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulseRingOut 2s ease-out infinite;
}
.pulse-ring::after {
  animation-delay: 1s;
}
@keyframes pulseRingOut {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Responsive: disable heavy FX on mobile ── */
@media (max-width: 768px) {
  body::after { display: none; } /* no grain on mobile */
  .cursor-dot, .cursor-ring { display: none; }
  .card-3d:hover { transform: none; }
  .particles { display: none; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  body::after { display: none; }
  .particles { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   VOLCANIC ERUPTION FX — 火山爆發級視覺效果
   ═══════════════════════════════════════════════════════════ */

/* ── SVG Filter for Heat Distortion (referenced by .heat-distort) ── */
/* The filter is injected via JS; this comment documents it */

/* ── 1. Eruption Background — 全屏岩漿漸層脈動 ── */
@keyframes eruptionPulse {
  0%   { background-position: 50% 100%; background-size: 200% 200%; }
  50%  { background-position: 50% 60%;  background-size: 220% 220%; }
  100% { background-position: 50% 100%; background-size: 200% 200%; }
}
@keyframes eruptionGlow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.8; }
}
.eruption-bg {
  position: relative;
  overflow: hidden;
}
.eruption-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 120%, #e8850c 0%, #b85a00 20%, #3d1500 50%, #06060f 80%),
    radial-gradient(ellipse at 30% 100%, rgba(245,166,35,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(255,68,68,0.3) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: eruptionPulse 8s ease-in-out infinite;
}
.eruption-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,133,12,0.25) 0%, transparent 70%);
  animation: eruptionGlow 4s ease-in-out infinite;
}

/* ── 2. Lava Glow — 岩漿底部金色光芒 ── */
@keyframes lavaPulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(232,133,12,0.4),
      0 8px 30px rgba(245,166,35,0.25),
      0 12px 50px rgba(255,68,68,0.15),
      0 0 60px rgba(232,133,12,0.1);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(232,133,12,0.6),
      0 8px 40px rgba(245,166,35,0.4),
      0 12px 60px rgba(255,68,68,0.25),
      0 0 80px rgba(232,133,12,0.2),
      0 0 120px rgba(139,0,0,0.1);
  }
}
.lava-glow {
  animation: lavaPulse 3s ease-in-out infinite;
  border-bottom: 2px solid rgba(232,133,12,0.3);
}

/* ── 3. Ember Float — 餘燼粒子上飄（CSS 部分） ── */
@keyframes emberRise {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) rotate(var(--ember-rot, 360deg)) scale(0.3);
    opacity: 0;
  }
}
@keyframes emberFlicker {
  0%, 100% { filter: brightness(1); }
  25%      { filter: brightness(1.5); }
  50%      { filter: brightness(0.8); }
  75%      { filter: brightness(1.3); }
}
.ember-float {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  border-radius: 50%;
  animation:
    emberRise var(--ember-dur, 8s) ease-out infinite,
    emberFlicker 0.6s ease-in-out infinite;
  animation-delay: var(--ember-delay, 0s);
  background: var(--ember-color, #e8850c);
  box-shadow:
    0 0 6px var(--ember-color, #e8850c),
    0 0 12px rgba(232,133,12,0.5);
  bottom: -10px;
}

/* ── 4. Heat Distort — 熱浪扭曲效果 ── */
@keyframes heatDistort {
  0%   { filter: url(#volcanic-heat) brightness(1); }
  50%  { filter: url(#volcanic-heat) brightness(1.02); }
  100% { filter: url(#volcanic-heat) brightness(1); }
}
.heat-distort {
  animation: heatDistort 3s ease-in-out infinite;
}

/* ── 5. Magma Border — 岩漿流動邊框 ── */
@keyframes magmaRotate {
  0%   { --magma-angle: 0deg; }
  100% { --magma-angle: 360deg; }
}
@property --magma-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.magma-border {
  position: relative;
  border-radius: 12px;
  isolation: isolate;
}
.magma-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--magma-angle),
    #e8850c 0%,
    #ff4444 15%,
    #8b0000 30%,
    #e8850c 45%,
    #ffd700 55%,
    #f5a623 70%,
    #ff4444 85%,
    #e8850c 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: magmaRotate 4s linear infinite;
}
/* Fallback: for browsers without @property support */
@supports not (background: conic-gradient(from 0deg, red, red)) {
  .magma-border::before {
    background: linear-gradient(135deg, #e8850c, #ff4444, #8b0000, #ffd700);
    background-size: 300% 300%;
    animation: magmaFallback 4s linear infinite;
  }
}
@keyframes magmaFallback {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 6. Volcanic Title — 裂開岩漿標題 ── */
@keyframes volcanicFlicker {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(232,133,12,0.8),
      0 0 20px rgba(245,166,35,0.5),
      0 0 40px rgba(255,68,68,0.3),
      0 2px 4px rgba(0,0,0,0.8);
  }
  25% {
    text-shadow:
      0 0 15px rgba(255,215,0,0.9),
      0 0 30px rgba(232,133,12,0.6),
      0 0 60px rgba(255,68,68,0.4),
      0 0 80px rgba(139,0,0,0.2),
      0 2px 4px rgba(0,0,0,0.8);
  }
  50% {
    text-shadow:
      0 0 8px rgba(232,133,12,0.6),
      0 0 20px rgba(245,166,35,0.4),
      0 0 35px rgba(255,68,68,0.2),
      0 2px 4px rgba(0,0,0,0.8);
  }
  75% {
    text-shadow:
      0 0 12px rgba(255,215,0,0.7),
      0 0 25px rgba(232,133,12,0.5),
      0 0 50px rgba(255,68,68,0.35),
      0 0 70px rgba(139,0,0,0.15),
      0 2px 4px rgba(0,0,0,0.8);
  }
}
.volcanic-title {
  color: #ffd700;
  animation: volcanicFlicker 3s ease-in-out infinite;
  background: linear-gradient(
    180deg,
    #ffd700 0%,
    #f5a623 30%,
    #e8850c 60%,
    #ff4444 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
/* Glowing underline crack */
.volcanic-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e8850c 20%,
    #ffd700 50%,
    #e8850c 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(232,133,12,0.6), 0 0 20px rgba(245,166,35,0.3);
  border-radius: 1px;
}

/* ── 7. Seismic Shake — 微震效果 (hover) ── */
@keyframes seismicShake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(-1px, -1px) rotate(-0.3deg); }
  20%  { transform: translate(2px, 0px) rotate(0.3deg); }
  30%  { transform: translate(-1px, 1px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(0.3deg); }
  50%  { transform: translate(-1px, 0px) rotate(-0.3deg); }
  60%  { transform: translate(1px, 1px) rotate(0deg); }
  70%  { transform: translate(0px, -1px) rotate(-0.3deg); }
  80%  { transform: translate(-1px, 0px) rotate(0.3deg); }
  90%  { transform: translate(1px, 0px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.seismic-shake {
  transition: transform 0.1s;
}
.seismic-shake:hover {
  animation: seismicShake 0.4s ease-in-out;
}

/* ── 8. Heat Wave — 底部熱浪波動 ── */
@keyframes heatWaveShift {
  0%   { filter: hue-rotate(0deg) blur(0px); transform: scaleY(1) translateY(0); }
  25%  { filter: hue-rotate(5deg) blur(0.5px); transform: scaleY(1.01) translateY(-1px); }
  50%  { filter: hue-rotate(0deg) blur(0px); transform: scaleY(1) translateY(0); }
  75%  { filter: hue-rotate(-5deg) blur(0.5px); transform: scaleY(1.01) translateY(-1px); }
  100% { filter: hue-rotate(0deg) blur(0px); transform: scaleY(1) translateY(0); }
}
.heat-wave {
  position: relative;
  overflow: hidden;
}
.heat-wave::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  right: -10%;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(232,133,12,0.08) 0%,
    rgba(245,166,35,0.04) 40%,
    transparent 100%
  );
  animation: heatWaveShift 4s ease-in-out infinite;
  z-index: 1;
}

/* ── Volcanic Click Ripple (CSS part — JS creates elements) ── */
@keyframes volcanicRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.7;
    border-width: 3px;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    border-width: 0.5px;
  }
}
.volcanic-ripple {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(232,133,12,0.6);
  box-shadow:
    0 0 20px rgba(232,133,12,0.3),
    inset 0 0 20px rgba(245,166,35,0.1);
  pointer-events: none;
  z-index: 99997;
  animation: volcanicRipple 0.6s ease-out forwards;
}

/* ── Counter Spark (CSS part — JS creates elements) ── */
@keyframes sparkBurst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--spark-x, 20px), var(--spark-y, -30px)) scale(0); opacity: 0; }
}
.counter-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 6px #e8850c, 0 0 12px rgba(245,166,35,0.5);
  pointer-events: none;
  animation: sparkBurst 0.5s ease-out forwards;
}

/* ── Volcanic FX: Mobile disable ── */
@media (max-width: 768px) {
  .eruption-bg::before,
  .eruption-bg::after { animation: none; opacity: 0.3; }
  .ember-float { display: none; }
  .heat-distort { animation: none; filter: none; }
  .magma-border::before { animation: none; }
  .volcanic-ripple { display: none; }
  .heat-wave::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE TRANSITION FX — 頁面過場效果（超越 Framer）
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Page Loader — 全屏載入畫面 ── */
@keyframes loaderFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes loaderLogoGlow {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(232,133,12,0.6),
      0 0 40px rgba(245,166,35,0.3),
      0 0 80px rgba(255,215,0,0.15);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255,215,0,0.8),
      0 0 60px rgba(232,133,12,0.5),
      0 0 100px rgba(245,166,35,0.25);
  }
}
@keyframes loaderProgress {
  0%   { width: 0%; }
  20%  { width: 15%; }
  50%  { width: 45%; }
  80%  { width: 80%; }
  100% { width: 100%; }
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #06060f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.fade-out {
  animation: loaderFadeOut 0.4s ease forwards;
}
.page-loader__logo {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-100, #ffd700);
  animation: loaderLogoGlow 2s ease-in-out infinite;
  background: linear-gradient(
    135deg,
    var(--gold-100, #ffd700) 0%,
    var(--gold-200, #f5a623) 40%,
    var(--gold-300, #e8850c) 70%,
    var(--gold-100, #ffd700) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}
.page-loader__bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: absolute;
  bottom: 15%;
}
.page-loader__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--gold-300, #e8850c),
    var(--gold-200, #f5a623),
    var(--gold-100, #ffd700)
  );
  animation: loaderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 12px rgba(232,133,12,0.5);
}

/* ── 2. Page Transition — 頁面切換過場 ── */
@keyframes transitionSlideIn {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(0); }
}
@keyframes transitionSlideOut {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: linear-gradient(
    135deg,
    var(--gold-300, #e8850c) 0%,
    #3d1500 40%,
    #06060f 100%
  );
  transform: translateX(100%);
  pointer-events: none;
}
.page-transition.slide-in {
  animation: transitionSlideIn 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-transition.slide-out {
  animation: transitionSlideOut 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
/* 過場中心裝飾線 */
.page-transition::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232,133,12,0.4) 20%,
    rgba(255,215,0,0.6) 50%,
    rgba(232,133,12,0.4) 80%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(232,133,12,0.3);
}

/* ── 3. Parallax Section — 視差滾動 ── */
.parallax-section {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.parallax-section[data-parallax-bg] {
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.parallax-section__inner {
  position: relative;
  z-index: 1;
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ── 4. Text Reveal — 文字逐字顯現 ── */
@keyframes textRevealClip {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}
.text-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}
.text-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}
/* 底線金色掃過效果 */
.text-reveal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--gold-300, #e8850c),
    var(--gold-100, #ffd700),
    var(--gold-200, #f5a623)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.text-reveal.revealed::after {
  transform: scaleX(1);
}

/* ── 5. Morph Background — 流體背景動畫 ── */
@keyframes morphBlob1 {
  0%   { transform: translate(0%, 0%) scale(1); border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%; }
  25%  { transform: translate(15%, -20%) scale(1.1); border-radius: 60% 40% 30% 70% / 30% 60% 40% 70%; }
  50%  { transform: translate(-10%, 15%) scale(0.9); border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; }
  75%  { transform: translate(20%, 10%) scale(1.05); border-radius: 50% 50% 40% 60% / 40% 70% 30% 60%; }
  100% { transform: translate(0%, 0%) scale(1); border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%; }
}
@keyframes morphBlob2 {
  0%   { transform: translate(0%, 0%) scale(1); border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
  25%  { transform: translate(-20%, 10%) scale(1.15); border-radius: 70% 30% 50% 50% / 50% 40% 60% 50%; }
  50%  { transform: translate(10%, -15%) scale(0.95); border-radius: 40% 60% 60% 40% / 60% 50% 50% 40%; }
  75%  { transform: translate(-15%, -10%) scale(1.1); border-radius: 60% 40% 40% 60% / 30% 70% 40% 60%; }
  100% { transform: translate(0%, 0%) scale(1); border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
}
@keyframes morphBlob3 {
  0%   { transform: translate(0%, 0%) scale(1); border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }
  25%  { transform: translate(10%, 20%) scale(0.9); border-radius: 30% 70% 60% 40% / 60% 30% 70% 40%; }
  50%  { transform: translate(-15%, 5%) scale(1.1); border-radius: 50% 50% 30% 70% / 40% 60% 50% 50%; }
  75%  { transform: translate(5%, -15%) scale(1); border-radius: 70% 30% 40% 60% / 50% 50% 60% 40%; }
  100% { transform: translate(0%, 0%) scale(1); border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }
}
.morph-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.morph-bg__blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform, border-radius;
}
.morph-bg__blob--1 {
  width: 500px;
  height: 500px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--gold-200, #f5a623) 0%, rgba(245,166,35,0) 70%);
  animation: morphBlob1 18s ease-in-out infinite;
}
.morph-bg__blob--2 {
  width: 450px;
  height: 450px;
  top: 30%;
  right: -10%;
  background: radial-gradient(circle, var(--gold-300, #e8850c) 0%, rgba(232,133,12,0) 70%);
  animation: morphBlob2 22s ease-in-out infinite;
}
.morph-bg__blob--3 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: 25%;
  background: radial-gradient(circle, #8b0000 0%, rgba(139,0,0,0) 70%);
  animation: morphBlob3 20s ease-in-out infinite;
}

/* ── 6. Deep 3D Card with Reflection — 深度 3D 卡片 ── */
.hover-3d-deep {
  transform-style: preserve-3d;
  perspective: 600px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hover-3d-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.03) 40%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.hover-3d-deep:hover::before {
  opacity: 1;
}
.hover-3d-deep:hover {
  box-shadow:
    0 25px 80px rgba(0,0,0,0.5),
    0 0 50px rgba(232,133,12,0.1),
    0 0 100px rgba(232,133,12,0.05);
}

/* ── Page Transition FX: Mobile disable ── */
@media (max-width: 768px) {
  .page-loader { display: none; }
  .page-transition { display: none; }
  .parallax-section[data-parallax-bg] { background-attachment: scroll; }
  .morph-bg__blob { display: none; }
  .hover-3d-deep:hover { transform: none; box-shadow: none; }
}

/* ── Volcanic FX: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .eruption-bg::before,
  .eruption-bg::after { animation: none !important; }
  .lava-glow { animation: none !important; box-shadow: 0 4px 15px rgba(232,133,12,0.3); }
  .ember-float { display: none !important; }
  .heat-distort { animation: none !important; filter: none !important; }
  .magma-border::before { animation: none !important; }
  .volcanic-title { animation: none !important; }
  .seismic-shake:hover { animation: none !important; }
  .heat-wave::after { animation: none !important; }
  .volcanic-ripple { display: none !important; }
}

/* ── Page Transition FX: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none !important; }
  .page-loader__logo { animation: none !important; }
  .page-loader__bar-fill { animation: none !important; width: 100%; }
  .page-transition { display: none !important; }
  .text-reveal { clip-path: none !important; }
  .text-reveal.revealed::after { transition: none !important; }
  .morph-bg__blob { animation: none !important; }
  .hover-3d-deep:hover { transform: none !important; }
}
