:root {
    --bg: #f7f8fb;
    --card: #ffffff;
    --accent: #0b6efd;
    --muted: #6b7280;
    --radius: 14px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: #111
}

.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 20px
}

.card {
    display: flex;
    gap: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.06);
    overflow: hidden
}

.side {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-right: 1px solid #eef2f7
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(9, 30, 66, 0.08);
}

.name {
    font-size: 20px;
    font-weight: 700;
    margin: 0
}

.role {
    color: var(--muted);
    font-size: 14px
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none
}

.main {
    flex: 1;
    padding: 28px
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

nav button {
    background: transparent;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted)
}

nav button.active {
    background: rgba(11, 110, 253, 0.1);
    color: var(--accent)
}

section {
    padding: 12px 4px
}

h2 {
    margin: 6px 0 12px;
    font-size: 18px
}

p {
    color: #334155;
    line-height: 1.6
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

.proj {
    background: var(--card);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #eef2f7
}

.proj h3 {
    margin: 0 0 8px;
    font-size: 16px
}

.pubs {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.pub {
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #e6eef9;
    background: linear-gradient(180deg, #fff, #fbfdff)
}

.experience {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.exp {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e6eef9;
    background: linear-gradient(180deg, #fff, #fbfdff)
}

.education {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.edu {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e6eef9;
    background: linear-gradient(180deg, #fff, #fbfdff)
}

.contact-info {
    max-width: 560px;
    line-height: 1.8
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700
}

footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px
}

@media (max-width:880px) {
    .card {
        flex-direction: column
    }

    .side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid #eef2f7
    }

    .avatar {
        width: 84px;
        height: 84px
    }

    .main {
        padding: 16px
    }

    .projects {
        grid-template-columns: 1fr
    }

    nav {
        overflow: auto
    }
}