/* ==========================================================================
   Peterhof Presentation - Luxury Russian Imperial & 3D Interactive Design
   ========================================================================== */

:root {
  --bg-primary: #070d17;
  --bg-secondary: #0d1b2a;
  --bg-card: rgba(13, 27, 42, 0.72);
  --bg-card-hover: rgba(23, 42, 69, 0.85);
  
  --gold-primary: #d4af37;
  --gold-light: #f7e7a9;
  --gold-gradient: linear-gradient(135deg, #fceabb 0%, #fccd4d 50%, #d4af37 100%);
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --water-blue: #00b4d8;
  --water-glow: rgba(0, 180, 216, 0.3);
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-highlight: #ffffff;
  
  --font-serif: 'Cinzel', 'Playfair Display', 'Merriweather', Georgia, serif;
  --font-sans: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #070d17 0%, #0a1120 50%, #050911 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scroll Progress Bar */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px var(--gold-primary);
  transition: width 0.1s ease-out;
}

/* Top Navigation Bar */
.navbar {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 13, 23, 0.65);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-crown {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.nav-speakers {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.speaker-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-main);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.speaker-nav-btn:hover,
.speaker-nav-btn.active {
  background: var(--gold-gradient);
  color: #070d17;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.nav-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nav-action-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
}

/* Floating Presentation Slide Controls */
.slide-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 850;
}

.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.ctrl-btn:hover {
  background: var(--gold-gradient);
  color: #070d17;
  transform: scale(1.12);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Slide Dots Indicator */
.slide-dots {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 850;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.dot::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dot.active {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-primary);
  transform: scale(1.3);
}

/* ==========================================================================
   Presentation Slides (Sections)
   ========================================================================== */

.slide-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.slide-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero-section:hover .hero-bg-media img {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 13, 23, 0.5) 0%, rgba(7, 13, 23, 0.95) 85%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #e2e8f0;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.speaker-team-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.speaker-pill {
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.speaker-pill:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.speaker-pill .pill-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #070d17;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-pill .pill-name {
  font-weight: 700;
  color: var(--text-highlight);
  font-size: 1rem;
}

.speaker-pill .pill-topic {
  color: var(--gold-light);
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--gold-gradient);
  color: #070d17;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--gold-glow);
  transition: var(--transition-smooth);
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Slide Cards & 3D Glass Layout */
.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.speaker-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.speaker-header-badge .speaker-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #070d17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
}

.slide-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Spoken Presentation Script Box (Fließtext Highlight) */
.speech-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold-primary);
  padding: 1.8rem;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.8rem;
  position: relative;
  transition: var(--transition-smooth);
}

.speech-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.speech-box .quote-icon {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2.2rem;
  color: rgba(212, 175, 55, 0.2);
  font-family: var(--font-serif);
  line-height: 1;
}

.speech-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #f1f5f9;
  font-weight: 400;
}

.speech-text .lead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.6rem;
}

.speech-text .accent {
  color: var(--gold-primary);
  font-weight: 600;
}

.speech-text .water-accent {
  color: var(--water-blue);
  font-weight: 600;
}

/* German Translation Helper (Collapsible / Toggleable) */
.vocab-helper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vocab-helper .flag-de {
  font-size: 1.1rem;
}

.vocab-helper strong {
  color: var(--gold-light);
}

/* Transition to next speaker notice */
.speaker-handover {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.92rem;
}

.handover-arrow {
  animation: pulseX 1.5s infinite;
}

@keyframes pulseX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* 3D Visual Showcase Container */
.visual-showcase-3d {
  position: relative;
  perspective: 1200px;
}

.card-3d-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.3);
  background: #0d1b2a;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.card-3d-wrapper:hover {
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(212, 175, 55, 0.35);
}

.card-3d-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-3d-wrapper:hover img {
  transform: scale(1.06);
}

.card-badge-overlay {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(7, 13, 23, 0.85);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 23, 0.95) 80%);
}

.card-caption-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-highlight);
  margin-bottom: 0.3rem;
}

.card-caption-overlay p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Secondary Thumbnail Row / Gallery inside slide */
.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.thumb-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 150px;
  background: #09131f;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.thumb-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.thumb-card:hover img {
  transform: scale(1.1);
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 13, 23, 0.8);
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

/* Feature Stat Badges */
.stat-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-badge-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-badge-box:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-3px);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Interactive Trick Fountain Button & Water Splash */
.trick-fountain-interactive {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(13, 27, 42, 0.8) 100%);
  border: 1px solid rgba(0, 180, 216, 0.4);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-trigger-fountain {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--water-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-trigger-fountain:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 180, 216, 0.6);
}

.water-splash-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Outro / Finale Slide */
.outro-card {
  background: var(--bg-card);
  border: 2px solid var(--gold-primary);
  border-radius: 28px;
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--gold-glow);
  backdrop-filter: blur(16px);
  position: relative;
}

.outro-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.outro-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.outro-desc {
  font-size: 1.4rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.outro-team {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.outro-member {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-border);
  padding: 1rem 1.8rem;
  border-radius: 14px;
}

.outro-member-name {
  font-weight: 700;
  color: var(--text-highlight);
  font-size: 1.1rem;
}

.outro-member-role {
  color: var(--gold-light);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040810;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .slide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .card-3d-wrapper img {
    height: 320px;
  }
  .navbar {
    padding: 0.8rem 1.2rem;
  }
  .nav-speakers {
    display: none;
  }
  .slide-dots {
    display: none;
  }
}
