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

/* ========== Theme Variables ========== */
/* Default = Dark + Gold */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --bg-4: #282828;
  --text: #f0f0f0;
  --text-dim: #888;
  --text-mid: #aaa;
  --accent: #c9a96e;
  --accent-glow: rgba(201, 169, 110, 0.4);
  --white: #fff;
  --border: rgba(255,255,255,0.08);
  --hero-overlay-start: rgba(10,10,10,0.4);
  --hero-overlay-mid: rgba(10,10,10,0.6);
  --hero-overlay-end: rgba(10,10,10,0.95);
  --nav-scrolled-bg: rgba(10,10,10,0.92);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark Theme - Color variants */
[data-theme="dark"][data-color="crimson"] { --accent: #e05263; --accent-glow: rgba(224, 82, 99, 0.4); }
[data-theme="dark"][data-color="cyan"] { --accent: #4ecdc4; --accent-glow: rgba(78, 205, 196, 0.4); }
[data-theme="dark"][data-color="violet"] { --accent: #a78bfa; --accent-glow: rgba(167, 139, 250, 0.4); }

/* Light Theme */
[data-theme="light"] {
  --bg: #f8f8f8;
  --bg-2: #ffffff;
  --bg-3: #f0f0f0;
  --bg-4: #e8e8e8;
  --text: #1a1a1a;
  --text-dim: #888;
  --text-mid: #666;
  --white: #1a1a1a;
  --border: rgba(0,0,0,0.08);
  --hero-overlay-start: rgba(0,0,0,0.3);
  --hero-overlay-mid: rgba(0,0,0,0.5);
  --hero-overlay-end: rgba(0,0,0,0.85);
  --nav-scrolled-bg: rgba(255,255,255,0.92);
}
[data-theme="light"][data-color="gold"] { --accent: #b8860b; --accent-glow: rgba(184, 134, 11, 0.35); }
[data-theme="light"][data-color="ocean"] { --accent: #2563eb; --accent-glow: rgba(37, 99, 235, 0.35); }
[data-theme="light"][data-color="forest"] { --accent: #059669; --accent-glow: rgba(5, 150, 105, 0.35); }

/* Warm Theme */
[data-theme="warm"] {
  --bg: #f5f0e8;
  --bg-2: #ede7db;
  --bg-3: #e5dcc8;
  --bg-4: #d8ccba;
  --text: #2c2416;
  --text-dim: #8a7e6b;
  --text-mid: #6b5e4c;
  --white: #2c2416;
  --border: rgba(44,36,22,0.08);
  --hero-overlay-start: rgba(44,36,22,0.3);
  --hero-overlay-mid: rgba(44,36,22,0.5);
  --hero-overlay-end: rgba(44,36,22,0.85);
  --nav-scrolled-bg: rgba(245,240,232,0.95);
}
[data-theme="warm"][data-color="caramel"] { --accent: #b45309; --accent-glow: rgba(180, 83, 9, 0.35); }
[data-theme="warm"][data-color="sunset"] { --accent: #ea580c; --accent-glow: rgba(234, 88, 12, 0.35); }
[data-theme="warm"][data-color="rose"] { --accent: #be185d; --accent-glow: rgba(190, 24, 93, 0.35); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

@media (max-width: 768px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ========== Preloader ========== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-text {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  animation: pulse 1.5s ease infinite;
}
.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%;
  background: var(--accent);
  animation: loading 1.5s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ========== Cursor ========== */
.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  transition: width 0.3s var(--transition), height 0.3s var(--transition), border-color 0.3s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); background: var(--accent-glow); }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* ========== Progress Bar ========== */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--accent);
  z-index: 9997; width: 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ========== Navbar ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s var(--transition);
}
.navbar.scrolled {
  padding: 16px 0;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: 1px;
}
.logo-text { color: var(--text); }
.logo-dot { color: var(--accent); }
.logo-cc { color: var(--text-dim); font-size: 18px; }
.nav-menu { display: flex; gap: 40px; list-style: none; }
.nav-link {
  font-size: 14px; font-weight: 500; letter-spacing: 1px;
  color: var(--text-mid); position: relative;
  transition: color 0.3s; text-transform: uppercase;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ========== Hero ========== */
.hero {
  height: 100vh; min-height: 600px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80') center/cover;
  transform: scale(1.1);
  animation: heroZoom 20s ease infinite alternate;
  filter: brightness(0.5);
}
@keyframes heroZoom { 0% { transform: scale(1.1); } 100% { transform: scale(1.25); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 50%, var(--hero-overlay-end) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.hero-tag {
  font-size: 13px; letter-spacing: 4px; color: var(--accent);
  font-weight: 600; margin-bottom: 24px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(48px, 10vw, 120px);
  font-weight: 900; line-height: 1; margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(16px, 2vw, 22px); color: var(--text-mid);
  letter-spacing: 2px; font-weight: 300;
}
.hero-scroll {
  position: relative; bottom: auto; left: auto;
  transform: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 3;
  margin-top: 48px;
}
.hero-scroll span { font-size: 11px; letter-spacing: 3px; color: var(--text-dim); }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(180deg, var(--accent), transparent); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-social {
  position: absolute; right: 40px; bottom: 40px; z-index: 2;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-social a {
  font-size: 12px; letter-spacing: 1px; color: var(--text-dim);
  transition: color 0.3s; writing-mode: vertical-rl;
}
.hero-social a:hover { color: var(--accent); }

/* ========== Section Header ========== */
.section-header {
  text-align: center; margin-bottom: 80px;
  position: relative;
}
.section-num {
  display: block; font-family: var(--font-display);
  font-size: 14px; color: var(--accent);
  letter-spacing: 3px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; letter-spacing: 2px;
}
.section-line {
  width: 60px; height: 2px; background: var(--accent);
  margin: 20px auto 0;
}

/* ========== About ========== */
.about { padding: 120px 0; background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: center; margin-bottom: 100px;
}
.about-image { position: relative; }
.about-img-wrapper {
  position: relative; width: 100%; aspect-ratio: 3/4;
  overflow: hidden; border-radius: 4px;
  background: var(--bg-3);
}
.about-img-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.about-img-wrapper:hover img { transform: scale(1.05); }
.about-img-wrapper.no-img img { display: none; }
.about-img-placeholder {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 120px;
  color: var(--accent); background: var(--bg-3);
}
.about-img-wrapper.no-img .about-img-placeholder { display: flex; }
.about-exp {
  position: absolute; bottom: -30px; right: -30px;
  background: var(--accent); color: var(--bg);
  padding: 24px 32px; text-align: center;
}
.exp-num { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 900; }
.exp-label { font-size: 12px; letter-spacing: 1px; font-weight: 600; }
.about-text h3 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.about-role { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 24px; text-transform: uppercase; }
.about-bio { color: var(--text-mid); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.about-skills { margin-bottom: 32px; }
.skill-item { margin-bottom: 20px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 14px; font-weight: 500; }
.skill-val { font-size: 14px; color: var(--accent); }
.skill-bar { height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--accent); width: 0; transition: width 1.2s var(--transition); }
.about-info { display: flex; gap: 40px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.info-value { font-size: 15px; color: var(--text); }

/* ========== Stats ========== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; padding: 60px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: var(--accent); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; display: block; }

/* ========== Albums ========== */
.works { padding: 120px 0; background: var(--bg-2); }

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

.album-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-3);
  cursor: pointer;
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
  border: 1px solid var(--border);
}
.album-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(201,169,110,0.2);
}

.album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}
.album-item:hover .album-cover img {
  transform: scale(1.08);
}

.album-cover-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.album-cover-placeholder span {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
}
.album-cover.no-cover .album-cover-placeholder { display: flex; }
.album-cover.no-cover img { display: none; }

.album-info {
  padding: 24px;
}
.album-info-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.album-item:hover .album-info-title {
  color: var(--accent);
}
.album-info-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-info-meta {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.albums-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}
.albums-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.albums-empty h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

/* ========== Contact ========== */
.contact { padding: 120px 0; background: var(--bg); }
.contact-content { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-heading {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.3; margin-bottom: 24px;
}
.contact-text { color: var(--text-mid); font-size: 16px; margin-bottom: 60px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  padding: 36px 24px; border: 1px solid var(--border);
  border-radius: 4px; text-align: center;
  transition: all 0.4s var(--transition); display: flex;
  flex-direction: column; align-items: center; gap: 8px;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-8px); background: var(--bg-2); }
.card-icon { font-size: 32px; color: var(--accent); margin-bottom: 8px; }
.card-label { font-size: 12px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; }
.card-value { font-size: 15px; color: var(--text); }

/* ========== Footer ========== */
.footer { background: var(--bg-2); padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-content {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.footer-tagline { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 13px; color: var(--text-mid); transition: color 0.3s; letter-spacing: 1px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.footer-icp {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12px; color: var(--text-dim);
}
.footer-icp a {
  color: var(--text-dim); transition: color 0.3s;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.footer-icp a:hover { color: var(--accent); }
.footer-icp .icp-separator { color: var(--border); }

/* ========== About Avatar Overlay ========== */
/* Base: hide overlay & letter when no avatar */
.about-img-overlay { display: none; }
.about-img-letter { display: none; }
.about-img-wrapper.has-avatar .about-img-overlay {
  display: block;
  position: absolute; inset: 0;
  background: var(--bg-3);
  opacity: 0.2;
  transition: opacity 0.6s var(--transition);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}
.about-img-wrapper.has-avatar .about-img-letter {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0;
  font-family: var(--font-display); font-size: 120px;
  color: var(--accent); opacity: 0.5;
  transition: opacity 0.6s var(--transition);
  pointer-events: none;
  z-index: 2;
}
.about-img-wrapper.has-avatar img {
  filter: blur(2px);
  transition: filter 0.6s var(--transition), transform 0.6s var(--transition);
}
.about-img-wrapper.has-avatar:hover .about-img-overlay { opacity: 0; }
.about-img-wrapper.has-avatar:hover .about-img-letter { opacity: 0; }
.about-img-wrapper.has-avatar:hover img { filter: blur(0); }

/* ========== Lightbox ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(16px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s;
  padding: 60px 80px;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-inner {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content {
  position: relative;
  text-align: center;
  background: var(--bg-2, #121212);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  max-width: min(900px, 85vw);
  display: flex;
  flex-direction: column;
}
.lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 280px);
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.lightbox-info {
  padding: 20px 16px 8px;
  text-align: center;
}
.lightbox-info h4 {
  font-family: var(--font-display); font-size: 22px; margin-bottom: 6px;
  line-height: 1.3;
}
.lightbox-info p {
  color: var(--text-mid); margin-bottom: 8px;
  font-size: 14px; line-height: 1.6;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.lightbox-info span {
  color: var(--accent); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
}

/* Dreamy ethereal lightbox buttons - feathered light/shadow effect */
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  cursor: pointer; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: transparent;
  font-size: 0;
  backdrop-filter: blur(0px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.35;
}
/* Feathered edge glow indicator - prev (left chevron) */
.lightbox-prev::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-left: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  border-radius: 2px;
  filter: blur(0.5px);
  box-shadow:
    -4px 4px 20px rgba(255,255,255,0.15),
    -8px 8px 40px rgba(255,255,255,0.08),
    -12px 12px 60px rgba(255,255,255,0.04);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Feathered edge glow indicator - next (right chevron) */
.lightbox-next::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  border-radius: 2px;
  filter: blur(0.5px);
  box-shadow:
    4px -4px 20px rgba(255,255,255,0.15),
    8px -8px 40px rgba(255,255,255,0.08),
    12px -12px 60px rgba(255,255,255,0.04);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Feathered edge glow indicator - close (X) */
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  background:
    linear-gradient(135deg, transparent 44%, rgba(255,255,255,0.4) 44%, rgba(255,255,255,0.4) 56%, transparent 56%),
    linear-gradient(45deg, transparent 44%, rgba(255,255,255,0.4) 44%, rgba(255,255,255,0.4) 56%, transparent 56%);
  border-radius: 2px;
  filter: blur(0.5px);
  box-shadow:
    0 0 20px rgba(255,255,255,0.15),
    0 0 40px rgba(255,255,255,0.08);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lightbox-close::before,
.lightbox-prev::before,
.lightbox-next::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  transition: all 0.6s;
  opacity: 0;
}
.lightbox-close {
  top: 24px; right: 28px;
}
.lightbox-prev {
  left: 28px; top: 50%; transform: translateY(-50%);
}
.lightbox-next {
  right: 28px; top: 50%; transform: translateY(-50%);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  opacity: 1;
  background: transparent;
  border: none;
  box-shadow: none;
}
.lightbox-prev:hover::after {
  border-color: rgba(255,255,255,0.9);
  box-shadow:
    -4px 4px 24px rgba(255,255,255,0.5),
    -8px 8px 48px rgba(255,255,255,0.3),
    -12px 12px 80px var(--accent-glow, rgba(201,169,110,0.3));
}
.lightbox-next:hover::after {
  border-color: rgba(255,255,255,0.9);
  box-shadow:
    4px -4px 24px rgba(255,255,255,0.5),
    8px -8px 48px rgba(255,255,255,0.3),
    12px -12px 80px var(--accent-glow, rgba(201,169,110,0.3));
}
.lightbox-close:hover::after {
  background:
    linear-gradient(135deg, transparent 44%, rgba(255,255,255,0.9) 44%, rgba(255,255,255,0.9) 56%, transparent 56%),
    linear-gradient(45deg, transparent 44%, rgba(255,255,255,0.9) 44%, rgba(255,255,255,0.9) 56%, transparent 56%);
  box-shadow:
    0 0 24px rgba(255,255,255,0.5),
    0 0 48px rgba(255,255,255,0.3),
    0 0 80px var(--accent-glow, rgba(201,169,110,0.3));
}
.lightbox-close:hover::before,
.lightbox-prev:hover::before,
.lightbox-next:hover::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.lightbox-prev:active, .lightbox-next:active, .lightbox-close:active {
  opacity: 0.5;
}
.lightbox-close:active {
  transform: scale(0.92);
}
.lightbox-prev:active {
  transform: translateY(-50%) scale(0.92);
}
.lightbox-next:active {
  transform: translateY(-50%) scale(0.92);
}

/* ========== Animations ========== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--transition), transform 0.8s var(--transition); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s var(--transition), transform 0.8s var(--transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-image { max-width: 400px; margin: 0 auto; text-align: center; }
  .about-img-wrapper { width: 100%; aspect-ratio: 3/4; overflow: hidden; }
  .about-exp {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: 20px;
    padding: 16px 28px;
  }
  .exp-num { font-size: 32px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-container { padding: 0 24px; }
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--bg); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 40px; transition: right 0.4s var(--transition);
  }
  .nav-menu.active { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }
  .hero-social { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .lightbox { padding: 60px 16px; }
  .lightbox-content { padding: 8px; border-radius: 8px; }
  .lightbox-content img { max-height: calc(100vh - 240px); }
  .lightbox-info { padding: 14px 8px 4px; }
  .lightbox-info h4 { font-size: 18px; }
  .lightbox-info p { font-size: 13px; }
  .lightbox-close, .lightbox-prev, .lightbox-next {
    width: 48px; height: 48px;
  }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev {
    left: 50%; bottom: 16px; top: auto;
    transform: translateX(-70px);
  }
  .lightbox-next {
    right: 50%; bottom: 16px; top: auto;
    transform: translateX(70px);
  }
  .lightbox-prev::after { width: 20px; height: 20px; }
  .lightbox-next::after { width: 20px; height: 20px; }
  .lightbox-prev:hover {
    transform: translateX(-70px) scale(1.1);
  }
  .lightbox-next:hover {
    transform: translateX(70px) scale(1.1);
  }
  .lightbox-prev:active {
    transform: translateX(-70px) scale(0.9);
  }
  .lightbox-next:active {
    transform: translateX(70px) scale(0.9);
  }
}

/* ============================================================
   THEME-SPECIFIC STYLES — 颠覆性视觉差异
   ============================================================ */

/* ========== Dark Classic (现有奢华风，增强特效) ========== */
[data-theme="dark"] .preloader-bar { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .hero-title {
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .album-item:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(201,169,110,0.2);
}

/* ========== Light Minimal (极简画廊风) ========== */
[data-theme="light"] body { cursor: auto; }
[data-theme="light"] .cursor-dot,
[data-theme="light"] .cursor-ring { display: none !important; }

[data-theme="light"] .navbar { padding: 20px 0; }
[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav-link {
  font-weight: 400;
  letter-spacing: 2px;
}
[data-theme="light"] .nav-link::after {
  height: 1px;
  background: var(--text);
}

[data-theme="light"] .hero-title {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #fff;
  font-weight: 200;
  letter-spacing: 8px;
  font-size: clamp(40px, 9vw, 100px);
}
[data-theme="light"] .hero-tag {
  font-weight: 400;
  letter-spacing: 6px;
}
[data-theme="light"] .hero-tagline {
  font-weight: 300;
  letter-spacing: 4px;
}

[data-theme="light"] .about { padding: 160px 0; }
[data-theme="light"] .about-grid { gap: 120px; }
[data-theme="light"] .about-img-wrapper {
  border-radius: 0;
  box-shadow: none;
}
[data-theme="light"] .about-exp {
  position: relative;
  bottom: auto;
  right: auto;
  margin: 24px 0 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 20px 28px;
  display: inline-block;
}
[data-theme="light"] .exp-num {
  font-size: 42px;
  font-weight: 200;
  color: var(--text);
}
[data-theme="light"] .exp-label {
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 3px;
}
[data-theme="light"] .about-text h3 {
  font-weight: 300;
  letter-spacing: 2px;
}
[data-theme="light"] .about-role {
  font-weight: 400;
  letter-spacing: 4px;
}
[data-theme="light"] .about-bio {
  font-weight: 300;
  line-height: 2;
}
[data-theme="light"] .skill-bar {
  height: 1px;
  border-radius: 0;
}
[data-theme="light"] .about-info {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

[data-theme="light"] .stats-grid {
  border: none;
  gap: 80px;
  padding: 80px 0;
}
[data-theme="light"] .stat-num {
  font-weight: 200;
  letter-spacing: 2px;
}
[data-theme="light"] .stat-label {
  font-weight: 400;
  letter-spacing: 3px;
}

[data-theme="light"] .works { padding: 160px 0; }
[data-theme="light"] .works-grid {
  gap: 40px;
}
[data-theme="light"] .album-item {
  border: none;
  border-radius: 0;
  background: transparent;
}
[data-theme="light"] .album-item:hover {
  transform: none;
  box-shadow: none;
}
[data-theme="light"] .album-cover {
  border-radius: 0;
  overflow: hidden;
}
[data-theme="light"] .album-info {
  padding: 20px 0 0;
  text-align: center;
}
[data-theme="light"] .album-info-title {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
[data-theme="light"] .album-info-desc { display: none; }
[data-theme="light"] .album-info-meta {
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 11px;
}

[data-theme="light"] .contact { padding: 160px 0; }
[data-theme="light"] .contact-heading {
  font-weight: 300;
  letter-spacing: 2px;
}
[data-theme="light"] .contact-text {
  font-weight: 300;
}
[data-theme="light"] .contact-cards {
  gap: 0;
}
[data-theme="light"] .contact-card {
  border-radius: 0;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
[data-theme="light"] .contact-card:hover {
  transform: none;
  background: transparent;
  border-color: var(--accent);
}
[data-theme="light"] .card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
[data-theme="light"] .card-label {
  letter-spacing: 4px;
  font-weight: 400;
}
[data-theme="light"] .card-value {
  font-weight: 300;
}

[data-theme="light"] .footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
[data-theme="light"] .footer-logo {
  font-weight: 300;
}

/* ========== Warm Vintage (胶片/拍立得风) ========== */
[data-theme="warm"] body {
  cursor: auto;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(44,36,22,0.015) 3px, rgba(44,36,22,0.015) 6px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(44,36,22,0.015) 3px, rgba(44,36,22,0.015) 6px);
}
[data-theme="warm"] .cursor-dot,
[data-theme="warm"] .cursor-ring { display: none !important; }

[data-theme="warm"] .preloader-text {
  font-style: italic;
  letter-spacing: 2px;
}

[data-theme="warm"] .navbar.scrolled {
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(16px);
}
[data-theme="warm"] .nav-link {
  font-weight: 500;
  letter-spacing: 1.5px;
}

[data-theme="warm"] .hero-title {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  font-weight: 700;
  letter-spacing: 1px;
}

[data-theme="warm"] .about { padding: 100px 0; }
[data-theme="warm"] .about-img-wrapper {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44,36,22,0.15);
}
[data-theme="warm"] .about-exp {
  border-radius: 12px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 20px rgba(44,36,22,0.2);
  padding: 20px 28px;
}
[data-theme="warm"] .exp-num {
  font-size: 40px;
}
[data-theme="warm"] .exp-label {
  font-weight: 500;
}
[data-theme="warm"] .about-text h3 {
  font-style: italic;
  letter-spacing: 1px;
}
[data-theme="warm"] .about-role {
  font-style: italic;
  letter-spacing: 1px;
  text-transform: none;
}
[data-theme="warm"] .about-bio {
  line-height: 2;
  font-weight: 400;
}
[data-theme="warm"] .skill-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-4);
}
[data-theme="warm"] .skill-fill {
  border-radius: 3px;
}

[data-theme="warm"] .stats-grid {
  border-style: dashed;
  border-color: var(--border);
  gap: 30px;
}
[data-theme="warm"] .stat-item {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 32px 16px;
}
[data-theme="warm"] .stat-num {
  font-size: clamp(32px, 4vw, 48px);
}

[data-theme="warm"] .works { padding: 100px 0; }
[data-theme="warm"] .works-grid {
  gap: 48px;
}
[data-theme="warm"] .album-item {
  border-radius: 16px;
  background: #fff;
  border: 10px solid #fff;
  border-bottom-width: 56px;
  box-shadow: 0 6px 24px rgba(44,36,22,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
[data-theme="warm"] .album-item:hover {
  transform: rotate(1deg) translateY(-6px);
  box-shadow: 0 16px 48px rgba(44,36,22,0.2);
}
[data-theme="warm"] .album-cover {
  border-radius: 8px;
}
[data-theme="warm"] .album-info {
  position: absolute;
  bottom: -48px;
  left: 0; right: 0;
  text-align: center;
  padding: 0;
}
[data-theme="warm"] .album-info-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 0;
}
[data-theme="warm"] .album-info-desc {
  display: none;
}
[data-theme="warm"] .album-info-meta {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
}

[data-theme="warm"] .contact { padding: 100px 0; }
[data-theme="warm"] .contact-heading {
  font-style: italic;
}
[data-theme="warm"] .contact-cards {
  gap: 24px;
}
[data-theme="warm"] .contact-card {
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(44,36,22,0.1);
  padding: 40px 24px;
}
[data-theme="warm"] .contact-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 36px rgba(44,36,22,0.18);
  border-color: transparent;
}
[data-theme="warm"] .card-icon {
  font-size: 28px;
}
[data-theme="warm"] .card-label {
  letter-spacing: 2px;
}

[data-theme="warm"] .footer {
  background: transparent;
  border-top: 2px dashed var(--border);
}
[data-theme="warm"] .footer-logo {
  font-style: italic;
}

/* ========== Theme Responsive Tweaks ========== */
@media (max-width: 968px) {
  [data-theme="light"] .about-grid { gap: 80px; }
  [data-theme="light"] .stats-grid { gap: 40px; }
  [data-theme="light"] .works-grid { gap: 24px; }

  [data-theme="warm"] .about-exp {
    transform: rotate(-2deg);
  }
  [data-theme="warm"] .works-grid { gap: 60px; margin-bottom: 40px; }
  [data-theme="warm"] .album-item {
    border-bottom-width: 48px;
  }
  [data-theme="warm"] .album-info {
    bottom: -44px;
  }
}

@media (max-width: 768px) {
  [data-theme="light"] .about { padding: 100px 0; }
  [data-theme="light"] .works { padding: 100px 0; }
  [data-theme="light"] .contact { padding: 100px 0; }

  [data-theme="warm"] .works-grid { gap: 50px; }
  [data-theme="warm"] .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  [data-theme="warm"] .stat-item {
    padding: 24px 12px;
    border-radius: 12px;
  }
}

/* ============================================================
   THEME OPTIONS — 风格专属设置条件样式
   ============================================================ */

/* ---- Dark Classic options ---- */
body[data-hero-animation="0"] .hero-bg {
  animation: none;
  transform: scale(1.1);
}
body[data-cursor-effect="0"] .cursor-dot,
body[data-cursor-effect="0"] .cursor-ring {
  display: none !important;
}
body[data-cursor-effect="0"] {
  cursor: auto;
}

/* ---- Light Minimal options ---- */
[data-theme="light"] body[data-show-dividers="0"] .contact-card {
  border: none;
  padding: 32px 24px;
}
[data-theme="light"] body[data-show-dividers="0"] .about-info {
  border: none;
  padding-top: 0;
}
[data-theme="light"] body[data-show-dividers="0"] .stats-grid {
  gap: 60px;
}
body[data-centered-nav="1"] .nav-container {
  justify-content: center;
}
body[data-centered-nav="1"] .nav-logo {
  display: none;
}
body[data-centered-nav="1"] .nav-menu {
  margin: 0 auto;
}

/* ---- Warm Vintage options ---- */
[data-theme="warm"] body[data-paper-texture="0"] {
  background-image: none;
}
[data-theme="warm"] body[data-polaroid-style="0"] .album-item {
  border: 1px solid var(--border);
  border-bottom-width: 1px;
  border-radius: 8px;
  background: var(--bg-3);
  box-shadow: none;
}
[data-theme="warm"] body[data-polaroid-style="0"] .album-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
[data-theme="warm"] body[data-polaroid-style="0"] .album-cover {
  border-radius: 8px 8px 0 0;
}
[data-theme="warm"] body[data-polaroid-style="0"] .album-info {
  position: static;
  padding: 20px 24px;
  text-align: left;
}
[data-theme="warm"] body[data-polaroid-style="0"] .album-info-title {
  font-style: normal;
  font-size: 18px;
}
