html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* global */

:root {
    --t2: #f8d600;
    --transparent-black: rgba(255, 255, 255, 0.1);
    --transparent-green: rgba(37, 184, 29, 0.8);
    --very-transparent-green: rgba(36, 255, 0, 0.1);
    --base-black: #161616;
    --base-white: #ffffff;
    --primary-500: #25b81d;
    --secondary-600: #c93795;
    --gray-100: #f2f4f7;
    --gray-200: #F0FDF4;
    --gray-600: #475467;
    --swiper-theme-color: var(--primary-500);
}

.dark {
    --base-black: #ffffff;
    --base-white: var(--gray-600);
    --transparent-black: var(--very-transparent-green);
    --t2: var(--secondary-600);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) transparent;
}

/* для Chrome/Edge/Safari */
*::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary-500);
    border-radius: 5px;
    border: 3px solid transparent;
}


@font-face {
    font-family: 'Lekton';
    src: local('Lekton-Regular'),
        url('../fonts/Lekton-Regular.woff2') format('woff2'),
        url('../fonts/Lekton-Regular.woff') format('woff');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lekton';
    src: local('Lekton-Bold'),
        url('../fonts/Lekton-Bold.woff2') format('woff2'),
        url('../fonts/Lekton-Bold.woff') format('woff');
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

.page {
    position: relative;
    min-width: 320px;
    color: var(--base-white);
    font-weight: 400;
    font-family: 'Lekton', sans-serif;
    background-color: var(--base-black);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: none;
    overflow-x: hidden;
}

.list-reset {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.logo {
    display: block;
}

.section-offset {
    padding: 40px 0;
}

.link {
    font-style: italic;
    font-weight: 800;
    font-size: 20px;
    color: rgb(10, 140, 247);
}

.visually-hidden {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    outline: 0;
    font-size: 28px;
    color: var(--gray-200);
    text-align: center;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    background-color: var(--primary-500);
    user-select: none;
}

.subtitle {
    margin: 0;
    margin-bottom: 32px;
    font-size: 42px;
    font-weight: 700;
}

.text {
    margin: 0;
}

.cursor-ball {
    width: 10px;
    height: 10px;
    background-color: var(--transparent-green);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: var(--transparent-black);
}

.cursor-ball,
.cursor-outline {
    position: fixed;
    left: -100px;
    top: -100px;
    z-index: 10;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

/* main */

.main {
    padding-top: 30px;
}

/* header */

.header {
    padding: 28px 0;
    box-shadow: 0px 4px 12px 0px rgba(37, 184, 29, 0.15);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header__left {
    display: flex;
    gap: 59px;
}

.toggle-switch {
    position: relative;
    width: 53px;
}

.toggle-switch__label {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--base-white);
    border-radius: 50px;
}

.toggle-switch__checkbox {
    position: absolute;
    display: none;
}

.toggle-switch__slider {
    position: absolute;
    width: 53px;
    height: 25px;
    border-radius: 50px;
    transition: 0.3s;
}

.toggle-switch__checkbox:checked~.toggle-switch__slider {
    background-color: var(--base-white);
}

.toggle-switch__slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    box-shadow: inset 28px -4px 0px 0px var(--base-black);
    background-color: var(--base-white);
    transition: 0.3s;
}

.toggle-switch__checkbox:checked~.toggle-switch__slider::before {
    transform: translateX(30px);
    background-color: var(--base-black);
    box-shadow: none;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 48px;
}

.nav__link {
    color: var(--base-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    transition: color 0.3s ease-in-out;
}

.btn_header {
    font-size: 20px;
}

/* profile */

.profile {
    position: sticky;
    top: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 78.5px;
    border: 1px solid var(--transparent-black);
    border-radius: 12px;
    background-color: var(--transparent-black);
}

.card__picture {
    width: 243px;
    height: 243px;
    margin-bottom: 24px;
}

.card__img {
    border-radius: 100%;
    box-shadow: 0px 5px 10px 2px rgba(37, 184, 29, 0.15);
}

.card__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card__title {
    margin: 0;
    margin-bottom: 8px;
}

.card__profession {
    display: block;
    margin-bottom: 12px;
    color: var(--t2);
    font-size: 20px;
    transition: color 0.3s ease-in-out;
}

.card__list {
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-bottom: 50px;
}

.card__link {
    display: block;
    width: 47px;
    height: 47px;
}

.card__icon {
    fill: var(--base-white);
    transition: fill 0.3s ease-in-out;
}

.pre-subtitle {
    position: relative;
    display: inline-block;
    margin-bottom: 48px;
    color: var(--t2);
    font-size: 20px;
    transition: color 0.3s ease-in-out;
}

.pre-subtitle::after {
    position: absolute;
    content: "";
    top: 50%;
    left: 100%;
    width: 101px;
    height: 1px;
    background-color: var(--t2);
    transform: translateX(16px);
    transition: background-color 0.3s ease-in-out;
}

/* about  */

.subtitle_colored {
    color: var(--primary-500);
}

.achievements-list {
    row-gap: 20px;
}

.text_about {
    margin-bottom: 48px;
}

.achievements-list__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 21px 38px;
    border: 1px solid var(--transparent-black);
    border-radius: 12px;
    background-color: var(--transparent-black);
}

.achievements-list__figure {
    color: var(--base-white);
    font-size: 48px;
    font-weight: 700;
}

.text_achievements-list {
    color: var(--primary-500);
}

/* skills */

.skills__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}


.text_skills {
    margin-bottom: 48px;
}

.technology__icon {
    height: 50px;
    width: 50px;
}

.technology__left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.technology__bar {
    width: 100%;
    height: 4px;
    background-color: var(--base-white);
}

.technology__progress {
    position: relative;
    width: 0;
    height: 100%;
    box-shadow: 0 10px 40px -10px var(--primary-500);
    border-radius: 100px;
    background-color: var(--primary-500);
    animation: load 3s ease-in-out forwards;
}

.technology__value {
    position: absolute;
    top: -25px;
    right: 0;
    color: var(--primary-500);
    font-weight: 700;
}

.progress-html {
    animation-name: load-html;
}

.progress-css {
    animation-name: load-css;
}

.progress-js {
    animation-name: load-js;
}

.progress-node {
    animation-name: load-node;
}

.progress-python {
    animation-name: load-python;
}

.progress-postgresql {
    animation-name: load-postgresql;
}

.progress-react {
    animation-name: load-eact;
}

.progress-photoshop {
    animation-name: load-photoshop;
}

/* projects */

.projects__list {
    row-gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 19px;
    border: 1px solid var(--transparent-black);
    border-radius: 24px 0px 24px 0px;
    backdrop-filter: blur(0px);
    background-color: var(--transparent-black);
}

.project-card__photo {
    display: block;
    margin-bottom: 11px;
}

.project-card__image {
    width: 100%;
}

.project-card__title {
    position: relative;
    margin: 0;
    margin-bottom: 16px;
    /* xl/bold */
    color: var(--base-white);
    font-size: 20px;
    line-height: 28px;
    text-align: center;
}

.project-card__title::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background-color: var(--t2);
}

.text_project-card {
    margin-bottom: 18px;
}

.project-card__links {
    display: flex;
    gap: 9px;
    justify-content: space-around;
    margin-top: auto;
}

.project-card__link {
    position: relative;
    padding-left: 25px;
    color: var(--primary-500);
    font-size: 16px;
    font-weight: 700;
    text-decoration-line: underline;
}

.project-card__link::before {
    position: absolute;
    content: "";
    left: 0;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../img/projects/link-icon.svg");
}

.project-card__link_git::before {
    background-image: url("../img/projects/github-icon.svg");
}

/* clients */

.text_clients {
    margin-bottom: 32px;
}

.swiper {
    width: 100%;
}

.client {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 250px;
    padding: 34px;
    border: 1px solid var(--transparent-black);
    border-radius: 12px;
    backdrop-filter: blur(0px);
    background-color: var(--transparent-black);
}

.client__icon-quote {
    position: absolute;
    top: 34px;
    right: 34px;
    width: 64px;
    height: 64px;
    background-image: url("../img/clients/quote.svg");
}

.client__photo {
    width: 100px;
    height: 100px;
    margin-right: 30px;
    border-radius: 100px;
}

.client__name {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
}

.client__role {
    color: var(--t2);
    font-size: 20px;
    line-height: 28px;
}

.client__top {
    display: flex;
    align-items: center;
}

/* feedback */

.btn_feedback {
    margin: 10px 0;
}

/* footer */

.footer__container {
    display: flex;
    justify-content: center;
    padding: 30px;
    border-top: 1px solid var(--base-white);
}

@keyframes load {
    0% {
        width: 0;
    }

    100% {
        width: 85%;
    }
}

@keyframes load-html {
    0% {
        width: 0;
    }

    100% {
        width: 85%;
    }
}

@keyframes load-css {
    0% {
        width: 0;
    }

    100% {
        width: 65%;
    }
}

@keyframes load-js {
    0% {
        width: 0;
    }

    100% {
        width: 55%;
    }
}


@keyframes load-node {
    0% {
        width: 0;
    }

    100% {
        width: 15%;
    }
}

@keyframes load-python {
    0% {
        width: 0;
    }

    100% {
        width: 0%;
    }
}

@keyframes load-postgresql {
    0% {
        width: 0;
    }

    100% {
        width: 0%;
    }
}

@keyframes load-react {
    0% {
        width: 0;
    }

    100% {
        width: 1%;
    }
}

@keyframes load-photoshop {
    0% {
        width: 0;
    }

    100% {
        width: 79%;
    }
}