@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    background: #e9e9e9;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
}

.resume {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.resume_left {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    flex-grow: 1;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.resume_profile {
    text-align: center;
    margin-bottom: 20px;
}

.resume_profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #3498db;
    object-fit: cover;
}

.resume_content .title {
    margin-bottom: 25px;
    text-align: center;
}

.resume_content .title p.bold {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

.resume_content .title p.regular {
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

.resume_item {
    margin-bottom: 30px;
}

.resume_item .title p.bold {
    font-size: 22px;
    font-weight: 700;
    color: #3498db;
    text-transform: uppercase;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.resume_info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.resume_info .icon {
    width: 30px;
    height: 30px;
    background: #34495e;
    color: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.resume_info .data a {
    color: #ecf0f1;
    text-decoration: none;
    word-break: break-all;
}

.resume_info .data a:hover {
    text-decoration: underline;
}

.resume_skills ul {
    list-style: none;
    padding: 0;
}

.resume_skills ul > li > .skill_name {
    font-weight: 500;
    margin-bottom: 5px;
}

.resume_skills ul > li > .skill_name ul {
    padding-left: 20px;
    list-style: disc;
    font-weight: 400;
    margin-top: 5px;
}

.resume_skills ul > li {
    margin-bottom: 10px;
}

.resume_skills ul > li > .skill_name ul > li {
    font-weight: 400;
    margin-bottom: 5px;
}

.resume_skills ul > li > .skill_name ul > li:last-child {
    margin-bottom: 0;
}

.resume_right {
    padding: 30px;
    flex-grow: 2;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.resume_about p, .resume_item p {
    margin-bottom: 15px;
    text-align: justify;
}

.resume_work ul, .resume_education ul, .resume_interests ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume_work ul li, .resume_education ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 25px;
    border-left: 2px solid #bdc3c7;
}

.resume_work ul li:before, .resume_education ul li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -9px;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
}

.resume_work ul li .date, .resume_education ul li .date {
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.resume_work ul li .info .semi-bold, .resume_education ul li .info .semi-bold {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.resume_work ul li .info a, .resume_education ul li .info a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.resume_work ul li .info a:hover, .resume_education ul li .info a:hover {
    text-decoration: underline;
}

.resume_work ul li .info ul, .resume_education ul li .info ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.resume_work ul li .info ul li, .resume_education ul li .info ul li {
    border-left: none;
    padding-left: 0;
    margin-bottom: 5px;
}

.resume_work ul li .info ul li:before, .resume_education ul li .info ul li:before {
    content: none;
}

.resume_interests ul li {
    font-weight: 500;
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.resume_interests ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.resume_interests ul li a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.resume_interests ul li a:hover {
    text-decoration: underline;
}

.link-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    vertical-align: top;
}

@media (min-width: 768px) {
    .resume {
        flex-direction: row;
    }
    .resume_left {
        width: 35%;
        border-top-right-radius: 0;
        border-bottom-left-radius: 12px;
    }
    .resume_right {
        width: 65%;
        border-bottom-left-radius: 0;
        border-top-right-radius: 12px;
    }
}

/* --- PRINT STYLES --- */
@media print {
    body {
        padding: 0;
        margin: 0;
        font-size: 13px;
    }
    .resume {
        flex-direction: row;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    .resume_left {
        width: 35%;
        border-radius: 0;
        -webkit-print-color-adjust: exact; /* Chrome, Safari */
        print-color-adjust: exact; /* Firefox */
    }
    .resume_right {
        width: 65%;
        border-radius: 0;
    }
    .resume_content .title p.bold {
        font-size: 21px;
    }
    .resume_content .title p.regular {
        font-size: 15px;
    }
    .resume_item .title p.bold {
        font-size: 18px;
    }
    .resume_work ul li .info .semi-bold, .resume_education ul li .info .semi-bold {
        font-size: 15px;
    }
    .resume_about, .resume_work, .resume_education, .resume_interests p {
        font-size: 12px;
    }
    .resume_info .icon {
        display: none;
    }
    .resume_info ul li {
        display: block; /* Override flex display for print */
    }
    .resume_info ul li::before {
        font-weight: 500;
        margin-right: 10px;
    }

    .resume_info ul li:nth-child(1)::before {
        content: "Place:";
    }
    .resume_info ul li:nth-child(2)::before {
        content: "Email:";
    }
    .resume_info ul li:nth-child(3)::before {
        content: "Phone:";
    }
    .resume_info ul li:nth-child(4)::before {
        content: "Github:";
    }
    .resume_info ul li:nth-child(5)::before {
        content: "Linkedin:";
    }
    .link-icon {
        display: none;
    }
    a {
        text-decoration: none;
    }
    .page-break {
        page-break-after: always;
    }
}