/* =========================================
   BASIC RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #f2f2f2;

    color: #111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.45;
}


/* =========================================
   ACTION BAR
========================================= */

.action-bar {

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;

    justify-content: center;

    gap: 12px;

    padding: 14px;

    background: #111;

    border-bottom: 1px solid #333;
}

.action-btn {

    border: none;

    padding: 10px 18px;

    border-radius: 5px;

    background: white;

    color: #111;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.action-btn:hover {

    transform: translateY(-1px);

    background: #eaeaea;
}

.action-btn.secondary {

    background: transparent;

    color: white;

    border: 1px solid white;
}


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

.resume {

    width: 210mm;

    min-height: 297mm;

    margin: 30px auto;

    padding: 17mm 17mm;

    background: white;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12);
}


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

.header {

    text-align: center;

    border-bottom: 1.5px solid #111;

    padding-bottom: 12px;

    margin-bottom: 18px;
}

.header h1 {

    margin: 0;

    font-size: 25px;

    letter-spacing: 0.5px;

    font-weight: 700;
}

.header h2 {

    margin: 5px 0 8px;

    font-size: 14px;

    font-weight: 600;
}

.header h2 span {

    margin: 0 4px;
}

.contact {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    font-size: 10.5px;
}

.contact a {

    color: #111;

    text-decoration: none;
}

.contact a:hover {

    text-decoration: underline;
}


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

section {

    margin-bottom: 15px;
}

section h3 {

    margin: 0 0 7px;

    padding-bottom: 3px;

    border-bottom: 1px solid #111;

    font-size: 12.5px;

    font-weight: 700;

    letter-spacing: 0.3px;
}

section p {

    margin: 0 0 5px;

    font-size: 10.5px;

    text-align: justify;
}


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

.skills p {

    margin-bottom: 4px;
}


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

.experience {

    margin-bottom: 13px;

    page-break-inside: avoid;
}

.job-header {

    display: flex;

    justify-content: space-between;

    align-items: baseline;

    gap: 20px;

    font-size: 11px;
}

.location {

    margin-top: 1px;

    font-size: 10px;

    font-style: italic;
}

ul {

    margin-top: 5px;

    margin-bottom: 0;

    padding-left: 18px;
}

li {

    margin-bottom: 4px;

    font-size: 10.5px;
}


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

.projects {

    margin-top: 4px;
}

.projects li {

    margin-bottom: 6px;

    text-align: justify;
}


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

.education {

    page-break-inside: avoid;
}


/* =========================================
   LINKS
========================================= */

a {

    color: inherit;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 800px) {

    body {

        background: white;
    }

    .action-bar {

        position: sticky;

        flex-wrap: wrap;
    }

    .resume {

        width: 100%;

        min-height: auto;

        margin: 0;

        padding: 25px 20px;

        box-shadow: none;
    }

    .header h1 {

        font-size: 23px;
    }

    .header h2 {

        font-size: 13px;

        line-height: 1.5;
    }

    .contact {

        font-size: 10px;

        line-height: 1.7;
    }

    .job-header {

        flex-direction: column;

        gap: 2px;
    }

}


/* =========================================
   PRINT / PDF VERSION
========================================= */

@media print {

    @page {

        size: A4;

        margin: 0;
    }

    html,
    body {

        width: 210mm;

        margin: 0;

        padding: 0;

        background: white;
    }

    body {

        -webkit-print-color-adjust: exact;

        print-color-adjust: exact;
    }

    .action-bar {

        display: none !important;
    }

    .resume {

        width: 210mm;

        min-height: 297mm;

        margin: 0;

        padding: 15mm 16mm;

        box-shadow: none;
    }

    a {

        color: #111;

        text-decoration: none;
    }

    section {

        break-inside: auto;
    }

    .experience,
    .education {

        break-inside: avoid;
    }
}