@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

body {
    background: linear-gradient(45deg, #606060, #000000);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.my-skills-block, .my-contacts-block {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.main-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 40px;
    padding: 40px 20px;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.logo {
    border: 3px solid #ffcb2d;
    padding: 3px;
    width: 200px;
    height: auto;
    border-radius: 50%;
    flex-shrink: 0;
    animation: fadeInLeft 1s ease-out forwards;
}

#main-title {
    border-left: 5px solid #ffcb2d;
    padding-left: 20px;
    border-bottom: 5px solid #ffcb2d;
    padding-bottom: 20px;
    border-radius: 5px;
    animation: fadeInTop 1s ease-out forwards;
    user-select: none;
    -webkit-user-select: none;
}

#main-text {
    gap: 3px;
    display: flex;
    flex-direction: column;
}

#main-text h2 {
    color: white;
    font-size: 30px;
}

#main-text h1 {
    font-size: 40px;
    color: #ffcb2d;
    background: linear-gradient(120deg, #ffcb2d 30%, #ffe9b0 50%, #ffcb2d 70%);
    background-size: 200% 100%;
    background-position: 150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGleam 5s linear infinite;
}

#main-text p {
    color: white;
    font-size: 20px;
    max-width: 500px;
    user-select: none;
    -webkit-user-select: none;
}

#main-text #description p {
    color: #a1a1a1;
    margin-top: 20px;
    font-size: 17px;
    line-height: 25px;
    animation: fadeInLeft 1s ease-out forwards;
}

#main-text p b {
    color: #ffcb2d;
    text-decoration: underline;
}

.my-skills-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: #ffcb2d;
    padding: 80px 20px;
    user-select: none;
    -webkit-user-select: none;
}

.my-skills-block h1 {
    margin-bottom: 80px;
    font-size: 50px;
    letter-spacing: 10px;
    padding: 20px 40px;
    background: #1b1b1b;
    color: #ffcb2d;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(27, 27, 27, 0.28);
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1.2s ease-out;
}

.my-skills-block h1.visible {
    opacity: 1;
    transform: translateY(0px);
}

.skills {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.skills.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill {
    padding-top: 20px;
    color: #ffcb2d;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #1b1b1b;
    letter-spacing: 1px;
    width: 100%;
    max-width: 280px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(27, 27, 27, 0.28);
    min-height: 200px;
    height: auto;
    padding-bottom: 20px;
}

.skill hr {
    border: none;
    height: 1px;
    background-color: #ffcb2d;
    margin: 20px 40px;
}

.skill p {
    color: #ffffff;
    max-width: 220px;
    align-self: center;
}

.my-projects-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: #1b1b1b;
    padding: 80px 20px;
    user-select: none;
    -webkit-user-select: none;
}

.my-projects-block h1 {
    word-break: keep-all;
    margin-bottom: 100px;
    font-size: 50px;
    letter-spacing: 5px;
    padding: 20px 40px;
    background: #ffcb2d;
    color: #2e2e2e;
    border-radius: 20px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1.2s ease-out;
}

.my-projects-block h1.visible {
    opacity: 1;
    transform: translateY(0);
}

.my-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
}

.project {
    box-shadow: 0 0 2px rgba(161, 161, 161, 0.3), inset 0 0 30px rgba(207, 207, 207, 0.15);
    background: #2e2e2e;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 360px;
    max-height: 550px;
    border-radius: 10px;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    border: 1px solid #a1a1a1;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    color: white;
    user-drag: none;
    transition: filter 0.3s ease;
}

.project-image:hover {
    filter: brightness(0.8);
    cursor: pointer;
}

.project h2 {
    text-align: center;
    padding-top: 20px;
    letter-spacing: 1px;
    font-size: 28px;
    color: #ffcb2d;
}

.project hr {
    border: none;
    height: 2px;
    width: 50%;
    background: #ffcb2d;
    margin: 15px auto;
}

.skills-used {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.skill-used {
    padding: 5px 15px;
    border-radius: 10px;
    margin-top: auto;
    background: #1b1b1b;
    color: #ffe9b0;
    font-family: Consolas, sans-serif;
}

.projects-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.live-button, .code-button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #1b1b1b;
    color: #2e2e2e;
    font-weight: bold;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.live-button:hover, .code-button:hover {
    cursor: pointer;
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.live-button {
    background-color: #ffcb2d;
    border: 1px solid #ffcb2d;
    color: #1b1b1b;
}

.code-button {
    color: #ffe9b0;
    border: 1px solid #ffe9b0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #ccc;
}

.my-contacts-block {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: #ffcb2d;
    padding: 80px 20px;
    user-select: none;
    -webkit-user-select: none;
}

.my-contacts-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1.2s ease-out;
}

.my-contacts-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.my-contacts-text h1 {
    font-size: 90px;
    letter-spacing: 2px;
    word-spacing: 5px;
    background: #ffe9b0;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: bold;
}

.my-contacts-text h1:after {
    content: "";
    animation: blink 2s infinite steps(1);
    transition: none;
}

.my-contacts-text span {
    font-size: 30px;
    letter-spacing: 2px;
    word-spacing: 2px;
}

.my-contacts {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
    width: 100%;
}

.my-contacts.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    gap: 20px;
    width: 350px;
    height: 350px;
    border-radius: 20px;
    background: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-card:not(.email-static) {
    cursor: pointer;
}

.contact-card.email-static {
    cursor: default;
}

.contact-card:hover {
    filter: brightness(1.2);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 100px;
    color: white;
}

.contact {
    text-align: center;
    color: #ffcb2d;
    font-weight: bold;
    font-size: 40px;
}

.contact-username {
    color: #a1a1a1;
    font-size: 20px;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.contact-card.email-static .contact-username:hover {
    cursor: text;
}

footer {
    padding: 20px;
    display: flex;
    color: #ffcb2d;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
    width: 100%;
    background-color: #2e2e2e;
    height: 50px;
}

#footer-link {
    color: #a1a1a1;
}

footer a {
    color: #ffcb2d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textGleam {
    0% {
        background-position: 150% 0;
    }
    100% {
        background-position: -50% 0;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-5px) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0px) translateY(0);
    }
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-5px) translateX(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0px) translateX(0px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        content: "!";
        color: #2e2e2e;
    }
    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(75deg, #606060, #000000);
    }

    .main-container {
        flex-direction: column;
        min-height: auto;
        padding: 50px 20px;
        gap: 30px;
        text-align: center;
    }

    .logo {
        width: 150px;
    }

    #main-title {
        border-left: none;
        padding-left: 0;
        border-bottom: 4px solid #ffcb2d;
        padding-bottom: 15px;
    }

    #main-text {
        align-items: center;
    }

    #main-text h2 {
        font-size: 24px;
    }

    #main-text h1 {
        font-size: 32px;
    }

    #main-text p {
        font-size: 18px;
    }

    #main-text #description p {
        font-size: 15px;
        line-height: 22px;
    }

    .my-skills-block {
        min-height: auto;
        padding: 60px 20px;
    }

    .my-skills-block h1 {
        font-size: 32px;
        letter-spacing: 4px;
        padding: 12px 25px;
        margin-bottom: 40px;
    }

    .skills {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .skill {
        max-width: 280px;
    }

    .my-projects-block {
        padding: 60px 15px;
    }

    .my-projects-block h1 {
        min-height: auto;
        text-align: center;
        font-size: 32px;
        margin-bottom: 50px;
        padding: 10px 20px;
    }

    .my-projects {
        flex-direction: column;
        gap: 30px;
    }

    .project {
        max-width: 320px;
        padding: 20px;
    }

    .project hr {
        width: 70%;
    }

    .my-contacts-block {
        padding: 60px 15px;
    }

    .my-contacts-text {
        max-width: 350px;
    }

    .my-contacts-text h1 {
        font-size: 40px;
    }

    .my-contacts-text span {
        font-size: 20px;
        letter-spacing: normal;
        word-spacing: normal;
    }

    .my-contacts {
        margin-top: 30px;
        flex-direction: column;
        gap: 20px;
    }

    .contact-card {
        border-radius: 20px;
        width: 280px;
        height: 220px;
        gap: 10px;
    }

    .contact-card i {
        font-size: 50px;
        color: white;
    }

    .contact {
        font-size: 30px;
    }

    .contact-username {
        font-size: 15px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        height: auto;
        font-size: 12px;
    }
}