:root {
  --primary-color: #003366;
  /* Deep Blue */
  --secondary-color: #C5A059;
  /* Gold Accent */
  --text-color: #333333;
  --bg-color: #FFFFFF;
  --light-grey: #F5F7FA;
  --border-color: #E1E4E8;
  --font-family: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--light-grey);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Aspect Ratio Container - 16:9 */
.presentation-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.aspect-ratio-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: min(calc(100vh * 4 / 3), 100vw);
  max-height: min(calc(100vw * 3 / 4), 100vh);
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

#slide-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Navigation */
/* .nav-controls removed, moved to footer */

.nav-btn {
  width: 116px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover:not(:disabled) {
  background: #004080;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 51, 102, 0.25);
}

.nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.slide-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 51, 102, 0.1);
  z-index: 101;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
  width: 0%;
}

/* Slide Footer */
.slide-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background: transparent;
  border-top: 1px solid var(--primary-color);
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: auto;
  /* Enable clicks for buttons */
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  color: var(--border-color);
  font-size: 1.5rem;
  font-weight: 300;
}

/* Slide Container */
.slide-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 40px 50px 50px 50px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  /* Allow clicking through inactive slides */
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  z-index: 10;
}

/* Slide Content Styling */
.slide-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.slide-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.slide-content {
  flex: 1;
  display: flex;
  gap: 40px;
  align-items: center;
}

.slide-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.6;
}

.slide-text ul,
.slide-text ol {
  padding-left: 25px;
}

.slide-text li {
  margin-bottom: 15px;
}

.slide-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-grey);
  border-radius: 12px;
  height: 100%;
  max-height: 600px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.slide-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Specific Layouts */
.layout-agenda .slide-content {
  display: block;
}

.layout-agenda ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: agenda-counter;
}

.layout-agenda li {
  counter-increment: agenda-counter;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.layout-agenda li::before {
  content: counter(agenda-counter);
  background: var(--secondary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: 700;
}

.layout-split {
  /* Default flex layout works for split */
}

.layout-split-reverse .slide-content {
  flex-direction: row-reverse;
}

.layout-split-reverse .slide-visual {
  flex: 0 0 40%;
  max-width: 40%;
}

.layout-split-reverse .slide-text {
  flex: 0 0 60%;
  max-width: 60%;
}


.layout-full {
  flex-direction: column;
}

.layout-full .slide-visual {
  width: 100%;
  flex: 2;
}

.layout-full .slide-text {
  flex: 1;
}

/* Stacked Columns Layout */
.layout-stacked-columns .slide-content {
  display: block;
}

.stacked-columns-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  height: 100%;
  align-items: top;
  padding: 20px;
}

.text-column-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  padding: 0 20px;
}

.text-column-stack .text-item {
  display: flex;
  align-items: flex-start;
}

.text-column-stack .text-item p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

.image-column-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  align-items: center;
}

.image-column-stack .image-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-column-stack .image-item img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Requirements Container */
.requirements-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.requirement-card {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 4px 8px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

.requirement-card:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.15);
  border-left-color: var(--primary-color);
}

.requirement-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}

.requirement-content {
  flex: 1;
}

.requirement-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
}


/* Mermaid Container for Full Layout */
.mermaid-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 20px; */
}

.mermaid-container .mermaid {
  width: 100%;
  max-width: 100%;
  max-height: 700px;
  display: flex;
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active .slide-title {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide.active .slide-text {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
  /* Start hidden for animation */
}

.slide.active .slide-visual {
  animation: fadeIn 0.6s ease-out 0.4s forwards;
  opacity: 0;
  /* Start hidden for animation */
}

/* Mermaid Split Layout (Slide 6) */
.mermaid-split-container {
  display: flex;
  gap: 40px;
  height: 100%;
  align-items: center;
}

.mermaid-column {
  flex: 5;
  /* Ensure diagram fits */
  min-width: 0;
}

.text-column {
  flex: 3;
  font-size: 1.1rem;
}

.text-column h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.text-column ul {
  list-style: none;
  padding: 0;
}

.text-column li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.text-column li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
  top: -2px;
}

/* Grid Layout for Slide 4 */
.layout-grid .slide-content {
  display: block;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 51, 102, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 51, 102, 0.2);
  border-color: var(--secondary-color);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.card-icon {
  width: 50px;
  height: 50px;
  /* background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%); */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
}

.card-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Timeline Layout for Slide 12 */
.timeline-container {
  position: relative;
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline-line {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  margin: 0;
  border-radius: 2px;
}

.timeline-line::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid var(--secondary-color);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.timeline-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 25px;
  position: absolute;
  width: 100%;
  left: 0;
}

.timeline-content {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
  padding: 0 10px;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 35px;
}

/* Proposal Layout for Slide 12 */
.proposal-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.proposal-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 25px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 4px 6px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease;
}

.proposal-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.15);
  border-left-color: var(--primary-color);
}

.proposal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.proposal-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proposal-icon svg {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
}

.proposal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.proposal-content {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Roadmap Table */
.roadmap-table-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.roadmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.roadmap-table th {
  background: var(--primary-color);
  color: white;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  border-bottom: 3px solid var(--secondary-color);
}

.roadmap-table th:first-child {
  border-top-left-radius: 8px;
}

.roadmap-table th:last-child {
  border-top-right-radius: 8px;
}

.roadmap-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  color: var(--text-color);
  vertical-align: middle;
}

.roadmap-table tr:last-child td {
  border-bottom: none;
}

.roadmap-table tr:hover td {
  background-color: #f8f9fa;
}

.roadmap-date {
  font-weight: 600;
  color: var(--primary-color);
  font-family: monospace;
  font-size: 1.2rem;
}

.roadmap-table td.highlight {
  background-color: rgba(197, 160, 89, 0.1);
  /* Secondary color with opacity */
  color: #003366;
  border-bottom: 1px solid var(--secondary-color);
}

.roadmap-table tr:hover td.highlight {
  background-color: rgba(197, 160, 89, 0.2);
}