:root {
    --bg-color: #f9f9f9;
    --text-color: #0a0a0a;
    --accent-color: #000000;
    --grid-gap: 1.5rem;
    --border-radius: 4px;
    --border-color: #000000;
    --card-bg: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.nav-brand {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Typography styles matching slides */
.ref-no {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: right;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    border-bottom: 4px solid var(--border-color);
    padding-bottom: 1rem;
}

.nav-brand {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #333;
}

/* Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    padding: 2rem;
    /* Box shadow to give a harsh, stark paper-like feel */
    box-shadow: 6px 6px 0px 0px var(--accent-color);
    transition: transform 0.2s ease;
}

.bento-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px var(--accent-color);
}

/* Grid areas */
.hero {
    grid-column: span 12;
}

.philosophy {
    grid-column: span 6;
}

.concepts {
    grid-column: span 6;
}

.showcase {
    grid-column: span 12;
}

.slide-section {
    grid-column: span 12;
}

.structure {
    grid-column: span 7;
}

.mindset {
    grid-column: span 5;
}

@media (max-width: 1024px) {

    .philosophy,
    .concepts,
    .structure,
    .mindset {
        grid-column: span 12;
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: '[';
    position: absolute;
    font-family: var(--font-sans);
    font-weight: 300;
}

.hero-title::before {
    left: -1.5rem;
}

.hero-title::after {
    content: ']';
    right: -1.5rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.timeline-step {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    margin-right: 1.5rem;
    /* Hollow text effect */
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-card {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    background: var(--accent-color);
    color: #fff;
}

.game-card:hover h4 {
    border-bottom-color: #fff;
}

.game-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.student-name {

    font-size: 0.7rem;
    margin-bottom: 1rem;

    opacity: 0.8;
}

.game-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.play-btn {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    display: inline-block;
    margin-top: auto;
}

/* Modals & Viewers */
.hidden {
    display: none !important;
}

.modal,
.slide-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border: 4px solid var(--border-color);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 12px 0px 0px var(--accent-color);
}

.modal-header {
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-mono);
}

.modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

#modal-frame-container {
    flex-grow: 1;
    border: 2px solid var(--border-color);
    background: #f0f0f0;
    position: relative;
}

#modal-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Slide Viewer Modal */
.slide-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.slide-viewer .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
}

.slides-container {
    flex-grow: 1;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.slides-container img {
    max-width: 100%;
    max-height: 75vh;
    border: 4px solid var(--accent-color);
    box-shadow: 10px 10px 0px 0px #fff;
}

.progress-container {
    width: 90%;
    max-width: 800px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.3s ease;
}

.slide-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    font-family: var(--font-mono);
    font-weight: bold;
}

.slide-controls button {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.slide-controls button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}