@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* #region general */

html {
    scroll-behavior: smooth;
}

:root {
    --background-color: #f0ebff;
}

.content-box {
    scroll-margin-top: 80px;
    margin: 30px auto;
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0px 4px 12px #bf91e333;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #000000;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: #7e7187;
}

.container {
    scroll-margin-top: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; 
}

/* #endregion */

/* #region header-box */
.header-box {
    height: 80px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    box-sizing: border-box;
    border-radius: 30px;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px #bf91e333;
}

.header-box-author-name {
    padding-top: 0;
    padding-left: 0;
    font-size: 22px;
}

.header-box-navigation {
    display: flex;
    gap: 20px;
    padding-top: 0;
    padding-left: 0;
    font-size: 18px;
    margin-left: 0;
}

.header-box-navigation a {
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-radius 0.2s ease, padding 0.2s ease;
    padding: 5px 0px;
}

.header-box-navigation a:hover {
    background-color: #f0ebff;
    box-shadow: 0px 4px 12px #bf91e333;
    border-radius: 10px;
    padding: 5px 10px;
}

/* #endregion */

/* #region about-me-box */
.about-me-box-title {
    font-size: 40px;
    padding-bottom: 15px;
}

.about-me-box-content {
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-me-box-content p {
    margin: 10px 0;
}

.about-me-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-me-box-picture {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.7)
}

.mobile-variant-available {
    width: fit-content;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #e1d7ff;
    margin-top: 10px;
    padding: 10px 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-variant-available:hover {
    transform: translateY(-1px) scale(1.1) rotate(-1deg);
    box-shadow: 0px 0px 8px rgb(111, 0, 255)
}

@keyframes blink-about-me-picture {
    0% {
        box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.7)
    }
    50% {
        box-shadow: 0px 4px 13px rgba(0, 0, 0, 1);
    }
    100% {
        box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.7);
    }
}

.about-me-box-picture:hover {
    animation: blink-about-me-picture 0.3s ease forwards;
}

@keyframes spinning-about-me-picture {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.about-me-box-picture.spinning {
    animation: spinning-about-me-picture 0.6s ease forwards;
}

/* #endregion */

/* #region about-my-languages */

.about-my-languages-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-my-languages-box-title {
    font-size: 40px;
    padding-bottom: 25px;
}

.about-my-languages-languages-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.about-my-languages-languages-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
    padding: 5px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0px 5px 8px var(--shadow-color, rgba(0, 0, 0, 0.5))
}

@keyframes wiggle-language-cards {
    0% {
        transform: translateY(0) rotateZ(0deg);
    }
    25% {
        transform: translateY(-10px) rotateZ(5deg);
    }
    50% {
        transform: translateY(-10px) rotateZ(-5deg);
    }
}

.about-my-languages-languages-card:hover {
    animation: wiggle-language-cards 0.3s ease forwards;
    box-shadow: 0px 5px 23px var(--shadow-color, rgba(0, 0, 0, 1))
}

.about-my-languages-language-ico {
    object-fit: scale-down;
    width: 141px;
    height: 141px;
    border-radius: 30px;
}

.about-my-languages-text {
    margin: 0;
    font-size: 25px;
}

/* #endregion */

/* #region about-my-frameworks */

.about-my-frameworks-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-my-frameworks-box-title {
    font-size: 40px;
    padding-bottom: 25px;
}

.about-my-frameworks-framework-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.about-my-frameworks-framework-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
    padding: 5px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0px 5px 8px var(--shadow-color, rgba(0, 0, 0, 0.5))
}

@keyframes wiggle-framework-cards {
    0% {
        transform: translateY(0) rotateZ(0deg);
    }
    25% {
        transform: translateY(-10px) rotateZ(5deg);
    }
    50% {
        transform: translateY(-10px) rotateZ(-5deg);
    }
}

.about-my-frameworks-framework-card:hover {
    animation: wiggle-framework-cards 0.3s ease forwards;
    box-shadow: 0px 5px 23px var(--shadow-color, rgba(0, 0, 0, 1))
}

.about-my-frameworks-framework-ico {
    object-fit: scale-down;
    width: 141px;
    height: 141px;
    border-radius: 30px;
}

.about-my-frameworks-text {
    margin: 0;
    font-size: 25px;
}

/* #endregion */

/* #region about-my-projects */

.about-my-projects-main-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
}

.about-my-projects-left-column {
    display: flex;
    flex-direction: column;
}

.about-my-projects-box-title {
    font-size: 40px;
    padding-bottom: 15px;
    margin: 0;
}

.about-my-projects-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 18px;
}

.about-my-projects-text-wrapper p {
    margin: 10px 0;
}

.about-my-projects-pictures-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.about-my-projects-picture {
    height: 190px;
    width: 190px;
    border-radius: 15px;
    object-fit: cover;
    transition: box-shadow 0.2s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes shaking-about-me-picture {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

.about-my-projects-picture.shaking {
    animation: shaking-about-me-picture 0.3s ease forwards;
}

/* #endregion */

/* #region my-contacts */

.my-contacts-content-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.my-contacts-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 15px;
}

.my-contacts-content-box-title {
    font-size: 40px;
    padding-bottom: 10px;
    margin: 0;
}

.my-contacts-content-box-text-wrapper {
    gap: 5px;
    font-size: 20px;
}

.contact-button {
    flex: 1;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 20px; 
    font-size: 20px;
    color: #ffffff;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
    transform: translateY(3px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.25);
}

.contact-button-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.telegram-button {
    background-color: rgb(34, 158, 217);
}

.discord-button {
    background-color: rgb(88, 101, 242);
}

.steam-button {
    background-color: rgb(27, 40, 56);
}

/* #endregion */

/* #region footer */

.footer-content-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-content-box-title {
    font-size: 40px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.footer-content-box-text-wrapper p {
    margin: 0px;
}

.footer-content-box-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    padding-bottom: 15px;
}

.footer-buttons-container {
    margin-top: 10px;
}

.question-mark-button {
    height: 70px;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 20px; 
    font-size: 20px;
    color: #ffffff;
    background-color: rgb(236, 137, 201);
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-mark-button:hover {
    transform: translateY(3px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.25);
}

.question-mark-button-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

/* #endregion */


@media (max-width: 768px) {
    
    .content-box {
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }

    .header-box {
        height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header-box-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .about-me-box-content {
        flex-direction: column-reverse;
        gap: 25px;
    }

    .about-me-box-picture {
        width: 200px;
        height: 200px;
    }

    .about-me-text-wrapper {
        align-items: center;
    }

    .about-my-languages-wrapper, 
    .about-my-frameworks-wrapper {
        align-items: center;
    }

    .about-my-languages-languages-container,
    .about-my-frameworks-framework-container {
        justify-content: center;
    }

    .about-my-languages-languages-card,
    .about-my-frameworks-framework-card {
        width: 110px;
        height: 130px;
    }

    .about-my-languages-language-ico,
    .about-my-frameworks-framework-ico {
        width: 100px;
        height: 100px;
    }

    .about-my-languages-text,
    .about-my-frameworks-text {
        font-size: 18px;
    }

    .about-my-projects-main-row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .about-my-projects-pictures-container {
        flex-direction: row;
        justify-content: center;
    }

    .about-my-projects-picture {
        width: 150px;
        height: 150px;
    }

    .my-contacts-buttons-container {
        flex-direction: column;
        gap: 12px;
        height: 200px;
    }

    .contact-button {
        width: 100%;
        height: 60px;
    }
}