:root {
    --bg: #373E48;
    --fg: #f5f5f5;
    --fg-muted: #d0d4dc;
    --accent: #ffffff;
    --card-bg: #414855;
    --card-border: #4d5563;
    --heading-font: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
    --body-font: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body-font);
}

.page {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 2rem 1.5rem 3rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Header */
.site-header {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    max-width: 80px;
    height: auto;
}

.header-text {
    min-width: 0;
}

.name {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subtitle {
    margin: 0.25rem 0 0.4rem;
    font-size: 1rem;
    color: var(--fg-muted);
}

.contact {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fg-muted);
}
.contact a {
    color: var(--accent);
    text-decoration: none;
}
.contact a:hover {
    text-decoration: underline;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    font-size: 0.9rem;
}

.nav-link {
    color: var(--fg-muted);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.nav-link:hover {
    border-color: var(--card-border);
    background: rgba(255,255,255,0.05);
}

/* Language switch */
.lang-switch {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.lang-btn {
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--fg-muted);
    cursor: pointer;
    min-width: 2.5rem;
}
.lang-btn.active {
    background: var(--accent);
    color: #111827;
    border-color: var(--accent);
    font-weight: 600;
}
.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.08);
}

/* Responsive header */
@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .brand {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    .lang-switch {
        justify-content: center;
    }
}

/* Layout / columns */
.layout {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 1.75rem;
}

.column {
    min-width: 0;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* Sections, headings */
.section {
    margin-bottom: 1.75rem;
}

.section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--heading-font);
    color: var(--accent);
}

h3 {
    margin: 0.6rem 0 0.2rem;
    font-size: 1rem;
}

h4 {
    margin: 0.4rem 0 0.15rem;
    font-size: 0.9rem;
    color: var(--fg-muted);
}

/* Job / education blocks */
.job, .edu-item {
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.job:last-child,
.edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta {
    font-size: 0.85rem;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
}
.meta .date {
    font-size: 0.8rem;
    opacity: 0.9;
}

ul {
    margin: 0.25rem 0 0.45rem 1.1rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--fg-muted);
}
li {
    margin-bottom: 0.15rem;
}

/* Side column tweaks */
.side-column h3 {
    font-size: 0.95rem;
    margin-top: 0.7rem;
}
.side-column ul {
    margin-bottom: 0.5rem;
}

/* default: hide EN until JS decides */
main[data-lang="en"] {
    display: none;
}
