:root {
    --bg-color: #f8f9fc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-blue: #2563eb;
    --accent-light: #dbeafe;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.6);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.6; /* Fade it slightly so text pops */
}

main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: flex-start; /* Align content to the left */
    align-items: center;
    pointer-events: none;
    padding: 2rem;
}

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

.content-wrapper {
    background: rgba(255, 255, 255, 0.5); /* Reduced opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.1);
    max-width: 650px; /* Narrower width for split layout */
    width: 90%;
    margin-left: 5%; /* Offset from the left edge */
    max-height: 90vh;
    overflow-y: auto;
}

.content-wrapper.wide {
    max-width: 1100px;
}

.content-wrapper.centered {
    text-align: center;
}

/* Typography Overrides for Slides */
h1 { margin-bottom: 2rem; }
.thesis-block { max-width: 700px; margin: 0 auto; text-align: left; }

/* Navigation */
.pagination-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-download {
    text-decoration: none;
    background: white;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: var(--accent-blue);
}

.btn-download::before {
    content: '↓';
    font-weight: 800;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-btn:hover { color: var(--accent-blue); }
.nav-btn:disabled { color: #ccc; cursor: not-allowed; }

.indicators {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-blue);
    transform: scale(1.3);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Reduced density for cards to fit in slide */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem; /* Increased gap for more space */
}

.pillar-card {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px; /* Radius 5 */
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #000000; /* Black stroke on hover */
}

.pillar-card h3 { font-size: 1.1rem; }
.pillar-card .focus { font-size: 0.8rem; margin-bottom: 0; }
.pillar-card .benchmark { display: none; }

/* --- Deficit Items (Aesthetic Strokes) --- */
.deficit-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.deficit-item.warning { border-left: 4px solid #ef4444; }
.deficit-item.info { border-left: 4px solid #3b82f6; }
.deficit-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }

/* --- New AGI Table Styles --- */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
}

.agi-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.agi-table th {
    background: rgba(243, 244, 246, 0.6);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: inherit;
}
.agi-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.agi-table tr:last-child td { border-bottom: none; }
.agi-table .highlight-head { color: var(--text-primary); }

.row-hover:hover { background: rgba(248, 250, 252, 0.5); transition: background 0.2s; }
.row-highlight { background: rgba(239, 246, 255, 0.3); }

.score-low { color: #dc2626; font-size: 1.1rem; }
.score-high { color: #2563eb; font-size: 1.1rem; }

/* Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.slide-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

