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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f1117;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #7dd3fc;
    text-decoration: none;
}

a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* ─── Header / Hero ─────────────────────────────────── */
header {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 40px;
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 28px;
}

.nav-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-icons a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-icons a:hover {
    color: #f1f5f9;
    text-decoration: none;
}

.nav-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ─── Main content ──────────────────────────────────── */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ─── Section titles ────────────────────────────────── */
.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e293b;
}

/* ─── Bio ───────────────────────────────────────────── */
.bio {
    margin-bottom: 56px;
}

.bio p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 640px;
}

/* ─── Projects grid ─────────────────────────────────── */
.projects {
    margin-bottom: 56px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card:hover {
    border-color: #7dd3fc;
    transform: translateY(-2px);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: #7dd3fc;
    text-decoration: none;
}

.card-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    flex: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #0f172a;
    color: #64748b;
    border: 1px solid #1e293b;
}

/* ─── Card icon links ───────────────────────────────── */
.card-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.card-links a {
    display: flex;
    align-items: center;
    color: #64748b;
    transition: color 0.2s;
    text-decoration: none;
}

.card-links a:hover {
    color: #7dd3fc;
    text-decoration: none;
}

.card-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ─── Footer ────────────────────────────────────────── */
footer {
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 24px;
    color: #475569;
    font-size: 0.8rem;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
    header {
        padding: 36px 16px 28px;
    }

    main {
        padding: 0 16px 56px;
    }

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