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

html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    font-family: 'Inter', sans-serif;
    background: #d9dde3;
    color: #222;
    line-height: 1.6;
}

/* TOP BAR */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #111827;
    color: white;

    padding: 16px 24px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.topbar-content {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.print-btn {
    border: none;
    background: #2563eb;
    color: white;

    padding: 12px 18px;
    border-radius: 8px;

    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.print-btn:hover {
    opacity: 0.92;
}

/* CV CONTAINER */

.cv {
    padding: 32px 0;
}

/* PAGE */

.page {
    width: 210mm;
    min-height: 297mm;

    margin: 24px auto;
    padding: 15mm;

    background: white;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    position: relative;
}

/* GRID LAYOUT */

.cv-layout {
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 28px;
}

/* SIDEBAR */

.sidebar {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 24px;
}

.profile {
    text-align: center;
    margin-bottom: 28px;
}

.avatar {
    width: 100px;
    height: 100px;

    margin: auto auto 16px;

    border-radius: 50%;

    background: #1e3a8a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    font-weight: 700;
}

.title {
    color: #555;
    margin-top: 6px;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 6px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 8px;
}

/* CONTENT */

.content-section {
    margin-bottom: 32px;
    break-inside: avoid;
}

.content-section h2 {
    font-size: 24px;
    margin-bottom: 16px;

    color: #111827;

    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.job,
.project,
.education {
    margin-bottom: 24px;

    break-inside: avoid;
}

.job-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;
}

.company {
    color: #555;
    font-weight: 500;
}

.date {
    white-space: nowrap;
    color: #666;
}

.job ul {
    padding-left: 18px;
}

.skills li {
    background: white;

    padding: 8px 10px;
    border-radius: 8px;

    margin-bottom: 8px;
}

/* MOBILE */

@media screen and (max-width: 900px) {

    .page {
        width: 100%;
        min-height: auto;

        margin: 0;
        border-radius: 0;
        padding: 24px;
    }

    .cv {
        padding: 0;
    }

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .topbar-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .job-header {
        flex-direction: column;
    }
}
