:root {
    --bg-color: #0f1115;
    --text-color: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #2f81f7;
    --border-color: #30363d;
    --card-bg: #161b22;
}

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

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

header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.header-content {
    flex: 1;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.8;
}

section {
    margin-bottom: 48px;
}

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

.tech-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .links {
        justify-content: center;
    }
    .tech-stack {
        grid-template-columns: 1fr;
    }
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.item {
    margin-bottom: 32px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.item-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-org {
    margin-bottom: 8px;
}

.item-org a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.item-org a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.project-card h3 a {
    color: var(--accent-color);
    text-decoration: none;
}

.project-card h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.8;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

footer {
    margin-top: 80px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}