@font-face {
    font-family: 'kyivtype sans';
    src: url('/kyivtype-regular') format('truetype');
}


body {
    background-color: #f0f0f0;
    font-family: 'kyivtype sans', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: white;
}

.nav-bar {
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 2.6vh 5vw;
    position: sticky;
    top: 0;
    z-index: 1000;


    .nav-bar-right-element {
        display: flex;
        gap: 5vw;
    }

    .nav-bar-left-element {
        margin-right: auto;
    }
}

.presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 97.5vh;
    background-color: #333;
    color: white;

    h1 {
        font-size: 5rem;
    }

    p {
        font-size: 2rem;
    }
}

.projects {

    padding: 2rem;
    display: flex;
    align-items: center;
    flex-direction: column;

    .projects-title {
        position: relative;
        font-size: 3rem;
        font-weight: bold;
        align-self: flex-start;
    }

    .project-cards {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 2rem;
        margin-top: 2rem;
        height: 100%;
        width: 100%;

        a {
            text-decoration: none;
            color: #000000;
            position: relative;
            font-size: 1.5rem;
        }

        a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px; /* Adjust based on your preference */
            width: 100%;
            height: 2px; /* Adjust based on your preference */
            background-color: currentColor;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }

        a:hover::after {
            transform: scaleX(1);
            transform-origin: right;
        }

        .project-title {
            font-size: 2rem;
            font-weight: bold;
        }

        .project {
            display: flex;
            flex-direction: column;
            gap: 1vh;
            margin-bottom: 2rem;
            max-width: 20vw;

            p {
                font-size: 1rem;
            }
        }
    }

    .projects-button {
        padding: 0.5rem 1rem;
        background-color: #333;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .projects-button:hover {
        background-color: #555;
        transform: scale(1.05);
    }
}


.about {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: #333;
    color: white;
    gap: 20px;

    .about-title {
        position: relative;
        font-size: 3rem;
        font-weight: bold;
        align-self: flex-start;
    }

    .about-content {
        display: flex;
        gap: 2rem;

        .left-side-content {
            width: 40%;
            position: relative;
            display: flex;
            align-content: center;
            flex-direction: column;
            gap: 2rem;
            margin-right: 2rem;

            img {
                align-self: center;
                height: 80vh;
                display: block;
            }

        }

        .right-side-content {
            width: 40%;
            display: flex;
            flex-direction: column;
            gap: 2rem;

            h2 {
                font-size: 3rem;
            }

            p {
                font-size: 1.5rem;
            }
        }
    }
}

.contact {
    padding: 2rem;
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    height: 100vh;
    color: #000000;

    .contact-title {
        position: relative;
        font-size: 3rem;
        font-weight: bold;
        align-self: flex-start;
    }

    .contact-content {
        display: flex;
        gap: 2rem;
        flex-direction: column;
        margin: 2rem;

        .mail {
            display: flex;
            flex-direction: row;
            gap: 1vw;
            font-size: 1.5rem;
        }

        a {
            text-decoration: none;
            color: #000000;
            position: relative;
            font-size: 1.5rem;
        }

        a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px; /* Adjust based on your preference */
            width: 100%;
            height: 2px; /* Adjust based on your preference */
            background-color: currentColor;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }

        a:hover::after {
            transform: scaleX(1);
            transform-origin: right;
        }

        .social-media {
            display: flex;
            flex-direction: row;
            gap: 1vw;
            font-size: 1.5rem;
        }

        h2 {
            font-size: 3rem;
        }

        p {
            font-size: 1.5rem;
        }
    }
}

.credits {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    background-color: #333;
    color: white;
    gap: 20vw;
    font-size: 1.5rem;

    a {
        text-decoration: none;
        color: #ffffff;
        position: relative;
        font-size: 1.5rem;
    }

    a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px; /* Adjust based on your preference */
        width: 100%;
        height: 2px; /* Adjust based on your preference */
        background-color: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
    }

    a:hover::after {
        transform: scaleX(1);
        transform-origin: right;
    }
}
