:root {
    --bg: #ffffff;
    --fg: #09090b;
    --muted: #71717a;
    --muted-bg: #f4f4f5;
    --border: #e4e4e7;
    --ring: #18181b;
    --radius: 0.75rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    padding: 64px 24px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 980px;
    margin: 0 auto;
}

.site-header {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    align-items: center;
    gap: 10px;
}

nav ul a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: calc(var(--radius) - 6px);
    transition: background 0.15s ease, color 0.15s ease;
}

nav ul a:visited {
    color: inherit;
}

nav ul a:hover {
    color: var(--fg);
    background: var(--muted-bg);
}

#about .container {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--muted-bg);
}

#description {
    color: var(--muted);
    font-size: 0.95rem;
}

#hero-image {
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg);
}

main {
    display: grid;
    gap: 48px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 12px;
}

section .container {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.list-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.list-skills i {
    font-size: 1.15rem;
    margin-right: 8px;
}

.list-skills li {
    background: var(--muted-bg);
    padding: 8px 12px;
    border-radius: calc(var(--radius) - 6px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.list-skills li:hover {
    background: #eeeeef;
    border-color: #d9d9df;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    background: var(--bg);
}

table, th, td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    font-size: 0.875rem;
}

th {
    background: var(--muted-bg);
    color: var(--fg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

td {
    color: var(--fg);
}

tbody tr {
    background: var(--bg);
}

tbody tr:hover {
    background: #fafafa;
}

#contact ul {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

#contact ul li {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: calc(var(--radius) - 6px);
    transition: background 0.15s ease, border-color 0.15s ease;
}

#contact ul a {
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    padding: 10px 14px;
}

#contact ul a:hover {
    color: var(--fg);
}

#contact ul a:visited {
    color: inherit;
}

#contact ul li:hover {
    background: var(--muted-bg);
    border-color: #d9d9df;
}

footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}

#contact ul li i {
    margin-right: 8px;
}

#contact i {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    body {
        padding: 40px 16px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #about .container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}
