/* ==========================================================================
   AccMarket.pro Executive Presentation Deck - Light Theme & High-End Motion
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Color Palette (Light SaaS Premium) */
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-hover: #F8FAFC;
  
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-primary: rgba(79, 70, 229, 0.25);
  
  --primary: #4F46E5;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --emerald: #059669;
  --emerald-light: #ECFDF5;
  --emerald-glow: rgba(5, 150, 105, 0.15);
  
  --sky: #0284C7;
  --sky-light: #F0F9FF;
  
  --amber: #D97706;
  --amber-light: #FFFBEB;
  
  --rose: #E11D48;
  --rose-light: #FFF1F2;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.18);
  
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bn: 'Hind Siliguri', 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-bn), var(--font-en);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  user-select: none;
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.04) 0px, transparent 50%),
    radial-gradient(#E2E8F0 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
}

/* Vector SVG Icon Base */
.icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.icon-lg {
  width: 26px;
  height: 26px;
}

/* Ambient Subtle Background Blobs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatAmbient 16s ease-in-out infinite alternate;
}
.glow-1 { width: 500px; height: 500px; background: rgba(79, 70, 229, 0.09); top: -150px; left: -100px; }
.glow-2 { width: 550px; height: 550px; background: rgba(5, 150, 105, 0.08); bottom: -150px; right: -100px; animation-delay: -8s; }

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 35px) scale(1.12); }
}

/* ==========================================================================
   Header & Top Navigation
   ========================================================================== */
.top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.brand-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--emerald);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-nav-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-nav-action.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--border-primary);
}

/* ==========================================================================
   Slide Canvas & Animation Controller
   ========================================================================== */
.presentation-canvas {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.slide.prev {
  transform: translateY(-20px) scale(0.98);
}

/* Staggered entrance animations for elements inside active slide */
.slide.active .animate-in {
  animation: slideFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide.active .delay-1 { animation-delay: 0.08s; }
.slide.active .delay-2 { animation-delay: 0.16s; }
.slide.active .delay-3 { animation-delay: 0.24s; }
.slide.active .delay-4 { animation-delay: 0.32s; }

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Typography, Badges & Breadcrumbs
   ========================================================================== */
.slide-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border-primary);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.slide-heading {
  font-family: var(--font-en), var(--font-bn);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  margin-bottom: 0.6rem;
}

.slide-heading .gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-subheading {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 980px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Modern Cards & Grid Layouts
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.card-primary-highlight {
  border-color: rgba(79, 70, 229, 0.3);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FF 100%);
}

.card-emerald-highlight {
  border-color: rgba(5, 150, 105, 0.3);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

/* Feature Box Component */
.feature-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
}

.icon-badge.emerald {
  background: var(--emerald-light);
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.25);
}

.icon-badge.sky {
  background: var(--sky-light);
  color: var(--sky);
  border-color: rgba(2, 132, 199, 0.25);
}

.icon-badge.amber {
  background: var(--amber-light);
  color: var(--amber);
  border-color: rgba(217, 119, 6, 0.25);
}

.icon-badge.rose {
  background: var(--rose-light);
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.25);
}

.card:hover .icon-badge {
  transform: scale(1.08);
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bullet Points & Feature Lists */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.feature-list li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.feature-list li .check-icon {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list li .cross-icon {
  width: 18px;
  height: 18px;
  color: var(--rose);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Interactive Simulation & Visual Widgets
   ========================================================================== */
.widget-box {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #F8FAFC;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
}

.widget-dots {
  display: flex;
  gap: 6px;
}

.widget-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}
.widget-dot.red { background: #EF4444; }
.widget-dot.yellow { background: #F59E0B; }
.widget-dot.green { background: #10B981; }

.widget-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.widget-step.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.status-pill.processing {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

/* Metric Display Cards */
.metric-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-val {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-val.emerald { color: var(--emerald); }
.metric-val.sky { color: var(--sky); }
.metric-val.amber { color: var(--amber); }

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Interactive Tabs / Steps Indicator */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flow-node {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.flow-node:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.flow-node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.4rem;
}

.flow-node-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flow-connector {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: bold;
}

/* ==========================================================================
   Bottom Navigation & Progress Bar
   ========================================================================== */
.bottom-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.03);
}

.progress-track {
  flex: 1;
  max-width: 450px;
  height: 7px;
  background: var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 1.5rem;
}

.progress-fill {
  height: 100%;
  width: 7.7%;
  background: linear-gradient(90deg, #4F46E5, #06B6D4);
  border-radius: 10px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.slide-counter {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 80px;
}

.slide-counter span {
  color: var(--text-primary);
  font-weight: 800;
}

.nav-button-group {
  display: flex;
  gap: 0.6rem;
}

.btn-circle-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-circle-nav:hover:not(:disabled) {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-circle-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   Drawer Index (Slide Selector Panel)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.08);
}

.drawer-backdrop.open .drawer-content {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-light);
  border-color: var(--border-primary);
  color: var(--primary);
}

.drawer-link-num {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 26px;
}

/* ==========================================================================
   Responsive & Print Optimizations
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .slide-heading { font-size: 1.95rem; }
  .top-nav, .bottom-bar { padding: 0.65rem 1.25rem; }
  .presentation-canvas { padding: 1rem 1.25rem; }
}

@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .slide-heading { font-size: 1.55rem; }
  .slide-subheading { font-size: 0.92rem; }
  .hide-on-mobile { display: none; }
}

@media print {
  body {
    overflow: visible !important;
    height: auto !important;
    background: #FFFFFF !important;
  }
  .top-nav, .bottom-bar, .drawer-backdrop, .ambient-glow {
    display: none !important;
  }
  .presentation-canvas {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always !important;
    min-height: 100vh !important;
    padding: 2rem !important;
    display: flex !important;
    justify-content: center !important;
  }
}
