/* ==========================================
   Day 1 Reveal.js Custom Styles
   Professional theme for CS undergrad students
   ========================================== */

:root {
    --primary-blue: #3498db;
    --primary-purple: #9b59b6;
    --primary-green: #2ecc71;
    --primary-orange: #e67e22;
    --primary-red: #e74c3c;

    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;

    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #7f8c8d;

    --accent-glow: rgba(52, 152, 219, 0.3);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ==================== BASE STYLES ==================== */

.reveal {
    font-family: var(--font-main);
    font-weight: 400;
}

/* Slide container - prevent overflow */
.reveal .slides section {
    box-sizing: border-box;
    padding: 10px 30px;
}

/* Allow scrolling for tall slides as fallback */
.reveal .slides section.scrollable {
    overflow-y: auto;
    max-height: 100%;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
}

.reveal h1 {
    font-size: 1.8em;
    margin-bottom: 0.3em;
}

.reveal h2 {
    font-size: 1.3em;
    margin-bottom: 0.4em;
    color: var(--text-primary);
}

.reveal h3 {
    font-size: 0.95em;
    color: var(--text-secondary);
}

.reveal p {
    line-height: 1.4;
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

.reveal ul, .reveal ol {
    margin-bottom: 0.4em;
}

.reveal li {
    margin-bottom: 0.2em;
    line-height: 1.3;
    font-size: 0.85em;
}

.reveal code {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-size: 0.8em;
}

.reveal pre code {
    padding: 0.6em;
    border-radius: 6px;
    font-size: 0.55em;
    line-height: 1.3;
}

/* ==================== TITLE SLIDE ==================== */

.title-main {
    font-size: 2.2em !important;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1em !important;
}

.title-sub {
    font-size: 1.1em !important;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.4em !important;
}

.title-tagline {
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8em;
}

.title-meta {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    margin-top: 0.8em;
}

.title-meta .course-name {
    color: var(--primary-blue);
    font-weight: 500;
}

.title-meta .day-indicator {
    background: var(--primary-blue);
    color: white;
    padding: 0.3em 1em;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== PART HEADERS ==================== */

.part-header {
    font-size: 0.75em !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.2em !important;
}

.part-subtitle {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 0.4em;
}

/* ==================== AGENDA ==================== */

.agenda-grid {
    display: grid;
    gap: 0.4em;
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5em 1em;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: transform 0.3s ease, background 0.3s ease;
}

.agenda-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.agenda-number {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 1.2em;
    text-align: center;
}

.agenda-content {
    text-align: left;
}

.agenda-content strong {
    display: block;
    font-size: 0.85em;
    margin-bottom: 0.05em;
}

.agenda-content span {
    color: var(--text-muted);
    font-size: 0.7em;
}

/* ==================== GPT BREAKDOWN ==================== */

.gpt-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 700px;
    width: 90%;
    margin: 0.3em auto;
}

.gpt-letter {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.5em 1.2em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gpt-letter:hover {
    transform: scale(1.02);
}

.gpt-letter .letter {
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 1em;
    text-align: center;
}

.gpt-letter .word {
    font-size: 0.95em;
    font-weight: 600;
    display: block;
}

.gpt-letter .desc {
    color: var(--text-muted);
    font-size: 0.7em;
}

/* ==================== INSIGHT BOX ==================== */

.insight-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
    padding: 0.8em 1.5em;
    border-radius: 10px;
    border: 2px solid var(--primary-blue);
    max-width: 700px;
    width: 85%;
    margin: 0.5em auto;
}

.insight-box.expanded {
    padding: 0.7em 1.2em;
}

.insight-quote {
    font-size: 1.3em !important;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 !important;
}

.insight-box.expanded .insight-quote {
    font-size: 1.05em !important;
    margin-bottom: 0.4em !important;
}

.insight-points {
    text-align: left;
    margin: 0;
    padding-left: 1em;
}

.insight-points li {
    margin-bottom: 0.2em;
    font-size: 0.75em;
}

/* ==================== TRAINING STEPS ==================== */

.training-steps {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
}

.training-step {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    padding: 0.4em 0.6em;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    text-align: left;
}

.training-step .step-num {
    background: var(--primary-green);
    color: white;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75em;
    flex-shrink: 0;
}

.training-step .step-content strong {
    display: block;
    margin-bottom: 0.1em;
    font-size: 0.8em;
}

.training-step .step-content span {
    color: var(--text-muted);
    font-size: 0.7em;
}

/* ==================== CONCEPT HIGHLIGHTS ==================== */

.concept-highlight {
    margin: 0.4em 0;
}

.highlight-text {
    font-size: 1.3em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.concept-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.concept-note {
    margin-top: 0.4em;
    padding: 0.35em 0.6em;
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid var(--primary-orange);
    border-radius: 0 5px 5px 0;
    text-align: left;
    font-size: 0.7em;
}

/* ==================== TABLES ==================== */

.reveal table {
    margin: 0.4em auto;
    border-collapse: collapse;
    font-size: 0.75em;
}

.reveal table th,
.reveal table td {
    padding: 0.35em 0.7em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal table th {
    background: rgba(52, 152, 219, 0.2);
    font-weight: 600;
}

.reveal table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.token-table {
    font-size: 0.7em;
}

.tools-table {
    font-size: 0.7em;
}

.tools-table .tool-icon {
    margin-right: 0.5em;
}

.comparison-table {
    font-size: 0.75em;
}

.comparison-table td:first-child {
    color: var(--text-muted);
}

.comparison-table td:last-child {
    color: var(--primary-green);
}

.comparison-table strong {
    color: var(--primary-green);
}

/* ==================== CONTEXT WINDOW ==================== */

.context-visual {
    margin: 0.5em 0;
}

.context-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 0.4em;
}

.context-window {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 0.7em;
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
}

.context-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    justify-content: center;
}

.context-items span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 12px;
    font-size: 0.65em;
}

.context-sizes {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    margin-top: 0.7em;
}

.size-item {
    text-align: center;
}

.size-item .model-name {
    display: block;
    font-weight: 600;
    font-size: 0.75em;
    color: var(--primary-blue);
}

.size-item .token-count {
    font-size: 0.65em;
    color: var(--text-muted);
}

/* ==================== TEMPERATURE ==================== */

.temperature-visual {
    margin: 2em 0 0.6em 0;
}

.temp-scale {
    position: relative;
    height: 55px;
    max-width: 650px;
    width: 85%;
    margin: 0 auto;
}

.temp-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c);
    border-radius: 3px;
}

.temp-marker {
    position: absolute;
    bottom: 12px;
    transform: translateX(-50%);
    text-align: center;
}

.temp-marker .temp-value {
    display: block;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-primary);
}

.temp-marker .temp-label {
    font-size: 0.55em;
    color: var(--text-muted);
}

.temp-use-cases {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 0.5em;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.7em;
}

.use-icon {
    font-size: 1em;
}

/* ==================== HALLUCINATION WARNING ==================== */

.hallucination-box {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 0.5em 0.9em;
    max-width: 700px;
    width: 85%;
    margin: 0.4em auto;
    text-align: left;
}

.hallucination-box h3 {
    color: var(--primary-red);
    margin-top: 0;
    font-size: 0.85em;
    margin-bottom: 0.3em;
}

.hallucination-box ul {
    margin: 0;
    padding-left: 1em;
}

.hallucination-box li {
    margin-bottom: 0.2em;
    font-size: 0.7em;
}

.warning-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    background: rgba(230, 126, 34, 0.2);
    padding: 0.4em 0.9em;
    border-radius: 5px;
    margin-top: 0.4em;
    font-size: 0.75em;
}

.warning-icon {
    font-size: 1em;
}

/* ==================== EXERCISES ==================== */

.exercise-box {
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

.original-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5em 0.8em;
    border-radius: 5px;
    margin-bottom: 0.5em;
}

.original-text p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.2em 0 0;
    font-size: 0.75em;
}

.tone-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3em;
}

.tone-item {
    background: rgba(52, 152, 219, 0.2);
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.65em;
}

.tone-arrow {
    color: var(--text-muted);
    font-size: 0.8em;
}

.format-exercise {
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
}

.format-input {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5em 0.8em;
    border-radius: 5px;
    text-align: left;
    margin-bottom: 0.5em;
}

.format-input p {
    margin: 0.2em 0 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.75em;
}

.format-outputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
}

.format-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 500;
}

.highlight-point {
    margin-top: 0.5em;
    font-size: 0.85em;
    color: var(--primary-green);
}

.accordion-exercise {
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
}

.accordion-start {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4em 0.8em;
    border-radius: 5px;
    margin-bottom: 0.5em;
    font-size: 0.8em;
}

.accordion-steps {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.accordion-step {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.35em 0.6em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.7em;
}

.step-direction {
    font-weight: 600;
    min-width: 70px;
}

.step-direction.expand {
    color: var(--primary-green);
}

.step-direction.compress {
    color: var(--primary-orange);
}

.watch-for {
    margin-top: 0.5em;
    text-align: left;
    max-width: 600px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.watch-for h4 {
    color: var(--primary-blue);
    margin-bottom: 0.2em;
    font-size: 0.75em;
}

.watch-for ul {
    margin: 0;
    padding-left: 1em;
    font-size: 0.7em;
}

/* ==================== LIMITATION BOX ==================== */

.limitation-box {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 0.5em 0.9em;
    max-width: 600px;
    width: 80%;
    margin: 0.4em auto;
}

.limitation-box h3 {
    color: var(--primary-red);
    margin-top: 0;
    font-size: 0.85em;
}

.limitation-list {
    text-align: left;
}

.limitation-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0;
    font-size: 0.7em;
}

.x-mark {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85em;
}

.limitation-quote {
    font-size: 0.9em;
    font-style: italic;
    color: var(--text-muted);
}

/* ==================== TOOL FLOW ==================== */

.solution-intro {
    font-size: 0.8em;
    margin-bottom: 0.5em;
}

.tool-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    max-width: 700px;
    width: 85%;
    margin: 0 auto;
}

.flow-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35em 0.8em;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.6em;
    width: 100%;
    font-size: 0.7em;
}

.flow-step.code-step {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--primary-blue);
}

.flow-label {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 70px;
    text-align: right;
    font-size: 0.75em;
}

.flow-content {
    flex: 1;
    text-align: left;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* ==================== REACT DIAGRAM ==================== */

.react-title {
    font-size: 1.3em;
    margin-bottom: 0.4em;
}

.react-title.small {
    font-size: 0.85em;
    margin-bottom: 0.5em;
}

.react-re {
    color: var(--primary-blue);
    font-weight: 700;
}

.react-act {
    color: var(--primary-green);
    font-weight: 700;
}

.react-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 1.5em;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.react-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6em 1.2em;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s ease;
}

.react-step:hover {
    transform: translateY(-5px);
}

.react-step.think {
    border: 2px solid var(--primary-blue);
}

.react-step.act {
    border: 2px solid var(--primary-green);
}

.react-step.observe {
    border: 2px solid var(--primary-purple);
}

.react-step .step-icon {
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.15em;
}

.react-step .step-name {
    font-weight: 700;
    font-size: 0.75em;
    display: block;
    margin-bottom: 0.15em;
}

.react-step .step-desc {
    font-size: 0.55em;
    color: var(--text-muted);
}

.react-arrow {
    font-size: 1em;
    color: var(--text-muted);
}

.react-loop {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loop-text {
    font-size: 0.6em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.loop-arrow {
    width: 200px;
    height: 20px;
    color: var(--text-muted);
}

/* ==================== BENEFITS GRID ==================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4em 0.6em;
    border-radius: 5px;
    text-align: left;
}

.benefit-num {
    background: var(--primary-blue);
    color: white;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7em;
    flex-shrink: 0;
}

.benefit strong {
    display: block;
    margin-bottom: 0.1em;
    font-size: 0.75em;
}

.benefit span {
    color: var(--text-muted);
    font-size: 0.65em;
}

/* ==================== AGENT EQUATION ==================== */

.agent-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0.6em auto;
    max-width: 850px;
    width: 95%;
}

.equation-part {
    text-align: center;
    padding: 0.5em 1em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.equation-part .part-icon {
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.15em;
}

.equation-part .part-label {
    font-weight: 700;
    font-size: 0.7em;
    display: block;
}

.equation-part .part-desc {
    font-size: 0.55em;
    color: var(--text-muted);
}

.equation-plus, .equation-equals {
    font-size: 1.1em;
    font-weight: 300;
    color: var(--text-muted);
}

.equation-result {
    text-align: center;
    padding: 0.4em 0.8em;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 8px;
}

.equation-result .result-icon {
    font-size: 1.2em;
    display: block;
    margin-bottom: 0.05em;
}

.equation-result .result-label {
    font-weight: 700;
    font-size: 0.75em;
}

/* ==================== TRANSFORMATION QUOTE ==================== */

.transformation-quote {
    font-size: 0.95em;
    margin-top: 0.8em;
}

.transformation-quote .old {
    color: var(--text-muted);
    text-decoration: line-through;
}

.transformation-quote .new {
    color: var(--primary-green);
    font-weight: 600;
}

/* ==================== LAB EXERCISES ==================== */

.lab-exercises {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    max-width: 780px;
    width: 90%;
    margin: 0 auto;
}

.lab-exercise {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4em 0.7em;
    border-radius: 8px;
    text-align: left;
    border-left: 3px solid var(--primary-green);
}

.lab-exercise .exercise-num {
    background: var(--primary-green);
    color: white;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7em;
    flex-shrink: 0;
}

.lab-exercise .exercise-content {
    flex: 1;
}

.lab-exercise .exercise-content strong {
    font-size: 0.8em;
}

.lab-exercise .exercise-time {
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-green);
    padding: 0.1em 0.4em;
    border-radius: 8px;
    font-size: 0.6em;
    margin-left: 0.3em;
}

.lab-exercise .exercise-content p {
    margin: 0.2em 0 0;
    color: var(--text-secondary);
    font-size: 0.7em;
}

.lab-exercise .exercise-link {
    display: inline-block;
    margin-top: 0.2em;
    color: var(--primary-blue);
    font-size: 0.65em;
}

/* ==================== TAKEAWAYS ==================== */

.takeaways {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    max-width: 780px;
    width: 90%;
    margin: 0 auto;
}

.takeaway {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35em 0.7em;
    border-radius: 5px;
    text-align: left;
}

.takeaway-num {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7em;
    flex-shrink: 0;
}

.takeaway-content strong {
    display: block;
    margin-bottom: 0.05em;
    font-size: 0.75em;
}

.takeaway-content span {
    color: var(--text-muted);
    font-size: 0.65em;
}

/* ==================== HOMEWORK ==================== */

.homework-list {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    max-width: 700px;
    width: 85%;
    margin: 0 auto;
    text-align: left;
}

.homework-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.35em 0.6em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.75em;
}

.homework-check {
    font-size: 0.85em;
    color: var(--primary-blue);
}

.next-preview {
    margin-top: 0.6em;
    padding: 0.5em 0.9em;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
    border-radius: 8px;
    border: 1px solid var(--primary-blue);
    font-size: 0.75em;
    max-width: 700px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== QUESTIONS ==================== */

.questions-title {
    font-size: 2em !important;
}

/* ==================== RESOURCES ==================== */

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.4em 0.8em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, background 0.3s ease;
}

.resource-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.resource-icon {
    font-size: 1em;
}

.resource-name {
    font-weight: 600;
    flex: 1;
    font-size: 0.75em;
}

.resource-url {
    color: var(--text-muted);
    font-size: 0.65em;
}

/* ==================== NEXT SESSION ==================== */

.next-session {
    color: var(--primary-blue);
    font-weight: 400;
    font-size: 0.9em;
}

/* ==================== FRAGMENT ANIMATIONS ==================== */

.reveal .slides section .fragment.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.reveal .slides section .fragment.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal .slides section .fragment.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.reveal .slides section .fragment.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== INTERACTIVE LINK ==================== */

.interactive-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

.ft-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    padding: 1.5em 3em;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ft-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.ft-link .link-icon {
    font-size: 2em;
}

.ft-link .link-url {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ==================== HISTORY TABLE ==================== */

.history-table {
    width: 90%;
    max-width: 750px;
    margin: 0.4em auto;
    border-collapse: collapse;
    font-size: 0.7em;
}

.history-table th,
.history-table td {
    padding: 0.4em 0.8em;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table th {
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-blue);
    font-weight: 600;
}

.history-table td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
    width: 80px;
}

.history-table.modern th {
    background: rgba(155, 89, 182, 0.2);
    color: var(--primary-purple);
}

.history-table.modern td:first-child {
    color: var(--primary-purple);
}

.key-insight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.6em;
    padding: 0.5em 1em;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(52, 152, 219, 0.2));
    border-radius: 8px;
    border: 1px solid var(--primary-purple);
    max-width: 650px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75em;
}

.key-insight .insight-icon {
    font-size: 1em;
}

/* ==================== VIDEO LINKS ==================== */

.section-intro {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 0.6em;
}

.video-links {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 650px;
    width: 85%;
    margin: 0 auto;
}

.video-link {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.6em 1em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.video-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.video-icon {
    font-size: 1.4em;
}

.video-info {
    text-align: left;
}

.video-info strong {
    display: block;
    font-size: 0.8em;
    margin-bottom: 0.15em;
}

.video-info .video-url {
    font-size: 0.65em;
    color: var(--text-muted);
}

/* ==================== JAGGED FRONTIER ==================== */

.frontier-content {
    max-width: 90%;
    margin: 0 auto;
}

.frontier-image {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.frontier-points {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
}

.frontier-point {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4em 0.7em;
    border-radius: 6px;
    text-align: left;
}

.frontier-point .point-icon {
    font-size: 1em;
    flex-shrink: 0;
}

.frontier-point .point-content strong {
    display: block;
    font-size: 0.75em;
    margin-bottom: 0.1em;
}

.frontier-point .point-content span {
    font-size: 0.65em;
    color: var(--text-muted);
}

.source-note {
    font-size: 0.6em;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.6em;
}

/* ==================== EQUATION OF AGENTIC WORK ==================== */

.equation-content {
    max-width: 90%;
    margin: 0 auto;
}

.equation-image {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.equation-factors {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
}

.factor {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.45em 0.8em;
    border-radius: 6px;
    text-align: left;
}

.factor-num {
    background: var(--primary-purple);
    color: white;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7em;
    flex-shrink: 0;
}

.factor-content strong {
    display: block;
    font-size: 0.75em;
    margin-bottom: 0.1em;
}

.factor-content span {
    font-size: 0.65em;
    color: var(--text-muted);
}

.equation-insight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.6em;
    padding: 0.5em 1em;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(52, 152, 219, 0.2));
    border-radius: 8px;
    border: 1px solid var(--primary-purple);
    max-width: 600px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.equation-insight .insight-icon {
    font-size: 1em;
}

.equation-insight .insight-text {
    font-size: 0.75em;
}

/* ==================== MANAGEMENT SUPERPOWER ==================== */

.superpower-content {
    max-width: 90%;
    margin: 0 auto;
}

.superpower-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .reveal h1 {
        font-size: 1.8em;
    }

    .reveal h2 {
        font-size: 1.4em;
    }

    .title-main {
        font-size: 2em !important;
    }

    .gpt-breakdown {
        gap: 1em;
    }

    .gpt-letter .letter {
        font-size: 2em;
    }

    .react-diagram {
        gap: 0.3em;
    }

    .react-step {
        padding: 1em;
        min-width: 80px;
    }

    .agent-equation {
        gap: 0.3em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .context-sizes {
        flex-direction: column;
        gap: 1em;
    }
}

/* ==================== FUNNY IMAGES ==================== */

.funny-image {
    max-width: 65%;
    max-height: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-top: 0.5em;
}

/* ==================== REACT ACTIVITY ==================== */

.activity-roles {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 1.5em 0;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 1em;
    background: rgba(52, 152, 219, 0.1);
    padding: 1em 1.5em;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.role-icon {
    font-size: 2em;
}

.role-content {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    text-align: left;
}

.role-content strong {
    font-size: 1.1em;
    color: var(--text-primary);
}

.role-content span {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.activity-outputs {
    background: rgba(155, 89, 182, 0.1);
    padding: 1em 1.5em;
    border-radius: 12px;
    margin-top: 1em;
}

.activity-outputs p {
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.activity-outputs code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.activity-outputs span {
    margin: 0 0.5em;
    color: var(--text-muted);
}

.prompt-display {
    text-align: left;
    font-size: 0.55em !important;
    max-height: 450px;
    overflow-y: auto;
}

.prompt-display.small {
    font-size: 0.45em !important;
}

.prompt-display code {
    background: #1e1e1e;
    padding: 1em;
    border-radius: 8px;
    display: block;
    line-height: 1.4;
}

.response-display {
    text-align: left;
    font-size: 0.7em !important;
}

.response-display code {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--primary-green);
    padding: 1em;
    border-radius: 8px;
    display: block;
    line-height: 1.5;
}

.tool-result-display {
    background: rgba(230, 126, 34, 0.15);
    border: 2px solid var(--primary-orange);
    padding: 2em 3em;
    border-radius: 12px;
    display: inline-block;
    margin-top: 2em;
}

.tool-result-display code {
    font-size: 3em;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--primary-orange);
}

.activity-instruction {
    margin-top: 1.5em;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ==================== PRINT ==================== */

@media print {
    .reveal .slides section {
        page-break-after: always;
    }

    .fragment {
        opacity: 1 !important;
        transform: none !important;
    }
}
