/* CSS Custom Properties */
:root {
    --bg: #000;
    --text: #fff;
    --text-muted: #888;
    --accent: #e63946;
    --border: #333;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

[data-theme="light"] {
    --bg: #fff;
    --text: #000;
    --text-muted: #666;
    --border: #ddd;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

/* Header */
header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Main Projects (TPPG, Purple Umbrella) */
.main-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-project {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.main-project:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.05);
}

.main-project-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.main-project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Vibe Coded Projects */
.vibe-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.project:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.05);
}

.project-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* About */
.about {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about-photo {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-photo:hover {
    filter: grayscale(0%);
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
}

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    color: var(--border);
    font-size: 0.75rem;
}

/* Retro Toggle */
.retro-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.retro-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.5rem 1rem;
    }

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-photo {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
main::-webkit-scrollbar {
    width: 4px;
}

main::-webkit-scrollbar-track {
    background: transparent;
}

main::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

main::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
