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

/* Terminal-inspired color palette from texaselections.wiki */
:root {
    --bg-primary: #222222;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333333;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent: #7eb8ff;
    --accent-dim: #5a9fd4;
    --border: rgba(255,255,255,0.08);
    --success: #3fb950;
    --warning: #d29922;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Header */
header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--accent);
}

.tagline {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.contact a:hover {
    border-bottom-color: var(--accent);
}

/* Terminal-style info box for header */
.info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.info-box-header {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.info-box-content {
    padding: 1rem;
}

/* Status indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category:first-child h3 {
    margin-top: 0.5rem;
}

/* Clip styling - terminal card style */
article.clip {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.15s;
}

article.clip:hover {
    border-color: var(--accent);
}

.pub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h4 a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}

h4 a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Highlight box for impact stories */
.highlight-box {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.highlight-box strong {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Stat grid for skills/recognition */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

/* About section */
.about {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

.about p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    article.clip {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .container {
        max-width: none;
    }
    
    article.clip, .about {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    h4 a {
        color: #000;
        text-decoration: underline;
    }
}

/* NEW: Publications Banner */
.banner-box {
    background: rgba(0,0,0,0.15);
    border-left: 3px solid var(--accent);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.prompt {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.prompt::before {
    content: "➜ ";
    color: var(--accent);
}

.banner-box p {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.banner-box p:last-child {
    margin-bottom: 0;
}

.pub-list {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* NEW: Side Projects Section */
.side-projects {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.project-url {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.project-card p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
}

.project-card a {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Add Source Serif 4 to font imports - requires HTML update too */
