@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

body {
    background-color: #101010;
    font-family: 'Ubuntu', sans-serif;
    color: #8B0000;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    user-select: none;
}

.center {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
}

.center h1 {
    font-weight: 200;
    margin: 0;
    padding: 0;
    font-size: 7rem;
}

.center p {
    font-weight: 200;
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
}


.view-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    margin-top: 2rem;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.95rem;
    color: #e5e7eb;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.eye-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    stroke: currentColor;
    fill: none;
}

.view-count {
    margin-left: 0.12em;
    font-size: 1em;
}

.typewriter-label {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.9rem;
    color: #e5e7eb;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.95;
}

.typewriter-label::after {
    content: '';
    width: 2px;
    height: 1em;
    background-color: rgba(229, 231, 235, 0.9);
    animation: blinkCaret .75s step-end infinite;
    margin-left: 2px;
}

.avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid #8B0000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: box-shadow .25s ease, transform .15s ease;
}

.avatar:hover,
.avatar:active {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.btn {
    user-select: none;
    margin-top: 4rem;
}

.btns {
    user-select: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 58px;
    padding: 0 16px !important;
    margin: 0 .6rem .6rem 0 !important;
    border-radius: 999px;
    border: 2px solid #8B0000;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .25s cubic-bezier(0.42, 0, 0.37, 1.87);
}

.btns svg,
.btns svg path {
    fill: currentColor;
}

.btns svg.coffee-outline,
.btns svg.coffee-outline path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btns:hover {
    transform: translateY(-2px) scale(1.06);
    background-color: rgba(139, 0, 0, 0.25);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(139, 0, 0, 0.5);
}

#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    filter: blur(4px);
    opacity: .8;
}

.modal {
    z-index: 1000;
    max-width: 100%;
    width: 100%;
    position: fixed;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    background: #000000e3;
    display: none;
    height: 100%;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex
}

#close {
    cursor: pointer;
    color: white;
    position: absolute;
    top: 0;
    font-size: 25px;
    right: 0;
    padding: 1rem;
    margin-right: 10px;
}

.modal__title {
    font-size: 2.5rem;
}

.modal__title span {
    display: block;
    font-weight: 400;
}

.modal__paragraph {
    font-size: 16px;
    font-weight: 400;
}

.modal__button:hover {
    background-color: #0a9372;
}

main {
    text-align: center;
}

.modal__container {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.outuby {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    color: white;
    font-size: 1rem;
    font-weight: 400;
}

.outuby a {
    text-decoration: none;
    color: white;
    transition: all .2s ease-in-out;
}

.outuby a:hover {
    color: #be3cff;
    text-shadow: black 0px 0px 10px;
}


.center .skush {
    font-size: 1rem;
    font-weight: 400;
}


.outuby a {
    text-decoration: none;
    color: white;
    transition: all .2s ease-in-out;
}

.outuby a:hover {
    color: #be3cff;
    text-shadow: black 0px 0px 10px;
}

.projects-page {
    background-color: #1a0000;
}

.projects-page .center h1,
.projects-page .center p {
    color: #ffffff;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: all .3s ease;
    color: #ffffff;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.project-card p {
    font-size: 1rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: radial-gradient(circle at top, #0a0000 0%, #0d0000 40%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e5e7eb;
    transition: opacity .5s ease, visibility .5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    background: rgba(13, 0, 0, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(139, 0, 0, 0.35);
    max-width: 420px;
    width: 90%;
}

.loading-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.4rem;
    margin: 0 0 1.5rem;
    color: #8B0000;
    text-shadow: 0 0 18px rgba(139, 0, 0, 0.6), 0 0 4px rgba(139, 0, 0, 0.4);
}

.loading-bar {
    width: 260px;
    max-width: 100%;
    height: 10px;
    border-radius: 9999px;
    background: rgba(10, 0, 0, 0.9);
    border: 1px solid rgba(139, 0, 0, 0.7);
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 1px 0 rgba(139, 0, 0, 0.4), 0 8px 24px rgba(10, 0, 0, 0.9);
}

.loading-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #DC143C, #8B0000);
    animation: loadingFill 10s linear forwards;
}

.loading-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
    opacity: 0;
    transition: opacity .4s ease;
}

.loading-hint.show {
    opacity: 1;
}

@keyframes loadingFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes typewriterText {
    from {
        width: 0;
    }

    to {
        width: 16ch;
    }
}

@keyframes blinkCaret {

    from,
    to {
        border-right-color: transparent;
    }

    50% {
        border-right-color: rgba(229, 231, 235, 0.9);
    }
}

.kazakhstan-question-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    animation: bounceIn 0.6s ease-out;
}

.question-button {
    user-select: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 58px;
    padding: 0 16px !important;
    margin: 0 .6rem .6rem 0 !important;
    border-radius: 999px;
    border: 2px solid #8B0000;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .25s cubic-bezier(0.42, 0, 0.37, 1.87);
}

.question-button:hover {
    transform: translateY(-2px) scale(1.06);
    background-color: rgba(139, 0, 0, 0.25);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(139, 0, 0, 0.5);
}

.kazakhstan-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: linear-gradient(135deg, #2c2f33 0%, #23272a 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #8B0000;
    animation: slideIn 0.4s ease-out;
}

.popup-content h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-content p {
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.popup-close-btn {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes typewriter-cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}