/* =============================================
   Seminar 1 — Premium Dark Editorial Design System
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Color Palette - Curated Dark */
  --bg: #09090b; /* Zinc-950 */
  --surface: #18181b; /* Zinc-900 */
  --surface2: #27272a; /* Zinc-800 */
  --border: rgba(255, 255, 255, 0.05);
  
  --text: #f4f4f5; /* Zinc-100 */
  --muted: #a1a1aa; /* Zinc-400 */
  
  /* Accent - Hemat & Intentional */
  --accent: #06b6d4; /* Cyan */
  --accent-muted: rgba(6, 182, 212, 0.15);
  
  /* Layout */
  --line-thickness: 1px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--accent);
}

/* ---- Background Systems (DECORATE WITH INTENTION) ---- */

/* 1. Subtle Grid */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* 2. Thin Editorial Lines */
.editorial-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 0;
  pointer-events: none;
}
.editorial-line-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
  pointer-events: none;
}

/* 3. Radial Glow (Subtle) */
.glow-cyan-subtle {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* 4. Watermark Typography */
.watermark {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 25vw;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---- Section ---- */
.seminar-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden; /* Keep decorations contained */
}

/* Content wrapper ensuring z-index above background decorations */
.container {
  position: relative;
  z-index: 10;
}

/* ---- Badges & Cards ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.glass-card {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

/* ---- Cursor Presenter Styles ---- */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.cursor-ripple {
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 9998;
  animation: ripple-animation 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ripple-animation {
  to { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ---- Spotlight Mode ---- */
#spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
}
#spotlight-overlay.active { opacity: 1; }

/* ---- Presentation Helpers ---- */
.helper-panel {
  position: fixed;
  z-index: 9900;
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #e4e4e7;
  backdrop-filter: blur(16px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.helper-panel.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#presenter-notes {
  bottom: 2rem; right: 2rem;
  max-width: 450px; width: 100%;
}

#quick-jump-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  z-index: 9950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#quick-jump-overlay.show { opacity: 1; pointer-events: auto; }
#quick-jump-list button {
  display: flex; align-items: center;
  width: 100%; text-align: left;
  padding: 1rem 1.5rem; margin: 0.25rem 0;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--muted);
  transition: all 0.2s;
  border: 1px solid transparent;
}
#quick-jump-list button:hover {
  background: rgba(255,255,255,0.03);
  color: #fff;
  padding-left: 2rem;
  border-color: rgba(255,255,255,0.1);
}

/* ---- Progress Bar ---- */
#progress-container {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: transparent;
  z-index: 9000;
}
#progress-bar {
  height: 100%;
  background: var(--accent); /* Accent colored for visibility */
  width: 0%;
  transition: width 0.3s ease-out;
}

/* ---- Selection & Scrollbar ---- */
::selection { background-color: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ---- IDE Mockup ---- */
.ide-mockup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.ide-header {
  background: var(--surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.ide-dots { display: flex; gap: 8px; }
.ide-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.ide-title {
  margin-left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.ide-body { padding: 1.5rem; }

/* ---- Animation Overrides ---- */
[data-aos] { transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important; }
