body {
    background-color: #E5E5E5;
    padding-left: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-right: 40px;
    font-family: 'Montserrat', sans-serif;
}

/* Wrapper */

.wrapper {
    display: flex;
    flex-direction: row-reverse;
    background: #ffffff;
    width: 1200px;
    margin: auto;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}


/* Main Content */

.main-content {
    padding-left: 88px;
    padding-top: 50px;
    padding-bottom: 80px;
    padding-right: 40px;
}

/* About me */

.about-me-container {
    margin-bottom: 40px;
}

.my-profession {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    color: #000000;
    margin: 0px;
}

.my-name {
    font-style: normal;
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    margin-bottom: 8px;
}

.my-descr {
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #595959;
}

/* Projects */

.main-content-title {
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 8px;
}

.project-item {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
    list-style: decimal;
}

.project-span {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
    list-style: decimal;
}

.project-list {
    padding-left: 20px;
}

.projects-container {
    margin-bottom: 44px;
}

.project-item-descr {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
}

.project-item-link {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #4400ff;
    text-decoration-line: none;
}

/* Work Experience */

.work-experience-content {
    margin-bottom: 44px;
}

.work-experience-position {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
}

.work-experience-place {
    margin-bottom: 44px;
}

.work-experience-company {
    color: #6098F5;
    text-decoration: none;
    font-weight: 700;
}

.work-period {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #a8a8a8;
    margin-bottom: 8px;
}

.work-duties {
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #595959;
    list-style: disc;
}

.work-duties-list {
    padding-left: 20px;
}

.my-photo {
    width: 290px;
}

/* Education */

.education-position {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 8px;
}

/* Sidebar */

.sidebar {
    background-color: #DFEEFF;
    padding-bottom: 0px;
    padding-top: 0px;
    width: 500px;
}

.link-account {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 50px 0px 50px;
}

.link-linkedln,
.link-git,
.link-telegram {
    margin-left: 20px;

}

.contacts-container,
.soft-skills-container,
.tech-skills-container {
    margin: 70px 50px 0px 60px;
}


.sidebar-title {
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    color: #161d2a;
    margin-bottom: 8px;
}

.contacts-type {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #161D2A;
    margin-right: 8px;
}

.contacts-item {
    margin: 0;
}

.contacts-number {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #161D2A;
    text-decoration: none;
}

.contacts-email {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #2979FF;
    text-decoration: none;
}

.img-linkedln,
.img-git,
.img-telegram {
    width: 40px;
}


/* Skills */

.skills-list {
    padding-left: 16px;
}

.skills-list-item {
    color: #6098F5;
}

.skills-list-text {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #161D2A;
}

@media screen and (max-width: 1270px) {
    body {
        margin: 0;
        overflow-x: hidden;
        /* Hide horizontal overflow */
    }

    .wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 995px) {
    .main-content {
        padding: 40px;
        margin: 0;
        max-width: 100%;
        /* Set maximum width to 100% */
    }

    .my-photo {
        width: 100%;
        max-width: 300px;
        /* Set maximum width for the photo */
    }
}

@media screen and (max-width: 800px) {
    body {
        padding: 0;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
        /* Hide horizontal overflow */
    }

    .wrapper {
        flex-direction: column-reverse;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
        width: 100%;
        max-width: 100%;
        /* Set maximum width to 100% */
    }

    .main-content {
        order: -1;
        padding-left: 40px;
        max-width: 100%;
        /* Set maximum width to 100% */
    }

    .my-photo {
        margin-bottom: 20px;
        width: 100%;
        max-width: 300px;
        /* Set maximum width for the photo */
    }

    .contacts-container,
    .tech-skills-container,
    .soft-skills-container {
        margin: 0;
    }

    .skills-row {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 387px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
        max-width: 100%;
        /* Set maximum width to 100% */
    }

    .skills-row {
        flex-direction: column;
        padding-right: 0;
    }

    .sidebar-content {
        align-items: flex-start;
    }

    .my-photo {
        width: 100%;
        max-width: 200px;
        /* Set maximum width for the photo */
    }

    body {
        width: 100%;
        margin: 0;
        overflow-x: hidden;
        /* Hide horizontal overflow */
    }
}
