body {
    user-select: none;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0 40px;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    background-color: #1d1d1d;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

#loader img {
    width: 350px;
    animation: logotype 3s infinite cubic-bezier(0.42, 0, 0.58, 1);
}

#loader code {
    font-size: 15px;
    opacity: 0.7;
}

.fetching-container {
    font-family: monospace;
    font-size: 24px;
    color: #333;
  }

.loading-symbol {
    display: inline-block;
}

#loader {
    overflow: hidden;
    position: absolute;
    flex-direction: column;
    gap: 15px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes logotype {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#socials {
    width: 100%;
    flex: 1 1 0;
    display: flex;
}

#socials i {
    color: white;
    transition: all 0.3s ease-in-out;
}

#socials i:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

::selection {
    background-color: #F8D57E;
    color: #000000;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: #333333;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #F8D57E, #e6b84b);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #f3be5f, #d49f37);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #F8D57E #333333;
}

img {
    pointer-events: none;
}

.project h4 {
    margin: 0;
    font-weight: 600;
    font-size: 32px;
}

.project img {
    z-index: -1;
    opacity: 0.2;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.project h5 {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    opacity: 0.7;
}

.project {
    pointer-events: all;
    box-sizing: border-box;
    min-width: 333px;
    padding: 29px 40px;
    border-radius: 16px;
    overflow: hidden;
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    display: inline-flex;
    opacity: 0;
    backdrop-filter: blur(20px);
    background: #333333;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project.revealed {
    opacity: 0.8;
    transform: translateY(0) scale(1);
}

.project:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.project img {
    z-index: -1;
    opacity: 0.2;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.project:hover img {
    opacity: 0.5;
    transform: scale(1.2);
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
}

section.order {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.contact-widget {
    top: 0px; 
    background: #efefd9; 
    justify-content: center; 
    display: flex; 
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.contact-widget img {
    animation: textAnimation 5s infinite cubic-bezier(0.42, 0, 0.58, 1);
}

.contact-widget:hover {
    transform: rotateY(15deg) rotateX(-10deg) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@keyframes textAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

section.order h3 {
    font-family: "Benzin", sans-serif;
    text-transform: uppercase;
    color: white;
    margin: 0;
}

section.order .text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section.order button {
    padding: 25px 20px;
}

section.order p2 {
    margin: 0;
    font-weight: 500;
    font-size: 28px;
    opacity: 0.6;
}

section.portfolio {
    opacity: 0;
    transform: translateY(50px);
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    justify-content: flex-start;
    transition: opacity 1s ease, transform 1s ease;
}

section.languages {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
    display: flex;
    gap: 45px;
    padding: 40px;
    flex-wrap: wrap;
}

section.languages img {
    pointer-events: all;
    height: 50px;
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
}

section.languages img:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

section.me span {
    font-family: "Benzin", sans-serif;
    font-size: 18px;
    opacity: 0.7;
    display: flex;
    text-align: left;
    justify-content: flex-start;
}

section.me {
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    padding-bottom: 20px;
}

section.main {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

p {
    opacity: 0.40; 
    color: white; 
    font-size: 18px; 
    font-weight: 400; 
    word-wrap: break-word;
    margin: 0;
}

section {
    align-items: center;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: center;
}

button.default {
    background: #F8D57E;
    color: #333333;
}

button.default:hover {
    box-shadow: rgb(248, 213, 126, 0.4) 0 0 25px 5px !important;  
}

button i {
    margin-right: 5px;
}

button {
    outline: none;
    border: none;
    letter-spacing: -0.2px;
    font-weight: 600;
    font-size: 18px;
    border-radius: 16px;
    padding: 16px 45px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

header button {
    font-size: 14px;
    padding: 16px 30px;
}

header {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    z-index: 10;
    top: 0;
    left: 0;
    position: fixed;
    padding: 20px 20px;
    width: 100vw;
    height: auto;
    backdrop-filter: blur(10px);
    background-color: rgb(51, 51, 51, 0.4);
}

header img {
    height: 34px;
}

/* Dialog */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

button.onDialog {
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

button.onDialog.yes {
    background: #F8D57E;
    color: #333333;
}

button.onDialog.yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 213, 126, 0.3);
}

button.onDialog.no {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

button.onDialog.no:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(24, 24, 24, 0.95); 
    backdrop-filter: blur(20px);
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    display: inline-flex;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dialog.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog .text-container {
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    display: flex;
    padding: 20px;
    width: 100%;
}

.dialog .text-container .title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
    font-family: "Benzin", sans-serif;
    text-transform: uppercase;
}

.dialog .text-container .description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
    margin: 0;
}

.dialog .text-container .description b {
    color: #F8D57E;
    font-weight: 600;
}

.dialog .button-container {
    margin-top: 10px;
    padding: 20px;
    width: 100%;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog i.icon {
    font-size: 48px;
    color: #F8D57E;
    margin-bottom: 10px;
}

/* Discord Plashka */
.discord-profile {
    z-index: 4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-in-out;
    transform: rotateY(15deg) rotateX(-10deg);
    width: 629px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.discord-profile:hover {
    transform: rotateY(0deg) rotateX(0deg) /* Выравнивание при наведении */
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-5px, 5px); }
    100% { transform: translate(0); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

h1:hover .img-container {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

h1:hover .img-container img {
    transform: rotate(25deg);
}

h1 .img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgb(255, 255, 255, 0.02);
    border-radius: 9999px;
    opacity: 0.9;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

h1 img {
    transition: all 0.3s ease-in-out;
}

h1 {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
    font-family: "Benzin", sans-serif;
    text-transform: uppercase;
    color: white;
    font-weight: 700; 
    word-wrap: break-word;
}

hr {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    border-radius: 16px;
}

.ellipseDecor {
    opacity: 0.4;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ellipseDecor.ellipse1 {
    position: absolute;
    left: 2%;
    top: -100px;
    rotate: 180deg;
}

.ellipseDecor.ellipse2 {
    opacity: 0.1 !important;
    position: absolute;
    top: 0;
    left: 0;
}

.discord-profile .bottom {
    width: 100%;
    backdrop-filter: blur(20px);
    height: 125px; 
    left: 0px; 
    top: 160px; 
    position: absolute;
    opacity: 0.4; 
    background: #333333; 
}

.discord-profile .banner {
    object-fit: cover;
    width: 100%; 
    height: 160px; 
    left: 0px; 
    top: 0px; 
    position: absolute; 
}

.discord-profile .content .avatar {
    pointer-events: all;
    object-fit: cover;
    width: 130px; 
    height: 130px; 
    border-radius: 9999px; 
    border: none;
}

.discord-profile .content .text-content {
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    display: flex;
}

.discord-profile .content .text-content h3 {
    color: white;
    font-size: 30px;
    margin: 0;
}

.discord-profile .content .text-content h4 {
    color: white;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}

.discord-profile .content .text-content .bottoms .ellipse {
    width: 5px; 
    height: 5px; 
    background: white; 
    border-radius: 9999px;
}

.discord-profile .content .text-content .bottoms {
    align-self: stretch; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 7px; 
    display: flex;
}

.discord-profile .content {
    left: 35px; 
    top: 55px; 
    position: absolute; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    display: flex;
}

.main-info {
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    display: flex;
} 

.main-info button {
 margin-top: 25px;
}

.main-info .logo-description {
    align-self: stretch; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    gap: 8px; 
    display: flex;
}

.main-info .logo-description p {
    margin-left: 5px;
}

hr.animate {
    opacity: 0.1;
    transform: translateY(0);
}

footer.animate {
    opacity: 1;
    transform: translateY(0);
}

header.animate {
    opacity: 1;
    transform: translateY(0);
}

h1.animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio.animate {
    opacity: 1;
    transform: translateX(0);
}

.languages.animate {
    opacity: 1;
    transform: translateX(0);
}

.order.animate {
    opacity: 1;
    transform: translateX(0);
}

.me.animate {
    opacity: 1;
    transform: translateX(0);
}

.main.animate {
    opacity: 1;
    transform: translateX(0);
}

footer {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    background: rgba(49, 49, 49, 0.2);
    border-radius: 10px;
    color: white;
    padding: 20px;
    text-align: center;
}

footer img {
    height: 20px;
}

footer p {
    margin: 0 !important;
}

.logo-and-info {
    width: 100%;
    flex: 1 1 0;
    text-align: left;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-and-info b {
    color: white !important;
    font-size: 16px !important;
}

a {
    color: rgb(201, 201, 201);
    text-decoration: none;
}

.copyright a {
    margin-top: 12px;
    color: rgb(226, 226, 226);
}

.copyright {
    user-select: text !important;
    flex-direction: column;
    color: rgb(175, 175, 175);
    font-size: 12px;
}

.logo-and-info p {
    color: rgb(175, 175, 175);
    font-size: 12px;
}



/* Medium Devices, Desktops */
@media only screen and (min-width: 991px) {

    #socials {
        justify-content: flex-end;
        gap: 25px;
        padding: 0 20px;
        font-size: 27px;
    }

    .dialog i.icon {
        color: rgb(255, 255, 255, 0.7);
        font-size: 100px;
    }

    .dialog {
        min-width: 600px;
        padding: 20px 25px; 
        padding-top: 5px;
        gap: 9px; 
        border-radius: 24px; 
    }

    .dialog .text-container .title {
        align-self: stretch; 
        text-align: center; 
        color: white; 
        font-size: 30px;
        letter-spacing: -0.4px;
        line-height: 40px;
        font-weight: 700; 
        word-wrap: break-word;
    }
      
    .dialog .text-container .description {
        max-width: 480px;
        color: #C0C0C0;
        line-height: 25px;
        text-align: center; 
        font-size: 18px; 
        letter-spacing: -0.2px; 
        font-weight: 500; 
        word-wrap: break-word;
    }

    section.main {
        padding: 80px 20px;
        gap: 140px;
    }

    h1 {
        gap: 8px;
        margin-bottom: 20px;
        letter-spacing: -1px;
        font-size: 55px; 
    }

    h1 .img-container {
        width: 70px;
        height: 70px;
        padding: 20px;
        margin-right: 15px;
    }

    h1 img {
        height: 30px;
    }

    section.order h3 {
        letter-spacing: -0.5px;
        line-height: 34px;
        font-size: 45px;
        font-weight: 600;
    }

    section.order {
        gap: 120px;
        padding: 120px;
    }

    .contact-widget {
        width: 470px; 
        height: 400px; 
        border-radius: 30px;
    }

    .contact-widget img {
        width: 700px;
    }

    .copyright {
        text-align: right;
    }

    header {
        display: flex;
    }

    body {
        padding-top: 25px;
    }

}


/* Small Devices, Tablets */
@media (min-width: 601px) and (max-width: 900px) {

    #socials {
        justify-content: flex-start;
        gap: 25px;
        font-size: 27px;
    }

    section.main {
        padding: 80px 20px;
        gap: 140px;
    }

    .dialog i.icon {
        color: rgb(255, 255, 255, 0.7);
        font-size: 100px;
    }

    .dialog {
        padding: 20px 25px; 
        gap: 9px; 
        border-radius: 20px; 
    }

    .dialog .text-container .title {
        align-self: stretch; 
        text-align: center; 
        color: white; 
        font-size: 28px;
        letter-spacing: -0.4px;
        line-height: 40px;
        font-weight: 700; 
        word-wrap: break-word;
    }
      
    .dialog .text-container .description {
        max-width: 480px;
        color: #C0C0C0;
        line-height: 25px;
        text-align: center; 
        font-size: 16px; 
        letter-spacing: -0.2px; 
        font-weight: 500; 
        word-wrap: break-word;
    }

    h1 {
        gap: 8px;
        margin-bottom: 20px;
        letter-spacing: -1px;
        font-size: 55px; 
    }

    h1 .img-container {
        width: 70px;
        height: 70px;
        padding: 20px;
        margin-right: 15px;
    }

    h1 img {
        height: 30px;
    }

    section.order h3 {
        letter-spacing: -0.5px;
        line-height: 34px;
        font-size: 45px;
        font-weight: 600;
    }

    section.order {
        gap: 120px;
        padding: 120px;
    }

    .contact-widget {
        width: 470px; 
        height: 400px; 
        border-radius: 30px;
    }

    .contact-widget img {
        width: 700px;
    }

    .copyright {
        text-align: right;
    }

    header {
        display: flex;
    }

    body {
        padding-top: 25px;
    }

}

/* Extra Small Devices, Phones */
@media (max-width: 600px) {

    #socials {
        justify-content: center;
        gap: 15px;
        padding: 0 20px;
        font-size: 26px;
    }

    .dialog i.icon {
        color: rgb(255, 255, 255, 0.7);
        font-size: 80px;
    }

    .dialog {
        min-width: 90%;
        padding: 20px 25px;
        padding-top: 5px;
        gap: 9px; 
        border-radius: 16px; 
    }

    .dialog .text-container .title {
        align-self: stretch; 
        text-align: center; 
        color: white; 
        font-size: 24px;
        letter-spacing: -0.4px;
        line-height: 35px;
        font-weight: 700; 
        word-wrap: break-word;
    }
      
    .dialog .text-container .description {
        max-width: 480px;
        color: #C0C0C0;
        line-height: 22px;
        text-align: center; 
        font-size: 15px; 
        letter-spacing: -0.2px; 
        font-weight: 500; 
        word-wrap: break-word;
    }

    h1 {
        gap: 5px;
        margin-bottom: 20px;
        letter-spacing: -1px;
        font-size: 25px; 
    }

    h1 .img-container {
        width: 50px;
        height: 50px;
        padding: 20px;
        margin-right: 12px;
    }

    h1 img {
        height: 25px;
    }

    .main-info {
        align-items: center;
        justify-content: center;
    }

    .main-info .logo-description {
        justify-content: center;
        align-items: center;
    }

    .main-info .logo-description p {
        margin: 0;
    }

    .main-info img {
        width: 100%;
    }

    section.main {
        padding: 50px 20px;
        gap: 40px;
    }

    section.order h3 {
        letter-spacing: -0.5px;
        line-height: 32px;
        font-size: 30px;
        font-weight: 600;
    }

    section.order {
        gap: 35px;
        padding: 20px;
    }

    .contact-widget {
        width: 100%; 
        height: 300px; 
        border-radius: 30px;
    }

    .contact-widget img {
        width: 400px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }

    .logo-and-info {
        flex-direction: column;
    }

    .copyright {
        text-align: center;
    }

    header {
        display: none;
    }

    body {
        padding-top: 0;
    }

    .project {
        flex: 1 1 0;
    }
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: inherit;
    color: white;
    cursor: pointer;
    user-select: none;
}

.emoji {
    width: 16px;
    height: 16px;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-decoration {
    position: absolute;
    width: 140px;
    height: 140px;
    pointer-events: none;
}

.avatar {
    width: 108px;
    height: 108px;
    border-radius: 9999px;
    border: 6px solid #333333;
}
