/**
 * Enginy Theme for reveal.js
 * Based on Enginy brand guidelines
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --enginy-green: #3DDB85;
  --enginy-green-light: #D5F0E3;
  --enginy-green-dark: #2BC06E;
  --enginy-teal: #1B5E4F;
  --enginy-dark: #000000;
  --enginy-dark-purple: #2D2D44;
  --enginy-dark-blue: #1E1E2E;
  --enginy-white: #FFFFFF;
  --enginy-gray-light: #EEEEEE;
  --enginy-gray: #888888;
  --enginy-gray-dark: #333333;
  --enginy-yellow: #E8F5A1;
  --enginy-peach: #FFE4D6;
  --enginy-lavender: #E8D6FF;
  --enginy-cyan: #D6F5F5;
  --enginy-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --slide-padding: 80px;
}

/*********************************************
 * ANIMATIONS - Only play on current slide
 *********************************************/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/*********************************************
 * REVEAL.JS CORE - FULL SCREEN BACKGROUNDS
 *********************************************/
.reveal-viewport {
  background: var(--enginy-white);
}

.reveal {
  font-family: var(--enginy-font);
  font-size: 44px;
  font-weight: normal;
  color: var(--enginy-dark);
}

.reveal .slides {
  text-align: left;
}

/* CRITICAL: Make sections fill entire slide area with backgrounds */
.reveal .slides > section,
.reveal .slides > section > section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--slide-padding);
  padding-top: 100px;
  padding-bottom: 80px;
  /* Force full coverage - ESSENTIAL for backgrounds */
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
}

/* Content-heavy slides should start from top */
.reveal .slides > section.top-align,
.reveal .slides > section:has(.slide-content.top) {
  justify-content: flex-start;
}

/*********************************************
 * GLOBAL LOGO
 *********************************************/
.reveal .slides section::before {
  content: '';
  position: absolute;
  top: 35px;
  left: var(--slide-padding);
  width: 36px;
  height: 28px;
  background-image: url('../assets/logo-enginy.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 100;
}

.reveal .slides section.dark::before,
.reveal .slides section.teal::before,
.reveal .slides section.purple::before {
  background-image: url('../assets/logo-enginy-white.svg');
}

.reveal .slides section.green::before {
  background-image: url('../assets/logo-enginy.svg');
}

.reveal .slides section.no-logo::before {
  display: none;
}


.reveal .slide-number {
  font-family: var(--enginy-font);
  font-size: 16px;
  color: var(--enginy-gray);
  background: transparent;
  right: 140px;
  bottom: 35px;
}

/*********************************************
 * ANIMATIONS - ONLY ON PRESENT SLIDE
 * Improved staggering with more dramatic timing
 *********************************************/
:root {
  --anim-base-delay: 0.2s;
  --anim-stagger: 0.15s;
  --anim-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal .slides section:not(.present) * {
  animation: none !important;
}

/* Main title - first to appear */
.reveal .slides section.present h1 {
  animation: fadeInUp 0.9s var(--anim-ease) var(--anim-base-delay) forwards;
  opacity: 0;
}

/* Section title - appears after h1 */
.reveal .slides section.present h2 {
  animation: fadeInUp 0.8s var(--anim-ease) calc(var(--anim-base-delay) + 0.1s) forwards;
  opacity: 0;
}

.reveal .slides section.present h3 {
  animation: fadeInUp 0.7s var(--anim-ease) calc(var(--anim-base-delay) + 0.2s) forwards;
  opacity: 0;
}

/* Paragraphs - staggered after headers */
.reveal .slides section.present p {
  animation: fadeInUp 0.7s var(--anim-ease) calc(var(--anim-base-delay) + 0.25s) forwards;
  opacity: 0;
}

/* Slide content wrapper - subtle fade */
.reveal .slides section.present .slide-content {
  animation: fadeInUp 0.5s var(--anim-ease) var(--anim-base-delay) forwards;
  opacity: 0;
}

/* Graphics - slide in from right with scale */
.reveal .slides section.present .halftone-graphic {
  animation: fadeInRight 1s var(--anim-ease) calc(var(--anim-base-delay) + 0.4s) forwards;
  opacity: 0;
}

.reveal .slides section.present .visual img {
  animation: scaleIn 0.9s var(--anim-ease-spring) calc(var(--anim-base-delay) + 0.3s) forwards;
  opacity: 0;
}

/* Cards - bounce in with 180ms stagger */
.reveal .slides section.present .card {
  animation: floatIn 0.7s var(--anim-ease-spring) forwards;
  opacity: 0;
}

.reveal .slides section.present .card:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0.3s); }
.reveal .slides section.present .card:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.48s); }
.reveal .slides section.present .card:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.66s); }
.reveal .slides section.present .card:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.84s); }

/* Numbered items - dramatic 150ms stagger */
.reveal .slides section.present .numbered-item {
  animation: fadeInUp 0.6s var(--anim-ease) forwards;
  opacity: 0;
}

/* Support both direct numbered-items and those inside .numbered-list container */
.reveal .slides section.present .numbered-item:nth-child(1),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0.25s); }
.reveal .slides section.present .numbered-item:nth-child(2),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.4s); }
.reveal .slides section.present .numbered-item:nth-child(3),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.55s); }
.reveal .slides section.present .numbered-item:nth-child(4),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.7s); }
.reveal .slides section.present .numbered-item:nth-child(5),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.85s); }
.reveal .slides section.present .numbered-item:nth-child(6),
.reveal .slides section.present .numbered-list > .numbered-item:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 1.0s); }

/* List items - slide in from left with 120ms stagger */
.reveal .slides section.present li {
  animation: fadeInLeft 0.5s var(--anim-ease) forwards;
  opacity: 0;
}

.reveal .slides section.present li:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0.35s); }
.reveal .slides section.present li:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.47s); }
.reveal .slides section.present li:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.59s); }
.reveal .slides section.present li:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.71s); }
.reveal .slides section.present li:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.83s); }
.reveal .slides section.present li:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 0.95s); }

/* Tags - pop in with bounce */
.reveal .slides section.present .tag {
  animation: floatIn 0.6s var(--anim-ease-spring) calc(var(--anim-base-delay) + 0.6s) forwards;
  opacity: 0;
}

/* Badge numbers - scale in with spring */
.reveal .slides section.present .badge-number {
  animation: scaleIn 0.5s var(--anim-ease-spring) forwards;
  opacity: 0;
}

.reveal .slides section.present table {
  animation: fadeInUp 0.8s var(--anim-ease) calc(var(--anim-base-delay) + 0.3s) forwards;
  opacity: 0;
}

/* Tip boxes - float in late for emphasis */
.reveal .slides section.present .tip-box {
  animation: floatIn 0.7s var(--anim-ease-spring) calc(var(--anim-base-delay) + 0.7s) forwards;
  opacity: 0;
}

/* Grid columns - staggered with 150ms intervals */
.reveal .slides section.present .grid-2 > div,
.reveal .slides section.present .grid-3 > div,
.reveal .slides section.present .grid-4 > div,
.reveal .slides section.present .grid-5 > div {
  animation: fadeInUp 0.6s var(--anim-ease) forwards;
  opacity: 0;
}

.reveal .slides section.present .grid-2 > div:nth-child(1),
.reveal .slides section.present .grid-3 > div:nth-child(1),
.reveal .slides section.present .grid-4 > div:nth-child(1),
.reveal .slides section.present .grid-5 > div:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0.3s); }
.reveal .slides section.present .grid-2 > div:nth-child(2),
.reveal .slides section.present .grid-3 > div:nth-child(2),
.reveal .slides section.present .grid-4 > div:nth-child(2),
.reveal .slides section.present .grid-5 > div:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.45s); }
.reveal .slides section.present .grid-2 > div:nth-child(3),
.reveal .slides section.present .grid-3 > div:nth-child(3),
.reveal .slides section.present .grid-4 > div:nth-child(3),
.reveal .slides section.present .grid-5 > div:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.6s); }
.reveal .slides section.present .grid-2 > div:nth-child(4),
.reveal .slides section.present .grid-3 > div:nth-child(4),
.reveal .slides section.present .grid-4 > div:nth-child(4),
.reveal .slides section.present .grid-5 > div:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.75s); }
.reveal .slides section.present .grid-3 > div:nth-child(5),
.reveal .slides section.present .grid-5 > div:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.9s); }
.reveal .slides section.present .grid-3 > div:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 1.05s); }

/* Word cloud items - staggered */
.reveal .slides section.present .word-cloud span {
  animation: fadeInUp 0.5s var(--anim-ease) forwards;
  opacity: 0;
  display: inline-block;
}

.reveal .slides section.present .word-cloud span:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0.1s); }
.reveal .slides section.present .word-cloud span:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.2s); }
.reveal .slides section.present .word-cloud span:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.3s); }
.reveal .slides section.present .word-cloud span:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.4s); }
.reveal .slides section.present .word-cloud span:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.5s); }
.reveal .slides section.present .word-cloud span:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 0.6s); }
.reveal .slides section.present .word-cloud span:nth-child(7) { animation-delay: calc(var(--anim-base-delay) + 0.7s); }
.reveal .slides section.present .word-cloud span:nth-child(8) { animation-delay: calc(var(--anim-base-delay) + 0.8s); }
.reveal .slides section.present .word-cloud span:nth-child(9) { animation-delay: calc(var(--anim-base-delay) + 0.9s); }

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  margin: 0 0 24px 0;
  color: var(--enginy-dark);
  font-family: var(--enginy-font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: none;
}

.reveal h1 { font-size: 2.8em; }
.reveal h2 { font-size: 1.9em; }
.reveal h3 { font-size: 1.4em; }
.reveal h4 { font-size: 1.1em; }

.reveal p {
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/*********************************************
 * BACKGROUNDS
 *********************************************/
.reveal .slides section { background: var(--enginy-white); }

.reveal .slides section.dark {
  background: var(--enginy-dark);
  color: var(--enginy-white);
}
.reveal .slides section.dark h1,
.reveal .slides section.dark h2,
.reveal .slides section.dark h3,
.reveal .slides section.dark h4 { color: var(--enginy-white); }

.reveal .slides section.teal {
  background: var(--enginy-teal);
  color: var(--enginy-white);
}
.reveal .slides section.teal h1,
.reveal .slides section.teal h2,
.reveal .slides section.teal h3 { color: var(--enginy-white); }

.reveal .slides section.green {
  background: var(--enginy-green);
  color: var(--enginy-teal);
}
.reveal .slides section.green h1,
.reveal .slides section.green h2 { color: var(--enginy-teal); }

.reveal .slides section.green-light {
  background: var(--enginy-green-light);
  color: var(--enginy-teal);
}
.reveal .slides section.green-light h1,
.reveal .slides section.green-light h2,
.reveal .slides section.green-light h3 { color: var(--enginy-teal); }

.reveal .slides section.gray { background: var(--enginy-gray-light); }

.reveal .slides section.purple {
  background: var(--enginy-dark-purple);
  color: var(--enginy-white);
}
.reveal .slides section.purple h1,
.reveal .slides section.purple h2,
.reveal .slides section.purple h3 { color: var(--enginy-white); }

/*********************************************
 * ACCENT TEXT
 *********************************************/
.reveal .accent { color: var(--enginy-green); }
.reveal .muted { color: var(--enginy-gray); }

/*********************************************
 * SLIDE CONTENT WRAPPER
 *********************************************/
.reveal .slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal .slide-content.top {
  justify-content: flex-start;
}

/*********************************************
 * BADGES & TAGS
 *********************************************/
.reveal .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  background: var(--enginy-green);
  color: var(--enginy-dark);
  font-size: 0.55em;
  font-weight: 700;
  border-radius: 10px;
  margin-right: 14px;
}

.reveal .badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--enginy-green);
  color: var(--enginy-white);
  font-size: 0.55em;
  font-weight: 700;
  border-radius: 10px;
  margin-right: 20px;
}

.reveal .tag {
  display: inline-block;
  padding: 12px 28px;
  background: var(--enginy-green);
  color: var(--enginy-dark);
  font-size: 0.45em;
  font-weight: 600;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reveal .tag-white {
  background: var(--enginy-white);
  color: var(--enginy-dark);
}

/*********************************************
 * TIP BOXES
 *********************************************/
.reveal .tip-box {
  background: var(--enginy-green-light);
  border-radius: 16px;
  padding: 28px 36px;
  margin: 24px 0;
  text-align: left;
  font-size: 0.6em;
  color: var(--enginy-teal);
}

.reveal .tip-box strong { color: var(--enginy-teal); }

/*********************************************
 * LISTS
 *********************************************/
.reveal ul {
  list-style-type: disc;
  margin-left: 1.2em;
  margin-bottom: 20px;
}

.reveal ul ul { list-style-type: circle; }

.reveal ol {
  list-style-type: decimal;
  margin-left: 1.2em;
}

.reveal li {
  margin-bottom: 0.6em;
  line-height: 1.5;
}

/*********************************************
 * TABLES
 *********************************************/
.reveal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65em;
}

.reveal table th {
  background: var(--enginy-gray-light);
  font-weight: 700;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 2px solid var(--enginy-gray);
}

.reveal table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--enginy-gray-light);
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--enginy-green-dark);
  text-decoration: none;
}

.reveal a:hover {
  color: var(--enginy-green);
  text-decoration: underline;
}

/*********************************************
 * CODE
 *********************************************/
.reveal code {
  font-family: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace;
  background: var(--enginy-gray-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
}

.reveal pre {
  background: var(--enginy-dark);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.reveal pre code {
  background: transparent;
  color: var(--enginy-white);
  padding: 0;
  max-height: 500px;
}

/*********************************************
 * IMAGES
 *********************************************/
.reveal .image-placeholder {
  background: var(--enginy-gray-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--enginy-gray);
  font-size: 0.55em;
}

.reveal img {
  border-radius: 12px;
}

.reveal img.no-radius {
  border-radius: 0;
}

/*********************************************
 * GRID LAYOUTS
 *********************************************/
.reveal .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.reveal .grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.reveal .grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.reveal .grid-5 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 25px;
  align-items: start;
}

/*********************************************
 * CARDS
 *********************************************/
.reveal .card {
  background: var(--enginy-white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.reveal .card-yellow { background: var(--enginy-yellow); }
.reveal .card-peach { background: var(--enginy-peach); }
.reveal .card-lavender { background: var(--enginy-lavender); }
.reveal .card-cyan { background: var(--enginy-cyan); }

/* Striped border cards */
.reveal .card-striped {
  position: relative;
  background: #fff;
  border: none;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.reveal .card-striped::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 6px;
  border-radius: 20px;
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe-color, var(--enginy-green)),
    var(--stripe-color, var(--enginy-green)) 5px,
    var(--stripe-color-light, rgba(61, 219, 133, 0.3)) 5px,
    var(--stripe-color-light, rgba(61, 219, 133, 0.3)) 10px
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.reveal .card-striped-green {
  --stripe-color: var(--enginy-green);
  --stripe-color-light: rgba(61, 219, 133, 0.35);
}
.reveal .card-striped-teal {
  --stripe-color: var(--enginy-teal);
  --stripe-color-light: rgba(27, 94, 79, 0.35);
}
.reveal .card-striped-gray {
  --stripe-color: #bbb;
  --stripe-color-light: rgba(0, 0, 0, 0.1);
}

.reveal .card h3 {
  font-size: 0.7em;
  margin-bottom: 14px;
}

.reveal .card p {
  font-size: 0.5em;
  color: var(--enginy-gray-dark);
  margin: 0;
  line-height: 1.5;
}

/*********************************************
 * CHAPTER DIVIDER
 *********************************************/
.reveal .chapter-number {
  font-size: 4em;
  font-weight: 300;
  opacity: 0.7;
  margin-bottom: 40px;
}

.reveal .chapter-title {
  font-size: 2.2em;
  font-weight: 700;
}

/*********************************************
 * PROGRESS & CONTROLS
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.1);
  height: 4px;
}

.reveal .progress span {
  background: var(--enginy-green);
}

.reveal .controls {
  color: var(--enginy-green);
}

/*********************************************
 * SPLIT LAYOUT - EDGE TO EDGE
 *********************************************/
.reveal .slides section:has(.split-layout) {
  padding: 0 !important;
}

.reveal .split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.reveal .split-layout .content {
  padding: var(--slide-padding);
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal .split-layout .visual {
  background: var(--enginy-gray-light);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reveal .split-layout .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/*********************************************
 * DARK HERO LAYOUT
 *********************************************/
.reveal .dark-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center;
}

.reveal .dark-hero .content {
  padding: var(--slide-padding);
  padding-top: 100px;
}

.reveal .dark-hero .visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.reveal .dark-hero .visual img {
  max-width: 90%;
}

.reveal .dark-hero .tag {
  position: absolute;
}

/*********************************************
 * TITLE HERO
 *********************************************/
.reveal .title-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  flex: 1;
  align-items: center;
}

.reveal .title-hero h1 {
  font-size: 3.2em;
  line-height: 1.05;
}

.reveal .title-hero .subtitle {
  font-size: 0.6em;
  color: var(--enginy-gray);
  margin-top: 24px;
}

.reveal .title-hero .visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal .title-hero .visual img {
  max-width: 100%;
  max-height: 500px;
}

/*********************************************
 * SPONSOR BAR
 *********************************************/
.reveal .sponsor-bar {
  position: absolute;
  bottom: 35px;
  left: var(--slide-padding);
  display: flex;
  align-items: center;
  gap: 28px;
}

.reveal .sponsor-bar .date-badge {
  background: var(--enginy-green);
  color: var(--enginy-dark);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.reveal .sponsor-bar .sponsors {
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0.5;
  font-size: 14px;
}

/*********************************************
 * NUMBERED ITEMS
 *********************************************/
.reveal .numbered-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.reveal .numbered-item h4 {
  font-size: 0.65em;
  margin: 0 0 10px 0;
}

.reveal .numbered-item p {
  font-size: 0.5em;
  color: var(--enginy-gray-dark);
  margin: 0;
  line-height: 1.5;
}

/*********************************************
 * CONTACT INFO
 *********************************************/
.reveal .contact-info {
  text-align: left;
  font-size: 0.6em;
}

.reveal .contact-info p {
  margin: 10px 0;
}

/*********************************************
 * WORD CLOUD
 *********************************************/
.reveal .word-cloud {
  font-size: 1.2em;
  line-height: 2.2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em 1em;
}

.reveal .word-cloud span {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

.reveal .word-cloud .muted {
  color: rgba(27, 94, 79, 0.5);
}

.reveal .word-cloud .highlight {
  color: var(--enginy-teal);
  font-weight: 700;
}

.reveal .word-cloud .highlight::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--enginy-green);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/*********************************************
 * FULL BLEED IMAGE
 *********************************************/
.reveal .slides section:has(.full-image) {
  padding: 0 !important;
}

.reveal .full-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.reveal .full-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.reveal .full-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--slide-padding);
  padding-top: 100px;
}

.reveal .full-image .overlay h1,
.reveal .full-image .overlay h2 {
  color: var(--enginy-white);
}

.reveal .full-image .overlay p {
  color: rgba(255,255,255,0.9);
}

/*********************************************
 * IMAGE GRID
 *********************************************/
.reveal .image-grid {
  display: grid;
  gap: 16px;
  flex: 1;
}

.reveal .image-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.reveal .image-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.reveal .image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/*********************************************
 * SPECIAL ANIMATED SLIDES
 *********************************************/

/* === DOT MATRIX ANIMATION === */
@keyframes dotPulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  20%, 80% { opacity: 1; transform: scale(1); }
}

@keyframes dotWave {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

@keyframes revealText {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(61, 219, 133, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(61, 219, 133, 0.6)); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Dot Matrix Container */
.dot-matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.dot-matrix-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background-image: radial-gradient(circle, var(--enginy-gray) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.15;
  animation: gradientShift 8s ease-in-out infinite;
}

.reveal .slides section.present .dot-matrix-bg::before {
  animation: gradientShift 8s ease-in-out infinite;
}

/* Animated Dots Grid */
.animated-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.animated-dots .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--enginy-green);
  border-radius: 50%;
  opacity: 0;
}

.reveal .slides section.present .animated-dots .dot {
  animation: dotPulse 3s var(--anim-ease) infinite;
}

.reveal .slides section.present .animated-dots .dot:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0s); }
.reveal .slides section.present .animated-dots .dot:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.2s); }
.reveal .slides section.present .animated-dots .dot:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.4s); }
.reveal .slides section.present .animated-dots .dot:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.6s); }
.reveal .slides section.present .animated-dots .dot:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.8s); }
.reveal .slides section.present .animated-dots .dot:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 1s); }
.reveal .slides section.present .animated-dots .dot:nth-child(7) { animation-delay: calc(var(--anim-base-delay) + 1.2s); }
.reveal .slides section.present .animated-dots .dot:nth-child(8) { animation-delay: calc(var(--anim-base-delay) + 1.4s); }
.reveal .slides section.present .animated-dots .dot:nth-child(9) { animation-delay: calc(var(--anim-base-delay) + 1.6s); }
.reveal .slides section.present .animated-dots .dot:nth-child(10) { animation-delay: calc(var(--anim-base-delay) + 1.8s); }
.reveal .slides section.present .animated-dots .dot:nth-child(11) { animation-delay: calc(var(--anim-base-delay) + 0.1s); }
.reveal .slides section.present .animated-dots .dot:nth-child(12) { animation-delay: calc(var(--anim-base-delay) + 0.3s); }

/* Floating Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  background: var(--enginy-green);
  border-radius: 50%;
  opacity: 0;
}

.reveal .slides section.present .particle {
  animation: floatParticle 8s var(--anim-ease) infinite;
}

.reveal .slides section.present .particle:nth-child(1) { left: 10%; animation-delay: calc(var(--anim-base-delay) + 0s); animation-duration: 7s; }
.reveal .slides section.present .particle:nth-child(2) { left: 20%; animation-delay: calc(var(--anim-base-delay) + 0.5s); animation-duration: 9s; }
.reveal .slides section.present .particle:nth-child(3) { left: 30%; animation-delay: calc(var(--anim-base-delay) + 1s); animation-duration: 6s; }
.reveal .slides section.present .particle:nth-child(4) { left: 40%; animation-delay: calc(var(--anim-base-delay) + 1.5s); animation-duration: 8s; }
.reveal .slides section.present .particle:nth-child(5) { left: 50%; animation-delay: calc(var(--anim-base-delay) + 0.3s); animation-duration: 10s; }
.reveal .slides section.present .particle:nth-child(6) { left: 60%; animation-delay: calc(var(--anim-base-delay) + 0.8s); animation-duration: 7s; }
.reveal .slides section.present .particle:nth-child(7) { left: 70%; animation-delay: calc(var(--anim-base-delay) + 1.3s); animation-duration: 9s; }
.reveal .slides section.present .particle:nth-child(8) { left: 80%; animation-delay: calc(var(--anim-base-delay) + 0.2s); animation-duration: 8s; }
.reveal .slides section.present .particle:nth-child(9) { left: 90%; animation-delay: calc(var(--anim-base-delay) + 0.7s); animation-duration: 6s; }
.reveal .slides section.present .particle:nth-child(10) { left: 15%; animation-delay: calc(var(--anim-base-delay) + 1.1s); animation-duration: 11s; }
.reveal .slides section.present .particle:nth-child(11) { left: 35%; animation-delay: calc(var(--anim-base-delay) + 0.4s); animation-duration: 7s; }
.reveal .slides section.present .particle:nth-child(12) { left: 55%; animation-delay: calc(var(--anim-base-delay) + 0.9s); animation-duration: 9s; }
.reveal .slides section.present .particle:nth-child(13) { left: 75%; animation-delay: calc(var(--anim-base-delay) + 1.4s); animation-duration: 8s; }
.reveal .slides section.present .particle:nth-child(14) { left: 85%; animation-delay: calc(var(--anim-base-delay) + 0.6s); animation-duration: 10s; }
.reveal .slides section.present .particle:nth-child(15) { left: 25%; animation-delay: calc(var(--anim-base-delay) + 1.2s); animation-duration: 6s; }

/* Shimmer Text Effect */
.shimmer-text {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 40%,
    var(--enginy-green) 50%,
    #ffffff 60%,
    #ffffff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1 !important;
}

.reveal .slides section.present .shimmer-text {
  animation: shimmer 3s var(--anim-ease) calc(var(--anim-base-delay) + 0.5s) infinite;
}

/* Glow Effect */
.glow-element {
  filter: drop-shadow(0 0 20px rgba(61, 219, 133, 0.3));
}

.reveal .slides section.present .glow-element {
  animation: glowPulse 2s var(--anim-ease) infinite;
}

/* Reveal Text Animation */
.reveal-text {
  clip-path: inset(0 100% 0 0);
  opacity: 1 !important;
}

.reveal .slides section.present .reveal-text {
  animation: revealText 1.2s var(--anim-ease) calc(var(--anim-base-delay) + 0.3s) forwards;
}

/* Typewriter Effect - no blink, just reveal */
.typewriter-container {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--enginy-green);
  width: 0;
}

.reveal .slides section.present .typewriter-container {
  animation: typewriter 2s steps(30) calc(var(--anim-base-delay) + 0.5s) forwards;
}

/* Wave Dots Row */
.wave-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.wave-dots .dot {
  width: 12px;
  height: 12px;
  background: var(--enginy-green);
  border-radius: 50%;
  opacity: 0.3;
}

.reveal .slides section.present .wave-dots .dot {
  animation: dotWave 1.5s var(--anim-ease) infinite;
}

.reveal .slides section.present .wave-dots .dot:nth-child(1) { animation-delay: calc(var(--anim-base-delay) + 0s); }
.reveal .slides section.present .wave-dots .dot:nth-child(2) { animation-delay: calc(var(--anim-base-delay) + 0.1s); }
.reveal .slides section.present .wave-dots .dot:nth-child(3) { animation-delay: calc(var(--anim-base-delay) + 0.2s); }
.reveal .slides section.present .wave-dots .dot:nth-child(4) { animation-delay: calc(var(--anim-base-delay) + 0.3s); }
.reveal .slides section.present .wave-dots .dot:nth-child(5) { animation-delay: calc(var(--anim-base-delay) + 0.4s); }
.reveal .slides section.present .wave-dots .dot:nth-child(6) { animation-delay: calc(var(--anim-base-delay) + 0.5s); }
.reveal .slides section.present .wave-dots .dot:nth-child(7) { animation-delay: calc(var(--anim-base-delay) + 0.6s); }
.reveal .slides section.present .wave-dots .dot:nth-child(8) { animation-delay: calc(var(--anim-base-delay) + 0.7s); }
.reveal .slides section.present .wave-dots .dot:nth-child(9) { animation-delay: calc(var(--anim-base-delay) + 0.8s); }
.reveal .slides section.present .wave-dots .dot:nth-child(10) { animation-delay: calc(var(--anim-base-delay) + 0.9s); }

/* Gradient Animated Background */
.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(-45deg, #1B5E4F, #2D2D44, #1B5E4F, #000000);
  background-size: 400% 400%;
  z-index: 0;
}

.reveal .slides section.present .gradient-bg {
  animation: gradientShift 15s ease infinite;
}

/* Centered content for special slides */
.special-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 60px;
  box-sizing: border-box;
}

/* Ensure special slides fill screen and center content */
.reveal .slides section:has(.special-content) {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Center content slides (thank you, contact, etc) */
.reveal .slides section.center-content {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.reveal .slides section.center-content .slide-content {
  justify-content: center;
  align-items: center;
}

.reveal .slides section:has(.gradient-bg),
.reveal .slides section:has(.dot-matrix-bg) {
  padding: 0 !important;
}

/* Full height for absolute positioned backgrounds */
.gradient-bg,
.dot-matrix-bg,
.particles-container,
.animated-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*********************************************
 * PRINT
 *********************************************/
@media print {
  .reveal .slides section::before,
  .reveal .slides section::after {
    display: none;
  }
}
