/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family: 'Courier New', Courier, monospace;
    --max-width: 800px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
}

/* Dark charcoal theme (default) */
:root {
    --color-text: #d4d4d4;
    --color-text-light: #969696;
    --color-background: #2d2d30;
    --color-border: #555555;
    --color-border-light: #404040;
    --color-link: #c4c4c4;
    --color-link-hover: #ffffff;
    --color-tag-bg: transparent;
    --color-tag-text: #b8b8b8;
    --color-accent: #8c8c8c;
    --color-claude-blue: #4a9eff;
    --color-claude-blue-dim: #3a7acc;
    --color-claude-cyan: #00d4aa;
    --color-filter-inactive: #7a7a7a;
    --color-title-1: #ff9f5a;
    --color-title-2: #9f80ff;
    --color-title-3: #ff6b9d;
    --color-title-4: #5aff9f;
}

/* Light mode fallback - keep dark theme */
@media (prefers-color-scheme: light) {
    :root {
        --color-text: #d4d4d4;
        --color-text-light: #969696;
        --color-background: #2d2d30;
        --color-border: #555555;
        --color-border-light: #404040;
        --color-link: #c4c4c4;
        --color-link-hover: #ffffff;
        --color-tag-bg: transparent;
        --color-tag-text: #b8b8b8;
        --color-accent: #8c8c8c;
        --color-claude-blue: #4a9eff;
        --color-claude-blue-dim: #3a7acc;
        --color-claude-cyan: #00d4aa;
        --color-filter-inactive: #7a7a7a;
        --color-title-1: #ff9f5a;
        --color-title-2: #9f80ff;
        --color-title-3: #ff6b9d;
        --color-title-4: #5aff9f;
    }
}

/* Typography */
body {
    font-family: var(--font-family);
    line-height: 1.4;
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: 14px;
    font-weight: normal;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Header */
header {
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
}

header h1 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

header h1::before {
    content: '> ';
}

.tagline {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.tagline::before {
    content: '  ';
}

.contact-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.contact-links::before {
    content: '  [';
}

.contact-links::after {
    content: ']';
}

.contact-links a {
    color: var(--color-link);
    text-decoration: underline;
    font-weight: normal;
}

.contact-links a:hover {
    color: var(--color-link-hover);
}

.contact-links a:not(:last-child)::after {
    content: ' |';
}

/* Hero section */
.hero {
    margin-bottom: var(--spacing-xl);
}

.hero p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 70ch;
}

.hero p::before {
    content: '// ';
}

/* Section headings */
section {
    margin-bottom: var(--spacing-xl);
}

h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

h2::before {
    content: '== ';
}

h2::after {
    content: ' ==';
}

/* Filter container - completely separate */
.filter-container {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.project-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Content container - completely separate */
.content-container {
    width: 100%;
    padding-top: 0rem;
}

.project-list {
    /* No margins needed - container handles spacing */
}

.projects .project-filters .filter-btn {
    display: inline-block;
    background-color: #444444 !important;
    border: 2px solid #666666 !important;
    color: #cccccc !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.9rem !important;
    padding: 0.25rem 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

.projects .project-filters .filter-btn::before {
    content: '[ ' !important;
}

.projects .project-filters .filter-btn::after {
    content: ' ]' !important;
}

.projects .project-filters .filter-btn:hover {
    background-color: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
}

.projects .project-filters .filter-btn.active {
    /* Styles handled by JavaScript */
}

/* Legacy selectors for fallback */
.filter-btn {
    display: inline-block;
    background-color: #444444 !important;
    border: 2px solid #666666 !important;
    color: #cccccc !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.9rem !important;
    padding: 0.25rem 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

.filter-btn:hover {
    background-color: #0066ff !important;
    border-color: #0066ff !important;
    color: #ffffff !important;
}

.filter-btn.active {
    /* Styles handled by JavaScript */
}

/* Projects */
.project {
    border: 1px solid var(--color-border);
    padding: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    background: var(--color-background);
}

.project:first-child {
    margin-top: 1rem;
}

.project:last-child {
    margin-bottom: 0;
}

.project h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    text-transform: uppercase;
}

.project h3::before {
    content: '>> ';
}

.project .year {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: normal;
    display: inline;
    margin-left: var(--spacing-sm);
}

.project .year::before {
    content: '(';
}

.project .year::after {
    content: ')';
}

.project p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    font-size: 0.9rem;
}

.project .role {
    font-weight: normal;
    color: var(--color-text);
    font-size: 0.9rem;
}

.project .role::before {
    content: '   Role: ';
}

.tags {
    display: inline;
    margin-top: var(--spacing-xs);
}

.tags::before {
    content: '   Tags: [';
}

.tags::after {
    content: ']';
}

.tags span {
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    font-size: 0.85rem;
    font-weight: normal;
}

.tags span:not(:last-child)::after {
    content: ', ';
}

/* Past work */
.work-list {
    list-style: none;
    padding-left: 0;
}

.work-list li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.work-list li::before {
    content: '- ';
}

.work-list li:last-child {
    margin-bottom: 0;
}

.work-list strong {
    color: var(--color-text);
    font-weight: normal;
    text-transform: uppercase;
}

/* Interests */
.interests ul {
    list-style: none;
    column-count: 1;
}

.interests li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.interests li::before {
    content: '* ';
}

/* Current focus */
.current-focus p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 70ch;
}

.current-focus p::before {
    content: '> ';
}

/* Contact */
.contact {
    font-size: 0.9rem;
}

.contact p::before {
    content: 'contact: ';
}

.contact a {
    color: var(--color-link);
    text-decoration: underline;
    font-weight: normal;
}

.contact a:hover {
    color: var(--color-link-hover);
}

/* Footer */
footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.8rem;
}

footer p::before {
    content: '// ';
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .contact-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }
}