@font-face {
  font-family: "Molot";
  src: url("assets/fonts/Molot.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Brand Colors */
  --bude-primary: #0060a0;
  --bude-purple: #6f42c1;
  --bude-pink: #cb6ce6;
  --bude-dark: #2c3e50;
  --bude-light: #ffffff;

  /* Light Theme */
  --light-bg-primary: #ffffff;
  --light-bg-secondary: #f8f9fa;
  --light-bg-tertiary: #e9ecef;
  --light-text-primary: #1a1a1a;
  --light-text-secondary: #666666;
  --light-border: rgba(0, 0, 0, 0.1);
  --light-card-bg: rgba(255, 255, 255, 0.8);
  --light-card-border: rgba(0, 0, 0, 0.08);
  --light-shadow: rgba(0, 0, 0, 0.08);

  /* Dark Theme */
  --dark-bg-primary: #0a0f1f;
  --dark-bg-secondary: #1a1f35;
  --dark-bg-tertiary: #242d45;
  --dark-text-primary: #e8eef7;
  --dark-text-secondary: #a0afc0;
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-card-bg: rgba(26, 31, 53, 0.6);
  --dark-card-border: rgba(255, 255, 255, 0.08);
  --dark-shadow: rgba(0, 0, 0, 0.3);

  /* Reveal.js Default */
  --r-background-color: #ffffff;
  --r-main-color: #2c3e50;
  --r-heading-color: #0060a0;
  --r-link-color: #0060a0;
  --r-selection-background-color: #0060a0;
  --r-heading-font: "Molot", sans-serif;
}

/* Light Theme (Default) */
html[data-theme="light"],
html {
  --bg-primary: var(--light-bg-primary);
  --bg-secondary: var(--light-bg-secondary);
  --bg-tertiary: var(--light-bg-tertiary);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --border-color: var(--light-border);
  --card-bg: var(--light-card-bg);
  --card-border: var(--light-card-border);
  --shadow: var(--light-shadow);
  color-scheme: light;
}

/* Dark Theme */
html[data-theme="dark"] {
  --bg-primary: var(--dark-bg-primary);
  --bg-secondary: var(--dark-bg-secondary);
  --bg-tertiary: var(--dark-bg-tertiary);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --border-color: var(--dark-border);
  --card-bg: var(--dark-card-bg);
  --card-border: var(--dark-card-border);
  --shadow: var(--dark-shadow);
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 65px;
}

/* Light Theme Background */
html[data-theme="light"] body {
  background: radial-gradient(at 40% 20%, #e0e7ff 0px, transparent 50%),
    radial-gradient(at 80% 0%, #fbcfe8 0px, transparent 50%),
    radial-gradient(at 0% 50%, #a7f3d0 0px, transparent 50%),
    radial-gradient(at 80% 50%, #fde68a 0px, transparent 50%),
    radial-gradient(at 0% 100%, #f9a8d4 0px, transparent 50%),
    var(--light-bg-primary);
}

/* Dark Theme Background */
html[data-theme="dark"] body {
  background: radial-gradient(
      circle at 50% 50%,
      rgba(111, 66, 193, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(203, 108, 230, 0.06),
      transparent 70%
    ),
    radial-gradient(circle at 20% 80%, rgba(0, 96, 160, 0.06), transparent 70%),
    radial-gradient(ellipse at center, #0a0f1f 0%, #050812 100%);
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Header */
.header {
  text-align: center;
  padding: 1rem 0.5rem 1rem;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: clamp(60px, 8vw, 120px);
  height: auto;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.header h1 {
  font-family: "Molot", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
}
/* Search Section */
.search-container {
  max-width: 700px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.search-box {
  position: relative;
}

/* Updated Light-Mode Search Bar */
#topic-search {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  font-size: 1rem;
  border: 2px solid rgba(120, 120, 120, 0.25);
  border-radius: 50px;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

html[data-theme="light"] #topic-search {
  background: rgba(255, 255, 255, 0.75);
  color: #222;
  border-color: rgba(120, 120, 120, 0.25);
}

html[data-theme="dark"] #topic-search {
  background: rgba(26, 31, 53, 0.5);
  color: #e8eef7;
  border-color: rgba(255, 255, 255, 0.15);
}

#topic-search:focus {
  border-color: rgba(153, 102, 255, 0.65);
  box-shadow: 0 0 18px rgba(153, 102, 255, 0.35);
}

html[data-theme="dark"] #topic-search:focus {
  background: rgba(26, 31, 53, 0.7);
}

#topic-search::placeholder {
  color: rgba(80, 80, 80, 0.6);
}

html[data-theme="dark"] #topic-search::placeholder {
  color: rgba(168, 175, 192, 0.5);
}

/* Search Icon Updated for Light Mode */
.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: rgba(60, 60, 60, 0.6);
  transition: color 0.3s ease;
}

html[data-theme="dark"] .search-icon {
  color: rgba(232, 238, 247, 0.5);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto;
  flex-wrap: wrap;
  max-width: 900px;
  padding: 0 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  min-width: 120px;
  transition: transform 0.3s;
}

html[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 96, 160, 0.15);
}

html[data-theme="dark"] .stat-card {
  background: rgba(26, 31, 53, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Molot", sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

/* ============================================
   HEADER ANALYTICS - Inline Stats Display
   ============================================ */

.header-analytics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .header-analytics {
  border-left-color: rgba(0, 0, 0, 0.15);
}

.analytics-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: default;
}

.analytics-stat i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.analytics-stat span {
  font-weight: 600;
  font-family: 'Molot', sans-serif;
  font-size: 1rem;
}

.analytics-stat:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Pulse animation for active users */
.analytics-stat.pulse-stat {
  animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.analytics-stat.pulse-stat i {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive - hide on smaller screens */
@media (max-width: 1200px) {
  .header-analytics {
    display: none;
  }
}


/* Categories Container */
.categories-container {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 80px 0.5rem 100px; /* Space for fixed header and footer */
}

.category-section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

html[data-theme="light"] .category-section {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 96, 160, 0.1);
}

html[data-theme="dark"] .category-section {
  background: rgba(26, 31, 53, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.category-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.category-icon {
  font-size: 2rem;
}

.category-info h2 {
  font-family: "Molot", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.category-info p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.category-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  margin-left: 1rem;
}

.category-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.collapse-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.collapsed .presentations-grid {
  display: none;
}

.collapsed .collapse-toggle {
  transform: rotate(180deg);
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.presentation-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

html[data-theme="light"] .presentation-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 96, 160, 0.08);
}

html[data-theme="dark"] .presentation-card {
  background: rgba(26, 31, 53, 0.4);
  border-color: rgba(255, 255, 255, 0.06);
}

.presentation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow);
  border-color: var(--bude-pink);
}

.presentation-card .icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.presentation-card .title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.presentation-card .description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

.presentation-card .keywords {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Card Header for Icon and Difficulty Badge */
.presentation-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

/* Difficulty Badge Styling */
.difficulty-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.difficulty-badge.beginner {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

html[data-theme="dark"] .difficulty-badge.beginner {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.difficulty-badge.intermediate {
  background: rgba(202, 138, 4, 0.15);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

html[data-theme="dark"] .difficulty-badge.intermediate {
  background: rgba(202, 138, 4, 0.1);
  color: #fde047;
}

.difficulty-badge.advanced {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

html[data-theme="dark"] .difficulty-badge.advanced {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* ============================================
   SKELETON LOADERS - Modern Loading States
   ============================================ */

.skeleton-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

html[data-theme="light"] .skeleton-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 96, 160, 0.08);
}

html[data-theme="dark"] .skeleton-card {
  background: rgba(26, 31, 53, 0.4);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Shimmer animation overlay */
.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

html[data-theme="light"] .skeleton-card::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Skeleton card elements */
.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.skeleton-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .skeleton-icon {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .skeleton-icon {
  background: rgba(255, 255, 255, 0.1);
}

.skeleton-badge {
  width: 80px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .skeleton-badge {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .skeleton-badge {
  background: rgba(255, 255, 255, 0.1);
}

.skeleton-title {
  width: 70%;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.8rem;
}

html[data-theme="light"] .skeleton-title {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .skeleton-title {
  background: rgba(255, 255, 255, 0.1);
}

.skeleton-description {
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.5rem;
}

html[data-theme="light"] .skeleton-description {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .skeleton-description {
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-description:last-child {
  width: 80%;
}

.skeleton-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skeleton-tag {
  width: 60px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

html[data-theme="light"] .skeleton-tag {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .skeleton-tag {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   FADE-IN ANIMATIONS - Smooth Entry
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.presentation-card {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* Staggered animation delays for cards */
.presentation-card:nth-child(1) { animation-delay: 0.05s; }
.presentation-card:nth-child(2) { animation-delay: 0.1s; }
.presentation-card:nth-child(3) { animation-delay: 0.15s; }
.presentation-card:nth-child(4) { animation-delay: 0.2s; }
.presentation-card:nth-child(5) { animation-delay: 0.25s; }
.presentation-card:nth-child(6) { animation-delay: 0.3s; }
.presentation-card:nth-child(7) { animation-delay: 0.35s; }
.presentation-card:nth-child(8) { animation-delay: 0.4s; }
.presentation-card:nth-child(9) { animation-delay: 0.45s; }
.presentation-card:nth-child(10) { animation-delay: 0.5s; }
.presentation-card:nth-child(11) { animation-delay: 0.55s; }
.presentation-card:nth-child(12) { animation-delay: 0.6s; }

/* Enhanced hover effects */
.presentation-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.presentation-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(111, 66, 193, 0.3);
}

html[data-theme="light"] .presentation-card::after {
  box-shadow: 0 10px 40px rgba(0, 96, 160, 0.2);
}

.presentation-card:hover::after {
  opacity: 1;
}

.presentation-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ============================================
   SCROLL LOADER - Infinite Scroll Indicator
   ============================================ */

.scroll-loader {
  text-align: center;
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 400px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-loader.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
}

.scroll-loader p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Modern spinner */
.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--bude-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

html[data-theme="light"] .spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--bude-primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* End of content message */
.end-message {
  text-align: center;
  padding: 3rem 1rem;
  margin: 2rem auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.end-message.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
}

.end-message p {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--bude-primary), var(--bude-purple), var(--bude-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.6s ease;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 10px;
  text-align: center;
  z-index: 10000;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] footer {
  background: rgba(10, 15, 31, 0.8);
  color: #e8eef7;
}

footer .social-links {
  margin-bottom: 4px;
}

footer a {
  color: white;
  margin: 0 6px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

html[data-theme="light"] footer a {
  color: #0060a0;
}

footer a:hover {
  color: #90caf9;
  transform: scale(1.1);
}

html[data-theme="light"] footer a:hover {
  color: #6f42c1;
}

.brand-avatar {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #90caf9;
  object-fit: cover;
  vertical-align: middle;
}

html[data-theme="light"] .brand-avatar {
  border-color: #0060a0;
}

footer p {
  font-size: 0.75rem;
  color: #cfd8dc;
  margin-top: 2px;
}

html[data-theme="light"] footer p {
  color: #666;
}

/* Reveal.js Styles */
.reveal {
  display: none;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 28px;
  background: transparent;
}

.reveal.active {
  display: block;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  text-transform: none;
  font-weight: 700;
  font-family: "Molot", sans-serif;
  color: var(--text-primary);
}

.reveal h1 {
  background: linear-gradient(
    135deg,
    var(--bude-primary) 0%,
    var(--bude-purple) 50%,
    var(--bude-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3em;
  font-weight: 800;
  line-height: 1.2;
}

.reveal h2 {
  color: var(--bude-primary);
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.3;
}

.reveal h3 {
  color: var(--bude-purple);
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.4;
}

.reveal p {
  font-size: 0.9em;
  color: var(--text-primary);
}

.reveal .slides section {
  text-align: left;
  padding: 40px 50px !important;
  background-color: transparent;
  line-height: 1.6;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  width: 90% !important;
  max-width: 90% !important;
  min-width: 90% !important;
  overflow-x: hidden !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .reveal .slides section {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.06);
}

.reveal .slides section.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.hide-watermark::before {
  display: none;
}

.reveal .slides section.past {
  opacity: 0.3;
  pointer-events: none;
}

.reveal .slides section.present {
  overflow-y: auto;
  overflow-x: hidden !important;
  max-height: 720px;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for slides */
.reveal .slides section.present::-webkit-scrollbar {
  width: 8px;
}

.reveal .slides section.present::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.reveal .slides section.present::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bude-purple) 0%, var(--bude-pink) 100%);
  border-radius: 4px;
}

.reveal .slides section.present::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--bude-pink) 0%, var(--bude-purple) 100%);
}

.reveal .slides section.future {
  opacity: 0.2;
  pointer-events: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal .slides {
  overflow: visible !important;
}

.reveal ul {
  margin-left: 0;
  color: var(--text-primary);
  list-style: none;
  padding-left: 0;
}

.reveal li {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0.8em 1.2em;
  background: linear-gradient(135deg, rgba(0, 96, 160, 0.06) 0%, rgba(111, 66, 193, 0.04) 100%);
  border-left: 4px solid var(--bude-purple);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.reveal li:hover {
  background: linear-gradient(135deg, rgba(0, 96, 160, 0.1) 0%, rgba(111, 66, 193, 0.08) 100%);
  transform: translateX(5px);
  border-left-color: var(--bude-pink);
}

html[data-theme="dark"] .reveal li {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.1) 0%, rgba(203, 108, 230, 0.06) 100%);
}

html[data-theme="dark"] .reveal li:hover {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.15) 0%, rgba(203, 108, 230, 0.1) 100%);
}

.reveal li .emoji {
  font-size: 1.3em;
  margin-right: 0.5em;
}

.reveal li strong {
  color: var(--bude-primary);
  font-weight: 700;
}

html[data-theme="dark"] .reveal li strong {
  color: #90caf9;
}

.highlight {
  color: var(--bude-primary);
  font-weight: bold;
}

.emoji {
  font-style: normal;
}

.box {
  background: transparent;
  border-left: none;
  padding: 0;
  margin: 1em 0;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
}

/* Box with text content (not code blocks) */
.box:not(:has(.code-block)) {
  background: linear-gradient(135deg, rgba(0, 96, 160, 0.08) 0%, rgba(111, 66, 193, 0.05) 100%);
  border-left: 4px solid var(--bude-primary);
  padding: 1em 1.5em;
}

/* Ensure code blocks inside box are full width */
.box .code-block {
  width: 100%;
  margin: 0;
}

.box .code-block pre {
  margin: 0;
}

.small-text {
  font-size: 0.7em;
}

/* ============================================
   TWO-COLUMN LAYOUT - Split Content 50/50
   ============================================ */

/* Container for two-column layout */
.two-column {
  display: flex;
  gap: 2em;
  width: 100%;
  align-items: stretch;
}

.two-column .col-left,
.two-column .col-right {
  flex: 1;
  min-width: 0;
}

.two-column .col-left {
  padding-right: 1em;
  border-right: 2px solid rgba(111, 66, 193, 0.2);
}

.two-column .col-right {
  padding-left: 1em;
}

/* Code blocks in two columns */
.two-column .code-block {
  height: 100%;
}

.two-column .code-block pre {
  height: 100%;
  max-height: none;
  min-height: 300px;
}

/* Auto columns - splits content into columns automatically */
.auto-columns {
  column-count: 2;
  column-gap: 2em;
  column-rule: 2px solid rgba(111, 66, 193, 0.2);
}

.auto-columns > * {
  break-inside: avoid;
}

/* Three column layout option */
.three-column {
  display: flex;
  gap: 1.5em;
  width: 100%;
}

.three-column > * {
  flex: 1;
  min-width: 0;
}

/* Grid layout for equal items */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  width: 100%;
}

/* Responsive - stack on mobile */
@media (max-width: 900px) {
  .two-column,
  .three-column {
    flex-direction: column;
  }
  
  .two-column .col-left {
    border-right: none;
    border-bottom: 2px solid rgba(111, 66, 193, 0.2);
    padding-right: 0;
    padding-bottom: 1em;
  }
  
  .two-column .col-right {
    padding-left: 0;
    padding-top: 1em;
  }
  
  .auto-columns {
    column-count: 1;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

code {
  background: linear-gradient(135deg, rgba(0, 96, 160, 0.12) 0%, rgba(111, 66, 193, 0.08) 100%);
  padding: 0.25em 0.5em;
  border-radius: 6px;
  color: #6f42c1;
  font-size: 1.1em;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-weight: 500;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  border: 1px solid rgba(111, 66, 193, 0.15);
}

html[data-theme="dark"] code {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.25) 0%, rgba(203, 108, 230, 0.15) 100%);
  color: #cb6ce6;
  border-color: rgba(203, 108, 230, 0.25);
}

html[data-theme="light"] code {
  background: linear-gradient(135deg, rgba(0, 96, 160, 0.1) 0%, rgba(111, 66, 193, 0.06) 100%);
  color: #5a32a3;
  border-color: rgba(0, 96, 160, 0.15);
}

.reveal a {
  color: var(--bude-primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.reveal a:hover {
  color: var(--bude-purple);
  text-decoration-thickness: 2px;
}

.reveal .controls {
  color: var(--bude-primary);
}

html[data-theme="light"] .reveal .controls {
  color: var(--bude-primary);
}

html[data-theme="dark"] .reveal .controls {
  color: #90caf9;
}

.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  height: 4px;
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--bude-primary), var(--bude-purple));
  transition: width 0.3s ease;
}

html[data-theme="light"] .reveal .progress {
  background: rgba(0, 0, 0, 0.1);
}

.bude-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 1.5em auto;
  display: block;
}

.gradient-bg {
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(233, 236, 239, 0.95) 100%
  ) !important;
  color: var(--text-primary);
  transition: background 0.35s ease, color 0.25s ease;
}

html[data-theme="dark"] .gradient-bg {
  background: linear-gradient(
    135deg,
    rgba(15, 18, 34, 0.6) 0%,
    rgba(28, 32, 50, 0.6) 100%
  ) !important;
  color: var(--text-primary);
}

/* Code block improvements for slides */
.code-block {
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
}

.code-block pre {
  background: linear-gradient(145deg, #1e1e2e 0%, #2d2d44 100%);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  overflow: visible;
  height: auto;
  max-height: none;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.7;
  color: #e0e0e0;
  width: 100%;
  max-width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  border: 1px solid rgba(111, 66, 193, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .code-block pre {
  background: linear-gradient(145deg, #f5f5f7 0%, #e8e8ed 100%);
  color: #1a1a2e;
  border-color: rgba(0, 96, 160, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .code-block pre {
  background: linear-gradient(145deg, #1a1a2e 0%, #252540 100%);
  color: #e8eef7;
  border-color: rgba(111, 66, 193, 0.35);
}

.code-block pre,
.code-block pre code {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  tab-size: 4;
  font-size: 18px;
  line-height: 1.7;
}

/* Additional overrides for all code elements in presentations */
.reveal pre code,
.reveal code {
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

.reveal pre {
  background: linear-gradient(145deg, #1e1e2e 0%, #2d2d44 100%);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-size: 18px;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible;
  height: auto;
  max-height: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #e0e0e0;
  border: 1px solid rgba(111, 66, 193, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .reveal pre {
  background: linear-gradient(145deg, #f5f5f7 0%, #e8e8ed 100%);
  color: #1a1a2e;
  border-color: rgba(0, 96, 160, 0.15);
}

html[data-theme="dark"] .reveal pre {
  background: linear-gradient(145deg, #1a1a2e 0%, #252540 100%);
  color: #e8eef7;
}

/* ============================================
   SYNTAX HIGHLIGHTING - Code Colors
   ============================================ */

/* Keywords: var, let, const, function, if, else, return, etc. */
.code-block .keyword,
.reveal pre .keyword,
.reveal code .keyword,
pre .keyword {
  color: #c792ea;
  font-weight: 600;
}

/* Strings: "hello", 'world', `template` */
.code-block .string,
.reveal pre .string,
.reveal code .string,
pre .string {
  color: #c3e88d;
}

/* Comments: // single line, /* multi line */ */
.code-block .comment,
.reveal pre .comment,
.reveal code .comment,
pre .comment {
  color: #676e95;
  font-style: italic;
}

/* Functions: functionName(), console.log() */
.code-block .function,
.reveal pre .function,
.reveal code .function,
pre .function {
  color: #82aaff;
}

/* Numbers: 123, 45.67, 0xFF */
.code-block .number,
.reveal pre .number,
.reveal code .number,
pre .number {
  color: #f78c6c;
}

/* Operators: =, +, -, *, /, ===, !== */
.code-block .operator,
.reveal pre .operator,
.reveal code .operator,
pre .operator {
  color: #89ddff;
}

/* Properties: object.property */
.code-block .property,
.reveal pre .property,
.reveal code .property,
pre .property {
  color: #ffcb6b;
}

/* Classes/Types: ClassName, Array, Object */
.code-block .class-name,
.reveal pre .class-name,
.reveal code .class-name,
pre .class-name {
  color: #ffcb6b;
  font-weight: 600;
}

/* Boolean: true, false, null, undefined */
.code-block .boolean,
.reveal pre .boolean,
.reveal code .boolean,
pre .boolean {
  color: #ff5370;
}

/* Punctuation: (), {}, [], ; */
.code-block .punctuation,
.reveal pre .punctuation,
.reveal code .punctuation,
pre .punctuation {
  color: #89ddff;
}

/* Variables */
.code-block .variable,
.reveal pre .variable,
.reveal code .variable,
pre .variable {
  color: #f07178;
}

/* Light theme syntax colors */
html[data-theme="light"] .keyword { color: #7c3aed; font-weight: 600; }
html[data-theme="light"] .string { color: #059669; }
html[data-theme="light"] .comment { color: #9ca3af; font-style: italic; }
html[data-theme="light"] .function { color: #2563eb; }
html[data-theme="light"] .number { color: #d97706; }
html[data-theme="light"] .operator { color: #0891b2; }
html[data-theme="light"] .property { color: #b45309; }
html[data-theme="light"] .class-name { color: #7c3aed; font-weight: 600; }
html[data-theme="light"] .boolean { color: #dc2626; }
html[data-theme="light"] .punctuation { color: #6b7280; }
html[data-theme="light"] .variable { color: #db2777; }

.gradient-accent {
  background: linear-gradient(
    135deg,
    var(--bude-purple) 0%,
    var(--bude-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* Presentation Mode */
body.presentation-mode {
  padding-bottom: 0;
  overflow: hidden;
}

body.presentation-mode .header,
body.presentation-mode .search-container,
body.presentation-mode .stats-bar,
body.presentation-mode .categories-container,
body.presentation-mode .contrib-carousel {
  display: none;
}

body.presentation-mode footer {
  display: none;
}

body.presentation-mode .reveal {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Expand slides to fill screen */
body.presentation-mode .reveal .slides {
  height: 100% !important;
}

body.presentation-mode .reveal .slides > section {
  height: 100% !important;
  padding: 2rem !important;
}

/* Mobile presentation optimization */
@media (max-width: 768px) {
  body.presentation-mode .reveal .slides > section {
    padding: 1rem !important;
  }
}

/* Disable Reveal.js slide transition sparkle/circle effect */
.reveal .slides section .fragment {
  transition: none !important;
}

.reveal .backgrounds {
  filter: none !important;
}

/* Hide the round sparkle transition effect */
.reveal .slide-background {
  transition: none !important;
}

.reveal .slides > section {
  transition: transform 0.3s ease !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .stats-bar {
    gap: 1rem;
  }

  .stat-card {
    min-width: 120px;
    padding: 1rem 1.5rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-controls {
    width: 100%;
    justify-content: space-between;
  }

  .presentations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .logo {
    max-width: 70px;
  }

  #topic-search {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  }
  
  .search-icon {
    left: 0.8rem;
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-card {
    width: 100%;
    max-width: 200px;
  }

  .category-info h2 {
    font-size: 1.2rem;
  }
  
  .presentation-card .icon {
    font-size: 1.5rem;
  }
  
  .presentation-card .title {
    font-size: 1rem;
  }
}

.floating-shape {
  position: fixed;
  opacity: 0.8;
  z-index: 9999;
  pointer-events: none;
  animation: floatMove 10s ease-in-out infinite;
}

@keyframes floatMove {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(40px, -40px) rotate(180deg) scale(1.3);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.glow-line {
  position: fixed;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 255, 0.3),
    transparent
  );
  opacity: 0.5;
  animation: lineFlow 8s linear infinite;
}

@keyframes lineFlow {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.glow-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(0, 255, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(circle at 80% 20%, rgba(100, 0, 255, 0.1), transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 200, 0.1), transparent 70%);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    filter: blur(40px);
    opacity: 0.7;
  }
  100% {
    filter: blur(70px);
    opacity: 1;
  }
}

/* Enhanced header + dropdown + stats */
.global-header.enhanced {
  padding: 10px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 6000;
  background: linear-gradient(
    90deg,
    rgba(8, 12, 22, 0.75),
    rgba(10, 14, 30, 0.75)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="light"] .global-header.enhanced {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 249, 250, 0.9)
  );
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* brand */
.gh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.gh-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.gh-title {
  font-weight: 600;
  color: #e8eef7;
  font-size: 15px;
  transition: color 0.3s ease;
}

html[data-theme="light"] .gh-title {
  color: #0060a0;
}

/* center nav dropdown */
.gh-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.gh-dropdown {
  position: relative;
}
.gh-dropbtn {
  background: transparent;
  border: 0;
  color: #cfeffd;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}
html[data-theme="light"] .gh-dropbtn {
  color: #0060a0;
}
.gh-dropdown-content {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  min-width: 160px;
  background: rgba(7, 10, 20, 0.95);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 7000;
  transition: background-color 0.3s ease;
}
html[data-theme="light"] .gh-dropdown-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.gh-dropdown-content a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #e7f6ff;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
html[data-theme="light"] .gh-dropdown-content a {
  color: #0060a0;
}
.gh-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme="light"] .gh-dropdown-content a:hover {
  background: rgba(0, 96, 160, 0.08);
}

/* right actions */
.gh-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.gh-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #eaf8ff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}
html[data-theme="light"] .gh-btn {
  color: #0060a0;
}
.gh-fork {
  background: linear-gradient(90deg, #23a6d5, #6f42c1);
  color: #fff;
  border: none;
}
.stat-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
}
html[data-theme="light"] .stat-btn {
  border-color: rgba(0, 96, 160, 0.2);
  color: #0060a0;
}
#theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}
#theme-toggle:hover {
  transform: scale(1.1);
}

/* contributor carousel */
.contrib-carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 6px;
  background: transparent;
  padding: 8px 0;
}
.contrib-track {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  align-items: center;
  animation: scroll 28s linear infinite;
}
.contrib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  text-align: center;
  font-size: 12px;
  color: #dff7ff;
  text-decoration: none;
}
.contrib-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(11, 17, 35, 0.5);
}

/* scroll animation fallback: duplicate content to loop */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   ORIENTATION PROMPT FOR MOBILE
   ============================================ */
.orientation-prompt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.orientation-prompt.visible {
  opacity: 1;
  visibility: visible;
}

.orientation-prompt-content {
  text-align: center;
  padding: 2rem;
  max-width: 90%;
}

.orientation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 3rem;
  color: var(--bude-purple);
  margin-bottom: 1.5rem;
  animation: rotatePrompt 2s ease-in-out infinite;
}

.orientation-icon i {
  display: inline-block;
}

.orientation-icon .ri-arrow-right-line {
  color: var(--bude-pink);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotatePrompt {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.orientation-prompt h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'Molot', sans-serif;
}

.orientation-prompt p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Hide prompt in landscape */
@media (orientation: landscape) {
  .orientation-prompt {
    display: none !important;
  }
}


/* responsiveness */
@media (max-width: 700px) {
  .gh-center {
    display: none;
  }
  .contrib-track {
    animation-duration: 40s;
  }
}

/* ============================================
   ACCESSIBILITY - SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--bude-purple);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100000;
  border-radius: 0 0 4px 0;
  font-weight: bold;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--bude-pink);
  outline-offset: 2px;
}

/* ============================================
   PRESENTATION MODE - Hide Gallery
   ============================================ */
/* Hide the main selector UI (gallery) when in presentation mode
   to prevent infinite scroll loader from appearing on slides */
body.presentation-mode #main-selector-ui {
  display: none !important;
}

/* Reduce spacing between header and slides in presentation mode
   Reveal.js centers slides in full viewport, creating excessive gap with sticky header */
body.presentation-mode .reveal .slides {
  margin-top: -80px !important;
}

/* ============================================
   REVEAL.JS PRESENTATION OVERRIDES
   ============================================ */

.reveal {
  display: none;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 28px;
  background: transparent;
}

.reveal.active {
  display: block;
}

/* Headings - Centered with proper contrast */
.reveal h1,
.reveal h2,
.reveal h3 {
  text-transform: none;
  font-weight: 700;
  font-family: "Molot", sans-serif;
  color: var(--text-primary) !important;
  text-align: center !important;
}

.reveal h1 {
  background: linear-gradient(
    135deg,
    var(--bude-primary) 0%,
    var(--bude-purple) 50%,
    var(--bude-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5em !important;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.reveal h2 {
  color: var(--bude-primary) !important;
  font-size: 2.8em !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

.reveal h3 {
  color: var(--bude-purple) !important;
  font-size: 2.2em !important;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5em;
}

/* Paragraphs - Centered with proper size and contrast */
.reveal p {
  font-size: 1.2em !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  margin-bottom: 0.8em;
}

/* Slides - Full screen, centered content */
.reveal .slides section {
  text-align: center !important;
  padding: 40px 80px !important;
  background-color: transparent;
  line-height: 1.6;
  font-size: 20px !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: 16px;
  margin: 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal .slides section.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.hide-watermark::before {
  display: none;
}

.reveal .slides section.past {
  opacity: 0.3;
  pointer-events: none;
}

.reveal .slides section.present {
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal .slides section.future {
  opacity: 0.2;
  pointer-events: none;
}

.reveal .slides {
  overflow: visible !important;
}

/* Lists - Centered with proper contrast */
.reveal ul {
  margin-left: 0;
  color: var(--text-primary) !important;
  list-style-position: inside;
  list-style-type: disc;
  padding-left: 0;
  text-align: center !important;
}

.reveal li {
  margin-bottom: 0.8em;
  font-size: 1.3em !important;
  color: var(--text-primary) !important;
  line-height: 1.6;
}

/* Highlight and special elements */
.highlight {
  color: var(--bude-primary) !important;
  font-weight: bold;
}

.emoji {
  font-style: normal;
}

.box {
  background: linear-gradient(
    135deg,
    rgba(0, 96, 160, 0.08) 0%,
    rgba(111, 66, 193, 0.05) 100%
  );
  padding: 1em;
  margin: 1em 0;
  border-radius: 4px;
  font-size: 0.9em;
}

.small-text {
  font-size: 0.7em;
}

/* Code blocks - Better contrast */
code {
  background: rgba(0, 96, 160, 0.15) !important;
  padding: 0.5em 0.9em;
  border-radius: 6px;
  color: var(--bude-primary) !important;
  font-size: 1.2em;
  font-family: "Courier New", monospace;
  font-weight: 600;
}

html[data-theme="dark"] code {
  background: rgba(111, 66, 193, 0.25) !important;
  color: var(--bude-pink) !important;
}

html[data-theme="light"] code {
  background: rgba(0, 96, 160, 0.15) !important;
  color: var(--bude-primary) !important;
}

/* Links */
.reveal a {
  color: var(--bude-primary) !important;
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 600;
}

.reveal a:hover {
  color: var(--bude-purple) !important;
  text-decoration-thickness: 2px;
}

/* Controls */
.reveal .controls {
  color: var(--bude-primary);
}

html[data-theme="light"] .reveal .controls {
  color: var(--bude-primary);
}

html[data-theme="dark"] .reveal .controls {
  color: #90caf9;
}

/* Progress bar */
.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  height: 4px;
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--bude-primary), var(--bude-purple));
  transition: width 0.3s ease;
}

html[data-theme="light"] .reveal .progress {
  background: rgba(0, 0, 0, 0.1);
}

/* Logo */
.bude-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 1.5em auto;
  display: block;
}

/* Disable Reveal.js transition effects */
.reveal .slides section .fragment {
  transition: none !important;
}

.reveal .backgrounds {
  filter: none !important;
}

.reveal .slide-background {
  transition: none !important;
}

.reveal .slides > section {
  transition: transform 0.3s ease !important;
}

