@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/NunitoSans-Variablet.woff2') format('woff2-variations');
    src: url('../fonts/NunitoSans-Variablet.woff2') format('woff2') tech('variations');
    font-weight: 300 700;
}



html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #0c1b32, #122e60, #1678a7);
    color: aliceblue;
    font-size: 16px;
    font-weight: normal;
}

.container {
    max-width: 1440px;
    padding: 0 10px;
    margin: 0 auto;
}

.titlle {
    font-size: 24px;
}


/* Header */


.header {
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.8);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo {
    text-align: center;
    width: 100px;
    /* Установите нужный размер логотипа */
    transition: transform 0.8s ease;
    /* Плавный переход для поворота */
}

.logo span {
    font-size: 18px;
    color: #54b3d6;
    transition: 1s;
    /* Время эффекта */
}


.logo:hover {
    transform: scale(1.2);
    /* Увеличиваем масштаб */
}

.menu__list {
    display: flex;
    gap: 0 30px;
}

.menu__item {
    order: 1;
}

.language-switcher {
    order: 2;
}

.header__contacts {
    text-transform: uppercase;
    padding: 10px 40px;
    display: inline-block;
    background-color: #0E0D0D;
    color: #fff;
    border-radius: 50px;
}

.menu__link {
    box-shadow: inset 0 0 0 0 #54b3d6;
    color: #54b3d6;
    padding: 0 .25rem;
    margin: 0 -.25rem;
    transition: color .3s ease-in-out, box-shadow .5s ease-in-out;

}

.menu__link:hover {
    color: #fff;
    box-shadow: inset 200px 0 0 0 #54b3d6;
    ;
}

/* Cлова который исзезают и появляются */
#word {
    font-size: 28px;
    height: 22px;
    transition: opacity 0.5s ease;
    opacity: 1;
    color: #54b3d6;
}

.language-switcher {
    display: flex;
    padding-right: 90px;
}

.icon-header__lang {
    margin: 0 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Переход для анимации */
}

.icon-header__lang img {
    width: 30px;
    /* Размер иконок */
    height: auto;
    border-radius: 10%;
    /* Уголки изображений */
}

.icon-header__lang:hover {
    transform: scale(1.2);
    /* Увеличение при наведении */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    /* Тень при наведении */
}

.screenshot-container {
    text-align: center;
}

.icon-header__scrin {
    cursor: pointer;
}

.icon-header__scrin img {
    width: 25px;
    transition: transform 0.3s;
}

.icon-header__scrin:hover img {
    transform: scale(1.1);
}

.screenshot {
    display: none;
    margin-top: 20px;
}

.image-wrapper {
    position: relative;

}

.screenshot-img {
    width: 300px;
    transition: transform 0.8s;
}

.image-wrapper:hover .screenshot-img {
    transform: scale(3.5);
}

button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* ////////////  Header  //////// */

/*  main__inner (Верхняя секция)*/

.main__inner {
    padding-top: 50px;
}

.info__titlle-text {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.social-link__img {
    width: 30px;
    transition: transform 0.3s;
}

.social-link__img:hover {
    transform: scale(1.1);
}

.social-container {
    display: flex;
    column-gap: 30px;
    padding-left: 30px;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.info__img__gif {
    width: 300px;
    border-radius: 30px;
    border: 2px solid #000;
}

/*  /////////////main__inner (Верхняя секция)//////////////////*/


/* technologies (бегущая строка) */
.technologies__inner {
    margin-top: 50px;
}

.technologies-tittle {
    text-align: center;
    padding-bottom: 20px;
}

#marquee {
    overflow: hidden;
    white-space: nowrap;
    margin: 10px 100px;

}

#marquee-content {
    display: flex;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.icon {
    margin: 0 85px;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.icon:hover {
    transform: scale(1.1);
}

/* ////////////////technologies (бегущая строка)/////////////// */

/* Контейнер стрелки */




@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ////////////////////Контейнер стрелки /////////////////*/


/* about-me */

.about-me {
    margin-top: 50px;
}

.about-me__inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
}

.about-me__inner__info {
    max-width: 500px;
}

.subdext {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 300;
}

.subdext h5 {
    font-size: 20px;
    color: #54b3d6;

}

.about-me__span-text {
    font-weight: 800;
    color: #fff;

}

.about-me__inner__img {
    transition: transform 0.6s;
    /* плавный переход */
    transform-style: preserve-3d;
}

.foto {
    border-radius: 30%;
    max-width: 300px;
    height: 300px;



}

.about-me__inner__img:hover img {
    transform: rotateY(180deg);
    /* переворот по горизонтали */
}

/* ///////////////////////about-me /////////////////////*/
.projects {
    margin-top: 50px;
    padding-bottom: 100px;
}

.project__titlle {
    text-align: center;
}

.my__projects {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    padding-top: 30px;
}

.item__work h4 {
    text-align: center;
    padding-bottom: 10px;
}

.item__work {
    width: 250px;
    height: 180px;
    perspective: 1000px;
    padding: 10px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.item__work:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flip-front {
    background: #fff;
}

.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-back {
    padding: 30px;
    background: transparent;
    color: #fff;
    transform: rotateY(180deg);
    position: relative;
}


/* бургер */
.menu__btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: none;

}

.menu__btn span {
    height: 2px;
    background-color: #fff;
    width: 100%;
}









/* бургер спан */




/* ......media....... */
@media (max-width: 860px) {
    .menu__btn {
        /* когда размер меньше 860 бургер появляется */
        display: flex;
    }

    /* вывожу бургер и лого на экран */
    .menu__btn,
    .logo {
        position: relative;
        z-index: 10;
    }

    .menu__list {
        /* стили для меню */
        position: absolute;
        z-index: 5;
        background-color: #151515;
        opacity: 0.9;
        flex-direction: column;
        align-items: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding-top: 200px;
        height: 100vh;
        transform: translateY(-100%);
        transition: transform .3s ease;
    }

    .menu__list.menu__list--active {
        /* при нажатии на бургер появляется меню */
        transform: translateY(0);
        gap: 20px;
    }

    .menu__link {
        font-size: 30px;

    }

    .language-switcher {
        display: none;
    }

    .language-switcher {
        display: flex;
        gap: 20px;
        padding: 0;
        margin-top: 15px;
    }

    .language-switcher a img {
        width: 30px;
        height: auto;
        transition: transform 0.2s ease;
    }

    .language-switcher a img:hover {
        transform: scale(1.1);
    }

    .menu__item {
        order: 0;
    }

    .language-switcher {
        order: 0;
    }

    .info {
        flex-direction: column;
        gap: 25px;
    }

    .info__titlle-text {
        gap: 20px;
        text-align: center;
    }

    .social-container {
        justify-content: center;
        padding: 0;
    }

    .main__inner {
        padding-top: 25px;
    }

    .about-me__inner {
        flex-direction: column;
    }

    .about-me__inner__info {
        text-align: center;
        order: 2;
    }

    .about-me__inner__img {
        order: 1;
    }


}


@media (max-width: 650px) {
    .technologies__inner {
        margin-top: 20px;
    }

    #marquee {
        margin: 10px 10px;
    }

    .technologies-tittle h2 {
        font-size: 26px;
    }

    .about-me__titlle h2 {
        font-size: 26px;
    }

    .project__titlle h2 {
        font-size: 26px;
    }

    .icon {
        margin: 0 68px;
    }


    .foto {
        max-width: 215px;
        height: 215px;
    }

    .about-me__inner {
        gap: 20px;
    }

    .subdext {
        padding: 0 10px;
    }

    .projects {
        margin-top: 20px;
    }

    #marquee-content {
        animation: marquee 7s linear infinite;
    }

}