/*
    * BRUTALIST STYLE PORTFOLIO
    * Design by Gemini
    * Font: Space Mono by Google Fonts
    * Palette: Black, White, Electric Blue
*/

:root {
    --background: #FFFFFF;
    --text: #000000;
    --accent: #0000FF;
    --border-style: 2px solid #000000;
}

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

/* Enable mandatory scroll-snapping for the whole page */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Space Mono', monospace;
    background-color: var(--background);
    color: var(--text);
    overscroll-behavior: none;
    line-height: 1.6;
}

/* The main container no longer needs a grid layout */
.container {
    width: 100%;
    border-left: var(--border-style);
    border-right: var(--border-style);
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: var(--border-style);
    flex-wrap: wrap;
    
    /* Make header a persistent element on top */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background);
    z-index: 10;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav a {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    font-weight: 700;
    border: var(--border-style);
    margin-left: -2px; /* Overlap borders */
    transition: background-color 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
    background-color: var(--text);
    color: var(--background);
}

nav a:active {
    background-color: var(--accent);
    color: var(--background);
}

/* --- MAIN CONTENT & FULL-PAGE SECTIONS --- */
main {
    /* No padding needed as sections handle their own */
}

/* All top-level sections are now full-height and snap */
.content-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start; /* Key for scroll snapping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    padding-top: 100px; /* Account for fixed header */
    border-bottom: var(--border-style);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: var(--border-style);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- PROJECT SLIDE STYLES --- */
.project-slide {
    padding: 0; /* Override default padding for full bleed */
    justify-content: stretch; /* Allow content to fill the slide */
    align-items: stretch;
    position: relative; /* For positioning info overlay */
}

.interactive-content-placeholder {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border: none;
    width: 100%;
    height: 100%;
    padding-top: 80px; /* Push content below fixed header */
}

/* This is where you'd style the iframe for your Django app */
.project-slide iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: var(--border-style);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-info h3 {
    font-size: 1.25rem;
}
.project-info p {
        font-size: 0.9rem;
}
.project-info .tags {
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- ABOUT & CONTACT SECTIONS --- */
.about-content, .contact-content {
    max-width: 800px;
}

.contact-content a {
    color: var(--text);
    text-decoration: none;
    background-color: transparent;
    border-bottom: 2px solid var(--accent);
    transition: background-color 0.2s;
}

.contact-content a:hover {
    background-color: var(--accent);
    color: var(--background);
}

/* --- FOOTER --- */
footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: var(--border-style);
    /* The footer is the last element inside the container, not fixed */
}

/* --- RESPONSIVENESS --- */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 0;
    }
    
    nav ul {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    nav a {
        text-align: center;
        margin-left: 0;
        border-top: var(--border-style);
        padding: 0.75rem;
    }
    
    .content-section {
        padding-top: 150px; /* Taller mobile header */
    }

    .content-section h2 {
        font-size: 2rem;
    }
    
    .project-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
}

