@font-face {
    font-family: "JetBrains";
    src: url("/assets/JetBrainsMono-SemiBold.woff2") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #4a5ffa;
    --secondary-color: #72b8fe;
    --tertiary-color: some color;

    --banner-color: #2c3398;

    --background-color: whitesmoke;

    --text-color: #000;
    --hyperlink-color: #72b8fe;

    --box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);

    @media only screen and (prefers-color-scheme: dark) {
        --text-color: #fff;
        --background-color: #121417;
        --box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    }
}

html {
    margin: 0 auto;
    font-family:
        JetBrains, "sans-serif", "Roboto", "sans-serif", "Helvetica",
        "sans-serif";
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    background-color: var(--background-color);
    font-family:
        JetBrains, "sans-serif", "Roboto", "sans-serif", "Helvetica",
        "sans-serif";
}

main {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    align-items: center;
    color: var(--text-color);
}

h2 {
    font-family: JetBrains, sans-serif;
    background-color: var(--banner-color);
    padding: 0 1rem;
    width: 100%;
    color: whitesmoke;
    font-size: 2.5rem;
}

p {
    font-size: 1.5rem;
}

.hero-intro-overlay {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100dvw;
}

.hero-intro-overlay > img {
    position: absolute;
    display: block;
    object-fit: cover;
    height: 100dvh;
    width: 100dvw;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-intro-text-wrapper {
    display: grid;
    place-items: center;
    height: 100dvh;
    width: 100dvw;
    z-index: 2;
    opacity: 0;
    animation: intro-animation 0.3s linear forwards;
}

.hero-intro-text {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: fit-content;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    &h1 {
        color: white;
    }
    padding: 1rem 2rem;
}

.content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 90%;
    padding: 1rem;
}

.content :nth-child(1) {
    opacity: 0.4;
    transform: translateY(6rem);
    transition:
        opacity,
        transform 300ms ease;
}

.content :nth-child(2) {
    opacity: 0.4;
    transform: translateY(12rem);
    animation-delay: 300ms;
    transition:
        opacity,
        transform 300ms ease;
}

.content :nth-child(3) {
    opacity: 0.4;
    transform: translateY(18rem);
    animation-delay: 600ms;
    transition:
        opacity,
        transform 300ms ease;
}

.content :nth-child(4) {
    opacity: 0.4;
    transform: translateY(24rem);
    animation-delay: 900ms;
    transition:
        opacity,
        transform 300ms ease;
}

.content.active :nth-child(1),
.content.active :nth-child(2),
.content.active :nth-child(3),
.content.active :nth-child(4) {
    opacity: 1;
    transform: translateY(0);
}

.img-lnk {
    text-decoration: none;
    height: 5rem;
    width: 5rem;
    object-fit: contain;
    padding: 0.5rem;
    cursor: pointer;
}

.member-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 90%;
    padding: 1rem;
}

.member-content :nth-child(1) {
    opacity: 0.4;
    transform: translateY(6rem);
    transition:
        opacity,
        transform 300ms ease;
}

.member-content.active :nth-child(1) {
    opacity: 1;
    transform: translateY(0);
}

.member-content .member-container .team-member-card {
    animation-play-state: paused !important;
}

.member-content.active .member-container .team-member-card {
    animation-play-state: running !important;
}

.member-container {
    position: relative;
    display: flex;
    flex-direction: row;

    height: 100%;
    width: 100%;

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

    gap: 2rem;
}

.team-member-card {
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    max-width: 15rem;
    height: 20rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin: 1rem;
}

.team-member-portrait {
    width: 6rem;
    height: 6rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.team-member-name {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.team-member-description {
    font-size: 0.95rem;
    color: whitesmoke;
}

@keyframes fade-fly-in {
    from {
        visibility: hidden;
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes intro-animation {
    from {
        opacity: 0;
        backdrop-filter: none;
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

@media only screen and (max-width: 768px) {
    h2 {
        font-size: 2rem;
        padding: 0.5rem;
    }

    footer {
        text-align: center;
    }

    p,
    a {
        font-size: 1.2rem;
    }
}
