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

:root {
    --primary: #111827;
    --secondary: #4b5563;
    --muted: #6b7280;
    --border: #e5e7eb;
    --background: #f3f4f6;
    --white: #ffffff;
    --accent: #2563eb;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =========================================================
    PAGE
========================================================= */

.resume {
    width: 210mm;
    min-height: 297mm;
    margin: 40px auto;
    background: var(--white);
    padding: 14mm 16mm 14mm 16mm;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================
    HEADER
========================================================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.name {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.role {
    margin-top: 8px;

    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

.summary {
    margin-top: 14px;

    max-width: 620px;

    font-size: 13px;
    line-height: 1.7;
    color: var(--secondary);
}

.contact {
    width: 260px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    font-size: 12px;
    color: var(--secondary);

    text-align: right;
}

.contact a:hover {
    color: var(--accent);
}

.profile-image {
    width: 120px;
    height: 120px;
}

/* =========================================================
    CONTENT
========================================================= */

.content {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 36px;

    padding-top: 26px;
}

/* =========================================================
    SECTION
========================================================= */

.section {
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;

    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}

/* =========================================================
    EXPERIENCE
========================================================= */

.experience-item {
    margin-bottom: 22px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.job-title {
    font-size: 15px;
    font-weight: 700;
}

.company {
    margin-top: 2px;

    font-size: 13px;
    font-weight: 600;

    color: var(--accent);
}

.date {
    white-space: nowrap;

    font-size: 11px;
    color: var(--muted);
}

.experience-item ul {
    margin-top: 8px;
    padding-left: 18px;

    list-style: disc;

    font-size: 12px;
    color: var(--secondary);
}

.experience-item li {
    margin-bottom: 5px;
}

/* =========================================================
    PROJECTS
========================================================= */

.project {
    margin-bottom: 18px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
}

.project-name {
    font-size: 14px;
    font-weight: 700;
}

.project-type {
    font-size: 10px;
    color: var(--muted);
    text-align: right;
}

.project-description {
    margin-top: 5px;

    font-size: 12px;
    color: var(--secondary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 8px;
}

.tech {
    padding: 3px 7px;

    border: 1px solid var(--border);
    border-radius: 4px;

    font-size: 9px;
    font-weight: 600;

    color: var(--secondary);
    background: #fafafa;
}

/* =========================================================
    SIDEBAR
========================================================= */

.sidebar {
    padding-left: 24px;
}

/* =========================================================
    SKILLS
========================================================= */

.skill-group {
    margin-bottom: 18px;
}

.skill-title {
    margin-bottom: 6px;

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

.skill-list {
    font-size: 11px;
    line-height: 1.8;
    color: var(--secondary);
}

/* =========================================================
    EDUCATION
========================================================= */

.education-item {
    margin-bottom: 16px;
}

.degree {
    font-size: 12px;
    font-weight: 700;
}

.school {
    margin-top: 2px;

    font-size: 11px;
    color: var(--secondary);
}

.education-date {
    margin-top: 2px;

    font-size: 10px;
    color: var(--muted);
}

/* =========================================================
    CERTIFICATIONS
========================================================= */

.certification {
    margin-bottom: 10px;
}

.certification-name {
    font-size: 11px;
    font-weight: 700;
}

.certification-org {
    font-size: 10px;
    color: var(--muted);
}

/* =========================================================
    LANGUAGES
========================================================= */

.language {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 11px;
}

.language-level {
    color: var(--muted);
}

/* =========================================================
    FOOTER
========================================================= */

.footer {
    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    font-size: 9px;
    color: var(--muted);
}

@media print {
    body {
        background: white;
    }
    .resume {
        width: 210mm;
        min-height: 297mm;

        margin: 0;
        padding: 15mm 17mm;

        box-shadow: none;
    }
    .sidebar {
        border-left: 0px;
        border-top: 0px;
        padding-top: 0px;
    }
    .section {
        margin-bottom: 0;
    }
    .content {
        gap: 0px;
    }
    .contact {
        width: 100%;
        display: block;
    }
    .skills-container {
        display: flex;
        gap: 30px;
    }
    .no-print {
        display: none !important;
    }
    .profile-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 900px) {
    body {
        background: white;
    }
    .resume {
        width: 100%;
        min-height: auto;

        margin: 0;
        padding: 30px 24px;

        box-shadow: none;
    }
    .header {
        flex-direction: column;
        gap: 20px;
    }
    .contact {
        text-align: left;
    }
    .content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-left: 0;

        padding-left: 0;
        padding-top: 24px;
    }
}

@media (max-width: 500px) {
    .resume {
        padding: 24px 18px;
    }
    .name {
        font-size: 30px;
    }
    .experience-header,
    .project-header {
        flex-direction: column;
        gap: 2px;
    }
    .date {
        white-space: normal;
    }
}