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

* {
    box-sizing: border-box;
}

/* =====================================
   ОСНОВНЫЕ СТИЛИ
===================================== */

body {
    background-color: #f1efef;
}

a {
    color: #0B57D0;
}

/* =====================================
   ШАПКА САЙТА
===================================== */

.top-bar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -20px -20px 30px;
    padding: 24px 20px;

    background-color: #368e2b;

    border-radius: 3px 3px 0 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

}

.page-heading {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    color:white;
}

/* =====================================
   КНОПКИ ПЕЧАТИ
===================================== */

.print-button {
    background: none;
    border: none;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.print-button img {
    width: 18px;
    height: 18px;
    display: block;
}

.print-all-button img {
    width: 18px;
    height: 18px;
    display: block;
}

.print-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.print-all-button {
    background: none;
    border: none;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* =====================================
   КАРТОЧКА РЕЗЮМЕ
===================================== */

.card {
    max-width: 960px;

    margin: 40px auto;
    padding: 20px;

    background-color: white;
    
    text-align: left;
}

.resume-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.resume-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.resume-header img {
    width: 247px;
}

/* =====================================
   ШАПКА
===================================== */

.profile-info h1 {
    margin-bottom: 20px;
    color: #368e2b;
    font-size: 24px;
}

.profile-info,
.experience-left,
.experience-right,
.skills-column,
.about-left,
.about-right {
    text-align: left;
}

.profile-info p {
    margin: 2px 0;
   }

.profile-summary {
    margin-bottom: 25px;
}

.education {
    margin-top: 20px;
}

p {
    font-size: 15px;
    line-height: 1.42;
    word-spacing: 2px;
}

/* =====================================
   ДОСВІД РОБОТИ
===================================== */

.experience {
    display: flex;
    margin-top: 30px;
}

.experience-right {
    flex: 1;

    padding-left: 90px;

    border-left: 2px solid #4b4b4b;
}

.experience-right p {
    margin: 42px;

    font-size: 12px;
    font-style: italic;

    color: #4b4b4b;
}

.skill-scale-note p {
    margin-bottom: 8px;
}

.skill-scale-note ol {
    margin-top: 0;
    margin-bottom: 30px;
    margin-left: 42px;
    padding-left: 20px;

    font-size: 12px;
    font-style: italic;
    color: #4b4b4b;
}

.experience-left,
.skills-column {
    flex: 1;
}

.experience-left p,
.skills-column p,
.about-left p {
    margin: 3px 0;
}

/* =====================================
   НАВИЧКИ
===================================== */

.skills-row,
.about {
    display: flex;
    
    margin-top: 30px;
    gap: 40px;
}

.section-title {
    margin-bottom: 15px;
    font-size: 20px;
    color: #59d874;
}

.second-row {
    margin-top: 30px;
}

/* =====================================
   ПРО СЕБЕ
===================================== */

.about-left {
    width: 31%;
}

.about-right {
    width: 69%;
}

.about-right p {
    line-height: 1.6;
}

/* ==========================================================================
   NAVIGATION ARROW
   ========================================================================== */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 15px;

    color: #59d874;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;

    transition: transform 0.25s ease, color 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;

    opacity: 0;
    visibility: hidden;

    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(206, 206, 206, 0.3);
    border-radius: 50%;
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: #2a6e21;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:focus-visible {
    outline: 2px solid #59d874;
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
}

/* =====================================
   МОБІЛЬНА ВЕРСІЯ
===================================== */

@media (max-width: 600px) {

    .header {
        flex-direction: column;
        align-items: center;
    }

    .experience {
        flex-direction: column;
    }

    .experience-right {
        border-left: none;

        padding-left: 0;

        margin-top: 20px;
    }

    .experience-right p {
        border-top: 2px solid black;
        padding-top: 15px;
    }

    .skills-row {
        flex-direction: column;
    }

    .skills-column {
        margin-bottom: 30px;
    }

    .about {
        flex-direction: column;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-right {
        margin-top: 30px;
        padding-left: 0;
    }

    .card {
        width: 100%;

        margin: 0;
        padding: 15px;

        border-radius: 0;
    }

    .profile-info h1 {
    font-size: 21px;
    }

    .contacts {
        margin-bottom: 10px;
    }

    .resume-header img {
    width: 135px;
    }

    .page-heading {
    font-size: 22px;
}

}

/* =====================================
   ТЕМНАЯ ТЕМА
===================================== */

.dark-theme {
    background-color: #021709;
}

.dark-theme .card {
    background-color: #2b2b2b;
}

.dark-theme p {
    color: white;
}

.dark-theme .experience-right p {
    color: #dddddd;
}

.dark-theme .skill-scale-note ol {
    color: #dddddd;
}

.dark-theme .resume-header img {
    border-color: #777;
}

.dark-theme .experience-right {
    border-left-color: #777;
}

.dark-theme .experience-right p {
    border-top-color: #777;
}