/* Design Tokens */
:root {
    --bg-main: #060913;
    --bg-surface: rgba(13, 18, 30, 0.45);
    --bg-surface-hover: rgba(20, 28, 45, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Technology Color Codings (Unified Blue & Cool Palette) */
    --blue: #1457ba;      /* Royal Blue - Main brand */
    --cyan: #549df2;      /* Bright Sapphire Blue - Accent/High contrast label */
    --green: #00d2c4;     /* Cool Teal-Green - High-contrast indicator */
    --purple: #6366f1;    /* Indigo-Blue */
    --magenta: #818cf8;   /* Light Indigo */
    --orange: #38bdf8;    /* Ocean Sky Blue */
    
    --text: #f3f4f6;
    --text-dim: #9ca3af;
    --text-bright: #ffffff;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-speed: 0.4s;
    --glass-blur: 24px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-weight: 700;
}

/* App Container Layout */
#presentation-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Ambient Glow Background Styling */
.ambient-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: float 25s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 80%);
    animation-duration: 20s;
}

.glow-2 {
    bottom: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 80%);
    animation-duration: 28s;
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--green) 0%, transparent 80%);
    animation-duration: 24s;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(5%, 8%) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95) rotate(360deg);
    }
}

/* Floating Bottom Dock (macOS/iOS Style) */
#bottom-dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: auto;
    width: auto;
    max-width: 90%;
}

#bottom-dock {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(13, 18, 30, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#bottom-dock:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
}

.dock-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 12px;
}

.dock-items {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.dock-items li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dim);
}

.dock-items li .num {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 2px;
}

.dock-items li .label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    position: absolute;
    bottom: 50px;
    background: rgba(8, 12, 22, 0.95);
    color: var(--text-bright);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(10px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}

.dock-items li:hover .label {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dock-items li:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-bright);
    transform: translateY(-4px) scale(1.08);
}

.dock-items li.active {
    background-color: rgba(20, 87, 186, 0.4);
    border: 1px solid var(--cyan);
    color: var(--text-bright);
    transform: scale(1.05);
}

/* Main Content Area */
#slides-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background: radial-gradient(circle at 60% 30%, rgba(20, 87, 186, 0.03) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

#presentation {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

/* Slide Shell */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease-in-out;
    padding: 40px 60px 115px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Custom Scrollbar for heavy slides */
.slide::-webkit-scrollbar {
    width: 6px;
}
.slide::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* General Slide Typographies */
.slide-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Slide 1: Title Slide */
.title-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.badge {
    background: rgba(20, 87, 186, 0.12);
    border: 1px solid rgba(20, 87, 186, 0.3);
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.title-slide h1 {
    font-size: 44px;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 900px;
    background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 300;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin-bottom: 40px;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tech-tag-icon {
    font-size: 16px;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

/* Slide 2: Status/Issues Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.status-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-surface-hover);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

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

.status-card .card-header .icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.status-card .card-body p {
    font-size: 14px;
    margin-bottom: 8px;
}

.status-card .problem {
    color: var(--text-dim);
}

.status-card .solution {
    color: var(--green);
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    margin-top: 8px;
}

/* Slide 3: Principles */
.principles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.principle-item {
    display: flex;
    gap: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

h4 {
    margin-bottom: 8px;
}

.principle-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

.num-badge {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.principle-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.principle-content p {
    font-size: 13.5px;
    color: var(--text-dim);
}

/* Slide 4: Flowchart Layout */
.flowchart-slide {
    max-width: 100% !important;
}

.flowchart-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.svg-container {
    background: rgba(8, 12, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

svg#interactive-flowchart {
    max-height: 420px;
    width: 100%;
}

/* SVG Elements styles */
.flow-node rect {
    fill: rgba(30, 41, 59, 0.8);
    stroke: var(--text-dim);
    stroke-width: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-node text {
    cursor: pointer;
    pointer-events: none;
}

.flow-node .node-title {
    fill: var(--text-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-anchor: middle;
}

.flow-node .node-sub {
    fill: var(--text-dim);
    font-family: var(--font-body);
    font-size: 8.5px;
    text-anchor: middle;
}

.flow-node:hover rect {
    fill: rgba(15, 23, 42, 0.95);
    stroke: var(--blue);
    filter: url(#glow);
}

.flow-node.active rect {
    fill: rgba(20, 87, 186, 0.1);
    stroke: var(--blue);
    stroke-width: 2px;
    filter: url(#glow);
}

/* AI Nodes */
.ai-node rect {
    cursor: pointer;
    transition: all 0.3s;
}
.ai-node:hover rect {
    fill: rgba(124, 58, 237, 0.1);
    filter: url(#glow);
}
.ai-node.active rect {
    fill: rgba(124, 58, 237, 0.2);
    stroke-width: 2px;
    filter: url(#glow);
}

/* BC Nodes */
.bc-node rect {
    cursor: pointer;
    transition: all 0.3s;
}
.bc-node:hover rect {
    fill: rgba(6, 182, 212, 0.1);
    filter: url(#glow);
}
.bc-node.active rect {
    fill: rgba(6, 182, 212, 0.2);
    stroke-width: 2px;
    filter: url(#glow);
}

/* SVG Line connector highlighters */
svg path, svg line {
    transition: all 0.3s ease;
}

.connector-highlight {
    stroke: var(--green) !important;
    stroke-width: 2.5px !important;
}

.connector-highlight-ai {
    stroke: var(--purple) !important;
    stroke-width: 1.5px !important;
}

.connector-highlight-bc {
    stroke: var(--cyan) !important;
    stroke-width: 1.5px !important;
}

/* Details Panel on Flowchart */
.flowchart-details {
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Fix for scrollable flex overflow */
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
}

#flowchart-active-details {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.detail-main-col {
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    #flowchart-active-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

#flowchart-default-msg {
    text-align: center;
    color: var(--text-dim);
    margin: auto 0;
}

#flowchart-default-msg .animation-pulse {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--blue);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.detail-header .badge {
    background: var(--blue);
    color: #000;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 0;
}

.detail-section {
    margin-bottom: 12px;
}

.detail-section h4 {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-section p {
    font-size: 13.5px;
    color: var(--text-bright);
}

.detail-section ul {
    list-style: none;
}

.detail-section ul li {
    font-size: 13.5px;
    color: var(--text-bright);
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.detail-section ul li::before {
    content: "•";
    color: var(--green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.detail-section.highlight {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

/* Slide 5 & 6: Timeline layout */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.timeline-step {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

.step-label {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.step-desc h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-bright);
}

.step-desc ul {
    list-style: none;
}

.step-desc ul li {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
}

.step-desc ul li::before {
    content: "▫";
    color: var(--blue);
    position: absolute;
    left: 0;
}

/* Slide 7: Platform Architecture */
.architecture-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arch-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 100px 1.5fr 1fr;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateX(5px);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

.card-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--blue);
    background: rgba(20, 87, 186, 0.08);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    border: 1px dashed rgba(20, 87, 186, 0.2);
}

.arch-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.arch-card .desc {
    font-size: 13px;
    color: var(--text-dim);
}

.arch-card .techs {
    font-family: monospace;
    font-size: 11px;
    color: var(--green);
    background: rgba(0, 223, 154, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 223, 154, 0.1);
    text-align: right;
}

/* Slide 8: Blockchain and Smart Contract */
.blockchain-columns {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.bc-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-column h3 {
    font-size: 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--blue);
    padding-left: 10px;
}

.strategy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.strategy-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.strategy-card p {
    font-size: 13px;
    color: var(--text-dim);
}

.strategy-card.active {
    border-color: var(--cyan);
    background: rgba(20, 87, 186, 0.1);
    box-shadow: 0 8px 32px 0 rgba(84, 157, 242, 0.15);
}

.strategy-card.active h4 {
    color: var(--cyan);
}

.data-split {
    padding: 20px;
    border-radius: 8px;
}

.split-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-row:first-child {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.split-row:not(:first-child) {
    background: rgba(0, 0, 0, 0.2);
}

.split-row .cell {
    padding: 12px;
    font-size: 12px;
}

.split-row .cell.header {
    font-weight: 600;
    color: var(--text-bright);
}

.split-row .cell:first-child {
    border-right: 1px solid var(--border-color);
}

.smart-contract-list {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.sc-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-badge span {
    font-size: 16px;
}

.sc-warn {
    font-size: 11.5px;
    color: var(--orange);
    border-top: 1px dashed rgba(255,255,255,0.06);
    padding-top: 10px;
}

/* Slide 9: AI Modules */
.ai-architecture {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.ai-modules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateX(4px);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

.ai-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.ai-card p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.ai-card .impact {
    font-size: 11.5px;
    color: var(--green);
    font-weight: 500;
}

.hitl-panel {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hitl-panel h3 {
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.hitl-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hitl-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hitl-step .circle {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--purple);
    color: var(--purple);
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.hitl-step p {
    font-size: 13px;
    color: var(--text-dim);
}

.hitl-step p strong {
    color: var(--text-bright);
}

/* Slide 10: Matrix Table */
.matrix-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
    background: var(--bg-surface);
}

.matrix-table th {
    background: rgba(13, 18, 30, 0.95);
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.matrix-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-bright);
}

.matrix-table td strong {
    font-weight: 600;
}

.color-purple { color: #a78bfa; }
.color-blue { color: #38bdf8; }
.color-cyan { color: #22d3ee; }
.color-green { color: #34d399; }
.color-orange { color: #fb923c; }

/* Slide 11: Roadmap & KPI */
.roadmap-kpi-columns {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.roadmap-col h3, .kpi-col h3 {
    font-size: 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--blue);
    padding-left: 10px;
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
}

.roadmap-card .time {
    font-size: 10.5px;
    color: var(--blue);
    background: rgba(20, 87, 186, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

.roadmap-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.roadmap-card p {
    font-size: 12px;
    color: var(--text-dim);
}

.kpi-col {
    padding: 20px;
    border-radius: 12px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
}

.kpi-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 10px rgba(0, 223, 154, 0.3);
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    margin: 4px 0 2px 0;
}

.kpi-sub {
    font-size: 10.5px;
    color: var(--text-dim);
    line-height: 1.3;
}

/* Slide 12: Conclusion */
.conclusion-slide {
    text-align: center;
    max-width: 1000px !important;
}

.conclusion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.conclusion-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.conclusion-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(20, 87, 186, 0.15);
}

.conclusion-card .num {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: 800;
    opacity: 0.05;
    font-family: var(--font-heading);
}

.conclusion-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--blue);
}

.conclusion-card p {
    font-size: 13.5px;
    color: var(--text-dim);
}

.conclusion-summary-text {
    background: linear-gradient(90deg, rgba(20, 87, 186, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(20, 87, 186, 0.15);
    padding: 16px 24px;
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    max-width: 800px;
}

/* Slide Navigation Bar (Repositioned to clear bottom dock) */
#presentation-controls {
    position: fixed;
    bottom: 20px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    pointer-events: none; /* Let pointer events fall through to slide content except on buttons */
}

.control-btn {
    background: rgba(13, 18, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto; /* Re-enable pointer events for buttons */
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(84, 157, 242, 0.4);
}

#slide-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    z-index: 1001;
}

#slide-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 8px var(--cyan);
    width: 0%;
    transition: width 0.3s ease;
}

#slide-number {
    position: fixed;
    top: 24px;
    right: 40px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(13, 18, 30, 0.65);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    z-index: 1000;
    letter-spacing: 0.5px;
}

/* Modal details for smaller screen */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dim);
}

.close-modal:hover {
    color: var(--text-bright);
}

/* Keyframe Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
}

.animation-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #presentation-container {
        flex-direction: column;
    }
    
    #slides-wrapper {
        height: 100vh;
    }
    
    .slide {
        padding: 40px 30px 120px 30px;
    }
    
    .flowchart-layout {
        grid-template-columns: 1fr;
    }
    
    .principles-container, .blockchain-columns, .roadmap-kpi-columns, .ai-architecture {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 24px 16px 105px 16px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 6px;
    }
    
    .section-desc {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .title-slide h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 10px;
        margin-bottom: 16px;
    }
    
    .tech-grid {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 12px;
    }
    
    .status-card {
        padding: 16px;
    }
    
    .status-card .card-header {
        margin-bottom: 12px;
    }
    
    .status-card h3 {
        font-size: 16px;
    }
    
    .status-card .card-body p {
        font-size: 13px;
    }
    
    .principles-container {
        gap: 12px;
    }
    
    .principle-item {
        padding: 14px;
        gap: 12px;
    }
    
    .num-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .timeline-grid {
        gap: 12px;
    }
    
    .timeline-step {
        padding: 16px;
    }
    
    .step-label {
        margin-bottom: 12px;
        font-size: 12px;
    }
    
    .step-desc h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .arch-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }
    
    .arch-card .techs {
        text-align: left;
        padding: 6px 10px;
    }
    
    .kpi-grid, .conclusion-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .conclusion-card {
        padding: 16px;
    }
    
    /* Bottom Dock Mobile Scrollability */
    #bottom-dock-container {
        width: 100%;
        max-width: 100%;
        bottom: 10px;
        padding: 0 10px;
    }
    
    #bottom-dock {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 6px 12px;
        border-radius: 16px;
    }
    
    #bottom-dock::-webkit-scrollbar {
        display: none;
    }
    
    .dock-items {
        gap: 4px;
    }
    
    .dock-items li {
        padding: 4px 8px;
        flex-shrink: 0;
    }
    
    .dock-items li .label {
        display: none !important; /* Hide labels entirely on hover on mobile */
    }
    
    #btn-fullscreen {
        display: none !important;
    }
    
    .dock-separator {
        display: none !important;
    }
    
    /* Fixed slide number for mobile */
    #slide-number {
        top: 16px;
        right: 16px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Left/Right controls adjustment on mobile */
    #presentation-controls {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}

/* Interactive Flowchart Tabs styling */
.tab-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 4px 4px 0 0;
}

.tab-btn:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: rgba(20, 87, 186, 0.03);
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

.tab-content.active.grid-layout {
    display: grid;
}

.tab-content.active.flex-layout {
    display: flex;
}

/* SVG Flowchart Styling */
.diagram-container {
    background: rgba(8, 12, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
    height: 100%;
    max-height: 480px;
    width: 100%;
}

.diagram-container svg {
    width: 100%;
    height: 100%;
    max-height: 440px;
}

/* Styled SVG elements for new diagrams */
.diag-group-box {
    fill: rgba(255, 255, 255, 0.01);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    stroke-dasharray: 4,4;
}

.diag-node-box {
    fill: rgba(20, 28, 45, 0.9);
    stroke: var(--border-color);
    stroke-width: 1.2px;
    transition: all 0.3s;
}

.diag-node-box:hover {
    fill: rgba(30, 41, 59, 0.95);
    stroke: var(--blue);
    filter: url(#glow);
    cursor: pointer;
}

.diag-node-text {
    fill: var(--text);
    font-family: var(--font-body);
    font-size: 11px;
    text-anchor: middle;
    pointer-events: none;
}

.diag-header-text {
    fill: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
}

.diag-group-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.diag-link {
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 1.5px;
    opacity: 0.5;
    transition: all 0.3s;
}

.diag-link.active {
    stroke: var(--blue);
    stroke-width: 2px;
    opacity: 1;
}

.diag-link.highlight-green {
    stroke: var(--green);
    stroke-width: 2px;
    opacity: 1;
}

.diag-link.highlight-red {
    stroke: var(--magenta);
    stroke-width: 2px;
    opacity: 1;
}

