:root {
    --bg: #0f172a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --card-bg: #1e293b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3 { color: var(--text-main); line-height: 1.2; }
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: -0.05rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid #334155; padding-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { text-decoration: underline; }

/* Header Section */
header { margin-bottom: 3rem; }
.subtitle { font-size: 1.1rem; color: var(--accent); font-family: monospace; }

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.skill-tag {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: monospace;
    border: 1px solid #334155;
}

/* Project Cards */
.project {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
    transition: transform 0.2s;
}
.project:hover { transform: translateY(-2px); border-color: var(--accent); }
.project h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.tech-stack { font-size: 0.85rem; color: var(--text-muted); font-family: monospace; margin-top: 1rem; }

/* Traffic Light Legend */
.skills-legend {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1.2rem;
    font-family: monospace;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prof-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Proficiency Colors (Using soft, modern tones to match your slate theme) */
.prof-green { background-color: #10b981; } /* Emerald */
.prof-yellow { background-color: #f59e0b; } /* Amber */
.prof-red { background-color: #ef4444; } /* Red */

/* Turn Skill Tags into Interactive Links */
a.skill-tag {
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

a.skill-tag:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #334155; text-align: center; color: var(--text-muted); font-size: 0.9rem; }