:root {
    --color-white: #f9f7f0;
    --color-light: #18b7be;
    --color-medium: #178ca4;
    --color-dark: #072a40;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background: var(--color-white);
    font-family: "Google Sans", sans-serif;
    color: var(--color-dark);
}

.spacer {
    height: 1.5rem;
}

.parallax {
    position: relative;
    overflow: hidden;
}

.parallax > img {
    position: absolute;
    object-fit: cover;
    object-position: center;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    opacity: 50%;
    transition: opacity 800ms;
}

.banner .parallax {
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.banner-content {
    z-index: 1;
    text-align: center;
}

.tudelft-logo-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    line-height: 0;
}

.tudelft-logo {
    display: block;
    height: clamp(5rem, 7vw, 7.5rem);
    width: auto;
    transition:
        opacity 800ms,
        transform 800ms;
}

.tudelft-logo.initial {
    opacity: 0;
    transform: translateX(2rem);
}

.container {
    width: 1200px;
    max-width: 100%;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    /* font-size: 1rem; */
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #0a0a0a;
    border-radius: 10px;
    cursor: pointer;
    transition: background 200ms ease;
}

.cta-btn:hover,
.cta-btn:focus {
    background: #333;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* h1.section-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
} */

h2 {
    /* margin-bottom: 1rem; */
    font-size: 1.5rem;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.name-row.stacked {
    flex-direction: column;
    align-items: flex-start;
}

.name-row h2 {
    margin-bottom: 0;
    white-space: nowrap;
}

p {
    line-height: 1.8rem;
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.title {
    /* text-transform: uppercase; */
    /* font-style: italic; */
    transition:
        transform 800ms,
        opacity 800ms;
    transform-origin: bottom center;
    /* transform: skewX(-15deg) translateX(-1.5rem); */
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-size: 3rem;
}

.title.initial {
    transform: translateX(-4rem);
    opacity: 0;
}

.initial {
    opacity: 100%;
}

@media only screen and (max-width: 800px) {
    .title {
        transform: none;
        width: auto;
    }

    .title.initial {
        transform: translateX(-2rem);
        opacity: 0;
    }

    .tudelft-logo.initial {
        transform: translateX(1rem);
    }
}

.scroll-show {
    opacity: 0;
    transition:
        opacity 800ms,
        transform 800ms;
    transform: translateX(-2rem);
}

.scroll-show.show {
    opacity: 100%;
    transform: none;
}

/* ============ CAST ============ */

@media only screen and (min-width: 700px) {
    /* .cast .member {
        height: 30rem;
    } */

    html {
        font-size: 20px;
    }

    .cast .member:nth-child(odd) {
        flex-direction: row;
    }

    .cast .member:nth-child(even) {
        flex-direction: row-reverse;
    }

    .cast .member .parallax {
        height: 100% !important;
        width: auto !important;
    }
}

/* @media only screen and (min-width: 1200px) {
    .cast .member {
        height: 40rem;
    }
} */

.cast .member {
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    color: rgba(0, 0, 0, 0.75);
}

.cast .member .parallax {
    flex: 1 0;
    aspect-ratio: 1/ 1;
}

.cast .member .parallax img {
    object-fit: cover;
}

.cast .member .content {
    flex: 1 0;
    margin: auto;
}

.cast .member .content > div {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 200ms;
}

.socials a:hover {
    opacity: 0.55;
}

.socials img {
    width: 2rem;
    height: 2rem;
}

.socials img[alt="Resume"] {
    width: 2.2rem;
    height: 2.2rem;
}

.socials img[alt="Email"] {
    width: 2.5rem;
    height: 2.5rem;
}

.full-screen {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#kiko {
    background-color: #e1eae0;
}

#guy {
    background-color: #e2eff2;
}

#eva {
    background-color: #e9edf9;
}

#jason {
    background-color: #fcf8e9;
}

#deyan {
    background-color: #e9d7d8;
}

#james {
    background-color: #ebe5d5;
}
