/* ================= GOOGLE FONT ================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ================= VARIABLES ================= */

:root {
    --title-color: #111827;
    --text-color: #374151;
    --muted-color: #6b7280;
    --body-color: #f3f4f6;
    --container-color: #ffffff;
    --accent-color: #1d4ed8;
    --border-color: #e5e7eb;
    --body-font: 'Inter', sans-serif;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background: var(--body-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ================= NAVIGATION ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
}

.nav__logo {
    font-weight: 700;
    color: var(--title-color);
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    font-size: 13px;
    color: var(--text-color);
}

.nav__link:hover,
.active-link {
    color: var(--accent-color);
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.change-theme,
.nav__toggle {
    font-size: 20px;
    cursor: pointer;
}

.nav__toggle {
    display: none;
}

section[id] {
    scroll-margin-top: 80px;
}


/* ================= MAIN ================= */

.main {
    padding-top: 80px;
}

#area-cv {
    width: 210mm;
    min-height: 297mm;
    margin: 30px auto;
    background: white;
}

.resume {
    background: var(--container-color);
    padding: 18mm;
}


/* ================= HOME ================= */

.home {
    border-bottom: 2px solid var(--title-color);
    padding-bottom: 1rem;
}

.home_container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.home_img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 3px solid var(--accent-color);
    margin-bottom: 0.6rem;
}

.home_title {
    font-size: 2rem;
    color: var(--title-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.home_profession {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.home_location {
    margin-top: 0.3rem;
    color: var(--muted-color);
    font-size: 0.8rem;
}

.home_contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.home_information {
    font-size: 0.75rem;
    color: var(--text-color);
}

.home_information i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}


/* ================= SECTIONS ================= */

.section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    color: var(--title-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
}


/* ================= PROFILE ================= */

.profile_description {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-color);
}


/* ================= EDUCATION ================= */

.education_content {
    display: flex;
    margin-bottom: 1rem;
}

.education_time {
    width: 15px;
    margin-right: 1rem;
}

.education_rounder {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 6px;
}

.education_line {
    display: block;
    width: 1px;
    height: calc(100% - 8px);
    background: var(--border-color);
    margin-left: 3px;
}

.education_title {
    font-size: 0.9rem;
    color: var(--title-color);
    font-weight: 600;
}

.education_studies {
    display: block;
    font-size: 0.78rem;
    color: var(--accent-color);
    margin: 0.15rem 0;
}

.education_description {
    font-size: 0.76rem;
    line-height: 1.6;
}


/* ================= SKILLS ================= */

.skills_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
}

.skill_item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.35rem 0;
    font-size: 0.78rem;
}

.skill_level {
    color: var(--muted-color);
    font-size: 0.7rem;
}


/* ================= PROJECTS ================= */

.project_content {
    margin-bottom: 1rem;
}

.project_title {
    font-size: 0.9rem;
    color: var(--title-color);
    font-weight: 600;
}

.project_description {
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0.25rem 0;
}

.project_technologies {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 500;
}


/* ================= EXPERIENCE ================= */

.experience_content {
    margin-bottom: 1rem;
}

.experience_title {
    font-size: 0.9rem;
    color: var(--title-color);
    font-weight: 600;
}

.experience_company {
    color: var(--accent-color);
    font-size: 0.78rem;
    margin-right: 1rem;
}

.experience_date {
    color: var(--muted-color);
    font-size: 0.75rem;
}

.experience_description {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.6;
}


/* ================= CERTIFICATES ================= */

.certificate_content {
    margin-bottom: 1rem;
}

.certificate_title {
    font-size: 0.88rem;
    color: var(--title-color);
    font-weight: 600;
}

.certificate_organization {
    display: block;
    color: var(--accent-color);
    font-size: 0.75rem;
    margin: 0.1rem 0;
}

.certificate_description {
    font-size: 0.76rem;
    line-height: 1.6;
}


/* ================= LANGUAGES ================= */

.languages_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.language_item {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.language_level {
    color: var(--muted-color);
}


/* ================= EXTRACURRICULAR ================= */

.extracurricular_item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
}

.extracurricular_item i {
    color: var(--accent-color);
    font-size: 1rem;
}


/* ================= DOWNLOAD ================= */

.download_container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 3rem;
}

#resume-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: var(--accent-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
}

#resume-button:hover {
    opacity: 0.9;
}


/* ================= DARK MODE ================= */

.dark-theme {
    --body-color: #111827;
    --container-color: #1f2937;
    --title-color: #f9fafb;
    --text-color: #d1d5db;
    --muted-color: #9ca3af;
    --border-color: #374151;
}

.dark-theme .header {
    background: #1f2937;
}

.dark-theme #area-cv {
    background: #1f2937;
}

.dark-theme .resume {
    background: #1f2937;
}


/* ================= PRINT ================= */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 14px;
        color: #374151 !important;
        --title-color: #111827;
        --text-color: #374151;
        --muted-color: #6b7280;
        --accent-color: #1d4ed8;
        --border-color: #e5e7eb;
    }

    .header,
    .download_container {
        display: none !important;
    }

    .main {
        padding: 0 !important;
        margin: 0 !important;
    }

    #area-cv {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        background: white !important;
    }

    .resume {
        padding: 14mm !important;
        background: white !important;
    }

    .home_img {
        display: block !important;
        width: 80px !important;
        height: 80px !important;
    }

    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .education_content,
    .project_content,
    .experience_content,
    .certificate_content {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}


/* ================= RESPONSIVE ================= */

@media screen and (max-width: 900px) {
    #area-cv {
        width: 95%;
    }

    .nav {
        padding: 0 1rem;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }

    .nav__menu.show-menu {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav__toggle {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    body {
        font-size: 13px;
    }

    #area-cv {
        width: 100%;
        margin: 0;
    }

    .resume {
        padding: 1.2rem;
    }

    .home_container {
        flex-direction: column;
    }

    .home_contact {
        align-items: flex-start;
    }

    .skills_content {
        grid-template-columns: repeat(2, 1fr);
    }

    .languages_content {
        grid-template-columns: 1fr;
    }
}
/* ================= PDF TEMPLATE ================= */

/* ================= PDF TEMPLATE ================= */

#pdf-template {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    opacity: 0;
    pointer-events: none;
    width: 210mm;
}

#pdf-page {
    width: 210mm;
    background: #ffffff;
    padding: 11mm 16mm 11mm 16mm;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 8.8pt;
    color: #1a1a1a;
    line-height: 1.45;
}

.pdf-header {
    text-align: center;
    margin-bottom: 8pt;
    padding-bottom: 7pt;
    border-bottom: 1.5px solid #1a1a1a;
}

.pdf-name {
    font-size: 19pt;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 2pt;
}

.pdf-role {
    font-size: 9.5pt;
    font-weight: 500;
    color: #333333;
    margin-bottom: 3pt;
}

.pdf-contacts {
    font-size: 8pt;
    color: #555555;
}

.pdf-section {
    margin-bottom: 7pt;
}

.pdf-section-title {
    font-size: 7.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111111;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 1.5pt;
    margin-bottom: 4pt;
}

.pdf-entry {
    margin-bottom: 5pt;
}

.pdf-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pdf-entry-title {
    font-size: 8.8pt;
    font-weight: 600;
    color: #111111;
}

.pdf-entry-date {
    font-size: 8pt;
    color: #666666;
    white-space: nowrap;
    margin-left: 8pt;
}

.pdf-entry-sub {
    font-size: 8pt;
    color: #444444;
    font-style: italic;
    margin-top: 1pt;
}

.pdf-entry-desc {
    font-size: 8pt;
    color: #333333;
    margin-top: 1.5pt;
    line-height: 1.45;
}

.pdf-tech {
    font-size: 7.5pt;
    color: #1d4ed8;
    margin-top: 1.5pt;
    font-weight: 500;
}

.pdf-body {
    font-size: 8pt;
    color: #333333;
    line-height: 1.55;
}

.pdf-skills-table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-skills-table td {
    width: 33.33%;
    padding: 2pt 3pt;
    font-size: 8pt;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.pdf-skill-name {
    font-weight: 500;
    color: #111111;
}

.pdf-skill-level {
    color: #888888;
    font-size: 7.5pt;
    margin-left: 3pt;
}

.pdf-two-col {
    display: flex;
    gap: 14pt;
}

.pdf-col {
    flex: 1;
}