/* Tokyo Night Theme for reveal.js */
/* hitit.ai - AI Education for the Thoughtful Mind */
/* Enhanced with Lucide icons and polished animations */

:root {
    /* Tokyo Night Color Palette - Enhanced Contrast */
    --bg-primary: #16161e;
    --bg-surface: #1f2335;
    --bg-highlight: #292e42;
    --bg-elevated: #24283b;

    /* Text - Improved readability (WCAG 4.5:1+ contrast) */
    --text-primary: #e8eaf6;      /* Brighter off-white for body */
    --text-heading: #ffffff;       /* Pure white for headings */
    --text-secondary: #c0caf5;     /* Previous primary as secondary */
    --text-muted: #787c99;         /* Brightened muted */

    /* Accents - Luminescent colors with semantic meaning */
    --accent-purple: #c49bff;      /* Primary/Brand - Q1, main CTAs */
    --accent-blue: #82aaff;        /* Trust, links, info */
    --accent-cyan: #89ddff;        /* Information/Tech - Q3 */
    --accent-green: #a6e3a1;       /* Success/Growth - Q4 MVP */
    --accent-red: #ff7a93;         /* Warning/Safety - Q2 */
    --accent-orange: #ffb86c;      /* Action/Maintenance - Q5 */
    --accent-yellow: #f1c983;      /* Highlights */

    /* Glow colors for luminescent effects */
    --glow-purple: rgba(196, 155, 255, 0.6);
    --glow-cyan: rgba(137, 221, 255, 0.6);
    --glow-green: rgba(166, 227, 161, 0.6);
    --glow-red: rgba(255, 122, 147, 0.6);
    --glow-orange: rgba(255, 184, 108, 0.6);

    /* hitit.ai Brand Accents */
    --brand-teal: #00b3b3;
    --brand-navy: #1E3A5F;
    --brand-amber: #e69a1f;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
.reveal-viewport {
    background: var(--bg-primary);
}

.reveal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    color: var(--text-primary);
}

.reveal .slides {
    text-align: left;
}

.reveal .slides section {
    padding: var(--space-xl);
}

/* Remove padding from sections with split-screen layout */
.reveal .slides section:has(.split-screen) {
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography - Enhanced Readability */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--space-lg);
    text-transform: none;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.reveal h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 0 60px rgba(196, 155, 255, 0.3);
}
.reveal h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(196, 155, 255, 0.2);
}
.reveal h3 { font-size: 2rem; font-weight: 600; }
.reveal h4 { font-size: 1.5rem; font-weight: 600; }

.reveal p {
    line-height: 1.85;
    margin-bottom: var(--space-md);
    font-weight: 400;
    font-size: 1.1rem;
}

.reveal strong {
    font-weight: 600;
    color: var(--text-heading);
}

/* Accent Colors */
.accent-purple { color: var(--accent-purple); }
.accent-cyan { color: var(--accent-cyan); }
.accent-blue { color: var(--accent-blue); }
.accent-green { color: var(--accent-green); }
.accent-red { color: var(--accent-red); }
.accent-orange { color: var(--accent-orange); }
.dim-text { color: var(--text-muted); }

.accent-bg {
    background: var(--accent-purple);
    color: var(--bg-primary);
    padding: 0.2em 0.6em;
    border-radius: var(--radius-sm);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Strikethrough */
.strikethrough {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ==================== SLIDE 1: Title ==================== */
.title-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

/* Split Screen Layout - Two Equal Containers */
/* Works with Reveal.js scaling (1920x1080) */

.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 1920px;
    height: 1080px;
    margin: 0;
    padding: 0;
    background: #16161e;
    box-sizing: border-box;
}

/* Left container - Image */
.split-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #16161e;
    box-sizing: border-box;
}

.split-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

/* Slide 1 hero image - full opacity */
.split-image.hero img {
    opacity: 1;
}

/* Right container - Text */
.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;  /* Reduced padding for more content space */
    background: #16161e;
    box-sizing: border-box;
    overflow: hidden;  /* No scrollbar */
}

/* Remove bottom margin from last child to balance spacing */
.split-content > *:last-child {
    margin-bottom: 0;
}

/* Remove top margin from first child */
.split-content > *:first-child {
    margin-top: 0;
}

/* Centered text content variant (for title slides) */
/* Positions "Playbook" at vertical center (540px from top) */
.split-content.centered {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 267px;  /* reduced another 5% */
}

/* Ensure image container is fully centered */
.split-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-content .logo-glow {
    margin-bottom: var(--space-lg);
}

.split-content .main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.split-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.split-content .badge-container {
    margin-bottom: var(--space-xl);
}

.split-content .scroll-hint {
    margin-top: auto;
}

.logo-glow {
    margin-bottom: var(--space-lg);
}

.logo-text {
    font-size: 2.2rem;  /* 10% larger */
    font-weight: 700;
    color: var(--text-primary);
}

.main-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.badge-container {
    margin-bottom: var(--space-xl);
}

.badge {
    display: inline-block;
    padding: 0.5em 1.2em;
    background: var(--bg-surface);
    border: 1px solid var(--accent-purple);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    color: var(--accent-purple);
}

.badge.glow {
    box-shadow: 0 0 20px rgba(187, 154, 247, 0.3);
}

.scroll-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== SLIDE 2: Problem ==================== */
.constraints-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.constraint-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.4rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-purple);
}

.constraint-item .icon {
    font-size: 1.8rem;
}

.glow-red { text-shadow: 0 0 10px var(--accent-red); }
.glow-cyan { text-shadow: 0 0 10px var(--accent-cyan); }
.glow-purple { text-shadow: 0 0 10px var(--accent-purple); }
.glow-orange { text-shadow: 0 0 10px var(--accent-orange); }

.callout-box {
    text-align: center;
    margin-top: var(--space-lg);  /* Reduced from xl */
    padding: var(--space-md);  /* Reduced from lg */
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-highlight);
}

.callout-box p {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

/* ==================== SLIDE 3: Transformation ==================== */
.transformation {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Left aligned */
    gap: var(--space-lg);  /* Reduced gap */
    margin: var(--space-lg) 0;
}

.state {
    text-align: center;
    padding: var(--space-md);
    min-width: 200px;  /* Reduced from 300px */
}

.state.before {
    opacity: 0.7;
}

.state.after {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(125, 207, 255, 0.2);
}

.state-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.state-content {
    font-size: 1.5rem;
}

.transform-arrow {
    font-size: 3rem;
}

.arrow-glow {
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple);
}

.promise {
    text-align: center;
    font-size: 1.4rem;
    margin-top: var(--space-xl);
}

/* ==================== SLIDE 4: Calculator ==================== */
.question-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.q-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-purple);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}

.q-badge.warning {
    background: var(--accent-red);
}

.formula-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Left aligned */
    gap: var(--space-sm);  /* Reduced gap */
    margin: var(--space-md) 0;
    font-size: 1.4rem;  /* Smaller font */
    flex-wrap: wrap;
}

.formula-part {
    padding: 0.5em 1em;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
}

.formula-op {
    color: var(--text-muted);
}

.formula-result {
    padding: 0.5em 1em;
    background: var(--accent-green);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* Glass Card */
.glass-card {
    background: rgba(36, 40, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.glow-border {
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 20px rgba(158, 206, 106, 0.3);
}

/* Calculator */
.calculator {
    max-width: 100%;
    margin: 0;  /* Left aligned */
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);  /* Reduced gap */
    margin-bottom: var(--space-md);
}

.calc-input label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.input-dark {
    width: 100%;
    padding: var(--space-sm);
    background: var(--bg-primary);
    border: 1px solid var(--bg-highlight);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
}

.input-dark:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.pain-buttons {
    display: flex;
    gap: var(--space-xs);
}

.pain-btn {
    flex: 1;
    padding: var(--space-sm);
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pain-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.pain-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--bg-primary);
}

.calc-output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.output-number {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.output-number span:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.output-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.verdict {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.verdict.positive {
    background: rgba(158, 206, 106, 0.2);
    color: var(--accent-green);
}

.verdict.negative {
    background: rgba(247, 118, 142, 0.2);
    color: var(--accent-red);
}

.verdict.maybe {
    background: rgba(224, 175, 104, 0.2);
    color: var(--accent-yellow);
}

/* ==================== SLIDE 5: Safety Checklist ==================== */
.slide-tagline {
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.safety-grid {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

.safety-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.safety-item:hover {
    background: var(--bg-highlight);
}

.safety-check {
    display: none;
}

.checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.safety-check:checked + .checkmark {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.safety-check:checked + .checkmark::after {
    content: '✓';
    color: var(--bg-primary);
    font-weight: bold;
}

.safety-text {
    font-size: 1.1rem;
}

.safety-verdict {
    text-align: center;
    padding: var(--space-md);
    font-size: 1.3rem;
}

.safety-verdict .pending {
    color: var(--text-muted);
}

.safety-verdict .safe {
    color: var(--accent-green);
}

.safety-verdict .unsafe {
    color: var(--accent-red);
}

/* ==================== SLIDE 6: Mini-Spec ==================== */
.test-question {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-lg);
}

.minispec-preview {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

.minispec-header {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--bg-highlight);
}

.minispec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.spec-item .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-purple);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
}

.minispec-verdict {
    text-align: center;
    font-size: 1.2rem;
}

/* ==================== SLIDE 7: MVP ==================== */
.mvp-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.scope-card {
    width: 90%;
    max-width: 600px;
    padding: var(--space-md);
    text-align: center;
    margin: 0 auto;  /* Center the cards */
}

.scope-card.full {
    opacity: 0.7;
}

.scope-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.scope-card p {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.scope-warning {
    color: var(--accent-red);
    font-size: 0.95rem;
}

.scope-success {
    color: var(--accent-green);
    font-size: 0.95rem;
}

.scope-arrow {
    font-size: 2rem;
}

.arrow-down {
    color: var(--accent-purple);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.mvp-mantra {
    text-align: center;
    font-size: 1.5rem;
    margin-top: var(--space-lg);
}

.mvp-mantra span {
    margin: 0 var(--space-sm);
}

/* ==================== SLIDE 8: Maintenance ==================== */
.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: var(--space-lg) auto;
}

.maint-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
}

.maint-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    width: 56px;
    height: 56px;
}

.maint-card .glow-icon {
    font-size: 1.5rem;
}

.maint-card p {
    font-size: 1.1rem;
    margin: 0;
}

.maintenance-warning {
    text-align: center;
    font-size: 1.2rem;
    margin-top: var(--space-lg);
}

/* ==================== SLIDE 9: Summary ==================== */
.summary-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.playbook-summary {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.playbook-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.row-q {
    font-weight: 700;
    font-size: 1.2rem;
}

.row-text {
    font-size: 1.2rem;
}

.row-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: right;
}

.decision-row {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.decision-badge {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
}

.decision-badge.proceed {
    background: rgba(158, 206, 106, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.decision-badge.defer {
    background: rgba(224, 175, 104, 0.2);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

.decision-badge.skip {
    background: rgba(247, 118, 142, 0.2);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

/* ==================== SLIDE 10: CTA ==================== */
.cta-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 60px;
    box-sizing: border-box;
}

.cta-slide h2 {
    margin-bottom: var(--space-lg);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.series-name {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.series-episodes {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.episode-preview {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.ep-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    min-width: 140px;
}

.ep-label {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.ep-name {
    font-size: 1rem;
    color: var(--text-primary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-purple);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(187, 154, 247, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.cta-button.secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.glow-button {
    box-shadow: 0 0 20px rgba(187, 154, 247, 0.3);
}

.play-icon {
    font-size: 1rem;
}

/* ==================== SLIDE 11: Toolkit ==================== */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) auto;
    max-width: 1000px;
}

.toolkit-card {
    text-align: center;
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.toolkit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

.toolkit-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    width: 64px;
    height: 64px;
}

.toolkit-card .glow-icon {
    font-size: 1.5rem;
}

.toolkit-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.toolkit-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== SLIDE 12: About ==================== */
.about-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.brand-logo {
    margin-bottom: var(--space-lg);
}

.logo-large {
    font-size: 3rem;
    font-weight: 700;
}

.brand-tagline {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: var(--space-md);
}

.brand-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.social-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.social-link {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--accent-purple);
    color: var(--bg-primary);
}

.closing-quote {
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .reveal { font-size: 24px; }
    .main-title { font-size: 3.5rem; }
    .toolkit-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .reveal { font-size: 18px; }
    .main-title { font-size: 2.5rem; }
    .transformation { flex-direction: column; }
    .minispec-grid { grid-template-columns: 1fr; }
    .maintenance-grid { grid-template-columns: 1fr; }
    .episode-preview { flex-direction: column; }
}

/* ==================== reveal.js Overrides ==================== */
.reveal .controls {
    color: var(--accent-purple);
    bottom: 50%;
    transform: translateY(50%);
}

.reveal .progress {
    background: var(--bg-surface);
    color: var(--accent-purple);
}

.reveal .progress span {
    background: var(--accent-purple);
}

.reveal .slide-number {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* ==================== Luminescent Icons ==================== */
.glow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: 300;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glow-icon.red {
    color: var(--accent-red);
    box-shadow:
        0 0 10px var(--glow-red),
        0 0 20px rgba(255, 122, 147, 0.3),
        inset 0 0 10px rgba(255, 122, 147, 0.1);
    border-color: rgba(255, 122, 147, 0.3);
}

.glow-icon.cyan {
    color: var(--accent-cyan);
    box-shadow:
        0 0 10px var(--glow-cyan),
        0 0 20px rgba(137, 221, 255, 0.3),
        inset 0 0 10px rgba(137, 221, 255, 0.1);
    border-color: rgba(137, 221, 255, 0.3);
}

.glow-icon.purple {
    color: var(--accent-purple);
    box-shadow:
        0 0 10px var(--glow-purple),
        0 0 20px rgba(196, 155, 255, 0.3),
        inset 0 0 10px rgba(196, 155, 255, 0.1);
    border-color: rgba(196, 155, 255, 0.3);
}

.glow-icon.orange {
    color: var(--accent-orange);
    box-shadow:
        0 0 10px var(--glow-orange),
        0 0 20px rgba(255, 184, 108, 0.3),
        inset 0 0 10px rgba(255, 184, 108, 0.1);
    border-color: rgba(255, 184, 108, 0.3);
}

.glow-icon.green {
    color: var(--accent-green);
    box-shadow:
        0 0 10px var(--glow-green),
        0 0 20px rgba(166, 227, 161, 0.3),
        inset 0 0 10px rgba(166, 227, 161, 0.1);
    border-color: rgba(166, 227, 161, 0.3);
}

/* Animated pulse for icons */
@keyframes iconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Constraint list with luminescent icons */
.constraints-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.constraint-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.constraint-item:hover {
    background: var(--bg-highlight);
    transform: translateX(5px);
}

/* Content layout */
.content-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.content-split > *:first-child {
    flex: 1;
}

@media (max-width: 1200px) {
    .content-split {
        flex-direction: column;
    }

    .glow-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ==================== Animation Classes ==================== */
.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
body:not(.loaded) .illustration-img {
    opacity: 0;
}

body.loaded .illustration-img {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

/* ==================== Modal/Popup System ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 22, 30, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(196, 155, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .glow-icon {
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-highlight);
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.modal-body ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.modal-body li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.modal-body li::marker {
    color: var(--accent-cyan);
}

.modal-body strong {
    color: var(--text-heading);
}

.modal-body .highlight {
    background: rgba(196, 155, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-purple);
}

.modal-body .stat {
    display: inline-block;
    background: var(--bg-highlight);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin: 0 4px;
}

.modal-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Make clickable items have cursor pointer */
.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    transform: scale(1.02);
}

.constraint-item.clickable:hover {
    background: var(--bg-highlight);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Info hint icon */
.info-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    background: rgba(137, 221, 255, 0.2);
    color: var(--accent-cyan);
    border-radius: 50%;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.clickable:hover .info-hint {
    opacity: 1;
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

/* ==================== Click Hints & Info Buttons ==================== */

/* Click hint - appears below items */
.click-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-top: 4px;
    font-style: italic;
    transition: opacity 0.2s ease;
}

.clickable:hover .click-hint {
    opacity: 1;
    color: var(--accent-cyan);
}

/* Inline click hint */
.click-hint-inline {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
    font-weight: 400;
}

/* Info button (?) for safety items */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(196, 155, 255, 0.25) 0%, rgba(137, 221, 255, 0.2) 100%);
    color: var(--text-heading);
    border: 1px solid rgba(196, 155, 255, 0.5);
    border-radius: 14px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-btn::before {
    content: "Info";
}

.info-btn:hover {
    background: linear-gradient(135deg, rgba(196, 155, 255, 0.4) 0%, rgba(137, 221, 255, 0.35) 100%);
    transform: translateY(-1px);
    border-color: rgba(196, 155, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(196, 155, 255, 0.3),
        0 0 20px rgba(196, 155, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Safety item layout adjustment */
.safety-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== Modal Content Styles ==================== */

/* Modal body typography */
.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--accent-cyan);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.modal-body ul, .modal-body ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-body li strong {
    color: var(--text-primary);
}

/* Two-column layout for lists */
.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.modal-columns ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Example box */
.modal-example {
    background: var(--bg-highlight);
    border-left: 3px solid var(--accent-purple);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Tip box */
.modal-tip {
    background: rgba(137, 221, 255, 0.1);
    border: 1px solid rgba(137, 221, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.modal-tip .accent-cyan {
    color: var(--accent-cyan);
}

/* Warning box */
.modal-warning {
    background: rgba(255, 121, 198, 0.1);
    border: 1px solid rgba(255, 121, 198, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.modal-warning .accent-red {
    color: var(--accent-red);
}

/* ==================== Enhanced Clickable States ==================== */

/* Spec items */
.spec-item.clickable {
    cursor: pointer;
}

.spec-item.clickable:hover {
    background: var(--bg-highlight);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 155, 255, 0.2);
}

/* Maintenance cards */
.maint-card.clickable {
    cursor: pointer;
}

.maint-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* MVP card */
.scope-card.mvp.clickable {
    cursor: pointer;
}

.scope-card.mvp.clickable:hover {
    transform: scale(1.02);
}

/* ==================== Lucide Icons ==================== */
.lucide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lucide-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.lucide-icon.red {
    color: var(--accent-red);
    box-shadow: 0 0 15px var(--glow-red), inset 0 0 10px rgba(255, 122, 147, 0.1);
    border-color: rgba(255, 122, 147, 0.3);
}

.lucide-icon.cyan {
    color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--glow-cyan), inset 0 0 10px rgba(137, 221, 255, 0.1);
    border-color: rgba(137, 221, 255, 0.3);
}

.lucide-icon.purple {
    color: var(--accent-purple);
    box-shadow: 0 0 15px var(--glow-purple), inset 0 0 10px rgba(196, 155, 255, 0.1);
    border-color: rgba(196, 155, 255, 0.3);
}

.lucide-icon.orange {
    color: var(--accent-orange);
    box-shadow: 0 0 15px var(--glow-orange), inset 0 0 10px rgba(255, 184, 108, 0.1);
    border-color: rgba(255, 184, 108, 0.3);
}

.lucide-icon.green {
    color: var(--accent-green);
    box-shadow: 0 0 15px var(--glow-green), inset 0 0 10px rgba(166, 227, 161, 0.1);
    border-color: rgba(166, 227, 161, 0.3);
}

/* Small icon variant */
.lucide-icon.sm {
    width: 36px;
    height: 36px;
}

.lucide-icon.sm svg {
    width: 18px;
    height: 18px;
}

/* Large icon variant */
.lucide-icon.lg {
    width: 64px;
    height: 64px;
}

.lucide-icon.lg svg {
    width: 32px;
    height: 32px;
}

/* ==================== Content Split Layout ==================== */
.content-with-illustration {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-xl);
    align-items: center;
    min-height: 70vh;
}

.content-with-illustration.reverse {
    grid-template-columns: 420px 1fr;
}

.slide-content {
    flex: 1;
}

.slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Slide Illustrations ==================== */
.slide-illustration {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 40px rgba(196, 155, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal .present .slide-illustration {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Illustration with glow animation */
.slide-illustration.glow {
    animation: illustrationGlow 4s ease-in-out infinite;
}

@keyframes illustrationGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(196, 155, 255, 0.15),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 50px rgba(196, 155, 255, 0.25),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
}

/* Centered illustration (for slides without split layout) */
.illustration-centered {
    text-align: center;
    margin: var(--space-lg) 0;
}

.illustration-centered .slide-illustration {
    max-height: 350px;
}

/* ==================== Enhanced Constraint Items with Lucide ==================== */
.constraint-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.constraint-item:hover {
    background: var(--bg-highlight);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.constraint-item .lucide-icon {
    flex-shrink: 0;
}

.constraint-text {
    flex: 1;
}

/* ==================== Enhanced Safety Items ==================== */
.safety-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all 0.2s ease;
}

.safety-item:hover {
    background: var(--bg-highlight);
}

.safety-item .lucide-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.safety-item .lucide-icon svg {
    width: 20px;
    height: 20px;
}

/* ==================== Enhanced Maintenance Cards ==================== */
.maint-card .lucide-icon {
    margin-bottom: var(--space-md);
}

/* ==================== Enhanced Toolkit Cards ==================== */
.toolkit-card .lucide-icon {
    margin-bottom: var(--space-md);
}

/* ==================== Slide Entrance Animations ==================== */
.reveal .slides section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal .slides section.present {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for list items */
.reveal .present .constraint-item,
.reveal .present .safety-item,
.reveal .present .maint-card,
.reveal .present .toolkit-card,
.reveal .present .spec-item {
    opacity: 0;
    transform: translateY(15px);
    animation: staggerFadeIn 0.4s ease forwards;
}

.reveal .present .constraint-item:nth-child(1),
.reveal .present .safety-item:nth-child(1),
.reveal .present .maint-card:nth-child(1),
.reveal .present .toolkit-card:nth-child(1),
.reveal .present .spec-item:nth-child(1) { animation-delay: 0.1s; }

.reveal .present .constraint-item:nth-child(2),
.reveal .present .safety-item:nth-child(2),
.reveal .present .maint-card:nth-child(2),
.reveal .present .toolkit-card:nth-child(2),
.reveal .present .spec-item:nth-child(2) { animation-delay: 0.2s; }

.reveal .present .constraint-item:nth-child(3),
.reveal .present .safety-item:nth-child(3),
.reveal .present .maint-card:nth-child(3),
.reveal .present .toolkit-card:nth-child(3),
.reveal .present .spec-item:nth-child(3) { animation-delay: 0.3s; }

.reveal .present .constraint-item:nth-child(4),
.reveal .present .safety-item:nth-child(4),
.reveal .present .maint-card:nth-child(4),
.reveal .present .toolkit-card:nth-child(4),
.reveal .present .spec-item:nth-child(4) { animation-delay: 0.4s; }

.reveal .present .spec-item:nth-child(5) { animation-delay: 0.5s; }
.reveal .present .spec-item:nth-child(6) { animation-delay: 0.6s; }
.reveal .present .spec-item:nth-child(7) { animation-delay: 0.7s; }
.reveal .present .spec-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 1400px) {
    .content-with-illustration {
        grid-template-columns: 1fr 350px;
        gap: var(--space-lg);
    }

    .slide-illustration {
        max-height: 400px;
    }
}

@media (max-width: 1100px) {
    .content-with-illustration {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .content-with-illustration.reverse {
        grid-template-columns: 1fr;
    }

    .slide-visual {
        order: -1;
    }

    .slide-illustration {
        max-height: 300px;
    }
}
