:root {
    --bg-color: #002b36;
    /* Solarized Base03 */
    --grid-color: rgba(42, 161, 152, 0.2);
    /* Cyan low opacity */
    --text-color: #839496;
    /* Base0 */
    --primary-color: #2aa198;
    /* Cyan */
    --secondary-color: #b58900;
    /* Yellow */
    --accent-color: #cb4b16;
    /* Orange */
    --border-color: #586e75;
    /* Base01 */
    --font-main: 'Teko', sans-serif;
    --font-mono: 'Share Tech 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;
}

/* Blueprint Grid Background */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

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

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Blueprint Border Effect */
.blueprint-border {
    border: 2px solid var(--primary-color);
    padding: 3rem;
    position: relative;
    background: rgba(0, 43, 54, 0.9);
    box-shadow: 0 0 20px rgba(42, 161, 152, 0.3);
    max-width: 1200px;
    width: 90%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blueprint-border::before,
.blueprint-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.blueprint-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.blueprint-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Typography */
h1 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(42, 161, 152, 0.5);
}

.section-header h1 {
    font-size: 7rem;
    color: #eee8d5;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
    width: 100%;
}

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

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

/* Code Blocks */
pre {
    background-color: #073642;
    /* Base02 */
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    max-width: 1000px;
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
}

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

/* Diagrams */
.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.box {
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    min-width: 150px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    background: rgba(42, 161, 152, 0.1);
}

.box.abstract {
    border-style: dashed;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.box.concrete {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.arrow {
    font-size: 2rem;
    color: var(--text-color);
}

.row {
    display: flex;
    gap: 2rem;
}

/* Lists and Tables */
ul {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    list-style-type: square;
}

li {
    margin-bottom: 1rem;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
}

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

.comparison-table th {
    background-color: rgba(88, 110, 117, 0.3);
    color: var(--primary-color);
}

/* Components */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.agenda-item {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-bottom: 1px dotted var(--border-color);
    color: var(--primary-color);
}

.warning {
    color: var(--accent-color);
    font-weight: bold;
}

.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: #073642;
    padding: 0.5rem 2rem;
    border: 1px solid var(--primary-color);
}

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

.nav-btn:hover {
    color: #eee8d5;
    text-shadow: 0 0 5px var(--primary-color);
}

.progress-container {
    width: 300px;
    height: 4px;
    background-color: #586e75;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

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

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

    h2 {
        font-size: 2rem;
    }

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

    .blueprint-border {
        padding: 1rem;
        width: 95%;
        height: 90%;
    }

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