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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-emerald: linear-gradient(135deg, #10b981, #3b82f6);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ── Presentation Container ── */
.presentation { width: 100%; height: 100vh; position: relative; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateX(60px);
  background: var(--bg-primary);
}
.slide.active {
  opacity: 1; visibility: visible; transform: translateX(0);
}
.slide.exit-left {
  opacity: 0; visibility: hidden; transform: translateX(-60px);
}
.slide.exit-right {
  opacity: 0; visibility: hidden; transform: translateX(60px);
}

/* ── Backgrounds ── */
.slide-bg {
  position: absolute; inset: 0; z-index: 0;
}
.slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.85) 60%, rgba(10,14,26,0.98) 100%);
}
.slide-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(1.2);
}
.slide-content { position: relative; z-index: 1; width: 100%; max-width: 1200px; }

/* ── Title Slide ── */
.title-slide { text-align: center; }
.title-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 0.85rem; color: var(--accent-cyan); font-weight: 500;
  margin-bottom: 32px; letter-spacing: 2px; text-transform: uppercase;
  animation: fadeInDown 0.8s ease both;
}
.title-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.title-main {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.title-main .gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-subtitle {
  font-size: 1.3rem; color: var(--text-secondary); font-weight: 300;
  max-width: 700px; margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.title-meta {
  display: flex; justify-content: center; gap: 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.title-meta-item {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.85rem;
}
.title-meta-item .label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; }
.title-meta-item .value { color: var(--text-primary); font-weight: 500; }

/* ── Section Headers ── */
.section-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--accent-cyan);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem; font-weight: 700; margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 700px; line-height: 1.6; margin-bottom: 48px;
}

/* ── Content Layouts ── */
.split-layout {
  display: block; width: 100%;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

.image-showcase {
  display: none;
}

/* ── Benefit Cards ── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  width: 100%;
}
.benefit-card {
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
  transition: height 0.4s ease;
}
.benefit-card.blue::before { background: var(--gradient-blue); }
.benefit-card.gold::before { background: var(--gradient-gold); }
.benefit-card.emerald::before { background: var(--gradient-emerald); }
.benefit-card.cyan::before { background: linear-gradient(135deg, #06b6d4, #8b5cf6); }

.benefit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.benefit-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.benefit-card.blue .benefit-icon { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.benefit-card.gold .benefit-icon { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.benefit-card.emerald .benefit-icon { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.benefit-card.cyan .benefit-icon { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }

.benefit-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
}

/* ── Stats Row ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px; width: 100%;
}
.stat-card {
  text-align: center; padding: 28px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6,182,212,0.1);
}
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem; color: var(--text-secondary);
}

/* ── Feature List ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.feature-list li:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(8px);
}
.feature-list .icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
  background: rgba(59,130,246,0.15); color: var(--accent-blue);
}
.feature-list .text h4 {
  font-size: 1rem; font-weight: 600; margin-bottom: 4px;
}
.feature-list .text p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}

/* ── Process / Timeline ── */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  width: 100%; margin-top: 20px;
}
.process-step {
  text-align: center; padding: 32px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  transition: all 0.4s ease;
}
.process-step:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  background: var(--gradient-blue); color: white;
}
.process-step h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 600; margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.step-arrow {
  position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan); font-size: 1.2rem; z-index: 2;
}

/* ── Case Study ── */
.case-study-card {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
}
.case-study-card .case-img {
  display: none;
}

/* ── Print Styles for PDF Generation ── */
@media print {
  html, body {
    height: auto;
    overflow: visible;
    background: #0a0e1a; /* Keep dark background */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .presentation {
    height: auto;
    overflow: visible;
  }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    height: 100vh;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
  }
  .nav-controls, .progress-bar, .keyboard-hint {
    display: none !important;
  }
  .gradient-text, .stat-value {
    background: none !important;
    -webkit-text-fill-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
  }
}
.case-study-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem; font-weight: 700; margin-bottom: 16px;
}
.case-study-card .case-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: rgba(59,130,246,0.15); color: var(--accent-blue);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}

/* ── CTA / Final Slide ── */
.cta-slide { text-align: center; }
.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem; font-weight: 800; margin-bottom: 24px;
  line-height: 1.2;
}
.cta-text {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.6;
}
.cta-buttons {
  display: flex; justify-content: center; gap: 16px;
}
.cta-btn {
  padding: 14px 36px; border-radius: 12px; border: none;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.cta-btn.primary {
  background: var(--gradient-blue); color: white;
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}
.cta-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59,130,246,0.5); }
.cta-btn.secondary {
  background: var(--glass-bg); color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.cta-btn.secondary:hover { background: rgba(255,255,255,0.1); }

/* ── Navigation ── */
.nav-controls {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; border-radius: 50px; z-index: 100;
  background: rgba(17,24,39,0.9); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease;
  font-size: 1.1rem;
}
.nav-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--accent-cyan); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.slide-dots { display: flex; gap: 6px; }
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); cursor: pointer;
  transition: all 0.3s ease; border: none;
}
.slide-dot.active {
  background: var(--accent-cyan); width: 24px; border-radius: 4px;
}
.slide-counter {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
  min-width: 50px; text-align: center;
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  background: var(--gradient-blue);
  transition: width 0.5s ease;
}

/* ── Keyboard hint ── */
.keyboard-hint {
  position: fixed; top: 24px; right: 24px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(17,24,39,0.8); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem; color: var(--text-muted); z-index: 100;
}
.keyboard-hint kbd {
  padding: 2px 8px; border-radius: 4px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-family: inherit; color: var(--text-secondary);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in .benefit-card,
.animate-in .stat-card,
.animate-in .process-step,
.animate-in .feature-list li {
  animation: fadeInUp 0.6s ease both;
}
.animate-in .benefit-card:nth-child(1), .animate-in .stat-card:nth-child(1), .animate-in .process-step:nth-child(1), .animate-in .feature-list li:nth-child(1) { animation-delay: 0.1s; }
.animate-in .benefit-card:nth-child(2), .animate-in .stat-card:nth-child(2), .animate-in .process-step:nth-child(2), .animate-in .feature-list li:nth-child(2) { animation-delay: 0.2s; }
.animate-in .benefit-card:nth-child(3), .animate-in .stat-card:nth-child(3), .animate-in .process-step:nth-child(3), .animate-in .feature-list li:nth-child(3) { animation-delay: 0.3s; }
.animate-in .benefit-card:nth-child(4), .animate-in .stat-card:nth-child(4), .animate-in .process-step:nth-child(4), .animate-in .feature-list li:nth-child(4) { animation-delay: 0.4s; }
.animate-in .benefit-card:nth-child(5), .animate-in .feature-list li:nth-child(5) { animation-delay: 0.5s; }

/* ── Particle BG ── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .slide { padding: 40px; }
  .title-main { font-size: 3rem; }
  .split-layout { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .case-study-card { grid-template-columns: 1fr; }
}
