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

@page {
    size: A4;
    margin: 0;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    display: flex;
    max-width: 210mm;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Floating buttons */
.floating-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-buttons button {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-buttons button:hover {
    background-color: #2980b9;
}

.floating-buttons .material-symbols-outlined {
    font-size: 24px;
}

/* Tooltip styles */
.floating-buttons button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.floating-buttons button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* High contrast mode */
body.high-contrast {
    background: #fff;
    color: #000;
}

body.high-contrast .container {
    background: #fff;
    box-shadow: none;
}

body.high-contrast .left-column {
    background-color: #fff;
    color: #000;
}

body.high-contrast .section-title,
body.high-contrast .subsection-title,
body.high-contrast .subsection--name-full-name,
body.high-contrast .subsection--name-job-title,
body.high-contrast .subsection--experience-position,
body.high-contrast .subsection--project-name,
body.high-contrast .subsection--project-technologies,
body.high-contrast .subsection--project-link {
    color: #000;
}

body.high-contrast .profile-image {
    border-color: #000;
}

body.high-contrast .right-column .section-title {
    border-bottom-color: #000;
}

body.high-contrast footer {
    background-color: #fff;
    color: #000;
}

body.high-contrast footer a {
    color: #000;
}

/* endregion */

/* region Left Column */
.left-column {
    flex: 0 0 35%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-image {
    border-radius: 50%;
    background-image: url('./pic.png');
    background-size: cover;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border: 5px solid #ecf0f1;
}

.left-column .section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.left-column .subsection-title {
    font-size: 1em;
    font-weight: 500;
    color: #bdc3c7;
    margin-top: 10px;
    margin-bottom: 5px;
}

.left-column ul {
    list-style-type: none;
    padding-left: 5px;
}

.left-column ul li {
    margin-bottom: 5px;
}

.left-column ul li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/*endregion*/

/* region Right Column*/
.right-column {
    flex: 0 0 65%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.right-column .section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.subsection--name-full-name {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.subsection--name-job-title {
    font-size: 1.4em;
    font-weight: 400;
    color: #7f8c8d;
}

.subsection--experience, .subsection--project {
    margin-bottom: 20px;
}

.subsection--experience-company {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
}

.subsection--experience-duration,
.subsection--experience-location {
    font-size: 0.9em;
    color: #7f8c8d;
}

.experience-role {
    margin-top: 10px;
}

.subsection--experience-position {
    font-size: 1.1em;
    font-weight: 500;
    color: #3498db;
}

.subsection--experience-time {
    font-size: 0.9em;
    color: #7f8c8d;
}

.subsection--experience-description,
.subsection--experience-skills {
    font-size: 0.95em;
    margin-top: 5px;
}

.subsection--project-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
}

.subsection--project-technologies {
    font-size: 1em;
    font-weight: 500;
    color: #3498db;
}

.subsection--project-description {
    margin-top: 5px;
    font-size: 0.95em;
}

.subsection--project-link {
    font-size: 0.9em;
    color: #3498db;
    text-decoration: none;
}

.subsection--project-link:hover {
    text-decoration: underline;
}

.right-column ul {
    list-style-type: none;
    padding-left: 5px;
}

.right-column ul li {
    margin-bottom: 5px;
}

.right-column ul li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* endregion */

/* Footer styles */
footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9em;
    margin-top: 20px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        background: none;
    }
    .container {
        margin: 0;
        box-shadow: none;
    }
    .floating-buttons {
        display: none;
    }
    footer {
        background-color: transparent;
        color: #000;
    }
    footer a {
        color: #000;
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-column, .right-column {
        flex: 0 0 100%;
    }
    .profile-image {
        width: 150px;
        height: 150px;
    }
    .floating-buttons {
        top: 10px;
        right: 10px;
    }
    .floating-buttons button {
        width: 36px;
        height: 36px;
    }
    .floating-buttons .material-symbols-outlined {
        font-size: 20px;
    }
}