@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,700&display=swap');

@import url('reset.css');
@import url('header.css');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #37393F;
}

.wrapper {
	min-height: 100%;
	overflow: clip;
	display: flex;
	flex-direction: column;
}

.wrapper > main {
	flex-grow: 1;
}

/* main styles */

.main__conainer {
    display: flex;
    margin: 0 auto;
    max-width: 1200px;
    padding: 15px;
    gap: 15px;
}

.cv__details {
    display: flex;
    flex-direction: column;
    flex: 0 1 70%;
    gap: 15px;
}

.cv__content {
    display: flex;
    flex-direction: column;
    flex: 0 1 30%;
    gap: 15px;
}

.about,
.projects,
.work,
.education {
    background-color: #e7e7e7;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* about styles */

.hero__about {
    display: none;
}

.about__name {
    font-weight: 700;
    font-size: 40px;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.2;
    color: #37393F;
    text-align: center;
    text-transform: uppercase;
}

.about__description {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #595959;
}

/* sidebar styles */

.sidebar__contacts {
    display: flex;
    flex-direction: column;
}

.hero__img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
}

.hero__img img {
    width: 100%;
    border-radius: 50%;
}

.list__item {
    position: relative;
    color: #d6d6d6;
    line-height: 1.2;
    transition: all 0.3s ease-in-out;
}

.list__item::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 4px;
    left: 0;
    background-color: #6B77E5;
    border: 1px solid #40DDB6;
    flex: 0 0 12px;
}

.list__item--main {
    color: #595959;
    font-weight: 700;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.list__item--main::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 8px;
    left: 0;
    background-color: #40DDB6;
    border: 1px solid #6B77E5;
    flex: 0 0 12px;
    transition: all 0.3s ease-in-out;
}

.list__item--main:hover::before{
    border-radius: 50%;
}

.link {
    line-height: 1.7;
    transition: all 0.3s ease-in-out;
}

.link::after {
    content: "";
    position: relative;
    width: 10px;
    height: 10px;
    border-top: 3px solid #6B77E5;
    border-right: 3px solid #6B77E5;
    top: 0;
    left: 5px;
    transform: rotate(45deg);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

.link:hover::after {
    visibility: visible;
    transform: rotate(315deg);
}

.link:hover {
    color: #6B77E5;
}

.list__item {
    padding-left: 25px;
}

.list__item:not(:last-child) {
    margin-bottom: 10px;
}

.title {
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #40DDB6;
}

.title--blue {
    color: #6B77E5;
}

.about__title {
    color: #78473b;
    font-size: 30px;
    margin-bottom: 0;
}

.sidebar__hero,
.sidebar__contacts,
.sidebar__tech,
.sidebar__soft,
.language,
.interests {
    background-color: #293a47;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
}

.contacts__list {
    margin-bottom: 10px;
}

@media (max-width: 767.98px) {
    .contacts__list {
        align-self: center;
    }
}

.contacts__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FB6D3A;
    font-weight: 700;
    font-size: 18px;
    line-height: 170%;
}

.contacts__item:not(:last-child) {
    margin-bottom: 10px;

}

.contacts__item img {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
}

.contacts__link {
    text-decoration: none;
    font-size: 18px;
    line-height: 170%;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.contacts__link:hover {
    color: #6B77E5;
}

.sidebar__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.sidebar__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.sidebar__icon:hover {
    transform: scale(1.3);
    border: 1px solid #FB6D3A;
}

.sidebar__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}


.tech__list,
.soft__list,
.language_list,
.interests_list {
    color: #FFFFFF;
}

.tech__item,
.soft__item,
.language_list_item,
.interests_list_item {
    color: #FB6D3A;
}

.button {
    align-self: center;
    color: #FB6D3A;
    background-color: #c9c9c9;
    border-radius: 10px;
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}
 
.button:hover {
    color: #ffffff;
    background-color: #40DDB6;
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .hero__img img {
        max-width: 250px;
    }
}

@media (max-width: 767.98px) {
    .about {
        display: none;
    }
    .main__conainer {
        display: flex;
        flex-direction: column;
    }
    .hero__img {
        flex: 0 0 200px;
        padding: 0;
    }
    .hero__img img {
        width: 100%;
    }
    .hero__about {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ffffff;
        text-align: center;
        flex: 1 1 567px;
    }
    .hero__about *:not(:last-child) {
        margin-bottom: 10px;
    }
    .hero__subtitle {
        color: #ffffff;
        font-size: 22px;
        font-weight: 600;
    }
    .hero__title {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.2;
        color: #40DDB6;
        text-transform: uppercase;
    }
    .hero__about p {
        max-width: 300px;
        color: #c9c9c9;
        text-align: center;
        line-height: 1.2;
    }
    .sidebar__hero {
        display: flex;
        align-items: center;
    }
    .link::after {
        visibility: visible;
    }
}

@media screen and (max-width: 567.98px) {
    .sidebar__hero {
        flex-direction: column;
    }
    .hero__about {
        flex: 1 1 auto;
    }
    .hero__img {
        margin-bottom: 20px;
    }
}

/* projects styles */

.project_bracket {
    font-weight: 700;
    line-height: 1.7;
    color: #000000;
}


/* work styles */

.work__description:not(:last-child) {
    margin-bottom: 20px;
}

.work__description *:not(:last-child) {
    margin-bottom: 10px;
}

.work__position {
    font-weight: 700;
}

.work__company {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #FB6D3A;
}

.period {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #5a5a5a;
}

.work_list_item {
    line-height: 1.7;
    color: #595959;
}

/* education */

.education__university:not(:last-child) {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #40DDB6;
}

.education__university *:not(:last-child) {
    margin-bottom: 10px;
}

.education__position {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.education__school {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #FB6D3A;
}