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

:root {
    color-scheme: light;
    --page-bg: #edf2f7;
    --card-bg: #ffffff;
    --primary: #3454d1;
    --primary-dark: #233a8b;
    --accent: #6d28d9;
    --text: #1f2937;
    --muted: #5b6472;
    --border: #d8e0ef;
    --soft: #f7f9fc;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(52, 84, 209, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, var(--page-bg) 100%);
    padding: 24px;
}

a {
    color: inherit;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: #f8fbff;
    border-bottom: 1px solid var(--border);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.topbar-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.topbar-download:hover {
    background: #f4f7ff;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.lang-pill.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: center;
    padding: 38px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
}

.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.eyebrow {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.header h1 {
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.05;
}

.subtitle {
    max-width: 640px;
    margin-top: 12px;
    font-size: 1.08rem;
    opacity: 0.95;
}

.headline-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.headline-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
}

.contact-info a,
.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.content {
    padding: 38px 40px 44px;
}

.section + .section {
    margin-top: 34px;
}

.section h2 {
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.summary,
.note-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcff 0%, var(--soft) 100%);
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.profile-card {
    position: relative;
    padding: 24px 24px 24px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcff 0%, var(--soft) 100%);
}

.profile-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.profile-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.profile-card p {
    color: var(--text);
    line-height: 1.65;
}

.profile-card strong,
.list-item strong,
.note-card strong {
    color: var(--primary-dark);
}

.list-item {
    position: relative;
    padding: 22px 22px 22px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.list-item + .list-item {
    margin-top: 16px;
}

.list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.date,
.year {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.title {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
}

.institution {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.55;
}

.list-item ul {
    margin-top: 12px;
    padding-left: 18px;
    color: #374151;
}

.list-item li + li {
    margin-top: 8px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.language-item strong {
    color: var(--primary-dark);
}

.note-card p + p {
    margin-top: 10px;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .topbar,
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .topbar {
        flex-direction: column;
        gap: 14px;
    }

    .topbar-actions {
        flex-direction: column;
    }

    .header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 20px;
    }

    .profile-picture {
        margin: 0 auto;
        width: 120px;
        height: 120px;
    }

    .contact-info {
        justify-content: center;
    }

    .headline-points {
        justify-content: center;
    }

}

@media print {
    body {
        padding: 0;
        background: #fff;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .topbar {
        display: none;
    }
}
