/* ========================================
   CSS Variables
   ======================================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --accent: #c9a96e;
  --border: #222222;
  --nav-height: 72px;
  --container-max: 1400px;
  --transition-fast: 200ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 600ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 300;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text-primary);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 64px;
  padding-top: calc(var(--nav-height) + 48px);
  color: var(--text-primary);
}

.label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 400;
  transition: gap var(--transition-fast);
}

.link-arrow:hover {
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn:hover {
  opacity: 0.9;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-medium), backdrop-filter var(--transition-medium);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

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

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-medium);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ========================================
   Footer and Back-to-Top
   ======================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-email a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-email a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-medium), visibility var(--transition-medium), transform var(--transition-medium), background-color var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* ========================================
   Intro Overlay - Neural Network Style
   ======================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), visibility 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro-overlay.exited {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#introCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Progress Ring */
.intro-progress-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 32px;
}

.intro-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.intro-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.intro-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.3s ease-out;
}

.intro-ring-rotating {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.intro-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.15em;
  transition: opacity 0.5s ease;
}

/* Glow Orb - replaces button */
.intro-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.intro-glow-core {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 16px rgba(201, 169, 110, 0.6),
    0 0 32px rgba(201, 169, 110, 0.3),
    0 0 48px rgba(201, 169, 110, 0.15);
  animation: corePulse 2.5s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.intro-glow-wave {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(201, 169, 110, 0.45);
  border-radius: 50%;
  animation: glowExpand 3s ease-out infinite;
}

@keyframes glowExpand {
  0% {
    transform: scale(0.25);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Logs */
.intro-logs {
  height: 72px;
  width: 340px;
  max-width: 80vw;
  overflow: hidden;
  margin-bottom: 32px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.intro-log-line {
  opacity: 0;
  animation: logFadeIn 0.4s ease forwards;
}

@keyframes logFadeIn {
  to { opacity: 1; }
}

.hero.hold-animation .hero-curtain,
.hero.hold-animation .hero-title span,
.hero.hold-animation .hero-subtitle,
.hero.hold-animation .scroll-indicator,
.hero.hold-animation .audio-toggle {
  animation-play-state: paused !important;
}

/* ========================================
   Hero Section - Cinematic Entrance
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-curtain {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
  animation: curtainLift 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes curtainLift {
  0% { opacity: 1; }
  60% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Skip intro: directly show final state without any animations */
.hero.animation-complete .hero-curtain {
  display: none;
}

.hero.animation-complete .hero-title span {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero.animation-complete .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero.animation-complete .scroll-indicator {
  opacity: 1;
}

.hero.animation-complete .audio-toggle {
  opacity: 1;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  filter: blur(8px);
  transition: opacity 1.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  filter: blur(0);
  animation: kenBurns 12s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.12); }
  100% { transform: scale(1.0); }
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 4rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  animation: letterReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s cubic-bezier(0.22, 1, 0.36, 1) 3.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 2s ease-out 5s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background-color: var(--text-secondary);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.audio-toggle {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  animation: fadeInUp 2s ease-out 5.5s forwards;
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.audio-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.3s ease;
}

.audio-toggle .audio-icon--on {
  opacity: 0;
}

.audio-toggle.playing .audio-icon--off {
  opacity: 0;
}

.audio-toggle.playing .audio-icon--on {
  opacity: 1;
}

/* ========================================
   Featured Works - Scroll Reveal Animations
   ======================================== */
.featured {
  background-color: var(--bg-primary);
}

.featured-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}

.featured-item:last-child {
  margin-bottom: 0;
}

/* Entrance states */
.featured-item .featured-image {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.featured-item .featured-text {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.featured-item--reverse .featured-image {
  order: 2;
  transform: translateX(40px);
}

.featured-item--reverse .featured-text {
  order: 1;
  transform: translateX(-40px);
}

/* Revealed state */
.featured-item.revealed .featured-image,
.featured-item.revealed .featured-text {
  opacity: 1;
  transform: translateX(0);
}

.featured-image {
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-item:hover .featured-image img {
  transform: scale(1.03);
}

.featured-text h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.featured-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================
   About Preview
   ======================================== */
.about-preview {
  background-color: var(--bg-secondary);
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview-image {
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-preview-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-preview-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ========================================
   Portal to adv1 - Glassmorphism Card
   ======================================== */
.portal-section {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.portal-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.portal-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 160, 200, 0.05);
  border: 1px solid rgba(255, 160, 200, 0.15);
  border-radius: 28px;
  padding: 72px 56px;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              box-shadow 0.6s ease;
}

.portal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.portal-card.revealed:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 64px -12px rgba(255, 105, 180, 0.12),
    0 0 0 1px rgba(255, 160, 200, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: portalGlowPulse 6s ease-in-out infinite;
}

.portal-glow::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.15), transparent 65%);
  filter: blur(40px);
  animation: portalGlowPulse 6s ease-in-out infinite reverse;
}

@keyframes portalGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.portal-card-inner {
  position: relative;
  z-index: 1;
}

.portal-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: rgba(255, 160, 200, 0.7);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.portal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 3.2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 40%, #ff69b4 80%, #ff85c1 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 105, 180, 0.25));
  animation: portalShimmer 5s linear infinite;
}

@keyframes portalShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.portal-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 44px;
  letter-spacing: 0.05em;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 160, 200, 0.08);
  border: 1px solid rgba(255, 160, 200, 0.28);
  border-radius: 100px;
  color: rgba(255, 210, 225, 0.95);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-btn:hover {
  background: rgba(255, 160, 200, 0.18);
  border-color: rgba(255, 160, 200, 0.55);
  box-shadow: 0 0 36px rgba(255, 105, 180, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.portal-btn:hover svg {
  transform: translateX(4px);
}

/* ========================================
   Categories
   ======================================== */
.categories {
  background-color: var(--bg-primary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color var(--transition-medium);
}

.category-card:hover .category-overlay {
  background-color: rgba(10, 10, 10, 0.7);
}

.category-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.category-link {
  font-size: 0.9375rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.category-card:hover .category-link {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Gallery Page
   ======================================== */
.page-content {
  min-height: 100vh;
  padding-bottom: 120px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid var(--border);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.filter-btn.active {
  color: var(--bg-primary);
  background-color: var(--accent);
  border-color: var(--accent);
}

.masonry-grid {
  column-count: 3;
  column-gap: 8px;
}

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

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-medium);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay span {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.masonry-item.hidden {
  display: none;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-counter {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--text-primary);
  line-height: 1;
  transition: color var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--text-primary);
  padding: 16px;
  transition: color var(--transition-fast);
  z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* ========================================
   About Page
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text blockquote {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Contact Info - Left Side */
.contact-info {
  opacity: 0;
  transform: translateX(-30px);
  animation: contactReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes contactReveal {
  to { opacity: 1; transform: translateX(0); }
}

.contact-info-header {
  margin-bottom: 40px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-detail:hover .contact-detail-icon {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.35);
  transform: scale(1.05);
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.contact-detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.contact-detail-text a,
.contact-detail-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 400;
  transition: color var(--transition-fast);
}

.contact-detail-text a:hover {
  color: var(--accent);
}

.contact-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 36px 0;
}

/* Social Buttons */
.contact-social-section {
  margin-top: 8px;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.social-btn:hover::before {
  opacity: 1;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-name {
  position: relative;
  z-index: 1;
}

/* Platform-specific brand colors on hover */
.social-douyin::before { background: linear-gradient(135deg, #FE2C55, #25F4EE); }
.social-douyin:hover { box-shadow: 0 8px 24px rgba(254, 44, 85, 0.25); }

.social-bilibili::before { background: linear-gradient(135deg, #00A1D6, #FB7299); }
.social-bilibili:hover { box-shadow: 0 8px 24px rgba(0, 161, 214, 0.25); }

.social-xiaohongshu::before { background: linear-gradient(135deg, #FF2442, #FF5C7F); }
.social-xiaohongshu:hover { box-shadow: 0 8px 24px rgba(255, 36, 66, 0.25); }

/* QR Code - Right Side */
.contact-qr {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(30px);
  animation: contactReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.qr-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.qr-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 64px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 169, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.qr-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: qrGlowPulse 5s ease-in-out infinite;
}

.qr-glow::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 65%);
  filter: blur(40px);
  animation: qrGlowPulse 5s ease-in-out infinite reverse;
}

@keyframes qrGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.qr-card-inner {
  position: relative;
  z-index: 1;
}

.qr-frame {
  position: relative;
  display: inline-block;
  padding: 16px;
  margin-bottom: 28px;
}

.qr-image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #888;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.6;
  padding: 16px;
}

.qr-placeholder svg {
  color: #bbb;
}

/* Decorative corners */
.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.qr-card:hover .qr-corner {
  opacity: 0.8;
}

.qr-corner-tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 6px;
}

.qr-corner-tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 6px;
}

.qr-corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 6px;
}

.qr-corner-br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 6px;
}

.qr-info h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.qr-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Responsive Media Queries
   ======================================== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 48px;
  }

  .page-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
  }

  .featured-item {
    gap: 40px;
    margin-bottom: 80px;
  }

  .about-preview-inner {
    gap: 48px;
  }

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }

  .masonry-grid {
    column-count: 2;
  }

  .categories-grid {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .featured-item {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 64px;
  }

  .featured-item--reverse .featured-image {
    order: 0;
  }

  .featured-item--reverse .featured-text {
    order: 0;
  }

  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portal-card {
    padding: 48px 28px;
    border-radius: 22px;
  }

  .portal-title {
    font-size: 2.4rem;
  }

  .portal-desc {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .portal-btn {
    padding: 13px 30px;
    font-size: 0.9rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-info {
    order: 2;
  }

  .contact-qr {
    order: 1;
  }

  .qr-card {
    padding: 36px 28px;
    max-width: 320px;
  }

  .qr-image-wrapper {
    width: 180px;
    height: 180px;
  }

  .contact-info h3 {
    font-size: 1.75rem;
  }

  .social-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .lightbox-prev {
    left: 8px;
    font-size: 1.5rem;
  }

  .lightbox-next {
    right: 8px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .audio-toggle {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .audio-icon {
    width: 18px;
    height: 18px;
  }
}
