@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
/*------ Common styles ------*/
html, body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Mulish", sans-serif;
    scroll-behavior: smooth;
}

.background {
    position: fixed;
    background-image: url("./images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

header, main, footer {
    padding-top: 10px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

/*------ Navigation menu ------*/
.nav__container {
    background-color: rgba(21, 239, 5, 0.2);
    margin-bottom: 20px;
}

.nav__container li {
    list-style-type: none;
}

.nav__container li a:nth-child(n+1) {
    text-decoration: none;
    color: rgba(0, 4, 89, 0.84);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.5s;
}

.nav__container li:hover a:nth-child(n+1) {
    border-bottom-color: rgba(0, 4, 89, 0.84);
}

/*------ Header ------*/
.header__container {
    background-color: rgba(216, 239, 5, 0.2);

}

.image-profile__wrapper {
    width: 170px;
    border-radius: 30px;
    overflow: hidden;
}

.image-profile__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header__title {
    margin-top: 0;
}
.hero__wrapper{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero__wrapper a{
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    border: none;
}
.hero__cv{
    background: #5c8fff;
    color: #fff;
}
.hero__cv:hover{
    background: #7eb8f7;
    transform: translateY(-1px);
}
.hero__wrapper .hero__soc{
    background: transparent;
    color: #5a607a;
    border: 1px solid #e0e4ef;
}
.hero__soc:hover{
    border-color: #5c8fff;
    color: #5c8fff;
}
.hero__contacts{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid #e0e4ef;
}
.contact__item{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a607a;
}
.contact__icon{
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f0f2f7;
    border: 1px solid #e0e4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/*------ Main section styles ------*/
.main__container {
    background-color: rgba(0, 49, 250, 0.2);
    flex-direction: column;
    gap: 20px;
}

.main__title {
    font-family: 'Syne', sans-serif;
    margin-top: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.skill-item {
    background: rgba(19, 22, 30, 0.7);
    border: 1px solid #2a2f3f;;
    border-radius: 12px;
    padding: 18px 20px;
    list-style-type: none;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 14px;
    font-weight: 500;
    color: #e8eaf0;
}

.skill-level {
    font-size: 12px;
    color: #5c8fff;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
}

.skill-bar-bg {
    height: 3px;
    background: #1a1e28;
    border-radius: 2px;
}

.skill-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #5c8fff, #7eb8f7);
    transition: width 1s ease;
}


.skills__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.skills-image {
    width: 50%;
}

.skills-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.projects__wrapper{
    display: flex;
    justify-content: center;
}
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    width: 85%;
    justify-content: center;
}

.project-card {
    background: #13161e;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(92, 143, 255, 0.35);
}

.project-thumb {
    height: 120px;
    /*background: var(--bg3);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #55596a;
    position: relative;
    overflow: hidden;
}

.project-thumb__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    padding: 20px 14px 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.project__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

.project__name {
    font-size: 14px;
    font-weight: 500;
    color: #16192a;
    margin-bottom: 6px;
}

.project__desc {
    font-size: 12px;
    color: #5a607a;
    line-height: 1.55;
}

.project__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.project__stack {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.project__stack span {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f0f2f7;
    color: #9499b2;
    border: 1px solid #e0e4ef;
}
.real-experience__wrapper{
    position: relative;
    padding-left: 28px;
    width: 80%;
    margin: 0 auto;
}
.real-experience__wrapper:before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e4ef;
}
.real-experience__item{
    width: 100%;
    position: relative;
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    padding: 22px 24px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.real-experience__item:before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f8f9fc;
    border: 2px solid #e0e4ef;
    transition: border-color .2s;
}
.real-experience__item:hover:before {
    border-color: #5c8fff;
}
.item__header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.item__role{
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #16192a;
}
.item__company a{
    font-size: 14px;
    color: #5c8fff;
    font-weight: 500;
    text-decoration: none;
}
.item__tags{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.item__tags span{
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f0f2f7;
    color: #5a607a;
    border: 1px solid #e0e4ef;
}
.item__date{
    font-size: 12px;
    color: #9499b2;
    background: #f0f2f7;
    border: 1px solid #e0e4ef;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
/*------- Education container -------*/
.education-image__wrapper,
.experience-image__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.education-image__wrapper img,
.experience-image__wrapper img {
    width: 100%;
    object-fit: contain;
}

.education__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 85%;
    margin: 0 auto;
}
.education__card{
    background: #ffffff;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    gap: 16px;
    transition: border-color .2s;
}
.education__card:hover {
    border-color: rgba(62, 207, 142, .3);
}
.education__icon{
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(62, 207, 142, .1);
    border: 1px solid rgba(62, 207, 142, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.education__name{
    font-size: 14px;
    font-weight: 500;
    color: #16192a;
    margin-bottom: 4px;
}
.education__desc{
    font-size: 13px;
    color: #5a607a;
}
.education__data{
    font-size: 12px;
    color: #9499b2;
    margin-top: 4px;
}
.education__cert {
    font-size: 12px;
    color: #3ecf8e;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.education-list > li:before {
    content: "🎓";
}

/*------- Footer container -------*/
.footer__container {
    background-color: rgba(250, 67, 0, 0.2);
    justify-content: space-between;
    align-items: center;
}

.github-link,
.rs-school {
    width: 100px;
    height: 50px;
}

.github-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}