* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1d1d1b;
}

::-webkit-scrollbar-thumb {
    background: rgb(58, 58, 58);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

@font-face {
    font-family: Poppins;
    font-display: swap;
    src:
        url("../fonts/Poppins-Light.woff2") format("woff2"),
        url("../fonts/Poppins-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    font-display: swap;
    src:
        url("../fonts/Poppins-Medium.woff2") format("woff2"),
        url("../fonts/Poppins-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}

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

@font-face {
    font-family: Poppins;
    font-display: swap;
    src:
        url("../fonts/Poppins-SemiBold.woff2") format("woff2"),
        url("../fonts/Poppins-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Montserrat;
    src:
        url("../fonts/Montserrat-Regular.woff2") format("woff2"),
        url("../fonts/Montserrat-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1d1d1b;
    color: rgb(255, 255, 255);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}

.wrapper {
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-family: Montserrat;
}

main {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
}

.container {
    width: min(100% - 40px, 800px);
    margin-inline: auto;
}

/*---------------------------------------------------------*/

.header__body {
    padding-top: 50px;
}

.profile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 60px;
}

.profile.fl-start {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

@media (max-width: 1000px) {
    .profile.fl-start {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.profile__image {
    cursor: pointer;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 210px;
    flex: 0 0 210px;
    width: 210px;
    height: 210px;
    position: relative;
    padding: 10px;
    border-radius: 50%;
    overflow: hidden;
}

.profile__image:active::after {
    -webkit-transform: translateX(500px) rotate(95deg);
    -ms-transform: translateX(500px) rotate(95deg);
    transform: translateX(500px) rotate(95deg);
    opacity: 1;
    -webkit-transition:
        opacity 0s,
        -webkit-transform 0.3s linear 0s;
    transition:
        opacity 0s,
        -webkit-transform 0.3s linear 0s;
    -o-transition:
        transform 0.3s linear 0s,
        opacity 0s;
    transition:
        transform 0.3s linear 0s,
        opacity 0s;
    transition:
        transform 0.3s linear 0s,
        opacity 0s,
        -webkit-transform 0.3s linear 0s;
}

.profile__image::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    opacity: 0;
    -webkit-transform: translateX(-50px) rotate(15deg);
    -ms-transform: translateX(-50px) rotate(15deg);
    transform: translateX(-50px) rotate(15deg);
    width: 20px;
    height: calc(100% + 40px);
    background: rgba(255, 255, 255, 0.4);
    -webkit-filter: blur(30px);
    filter: blur(30px);
    -webkit-transition:
        opacity 0s,
        -webkit-transform 0.8s linear 0s;
    transition:
        opacity 0s,
        -webkit-transform 0.8s linear 0s;
    -o-transition:
        transform 0.8s linear 0s,
        opacity 0s;
    transition:
        transform 0.8s linear 0s,
        opacity 0s;
    transition:
        transform 0.8s linear 0s,
        opacity 0s,
        -webkit-transform 0.8s linear 0s;
    z-index: 1;
}

.profile__avatar {
    display: inline-block;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile__history {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

.profile__history.segments-2,
.profile__history.segments-4,
.profile__history.segments-6,
.profile__history.segments-8 {
    -webkit-transform: rotate(6deg);
    -ms-transform: rotate(6deg);
    transform: rotate(6deg);
}

.profile__name {
    font-size: 40px;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

.profile__description {
    position: relative;
    min-width: 0px;
    word-break: break-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile__specialty {
    font-size: 24px;
    font-weight: 300;
    line-height: 36px;
    margin-bottom: 10px;
    max-height: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: all 0.5s linear 0s;
}

.profile__specialty-full {
    display: none;
    cursor: pointer;
    color: #e0e0e0;
    position: absolute;
    left: 0;
    font-size: 14px;
    bottom: -24px;
    z-index: 3;
    align-items: center;
    gap: 6px;
}

.profile__specialty-full-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    object-fit: contain;
    color: inherit;
    transition: all 0.3s ease 0.1s;
    margin-top: 2px;
}

.profile__specialty.truncated + .profile__specialty-full {
    display: inline;
}

.profile__specialty.truncated {
    position: relative;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.profile__specialty.truncated.closed {
    -webkit-line-clamp: unset;
}

.profile__specialty.truncated.opened {
    -webkit-line-clamp: unset;
}

.profile__followers {
    font-size: 26px;
    font-weight: 300;
    line-height: 150%;
}

.profile__followers span {
    font-weight: 700;
}

.profile__info {
    display: flex;
    flex-direction: column;
}

.links {
    width: 100%;
}

.links__body {
    display: -ms-flex;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 0;
}

.links__body.fl-col {
    flex-direction: column;
}

.links__body.fl-col .link {
    width: 100%;
}

.link {
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 43.88px;
    background-color: rgb(58, 58, 58);
    width: calc(50% - 20px);
    min-width: calc(50% - 20px);
    height: 114px;
    padding: 15.6px 24px;
    color: rgb(255, 255, 255);
    font-family: Montserrat;
    font-size: 26px;
    font-weight: 300;
    line-height: 150%;
    letter-spacing: 3%;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    text-wrap: balance;
}

.link img {
    height: 80px;
    width: auto;
    aspect-ratio: 1/1;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    border-radius: 24px;
}

.link span {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding-inline: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.link:last-child {
    -ms-grid-column-span: 2;
    grid-column: span 2;
}

.link:active {
    -webkit-transition: all 0s ease 0s;
    -o-transition: all 0s ease 0s;
    transition: all 0s ease 0s;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgb(89, 89, 89);
}

i {
    font-style: normal;
}

:lang(kk) {
    font-family: Montserrat;
    font-weight: 400;
}

footer {
    padding: 40px 0 20px;
    text-align: center;
}

footer p {
    font-size: 14px;
    font-weight: 300;
    line-height: 140%;
    letter-spacing: 4%;
    text-align: center;
}

footer a {
    display: inline-block;
    margin-inline: auto;
    color: rgb(255, 255, 255);
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 4%;
    text-align: center;
    text-decoration-line: underline;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

@-webkit-keyframes circleAnimation {
    0% {
        stroke-dashoffset: 0;
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    1% {
        opacity: 0.6;
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
    }

    2% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        stroke-dashoffset: -100;
    }
}

@keyframes circleAnimation {
    0% {
        stroke-dashoffset: 0;
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    1% {
        opacity: 0.6;
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
    }

    2% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        stroke-dashoffset: -100;
    }
}

.circle {
    -webkit-transition:
        stroke-dasharray 10.3s ease,
        stroke-dashoffset 10.3s ease;
    -o-transition:
        stroke-dasharray 10.3s ease,
        stroke-dashoffset 10.3s ease;
    transition:
        stroke-dasharray 10.3s ease,
        stroke-dashoffset 10.3s ease;
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
}

.circle.animate {
    -webkit-animation: circleAnimation 10s ease forwards;
    animation: circleAnimation 10s ease forwards;
}

@media (max-width: 1000px) {
    .links__body {
        flex-direction: column;
    }

    .link {
        width: 100%;
    }

    .link:last-child {
        -ms-grid-column-span: 1;
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .profile {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }

    .profile__specialty {
        font-size: 20px;
        line-height: 26px;
    }

    .profile__specialty-full {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        text-decoration: underline;
    }

    .profile__name {
        margin-bottom: 10px;
    }

    .link {
        font-size: 24px;
        height: 80px;
        border-radius: 30px;
    }

    .link img {
        height: 48px;
        border-radius: 14px;
    }
}

@media (max-width: 550px) {
    .header__body {
        padding-top: 30px;
    }

    .profile {
        gap: 10px;
    }

    .profile__image {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 160px;
        flex: 0 0 160px;
        width: 160px;
        height: 160px;
        padding: 8px;
    }

    .profile__name {
        font-size: 32px;
    }

    .profile__specialty {
        margin-bottom: 14px;
    }

    .profile__followers {
        font-size: 20px;
    }

    .links__body {
        padding: 30px 0 10px;
        gap: 14px;
    }

    .link {
        font-size: 20px;
        border-radius: 30px;
        padding: 15.6px 18px;
    }

    .link span {
        line-height: 120%;
    }

    footer p {
        font-size: 12px;
    }

    footer a {
        font-size: 12px;
    }
}

@media (hover: hover) {
    .profile__image:hover::after {
        -webkit-transform: translateX(500px) rotate(85deg);
        -ms-transform: translateX(500px) rotate(85deg);
        transform: translateX(500px) rotate(85deg);
        opacity: 1;
    }

    .link:hover {
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgb(89, 89, 89);
    }

    .link:hover img {
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05);
    }

    .profile__specialty-full:hover {
        text-decoration: underline;
    }

    footer a:hover {
        text-decoration: underline;
        color: #b5b5b5;
    }
}
