/* ===================================
   THEME SYSTEM - CSS VARIABLES
   =================================== */

:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --bg-overlay: rgba(255, 255, 255, 0.98);
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #444444;
    --border-color: #000000;
    --shadow-color: transparent;

    /* Typography */
    --font-heading: 'DotGothic16', sans-serif;
    --font-body: 'Inter', sans-serif;

    --font-size-base: 1.4rem;
    --font-size-large: 2.5rem;
    --font-size-xlarge: 5rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

/* Dark Theme */
body.theme-dark {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-overlay: rgba(0, 0, 0, 0.98);
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #bbbbbb;
    --border-color: #ffffff;
    --shadow-color: transparent;
}

/* ===================================
   GLOBAL STYLES
   =================================== */

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   LANDING PAGE
   =================================== */

.minimal-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    text-align: center;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
}

/* Etch-a-Sketch Canvas */
#sketchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    cursor: crosshair;
}

.minimal-name {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: min(12vw, 6rem);
    margin: 0 0 1rem 0;
    text-shadow: none;
    letter-spacing: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.minimal-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    letter-spacing: 2px;
    font-weight: normal;
    text-transform: uppercase;
}

.minimal-subtitle {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 4rem 0;
    opacity: 0.8;
}

.minimal-links {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.minimal-links a,
.minimal-link-btn {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    text-transform: uppercase;
}

.minimal-links a:hover,
.minimal-link-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ===================================
   THEME TOGGLE BUTTON
   =================================== */

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 200000;
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 6px 6px 0px var(--border-color);
}

.theme-toggle:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--border-color);
}

.theme-icon {
    stroke: var(--text-primary);
    width: 30px;
    height: 30px;
    stroke-width: 2px;
}

/* ===================================
   OVERLAY STYLES
   =================================== */

#detailOverlay {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 99999;
}

#detailPanel {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    border-radius: 0;
    box-shadow: 15px 15px 0px var(--border-color);
    color: var(--text-primary);
    max-width: 1000px;
    margin: auto;
    position: relative;
}

#detailTitle {
    background: transparent;
    color: var(--text-primary);
    text-shadow: none;
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

#detailPanel *,
.detail-grid * {
    color: var(--text-primary);
    text-shadow: none;
}

.detail-tile {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
}

.detail-tile h3 {
    font-weight: bold;
    text-decoration: underline;
}

#detailClose {
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    width: 44px;
    height: 44px;
    font-size: 2.5rem;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    border-radius: 0;
    cursor: pointer;
    z-index: 200005;
    pointer-events: auto;
}

#detailClose:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.project-slide {
    border-bottom: 4px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.project-readme-area {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    padding: 1rem;
}