/* ═════════════════════════════════════════════════════════
   SPYS TUNGARAT PORTFOLIO — 2026
   Modern Three.js Design System
   ═════════════════════════════════════════════════════════ */

:root {
  --black: #000;
  --charcoal: #0a0712;
  --deep-purple: #1a0f2e;
  --primary-purple: #2d1b4e;
  --gold: #ffd699;
  --cream: #fff5eb;
  --silver: #c9c4d9;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 214, 153, 0.1);
  --glow-gold: 0 0 40px rgba(255, 214, 153, 0.3);
  --transition-smooth: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: linear-gradient(180deg, #000 0%, var(--charcoal) 50%, var(--deep-purple) 100%);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--gold); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

/* ─── THREE.JS CANVAS ─── */
#threejs-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR ─── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(0, 0, 0);
  transition: transform 0.12s ease-out;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: transform 0.2s var(--transition-smooth), opacity 0.2s;
  opacity: 0.6;
}

.custom-cursor.hover .cursor-ring {
  transform: scale(1.5);
  opacity: 1;
}

@media (pointer: coarse) { .custom-cursor { display: none; } }

/* ─── LOADER ─── */
.site-loader {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-book {
  position: relative;
  width: 60px;
  height: 40px;
  transform-style: preserve-3d;
  animation: bookFlip 2s ease-in-out infinite;
}

.loader-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--glass-bg), transparent);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  transform-origin: left;
}

.loader-page:nth-child(1) { animation: pageFlip1 2s ease-in-out infinite; }
.loader-page:nth-child(2) { animation: pageFlip2 2s ease-in-out infinite 0.2s; }
.loader-page:nth-child(3) { animation: pageFlip3 2s ease-in-out infinite 0.4s; }

@keyframes bookFlip { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(-10deg); } }
@keyframes pageFlip1 { 0%, 40%, 100% { transform: rotateY(0); } 20% { transform: rotateY(-180deg); } }
@keyframes pageFlip2 { 0%, 60%, 100% { transform: rotateY(0); } 40% { transform: rotateY(-180deg); } }
@keyframes pageFlip3 { 0%, 80%, 100% { transform: rotateY(0); } 60% { transform: rotateY(-180deg); } }

.loader-text {
  margin-top: 80px;
  font-size: 0.9rem;
  color: var(--silver);
  letter-spacing: 0.1em;
}

.loader-dots::after {
  content: '...';
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }

/* ─── AMBIENT ORBS ─── */
.ambient-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

.orb-1 { top: -200px; left: -200px; background: radial-gradient(circle, #6e3fff, transparent); animation-delay: 0s; }
.orb-2 { bottom: -200px; right: -200px; background: radial-gradient(circle, #ff8c42, transparent); animation-delay: 7s; }
.orb-3 { top: 50%; left: 50%; background: radial-gradient(circle, #ffd699, transparent); animation-delay: 14s; }

@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(50px, -50px); } 66% { transform: translate(-50px, 50px); } }

/* ─── MAIN CONTAINER ─── */
.home-cinematic {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─── HERO STAGE ─── */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeSlideDown 1s var(--transition-smooth) 0.2s backwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.95); } }

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 0.95;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line-1 { animation: fadeSlideUp 1s var(--transition-smooth) 0.4s backwards; }
.line-2 { animation: fadeSlideUp 1s var(--transition-smooth) 0.6s backwards; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--silver);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 1s var(--transition-smooth) 0.8s backwards;
}

.hero-desc {
  max-width: 600px;
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.7;
  margin: 0 auto 3rem;
  animation: fadeSlideUp 1s var(--transition-smooth) 1s backwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.2s backwards;
}

@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── BUTTONS ─── */
.btn-primary, .btn-ghost {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  border: none;
  transition: all 0.3s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffb870 100%);
  color: var(--charcoal);
  box-shadow: 0 8px 24px rgba(255, 214, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 214, 153, 0.5);
}

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

.btn-ghost:hover {
  background: var(--glass-bg);
  border-color: var(--gold);
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver);
  opacity: 0.6;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.5s backwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollLineMove 2s ease-in-out infinite;
}

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

/* ─── LIBRARY SCENE (Book) ─── */
.library-scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 3rem;
}

.scene-book-wrap {
  position: relative;
  perspective: 2000px;
}

.scene-book-closed {
  width: 280px;
  height: 360px;
  background: linear-gradient(135deg, #2d1b1f 0%, #1a0f14 100%);
  border-radius: 8px 12px 12px 8px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s;
  cursor: pointer;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 214, 153, 0.1);
}

.scene-book-closed:hover {
  transform: translateY(-10px) rotateY(-5deg) rotateX(2deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 214, 153, 0.2),
    inset 0 0 0 2px rgba(255, 214, 153, 0.3);
}

.book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.book-cover-emboss {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.book-initials {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(255, 214, 153, 0.5);
}

.book-year {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, #1a0f14 0%, #2d1b1f 100%);
  border-radius: 8px 0 0 8px;
}

.book-pages {
  position: absolute;
  right: 4px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  border-radius: 0 4px 4px 0;
}

.book-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 214, 153, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.scene-book-closed:hover .book-glow { opacity: 1; }

.book-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent);
  filter: blur(15px);
}

/* Scene Label */
.scene-label {
  max-width: 500px;
}

.scene-label-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.scene-label-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--cream);
}

.scene-open-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
}

.scene-open-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* Chapter Nav */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.chapter-nav-item {
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--silver);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.chapter-nav-item:hover,
.chapter-nav-item.is-active {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

/* ─── FOLIO (Book Interior) ─── */
.folio-shell {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.book-is-open .folio-shell {
  opacity: 1;
  visibility: visible;
}

.folio-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: linear-gradient(135deg, #1a0f14 0%, #2d1b1f 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.4s var(--transition-smooth);
}

.book-is-open .folio-book {
  transform: scale(1);
}

.folio-page {
  padding: 3rem;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.folio-left {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  border-right: 1px solid rgba(255, 214, 153, 0.1);
}

.folio-right {
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.02));
}

.folio-chapter-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.folio-chapter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.folio-chapter-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(255, 214, 153, 0.3);
}

.folio-index {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.folio-index-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.folio-index-item {
  text-align: left;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.folio-index-item:hover,
.folio-index-item.is-active {
  background: var(--glass-bg);
  border-color: var(--gold);
  color: var(--gold);
}

.folio-edition-tag {
  font-size: 0.7rem;
  color: var(--silver);
  opacity: 0.5;
  margin-top: auto;
}

/* Right Page Content */
.folio-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.folio-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.folio-intro {
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.folio-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.folio-notes li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--silver);
  font-size: 0.9rem;
}

.folio-notes li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.folio-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.folio-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 214, 153, 0.1);
}

.folio-link-copy {
  font-size: 0.85rem;
  color: var(--silver);
  margin-top: 1rem;
}

.folio-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.folio-shelf-link {
  font-size: 0.85rem;
  color: var(--silver);
  transition: color 0.3s;
}

.folio-shelf-link:hover { color: var(--gold); }

.folio-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.folio-close:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: rotate(90deg);
}

/* ─── FOOTER ─── */
.home-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 214, 153, 0.1);
}

.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-weight: 600;
  color: var(--gold);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--silver);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--silver);
  opacity: 0.5;
}

/* —— LANGUAGE TOGGLE —— */
.lang-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
}

.lang-option {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.lang-option.active {
  opacity: 1;
  color: var(--primary-purple);
}

.lang-divider {
  opacity: 0.3;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .folio-book { grid-template-columns: 1fr; }
  .folio-left { border-right: none; border-bottom: 1px solid rgba(255, 214, 153, 0.1); }
  .folio-page { padding: 2rem; min-height: auto; }
  .chapter-nav { flex-direction: column; }
  .home-footer-inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   SUB-PAGE SYSTEM — Dark Academia Chapter Design
   Für: about, hobbys, kontakt, projekte, skills
═══════════════════════════════════════════════════════════ */

body.page-sub {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #000 0%, var(--charcoal) 45%, var(--deep-purple) 100%);
  overflow-x: hidden;
}

/* Ambient orbs reuse on subpages */
body.page-sub::before,
body.page-sub::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
body.page-sub::before {
  width: 500px; height: 500px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, #6e3fff, transparent);
}
body.page-sub::after {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, #ffd699, transparent);
}

/* ─── Sub Navbar ─── */
body.page-sub .navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
body.page-sub .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  position: relative;
}
body.page-sub .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(255, 214, 153, 0.4);
}
body.page-sub .nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
body.page-sub .nav-link {
  font-size: 0.9rem;
  color: var(--silver);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}
body.page-sub .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--transition-smooth);
}
body.page-sub .nav-link:hover,
body.page-sub .nav-link.active { color: var(--gold); opacity: 1; }
body.page-sub .nav-link:hover::after,
body.page-sub .nav-link.active::after { width: 100%; }
body.page-sub .nav-dropdown { position: relative; }
body.page-sub .nav-dropdown-toggle {
  background: none; border: none;
  font-size: 0.9rem; color: var(--silver);
}
body.page-sub .nav-dropdown-toggle:hover { color: var(--gold); }
body.page-sub .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(135deg, #1a0f14 0%, #2d1b1f 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--transition-smooth);
}
body.page-sub .nav-dropdown-menu[aria-hidden="false"] {
  opacity: 1; visibility: visible; transform: translateY(0);
}
body.page-sub .nav-dropdown-item {
  background: none; border: none; text-align: left;
  padding: 0.6rem 0.8rem; border-radius: 8px;
  color: var(--silver); font-size: 0.85rem;
  transition: all 0.2s;
}
body.page-sub .nav-dropdown-item:hover {
  background: var(--glass-bg); color: var(--gold);
}
body.page-sub .lang-switcher { display: flex; gap: 0.4rem; }
body.page-sub .lang-btn {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--silver); font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: 6px; transition: all 0.2s;
}
body.page-sub .lang-btn:hover,
body.page-sub .lang-btn.active {
  border-color: var(--gold); color: var(--gold);
}
body.page-sub .hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
body.page-sub .hamburger span {
  width: 24px; height: 2px; background: var(--gold);
}
@media (max-width: 900px) {
  body.page-sub .hamburger { display: flex; }
  body.page-sub .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(10,7,18,0.97);
    padding: 1.5rem 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    display: none;
  }
  body.page-sub .nav-menu.is-open { display: flex; }
}

/* ─── Page Hero (Chapter Opener) ─── */
body.page-sub .page-hero {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
body.page-sub .page-hero::before {
  content: '◆';
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}
body.page-sub .page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--cream);
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
}
body.page-sub .page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto;
}
body.page-sub .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
body.page-sub .section-title,
body.page-sub .subsection-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
body.page-sub .section-subtitle {
  color: var(--silver);
  margin-bottom: 2.5rem;
}

/* ─── About Page ─── */
body.page-about .about { padding: 2rem 0 5rem; position: relative; z-index: 1; }
body.page-about .about-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start;
}
body.page-about .about-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 2rem; text-align: center;
  backdrop-filter: blur(20px);
}
body.page-about .about-photo-wrap { position: relative; display: inline-block; margin-bottom: 1.2rem; }
body.page-about .about-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: var(--glow-gold);
}
body.page-about .about-status-dot {
  position: absolute; bottom: 6px; right: 6px; width: 16px; height: 16px;
  background: #4ade80; border: 3px solid var(--charcoal); border-radius: 50%;
}
body.page-about .about-name { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.4rem; }
body.page-about .about-role { color: var(--silver); font-size: 0.9rem; margin-top: 0.3rem; }
body.page-about .about-divider { width: 60%; height: 1px; background: var(--glass-border); margin: 1.2rem auto; }
body.page-about .about-list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 0.7rem; }
body.page-about .about-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--silver); font-size: 0.9rem; }
body.page-about .about-list-icon { color: var(--gold); }
body.page-about .about-text p { color: var(--silver); line-height: 1.8; margin-bottom: 1.2rem; }
body.page-about .about-stats { display: flex; gap: 2rem; margin: 2rem 0; }
body.page-about .about-stat { text-align: center; }
body.page-about .about-stat-value {
  display: block; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold);
}
body.page-about .about-stat-label { font-size: 0.8rem; color: var(--silver); }
body.page-about .about-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
body.page-sub .btn { padding: 0.9rem 1.8rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s var(--transition-smooth); border: none; }
body.page-sub .btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #ffb870 100%); color: var(--charcoal); box-shadow: 0 8px 24px rgba(255,214,153,0.3); }
body.page-sub .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,214,153,0.5); }
body.page-sub .btn-secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
body.page-sub .btn-secondary:hover { background: var(--glass-gold); }

body.page-sub .info-cards { padding: 3rem 0 5rem; position: relative; z-index: 1; }
body.page-sub .cards-grid, body.page-sub .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
body.page-sub .project-card, body.page-sub .info-card, body.page-sub .skill-card, body.page-sub .hobby-card, body.page-sub .achievement-card, body.page-sub .stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
  overflow: hidden; transition: all 0.35s var(--transition-smooth); position: relative;
}
body.page-sub .project-card:hover, body.page-sub .info-card:hover, body.page-sub .skill-card:hover, body.page-sub .hobby-card:hover, body.page-sub .achievement-card:hover {
  transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--glow-gold);
}
body.page-sub .project-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
body.page-sub .project-card h4, body.page-sub .info-card h3, body.page-sub .hobby-card h4, body.page-sub .skill-card h4, body.page-sub .achievement-card h4 {
  font-family: 'Playfair Display', serif; color: var(--gold); padding: 1.2rem 1.2rem 0.4rem; font-size: 1.15rem;
}
body.page-sub .project-card p, body.page-sub .info-card p, body.page-sub .hobby-card p, body.page-sub .achievement-card p {
  color: var(--silver); padding: 0 1.2rem 1.2rem; font-size: 0.9rem; line-height: 1.6;
}
@media (max-width: 900px) {
  body.page-about .about-grid { grid-template-columns: 1fr; }
  body.page-sub .cards-grid, body.page-sub .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body.page-sub .cards-grid, body.page-sub .projects-grid { grid-template-columns: 1fr; }
  body.page-sub .about-stats { justify-content: center; }
}

/* ─── Skills Page ─── */
body.page-skills .skills-grid, body.page-skills .skill-card { }
body.page-skills #about h3, body.page-skills h3 { font-family: 'Playfair Display', serif; color: var(--gold); margin: 3rem 0 1.5rem; text-align: center; }
body.page-skills .skill-card { padding: 2rem 1.2rem; text-align: center; }
body.page-skills .skill-card h4 { padding: 0; margin-bottom: 0.5rem; }
body.page-skills .skill-bar { width: 100%; height: 8px; background: var(--charcoal); border-radius: 8px; overflow: hidden; margin-top: 0.8rem; }
body.page-skills .skill-progress { height: 100%; background: linear-gradient(90deg, var(--gold), #ffb870); border-radius: 8px; }
body.page-skills .timeline { position: relative; max-width: 800px; margin: 2rem auto 0; padding-left: 2rem; }
body.page-skills .timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); }
body.page-skills .timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
body.page-skills .timeline-item::before { content: '◆'; position: absolute; left: -2.1rem; top: 0; color: var(--gold); background: var(--charcoal); }
body.page-skills .timeline-content { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.2rem 1.5rem; }
body.page-skills .timeline-content h4 { color: var(--gold); font-family: 'Playfair Display', serif; margin-bottom: 0.4rem; }
body.page-skills .timeline-description { color: var(--silver); font-size: 0.9rem; line-height: 1.6; }

/* ─── Projekte Page: Filter + Modal ─── */
body.page-projects .category-filters { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
body.page-projects .category-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--silver); padding: 0.6rem 1.4rem; border-radius: 30px; font-size: 0.85rem; transition: all 0.25s; }
body.page-projects .category-btn.active, body.page-projects .category-btn:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
body.page-projects .view-project { margin: 0 1.2rem 1.2rem; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; }
body.page-projects .view-project:hover { background: var(--gold); color: var(--charcoal); }
body.page-sub .modal, body.page-sub .lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
body.page-sub .modal.is-open, body.page-sub .lightbox.is-open { opacity: 1; visibility: visible; }
body.page-sub .modal-content { background: linear-gradient(135deg, #1a0f14, #2d1b1f); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem; max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
body.page-sub .close-modal { position: absolute; top: 1rem; right: 1rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50%; width: 36px; height: 36px; color: var(--cream); }
body.page-sub .close-modal:hover { background: var(--gold); color: var(--charcoal); }
body.page-sub .badge { display: inline-block; background: linear-gradient(135deg, var(--gold), #ffb870); color: var(--charcoal); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin: 0.3rem; }

/* ─── Kontakt Page ─── */
body.page-contact .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; padding: 2rem 0 5rem; position: relative; z-index: 1; }
body.page-contact .contact-form { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
body.page-contact .form-group { display: flex; flex-direction: column; gap: 0.5rem; }
body.page-sub input, body.page-sub textarea, body.page-sub select {
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 0.9rem 1.1rem; color: var(--cream); font-size: 0.95rem; font-family: inherit;
}
body.page-sub input:focus, body.page-sub textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,214,153,0.15); }
body.page-sub input::placeholder, body.page-sub textarea::placeholder { color: var(--silver); opacity: 0.6; }
body.page-contact .contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
body.page-contact .contact-info h4 { color: var(--gold); font-family: 'Playfair Display', serif; margin-bottom: 0.3rem; }
body.page-contact .contact-info p { color: var(--silver); }
body.page-contact .social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); margin-right: 0.6rem; }
body.page-contact .social-link:hover { background: var(--gold); color: var(--charcoal); }
@media (max-width: 900px) { body.page-contact .contact-grid { grid-template-columns: 1fr; } }

/* ─── Footer (Sub Pages) ─── */
body.page-sub .footer { position: relative; z-index: 1; padding: 2.5rem 0; border-top: 1px solid var(--glass-border); margin-top: 3rem; }
body.page-sub .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
body.page-sub .footer-text p { color: var(--silver); font-size: 0.85rem; opacity: 0.7; }
body.page-sub .footer-social { display: flex; gap: 0.6rem; }
body.page-sub .back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ffb870); color: var(--charcoal); border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(255,214,153,0.3); z-index: 400; transition: transform 0.3s; }
body.page-sub .back-to-top:hover { transform: translateY(-4px); }
body.page-sub .icon { width: 20px; height: 20px; fill: currentColor; }

/* ─── Under Construction Overlay (Dark Academia) ─── */
body.page-sub .construction-overlay {
  position: fixed; inset: 0; background: rgba(5,2,8,0.92); backdrop-filter: blur(6px) sepia(0.15);
  z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
body.page-sub .construction-overlay.is-hidden { display: none; }
body.page-sub .construction-box {
  position: relative; max-width: 500px; background: linear-gradient(160deg, #150d10 0%, #241318 55%, #1a0f14 100%);
  border: 1px solid var(--gold); border-radius: 4px; padding: 3rem 2.75rem; text-align: center;
  box-shadow: var(--glow-gold), inset 0 0 60px rgba(0,0,0,0.5);
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
}
body.page-sub .construction-box::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,214,153,0.35); pointer-events: none;
}
body.page-sub .construction-tape { display: none; }
body.page-sub .construction-icon { color: var(--gold); margin-bottom: 1.2rem; display: flex; justify-content: center; opacity: 0.9; }
body.page-sub .construction-box h2 {
  font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.65rem; letter-spacing: 0.03em;
  margin-bottom: 1rem; text-transform: uppercase; border-bottom: 1px solid rgba(255,214,153,0.25); padding-bottom: 0.9rem;
}
body.page-sub .construction-lead { color: var(--silver); margin-bottom: 1.3rem; font-style: italic; font-size: 1.05rem; }
body.page-sub .construction-list {
  list-style: none; text-align: left; display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.8rem; color: var(--silver); font-size: 0.92rem; font-family: 'Inter', sans-serif;
}
body.page-sub .construction-list li { padding-left: 1.4rem; position: relative; }
body.page-sub .construction-list li::before { content: '❖'; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 2px; }
body.page-sub .construction-btn {
  background: transparent; color: var(--gold); border: 1px solid var(--gold); padding: 0.75rem 2.2rem;
  border-radius: 2px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
  font-family: 'Inter', sans-serif; transition: all 0.3s var(--transition-smooth);
}
body.page-sub .construction-btn:hover { background: var(--gold); color: var(--charcoal); box-shadow: var(--glow-gold); transform: translateY(-1px); }
@media (max-width: 768px) {
  body.page-sub .footer-content { flex-direction: column; text-align: center; }
}
