:root {
  /* Exact color theme from screenshot */
  --brand-teal: #3b8e89;
  --brand-teal-hover: #2f7571;
  --brand-teal-light: #e8f4f3;
  --brand-purple: #6a58eb;
  --brand-purple-hover: #5644db;
  --brand-purple-light: #f1edff;
  --brand-mint: #bfe5de;
  --brand-pink-soft: #fbf0f0;

  --bg-app: #0f1319;
  --slide-bg: #ffffff;
  --slide-bg-dark: #12161f;
  --border-light: #edf0f5;
  --border-dark: #222938;

  --text-dark: #12161f;
  --text-muted: #5e6b7e;
  --text-light-muted: #94a3b8;
  --text-white: #ffffff;

  --font-family: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'Kanit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-app);
  color: var(--text-dark);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

.deck-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* Top Bar */
.deck-topbar {
  position: absolute;
  top: 1rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.4rem 1.25rem 0.4rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.deck-meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-category-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fullscreen-btn:hover {
  background: var(--brand-teal);
}

/* Presentation Canvas Viewport */
.slide-viewport {
  position: relative;
  width: 100%;
  max-width: 1360px;
  height: calc(100vh - 6.5rem);
  max-height: 780px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: var(--slide-bg);
}

/* Slide Panels */
.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3.25rem 4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px) scale(0.985);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.slide-item.prev {
  transform: translateX(-40px) scale(0.985);
}

.slide-item.dark-slide {
  background: var(--slide-bg-dark);
  color: #ffffff;
}

/* Slide Typography & Tags */
.slide-header {
  margin-bottom: 1.5rem;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.slide-tag::before {
  content: '';
  width: 18px;
  height: 2.5px;
  background: var(--brand-teal);
}

.slide-item.dark-slide .slide-tag {
  color: #38bdf8;
}

.slide-item.dark-slide .slide-tag::before {
  background: #38bdf8;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.slide-item.dark-slide .slide-title {
  color: #ffffff;
}

.slide-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-top: 0.4rem;
}

.slide-item.dark-slide .slide-subtitle {
  color: #94a3b8;
}

/* Buttons */
.btn-deck {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-teal {
  background: var(--brand-teal);
  color: #ffffff;
}

.btn-teal:hover {
  background: var(--brand-teal-hover);
  transform: translateY(-2px);
}

.btn-purple {
  background: var(--brand-purple);
  color: #ffffff;
}

.btn-purple:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: #111;
}

.btn-outline:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* Slide 1 Cover Layout */
.cover-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  height: 100%;
}

.cover-card-box {
  background: #f8fafc;
  border: 1.5px solid #edf2f7;
  border-radius: 24px;
  padding: 2.25rem;
  position: relative;
}

.cover-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.cover-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-teal);
  line-height: 1;
}

.cover-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Slide 2: Renowned Client Roster */
.clients-deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.client-deck-card {
  background: #f8fafc;
  border: 1.5px solid #e8ecf3;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.client-deck-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-teal);
  box-shadow: 0 12px 25px rgba(59, 142, 137, 0.15);
  background: #ffffff;
}

.client-deck-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.client-deck-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.client-deck-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Slide 3: Core Services */
.services-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 0.75rem;
}

.service-deck-card {
  background: #ffffff;
  border: 1.5px solid #edf0f5;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-deck-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.service-deck-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-deck-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.service-deck-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.deck-checklist {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.deck-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.deck-checklist svg {
  color: var(--brand-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Slide 4: Dark End-to-End Suite */
.dark-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.dark-deck-box {
  background: #1b202c;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 1.75rem;
  transition: var(--transition);
}

.dark-deck-box:hover {
  background: #232a3a;
  border-color: var(--brand-teal);
  transform: translateY(-3px);
}

.dark-deck-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(59, 142, 137, 0.2);
  color: #5eead4;
}

.dark-deck-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.dark-deck-box p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Slide 5: Team & ESTATEFLOW CRM */
.team-estateflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.team-card-banner {
  background: #fbf3f3;
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.estateflow-card {
  background: linear-gradient(145deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.estateflow-badge {
  display: inline-block;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.estateflow-features {
  list-style: none;
  margin: 1.25rem 0;
}

.estateflow-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #1f2937;
  margin-bottom: 0.6rem;
}

.estateflow-features svg {
  color: var(--brand-teal);
}

/* Slide 6: Calculator & Contact with Dropdowns */
.final-deck-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.deck-calc-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 2rem;
}

.calc-dropdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--text-dark);
  background: #ffffff;
  outline: none;
}

.calc-select:focus {
  border-color: var(--brand-teal);
}

.range-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--brand-teal);
  margin: 0.4rem 0 0.9rem 0;
  cursor: pointer;
}

.calc-stats-result {
  margin-top: 0.75rem;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

/* Bottom Bar */
.deck-bottom-bar {
  position: absolute;
  bottom: 1.25rem;
  left: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.deck-indicators {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.indicator-dot.active {
  background: var(--brand-teal);
  width: 28px;
  border-radius: 999px;
}

.deck-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-counter-badge {
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.nav-arrow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-arrow-btn:hover {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  transform: scale(1.06);
}

.keyboard-hint {
  color: #64748b;
  font-size: 0.785rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kbd-key {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .slide-viewport {
    height: calc(100vh - 8rem);
  }
  .slide-item {
    padding: 2rem 1.5rem;
  }
  .clients-deck-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-deck-grid,
  .dark-deck-grid,
  .cover-layout,
  .team-estateflow-grid,
  .final-deck-grid {
    grid-template-columns: 1fr;
  }
}
