@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Sora:wght@100..800&display=swap");

:root {
    --main-background: #090909;
    --txt-info-blueish: #f2f2f2eb;
    --txt-grey: #3d3d3d;
    --txt-light-grey: #7f7f7f;
    --txt-white: #f2f2f2;
    --txt-darken-white: #d3d3d3;
    /* - cards -  */
    --card-bg: #101010;
    --card-border: #171717;
    --card-blueish-gradient: linear-gradient(
        120deg,
        rgb(67 155 196 / 40%) 0%,
        rgb(31 132 204 / 40%) 100%
    );
    --card-blueish-border: #a7a7a76e;
}

.noselect {
    -webkit-user-select: none;
    -ms-touch-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.txt-grey {
    color: var(--txt-grey);
}

.txt-info-blueish-card {
    color: var(--txt-info-blueish);
}

.txt-silver {
    background: linear-gradient(135deg, #d0d0d0 40%, #707070 50%, #d0d0d0 60%);
    background-size: 400% auto;
    background-clip: content-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: silverShine 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.card {
    padding: 1.7em;
    border: 0.2em solid var(--card-border);
    border-radius: 0.4em;
    background-color: var(--card-bg);
}

.card.blueish {
    background: var(--card-blueish-gradient);
    border: 0.2em solid var(--card-blueish-border);
}

a.cta {
    width: fit-content;
    padding: 0.4em;
    border: 0.2em solid var(--txt-darken-white);
    border-radius: 0.4em;
    color: var(--main-background);
    background-color: var(--txt-white);
    transition: 0.2s ease;
}

a.cta:hover {
    background-color: var(--txt-darken-white);
}

body {
    margin: 0;
    color: var(--txt-white);
    background-color: var(--main-background);
}

a {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
a {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-weight: 700;
}

p {
    margin: 0;
    font-family: "Lato", sans-serif;
}

bold {
    font-weight: 700;
}

.content {
    max-width: 34em;
    width: calc(100% - 30em);
    margin-block: 4em;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 3.4em;
}

.content .wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.4em;
}

.main__infos {
    display: flex;
    gap: 2em;
    align-items: center;
}

.main__infos .pfp {
    min-height: 5em;
    min-width: 5em;
    height: 5em;
    width: 5em;
    border-radius: 10em;
    background-color: var(--card-bg);
    background: url("../imgs/logos/fluid-silver.jpg");
    background-position: right;
    background-size: cover;
}

.main__infos .info {
    display: flex;
    flex-direction: row;
    gap: 0.2em;
    align-items: center;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 1.6em;
    font-size: 1.4rem;
}

nav .link {
    display: flex;
    flex-direction: column;
    color: var(--txt-grey);
    transition: 0.3s ease;
}

nav .link:hover {
    color: var(--txt-white);
}

nav .link:not(.selected):hover div {
    animation: line ease-in-out 0.3s forwards;
}

nav .link.selected a {
    cursor: default;
    color: var(--txt-white);
}

nav .link div {
    height: 0.15em;
    width: 0%;
    border-radius: 2em;
    background-color: var(--txt-grey);
}

nav .link.selected div {
    height: 0.15em;
    width: 100%;
    border-radius: 2em;
    background-color: var(--txt-grey);
}

.section {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.section .cta {
    align-self: center;
}

.cards__grid {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.card.grid {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

.card.grid .infos {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.skills div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7em;
}

.skills div img {
    border-radius: 0.4em;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.footer .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--txt-grey);
}

.footer .links a {
    font-weight: 300;
    transition: 0.2s ease;
}

.footer .links a:hover {
    color: var(--txt-light-grey);
    font-weight: 400;
}

@keyframes line {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

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

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@media screen and (max-width: 50em) {
    .content {
        max-width: 100vw;
        width: calc(100% - 10em);
    }
}
