/* ==========================================================================
   PETERHOF IMPERIAL PRESENTATION — ULTRA-MODERN 3D SHOWCASE
   Designed for School Beamer Projection & Interactive Experience
   ========================================================================== */

:root {
  --gold-primary: #f5c542;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #f5c542 50%, #b8860b 100%);
  --gold-glow: rgba(245, 197, 66, 0.45);
  --gold-border: rgba(245, 197, 66, 0.35);
  --gold-border-bright: rgba(245, 197, 66, 0.85);

  --bg-deep: #050a12;
  --bg-navy: #0b1526;
  --card-glass: rgba(8, 17, 32, 0.84);
  --card-glass-hover: rgba(14, 26, 48, 0.94);
  
  --water-cyan: #38bdf8;
  --water-glow: rgba(56, 189, 248, 0.5);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-de-hint: #38bdf8;

  --font-serif: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --slide-padding: 3.5rem 4.5rem 2.5rem 4.5rem;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow: hidden; /* Controlled via presentation-container */
}

body {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Particles (Z-Index 1) */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   TOP NAVIGATION HUD (FLOATING CONTROLS)
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.95) 0%, rgba(5, 10, 18, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(245, 197, 66, 0.18);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.imperial-eagle {
  font-size: 1.5rem;
  color: var(--gold-primary);
  text-shadow: 0 0 15px var(--gold-glow);
  animation: pulseEagle 4s ease-in-out infinite;
}

@keyframes pulseEagle {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.65rem;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  color: var(--gold-primary);
  margin-left: 0.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hud-btn {
  background: rgba(11, 21, 38, 0.85);
  border: 1px solid rgba(245, 197, 66, 0.3);
  color: var(--text-main);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.hud-btn:hover {
  background: rgba(245, 197, 66, 0.22);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

.hud-btn.active {
  background: var(--gold-primary);
  color: var(--bg-deep);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ==========================================================================
   SIDE SLIDE TRACKER / PROGRESS HUD
   ========================================================================== */
.side-hud {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
}

.progress-line {
  position: absolute;
  right: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-primary);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 2;
}

.slide-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  cursor: pointer;
  position: relative;
}

.slide-nav-item .label {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  background: rgba(5, 10, 18, 0.92);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  pointer-events: none;
}

.slide-nav-item:hover .label {
  opacity: 1;
  transform: translateX(0);
}

.slide-nav-item .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 21, 38, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
  position: relative;
}

.slide-nav-item .dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  transition: var(--transition-smooth);
}

.slide-nav-item.active .dot {
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px var(--gold-glow);
}

.slide-nav-item.active .dot::after {
  transform: translate(-50%, -50%) scale(1);
}

.slide-nav-item.active .label {
  color: var(--gold-primary);
  opacity: 1;
  transform: translateX(0);
}

/* Controls arrows for presenter */
.slide-controls {
  position: fixed;
  bottom: 2rem;
  right: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 95;
}

.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 21, 38, 0.9);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-arrow:hover {
  background: var(--gold-primary);
  color: var(--bg-deep);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ==========================================================================
   PRESENTATION CONTAINER & CONTROLLED SCROLL
   ========================================================================== */
.presentation-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for clean presentation */
}

.presentation-container::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slide-padding);
}

/* BRIGHTER & CLEARLY VISIBLE BACKGROUND IMAGES */
.slide-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  /* Enhanced brightness & vibrancy so Peterhof stands out clearly! */
  filter: brightness(0.65) saturate(1.25) contrast(1.05);
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  z-index: 0;
}

.slide.active .slide-bg {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lightened gradient overlay to reveal the scenery */
  background: radial-gradient(circle at center, rgba(6, 11, 20, 0.3) 0%, rgba(5, 10, 18, 0.72) 100%);
  z-index: 1;
}

.slide-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   SLIDE 0: TITLE & HERO SECTION
   ========================================================================== */
.hero-slide {
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-crest {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.25) 0%, transparent 70%);
  border: 1px solid var(--gold-border-bright);
  border-radius: 50%;
  box-shadow: 0 0 35px var(--gold-glow);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.crest-symbol {
  font-size: 2.2rem;
}

.hero-subtitle-top {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 12px rgba(245, 197, 66, 0.6);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7.5vw, 6.8rem);
  font-weight: 900;
  letter-spacing: 12px;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, #ffea85 40%, #f5c542 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: #ffffff;
  max-width: 800px;
  line-height: 1.5;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.speakers-badge-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.speaker-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-glass);
  border: 1px solid var(--gold-border);
  padding: 0.85rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.speaker-tag:hover {
  border-color: var(--gold-primary);
  background: var(--card-glass-hover);
  box-shadow: 0 15px 35px var(--gold-glow);
  transform: translateY(-5px);
}

.speaker-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--gold-glow);
}

.speaker-info {
  text-align: left;
}

.speaker-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.speaker-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  background: rgba(8, 17, 32, 0.85);
  border: 1px solid var(--gold-border);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.scroll-prompt:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow);
}

.prompt-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  position: relative;
}

.mouse-icon .wheel {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: mouseWheel 2s infinite;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ==========================================================================
   SLIDE CONTENT SYSTEM (FOR MILO, BERK, MATISSE)
   ========================================================================== */
.slide-header {
  margin-bottom: 1.2rem;
}

.speaker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid var(--gold-border-bright);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.speaker-pill .badge-icon {
  font-size: 1.1rem;
}

.speaker-pill .speaker-label {
  font-size: 0.9rem;
  color: #ffffff;
}

.speaker-pill .speaker-label strong {
  color: var(--gold-primary);
  font-weight: 700;
}

.speaker-pill .part-badge {
  background: var(--gold-primary);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 30%, #ffea85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.de-sub {
  font-size: 0.95rem;
  color: var(--text-de-hint);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Two Column Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

/* Left Column: Glass Cards */
.cards-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.glass-card {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px var(--gold-glow);
}

.glass-card.highlight-card {
  border-color: var(--gold-border-bright);
  background: rgba(14, 28, 52, 0.9);
}

.glass-card.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 14px 0 0 14px;
}

.card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transform: translateZ(20px);
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.card-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.card-body-text {
  font-size: 0.93rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.card-body-text strong {
  color: var(--gold-light);
  font-weight: 700;
}

.de-hint {
  font-size: 0.8rem;
  color: var(--text-de-hint);
  margin-top: 0.3rem;
  font-style: italic;
}

/* ==========================================================================
   PROMINENT DUAL IMAGE SHOWCASES & LIGHTBOX
   ========================================================================== */
.media-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.gallery-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.image-showcase {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-border-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  background: #000;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.image-showcase:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-4px) scale(1.02);
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 200px; /* Generous height for prominent view */
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-showcase:hover .showcase-img {
  transform: scale(1.08);
}

.zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 10, 18, 0.85);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: 5;
}

.image-showcase:hover .zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 18, 0.96) 80%);
  display: flex;
  flex-direction: column;
}

.caption-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.caption-desc {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Stats Cards */
.stats-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--card-glass);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  text-shadow: 0 0 15px var(--gold-glow);
}

.stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 170px;
}

.stat-divider {
  width: 1px;
  height: 45px;
  background: rgba(245, 197, 66, 0.25);
}

/* Speaker Transition Box */
.speaker-transition-card {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.trans-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trans-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.4;
  flex-grow: 1;
}

.next-step-btn {
  background: var(--gold-gradient);
  color: var(--bg-deep);
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: var(--transition-smooth);
}

.next-step-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.7);
}

/* ==========================================================================
   MATISSE SPECIFICS (TRICK FOUNTAINS & STATS GRID)
   ========================================================================== */
.trick-fountain-card {
  background: linear-gradient(135deg, rgba(8, 17, 32, 0.92) 0%, rgba(14, 52, 90, 0.75) 100%);
}

.trick-interactive {
  margin-top: 0.8rem;
  position: relative;
}

.trick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid var(--water-cyan);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px var(--water-glow);
  transition: var(--transition-smooth);
}

.trick-btn:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--water-cyan);
}

.water-spray-box {
  display: none;
  position: relative;
  height: 55px;
  margin-top: 0.6rem;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px dashed var(--water-cyan);
}

.water-spray-box.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-stream {
  position: absolute;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #38bdf8 100%);
  border-radius: 50% 50% 0 0;
  animation: sprayUp 0.6s ease-out infinite alternate;
}

.stream-1 { left: 15%; height: 80%; animation-delay: 0.1s; }
.stream-2 { left: 35%; height: 95%; animation-delay: 0.3s; }
.stream-3 { left: 50%; height: 100%; animation-delay: 0.05s; }
.stream-4 { left: 65%; height: 90%; animation-delay: 0.25s; }
.stream-5 { left: 85%; height: 75%; animation-delay: 0.15s; }

@keyframes sprayUp {
  0% { transform: scaleY(0.2); opacity: 0.3; }
  100% { transform: scaleY(1); opacity: 1; filter: drop-shadow(0 0 8px #38bdf8); }
}

.splash-text {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 0 10px #0284c7;
  animation: bounceText 0.4s ease infinite alternate;
}

@keyframes bounceText {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.05); }
}

/* Matisse Triple Mini-Stats */
.triple-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.mini-stat-card {
  background: var(--card-glass);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.mini-stat-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.mini-stat-card.highlight {
  border-color: var(--gold-primary);
  background: rgba(245, 197, 66, 0.14);
}

.mini-stat-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.1;
}

.mini-stat-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.mini-stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX MODAL (FOR BEAMER ENLARGING)
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeInLightbox 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
}

@keyframes fadeInLightbox {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-frame {
  max-width: 85vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid var(--gold-border-bright);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 25px var(--gold-glow);
  background: #000;
}

.lightbox-img-frame img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid var(--gold-border-bright);
  color: #ffffff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--gold-primary);
  color: var(--bg-deep);
  transform: scale(1.1);
}

/* ==========================================================================
   SPEECH PROMPTER DRAWER (SPICKZETTEL)
   ========================================================================== */
.speech-box {
  display: none;
  margin-top: 1.2rem;
  background: rgba(11, 21, 38, 0.97);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  animation: slideUpPrompter 0.3s ease;
  z-index: 10;
}

body.show-speech .speech-box {
  display: block;
}

@keyframes slideUpPrompter {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 197, 66, 0.25);
  padding-bottom: 0.4rem;
}

.speech-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.speech-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.speech-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f8fafc;
  font-style: normal;
}

.speech-text strong {
  color: var(--gold-light);
}

/* Toggle DE hints */
body.hide-de .de-text {
  display: none !important;
}

/* ==========================================================================
   SLIDE 4: FINALE & QUESTIONS SECTION
   ========================================================================== */
.finale-slide {
  text-align: center;
}

.finale-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale-crest {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  color: var(--gold-primary);
  text-shadow: 0 0 20px var(--gold-glow);
}

.finale-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.finale-subtitle-de {
  font-size: 1.35rem;
  color: var(--text-de-hint);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.finale-qa {
  font-size: 1.4rem;
  font-style: italic;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.team-card {
  width: 100%;
  margin: 2rem 0;
  background: var(--card-glass);
  border: 1px solid var(--gold-border-bright);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.team-title {
  font-size: 1.15rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.avatar-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.member-topic {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.restart-btn {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}

.restart-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-deep);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: scale(1.05);
}

/* ==========================================================================
   SHORTCUTS HELP MODAL
   ========================================================================== */
.shortcuts-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.shortcuts-modal.active {
  display: flex;
}

.modal-card {
  background: var(--bg-navy);
  border: 1px solid var(--gold-border-bright);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.shortcut-row kbd {
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--gold-light);
  font-family: monospace;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE & BEAMER OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1100px) {
  :root {
    --slide-padding: 4.5rem 2rem 2rem 2rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gallery-dual-row {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-dual-row .img-wrapper {
    height: 140px;
  }
  .side-hud {
    display: none;
  }
}

@media (min-width: 1900px) {
  /* Extra-large classroom projector view */
  html {
    font-size: 18px;
  }
  .img-wrapper {
    height: 240px;
  }
}
