body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('img2/pexels-maide-arslan-128712163-29705649.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

/* main styles */
.main {
    display: flex;
    flex-direction: row-reverse;
    width: 90%;
    margin: 10% auto;
    justify-content: space-between;
}

/* Main Content */
.Main-Content {
    background-color: #FFFFFF;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
    padding: 105px 90px;
    flex: 2; /* Оновлено для пропорційної ширини */
}

/* about styles */
.about {
    margin-bottom: 40px;
}

.about-position {
    font-weight: 700;
    font-size: 24px;
    line-height: 17px;
    color: #000000;
    margin-bottom: 20px;
}

.about-name {
    font-weight: 700;
    font-size: 45px;
    line-height: 55px;
    color: #000000;
    margin-bottom: 25px;
}

.about-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
    width: 635px;
}

/* project styles */
.project,
.project-link {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
}

.projects {
    margin-top: 40px;
    margin-bottom: 50px;
}

.project-bracket {
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
}

.title {
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 10px;
}

.project-list {
    padding: 0;
    margin-left: 17px;
}

.project-link {
    margin-left: 10px;
}

.project-item {
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 8px; /* Додано відступи між проектами */
}

/* work styles */
.work-position {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 10px;
}

.organization {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #0A70CE;
}

.period {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #A8A8A8;
    margin-bottom: 10px;
}

.line {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #000000;
}

.work-list {
    padding: 0;
    margin-left: 17px;
}

.work-list-item {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #595959;
}

/* Education styles */
.education {
    padding-top: 20px;
}

/* sidebar */
.sidebar {
    background-color: #1E2939;
    padding-top: 40px;
    width: 100%; /* Оновлено для адаптивності */
    flex: 1;
}

.Contacts,
.Languages,
.Tech-skills,
.soft-skills {
    margin-left: 40px;
}

.photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .Main-Content {
        padding: 20px;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
    }

    .about-description {
        width: 100%;
    }
}

.sidebar-title {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 22px;
    line-height: 27px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.contact-item:hover {
    transform: scale(1.1);
}

.contact-type {
    font-weight: bold;
    font-size: 14px;
    line-height: 24px;
    color: #0A70CE;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.phone-icon {
    transform: scaleX(-1);
}

.flipped-icon {
    display: inline-block;
    transition: transform 1s ease-in-out;
}

.contact-link {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #e0e0e0;
    margin-right: 20px;
    transition: color 0.2s ease-in-out;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0px;
}

.contact-link {
    word-break: break-word;
    text-decoration: none;
}

.contact-item:hover .flipped-icon.phone-icon {
    transform: rotateY(520deg);
}

.contact-item:hover .flipped-icon.mail-icon,
.contact-item:hover .flipped-icon.linkedin-icon {
    transform: rotateY(360deg);
}

.contact-item:hover .contact-link {
    color: #0073b1;
}

.tech-skills-list {
    color: #FFFFFF;
    padding: 0;
    margin-left: 17px;
}

.tech-skills-item {
    color: #0A70CE;
}

.tech-skills-text {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.organization-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
}

.organization-link:hover {
    transform: scale(1.05);
    color: #0073b1;
}

.organization {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #0A70CE;
}
