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

:root {
    --primary: #2D5F5D;
    --secondary: #7FA99B;
    --accent: #F4A261;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --success: #52B788;
    --warning: #E76F51;
    --info: #4A90E2;
    --text: #2C3E50;
    --border: #E0E0E0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    overflow: hidden;
}

.presentation-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#slide-content {
    width: 100%;
    height: calc(100vh - 80px);
    padding: 60px 80px;
    background: white;
    overflow-y: auto;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h1 {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 4px solid var(--accent);
    padding-bottom: 15px;
}

h2 {
    font-size: 2em;
    color: var(--secondary);
    margin: 30px 0 15px 0;
}

h3 {
    font-size: 1.5em;
    color: var(--primary);
    margin: 20px 0 10px 0;
}

h4 {
    font-size: 1.2em;
    color: var(--secondary);
    margin: 15px 0 8px 0;
}

p, li {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.key-takeaway {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid var(--accent);
}

.key-takeaway h3 {
    color: white;
    margin-top: 0;
}

.reference-files {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--info);
}

.reference-files h3 {
    color: var(--info);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.reference-files code {
    display: block;
    background: white;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--dark);
}

.visual-container {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.diagram {
    margin: 20px auto;
    max-width: 800px;
}

.flow-step {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    margin: 10px;
    border-radius: 8px;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.arrow {
    display: inline-block;
    color: var(--accent);
    font-size: 2em;
    margin: 0 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border: 2px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.feature-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.score-bar {
    background: var(--light);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--info));
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.pentagon-diagram {
    width: 400px;
    height: 400px;
    margin: 30px auto;
    position: relative;
}

.pentagon-point {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pentagon-point:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 10px;
    z-index: 1000;
}

.nav-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.nav-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.progress-indicator {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

.progress-dot:hover {
    background: var(--secondary);
}

.slide-number {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--primary);
    color: white;
}

.comparison-table tr:hover {
    background: var(--light);
}

.code-snippet {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

.highlight {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.stat-box {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 10px;
    text-align: center;
}

.stat-box .number {
    font-size: 3em;
    font-weight: bold;
    display: block;
}

.stat-box .label {
    font-size: 1em;
    opacity: 0.9;
}

ul {
    margin-left: 30px;
}

li {
    margin: 10px 0;
}

.algorithm-box {
    background: white;
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.algorithm-box h4 {
color: var(--primary);
margin-bottom: 10px;
}

.network-diagram {
display: flex;
justify-content: center;
align-items: center;
gap: 30px;
margin: 30px 0;
flex-wrap: wrap;
}

.network-node {
width: 80px;
height: 80px;
background: var(--secondary);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
position: relative;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.network-node.center {
    width: 120px;
    height: 120px;
    background: var(--primary);
    font-size: 1.2em;
}

.benefit-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9em;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5em;
    flex-shrink: 0;
}

.timeline-content {
    margin-left: 30px;
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    flex: 1;
}

.persona-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.persona-card h3 {
    color: white;
    margin-top: 0;
}

.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

.expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expandable.expanded {
    max-height: 1000px;
}

.toggle-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
}

.toggle-button:hover {
    background: var(--primary);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    #slide-content {
        padding: 40px 40px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .controls {
        padding: 0 20px;
    }

    .nav-button {
        padding: 12px 24px;
        font-size: 1em;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .presentation-container {
        height: auto;
        min-height: 100vh;
    }

    #slide-content {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 30px 20px 80px 20px;
        overflow-y: visible;
    }

    h1 {
        font-size: 2em;
        border-bottom: 3px solid var(--accent);
        padding-bottom: 10px;
    }

    h2 {
        font-size: 1.5em;
        margin: 25px 0 12px 0;
    }

    h3 {
        font-size: 1.3em;
    }

    h4 {
        font-size: 1.1em;
    }

    p, li {
        font-size: 1em;
        line-height: 1.6;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }

    .visual-container {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .comparison-table {
        font-size: 0.85em;
        display: block;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .code-snippet {
        font-size: 0.8em;
        padding: 15px;
        overflow-x: auto;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .controls {
        height: 70px;
        padding: 0 15px;
        gap: 8px;
    }

    .nav-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .progress-indicator {
        gap: 5px;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
    }

    .slide-number {
        font-size: 1em;
    }

    .stat-box {
        padding: 15px 20px;
        margin: 8px;
    }

    .stat-box .number {
        font-size: 2em;
    }

    .pentagon-diagram {
        width: 300px;
        height: 300px;
    }

    .pentagon-point {
        width: 90px;
        height: 90px;
        font-size: 0.75em;
        padding: 8px;
    }

    .network-diagram {
        gap: 20px;
    }

    .network-node {
        width: 60px;
        height: 60px;
        font-size: 0.8em;
    }

    .network-node.center {
        width: 90px;
        height: 90px;
        font-size: 1em;
    }

    .key-takeaway {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .reference-files {
        padding: 15px;
    }

    .reference-files code {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    ul {
        margin-left: 20px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    #slide-content {
        padding: 20px 15px 80px 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.15em;
    }

    h4 {
        font-size: 1em;
    }

    p, li {
        font-size: 0.95em;
    }

    .feature-card {
        padding: 12px;
    }

    .visual-container {
        padding: 15px 10px;
    }

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

    .comparison-table th,
    .comparison-table td {
        padding: 8px 5px;
    }

    .code-snippet {
        font-size: 0.7em;
        padding: 12px;
    }

    .controls {
        height: 60px;
        padding: 0 10px;
    }

    .nav-button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .slide-number {
        font-size: 0.9em;
    }

    .stat-box {
        padding: 12px 15px;
        margin: 5px;
        display: block;
        width: 100%;
    }

    .stat-box .number {
        font-size: 1.8em;
    }

    .pentagon-diagram {
        width: 250px;
        height: 250px;
    }

    .pentagon-point {
        width: 70px;
        height: 70px;
        font-size: 0.65em;
        padding: 5px;
    }

    .network-node {
        width: 50px;
        height: 50px;
        font-size: 0.7em;
    }

    .network-node.center {
        width: 75px;
        height: 75px;
        font-size: 0.9em;
    }

    .key-takeaway {
        padding: 15px 12px;
    }

    .key-takeaway h3 {
        font-size: 1.1em;
    }

    .timeline-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .timeline-content {
        padding: 15px;
    }

    ul {
        margin-left: 15px;
    }

    .benefit-badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* Ensure iframes are responsive */
iframe {
    max-width: 100%;
}

/* Make tables scrollable on small screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
