html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body {
    font-family: "Arimo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: #e5eaf55c;
    color: #454B73;
    overflow-x: clip;
}

.resume {
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

ul:not(ul.contacts-list) {
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 763px;
    padding: 0 16px;
    margin: 0 auto;
    position: relative;
    background-color: white;
}

.header__inner,
.main__inner {
    padding-bottom: 30px;
}

.nav {
    padding: 0 0 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
}

.nav-list__link {
    font-size: 13px;
    color: #454b73;
    text-decoration: underline;
    text-underline-offset: 3px;
}

section[id] {
    scroll-margin-top: 12px;
}

.wrapper {
    display: flex;
    margin: 0 auto;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
    padding-top: 30px;
}

.resume__title {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 4px;
}

.resume__position {
    font-size: 16px;
    color: #9da0b5;
}

.triangle-img {
    position: absolute;
    left: 0;
}

.line-img {
    position: absolute;
}

.contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

.contacts-list__item {
    background: #fde6e7;
    border-radius: 20px;
    padding: 3px 6px 3px 40px;
    position: relative;
}

.contacts-list__icons {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 0;
    top: 0;
}

.image-wrapper {
    position: relative;
}

.round {
    width: 200px;
    position: absolute;
    border-radius: 50%;
    height: 200px;
}

.black-round {
    border: 1px solid #58595c;
    bottom: 5px;
    right: 15px;
    z-index: 3;
}

.white-round {
    background: white;
    z-index: 1;
    bottom: 10px;
    right: 0px;
}

.resume-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.main__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    text-align: justify;
    font-size: 14px;
    justify-content: space-around;
}

.main-left {
    width: 60%;
    min-width: 0;
}

.main-right {
    width: 30%;
    min-width: 0;
}

.section-title-wrapper {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #454B73;
    margin-bottom: 16px;
}

.section__title {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
}

.section-title-wrapper.triangle {
    background-repeat: no-repeat;
    background-size: 90px;
}

.section-title-wrapper.purple-triangle {
    background-image: url('./assets/img/purple-triangle.png');
}

.section-title-wrapper.pink-triangle {
    background-image: url('./assets/img/pink-triangle.png');
}

section:not(section:last-of-type) {
    margin-bottom: 32px;
}

.languages-list {
    list-style: none;
    gap: 15px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.languages-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.language-wrapper,
.skill-bar {
    border: 1px solid #454B73;
    border-radius: 20px;
    padding: 3px 15px;
    width: 70%;
    text-align: center;
    position: relative;
    background-color: transparent;
    overflow: hidden;
}

.skill-bar {
    background-color: #454B73;
    border-radius: 0;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fill-width, 0%);
    background-color: #dce2f2;
    border-radius: 20px;
    z-index: 0;
    transition: width 0.3s ease;
}

.skill-bar::before {
    border-radius: 0;
}

.languages-list__item:nth-child(odd) .bar::before {
    background-color: #fbd6d7;
}

.skills-list__item:nth-child(odd) .bar::before {
    background-color: #fbd6d7;
}

.language-name {
    position: relative;
    z-index: 1;
    margin: 0;
}

.percent {
    min-width: 45px;
    text-align: right;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.skill-bar {
    border: 1px solid #454B73;
    width: 60%;
    height: 10px;
}

.hobby-list {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.hobby-list__item img {
    width: 30px;
    height: 30px;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience__item {
    margin-bottom: 16px;
    position: relative;
}

.experience__item:last-of-type {
    margin-bottom: 0;
}

.experience__item .item-content {
    padding-left: 20px;
    position: relative;

}

.date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
}

.position {
    margin-right: 4px;
}

.code-example pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: linear-gradient(90deg, #dce2f2 0%, #fbd6d7 100%);
    padding: 16px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 0;
    text-align: start;
}

.experience__item .item-content::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #454B73;
    font-size: 16px;
}

.experience__item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.footer .container {
    background: linear-gradient(90deg, #dce2f2 0%, #fbd6d7 100%);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #454B73;
}

.footer__logo {
    height: 24px;
    width: auto;
    display: block;
}

.experience-link {
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .main__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

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

@media (max-width: 640px) {
    .wrapper {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
        align-items: center;
        text-align: center;
    }

    .contact-information {
        width: 100%;
        max-width: 420px;
    }

    .contacts-list {
        align-items: stretch;
    }

    .contacts-list__item {
        text-align: left;
    }

    .contacts-list__link {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .triangle-img,
    .line-img {
        max-width: min(140px, 42vw);
        height: auto;
    }

    .experience__item .place {
        padding-right: 0;
        padding-bottom: 2px;
    }

    .date {
        position: static;
        display: block;
        margin-bottom: 8px;
        text-align: left;
    }

    .experience__item .item-content {
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .resume__title {
        font-size: 22px;
    }

    .section-title-wrapper.triangle {
        background-size: 72px;
    }

    .black-round,
    .white-round,
    .resume-img {
        width: 160px;
        height: 160px;
    }

    .black-round {
        bottom: 4px;
        right: 12px;
    }

    .white-round {
        bottom: 8px;
        right: 0;
    }

    .code-example pre {
        font-size: 10px;
        padding: 12px;
    }

    .hobby-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .footer__inner {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        padding: 12px 16px;
    }
}