:root {
    --bg-color: #2b2b2b;
    /* Dark Grey */
    --text-color: #f0f0f0;
    --primary-color: #ffcc00;
    /* Safety Yellow */
    --secondary-color: #ff6600;
    /* Industrial Orange */
    --accent-color: #00ccff;
    /* Electric Blue */
    --panel-bg: #383838;
    --border-color: #555;
    --font-main: 'Chakra Petch', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.presentation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Factory Background */
.factory-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%, #333),
        repeating-linear-gradient(45deg, #333 25%, #2b2b2b 25%, #2b2b2b 75%, #333 75%, #333);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Animated Gears */
.gear {
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23444"><path d="M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm0-9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm7.07 3.07l1.42-1.42a1 1 0 0 0 0-1.41l-1.42-1.42a1 1 0 0 0-1.41 0l-1.42 1.42a1 1 0 0 1-1.41 0l-1.42-1.42a1 1 0 0 0-1.41 0l-1.42 1.42a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 1 0 1.41l-1.42 1.42a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l1.42-1.42a1 1 0 0 1 1.41 0l1.42 1.42a1 1 0 0 0 1.41 0l1.42-1.42a1 1 0 0 0 0-1.41l-1.42-1.42a1 1 0 0 1 0-1.41z"/></svg>') no-repeat center center;
    background-size: contain;
    z-index: 0;
    opacity: 0.3;
}

.gear-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation: spin 20s linear infinite;
}

.gear-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: spin-reverse 15s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* Slide Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1;
    transform: translateX(50px);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translateX(0);
}

/* Factory Panel Styling */
.factory-panel {
    background: var(--panel-bg);
    border: 4px solid var(--border-color);
    padding: 3rem;
    width: 80%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.warning-stripe {
    height: 20px;
    background: repeating-linear-gradient(45deg,
            var(--primary-color),
            var(--primary-color) 10px,
            #000 10px,
            #000 20px);
    width: 100%;
    position: absolute;
    left: 0;
}

.warning-stripe.top {
    top: 0;
}

.warning-stripe.bottom {
    bottom: 0;
}

.icon-container {
    margin: 2rem 0;
    color: var(--primary-color);
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

.section-header h1 {
    font-size: 6rem;
    color: var(--secondary-color);
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

p {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 1.5rem;
    color: #ccc;
    text-align: center;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* Code Blocks */
pre {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    max-width: 1000px;
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

code {
    font-family: var(--font-mono);
    font-size: 1.2rem;
}

/* Lists and Production Items */
.production-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.production-item {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    padding: 1rem;
    background: #444;
    border-left: 5px solid var(--secondary-color);
    color: #fff;
    transition: all 0.2s;
}

.production-item:hover {
    background: #555;
    transform: translateX(10px);
    border-left-color: var(--primary-color);
}

/* Analogy Container */
.analogy-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.analogy-box {
    background: #444;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    width: 250px;
    text-align: center;
}

.analogy-box.blueprint {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.analogy-box.product {
    border-style: solid;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #222;
}

.arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: var(--font-mono);
}

/* Components */
.section-number {
    font-size: 10rem;
    font-weight: 700;
    position: absolute;
    right: 5%;
    bottom: 5%;
    opacity: 0.1;
    color: var(--primary-color);
    font-family: var(--font-main);
}

/* Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    background: #222;
    padding: 0.8rem 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.nav-btn {
    background: #444;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #555;
    color: #fff;
}

.nav-btn:active {
    transform: translateY(2px);
}

.progress-container {
    width: 300px;
    height: 10px;
    background-color: #111;
    border: 1px solid #555;
}

.progress-bar {
    height: 100%;
    background: repeating-linear-gradient(45deg,
            var(--primary-color),
            var(--primary-color) 10px,
            var(--secondary-color) 10px,
            var(--secondary-color) 20px);
    width: 0%;
    transition: width 0.3s ease;
}

.slide-number {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 1.2rem;
    background: #222;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p,
    ul {
        font-size: 1.1rem;
    }

    .factory-panel {
        width: 95%;
        padding: 1.5rem;
    }

    .analogy-container {
        flex-direction: column;
    }

    .progress-container {
        width: 100px;
    }
}