:root {
    --black: #000000;
    --white: #ffffff;
    --soft-black: #181818;
    --secondary-color: #ebedee;
    --link-color: #1f3a85;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--white);
}

.home-container {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

nav {
    background-color: var(--secondary-color);
    padding: 8px 10px;

    a {
        color: var(--soft-black);
        text-decoration: none;
        padding: 10px 20px;
        display: inline-block;
        transition: transform 0.2s ease-in-out;
        user-select: none;
    }
    a:hover {
        transform: scale(1.05) rotate(-2deg);
    }

    .logo {
        font-weight: bold;
    }
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;

    h1 {
        font-size: 6vmax;
        margin: 0;
        text-align: center;
        user-select: none;
        color: var(--soft-black);
    }
    h1:hover {
        animation: titleHover 0.3s ease-in-out forwards;
    }
    h1:not(:hover) {
        animation: titleLeave 0.3s ease-out forwards;
    }
    a {
        color: var(--soft-black);
        font-size: 20px;
        font-style: italic;
        text-decoration: none;
        user-select: none;
    }
}

.decor-fly {
    position: fixed;
    bottom: 0;
    right: 0;

    width: 150px;
    height: auto;

    pointer-events: none;
    user-select: none;
    z-index: 9999;
}

.background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    img {
        height: 70%;
        opacity: 0.2;
    }
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 10px;
}

.project {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 20px;
    margin: 10px;
    a {
        color: var(--link-color);
    }
}

.center-text {
    text-align: center;
}

.basic-xy-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.promo {
    position: fixed;
    bottom: 20px;
    left: 20px;

    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    user-select: none;
}

@keyframes titleHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03, 1.01);
    }
    100% {
        transform: scale(1.02, 1.02);
    }
}

@keyframes titleLeave {
    0% {
        transform: scale(1.02, 1.02);
    }
    100% {
        transform: scale(1, 1);
    }
}