:root {
    /* Colors */

    --blue: #507dbc;
    --white: #CBCBD4;
    --med: #595D5F;
    --dark: #2a2b3a;
    --black: #171922;

    /* Font */
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    /* 100 - 900 */
    font-weight: 800;
    font-style: normal;
}

@keyframes FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes SlideIn {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(var(--slide-factor) * var(--i)));
    }
}

body {
    background-color: var(--dark);
}

.navbar {
    width: 100vw;
    height: 5rem;
    padding-left: 2rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark);
}

.logo {
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
    color: var(--blue);
    text-shadow: 0.05rem 0.05rem 0.1rem var(--med);
    transition: color 200ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo:hover {
    color: var(--white);
}

.nav-list {
    display: flex;
    background-color: var(--dark);

    /* Mobile */
    height: 40vh;
    opacity: 0;
    transform: translateX(-1rem);
    pointer-events: none;
    position: absolute;
    width: 100vw;
    top: 5rem;
    left: 0;
    z-index: 1;
    flex-direction: column;
    transition: opacity 300ms ease, transform 300ms ease;
}

.nav-dropdown.active .nav-list {
    /* Mobile */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
    /* Mobile */
    width: 2.5rem;
    height: 0.25rem;
    background: var(--white);
    border-radius: 0.1rem;
}

.nav-icon {
    /* Mobile */
    position: relative;
    display: block;
    transition: background 0.3s;
}

.nav-icon::before,
.nav-icon::after {
    /* Mobile */
    content: "";
    position: absolute;
    left: 0;
    transition: transform 400ms;
}

.nav-dropdown.active .nav-icon {
    /* Mobile */
    background: transparent;
}

.nav-dropdown.active .nav-icon::before {
    /* Mobile */
    transform: translateY(0.75rem) rotate(-135deg);
}

.nav-dropdown.active .nav-icon::after {
    /* Mobile */
    transform: translateY(-0.75rem) rotate(135deg);
}

.nav-icon::before {
    /* Mobile */
    top: -0.75rem;
}

.nav-icon::after {
    /* Mobile */
    top: 0.75rem;
}

.nav-button {
    /* Mobile */
    height: 4rem;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item {
    color: var(--white);
    transition: color 300ms ease-in-out;

    /* Mobile */
    display: flex;
    align-items: stretch;
    align-content: stretch;
}

.nav-item:hover {
    color: var(--blue);
}

.nav-link {
    font-size: 1.5rem;

    /* Mobile */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.hero {
    width: 100vw;
    height: calc(100vh - 5rem);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 0.5rem;

    /* Mobile */
    padding-left: 4rem;
}

.hero .first {
    /* Mobile */
    color: var(--med);
    font-size: 2rem;
}

.hero-title {
    display: flex;
    opacity: 0;
    animation: FadeIn 1000ms ease-in 500ms forwards;

    /* Mobile */
    flex-direction: column;
    line-height: 1.1;
}

.hero-title li {
    font-size: 3rem;
    width: fit-content;

    /* Mobile */
    --slide-factor: 1.5rem;
    transform: translateX(0);
    animation: SlideIn 1000ms ease-in-out 750ms forwards;
}

.hero-title b {
    text-shadow: 0.05rem 0.05rem 0.1rem var(--dark);
}

.hero-subtext p {
    /* Mobile */
    display: none;
}

.about {
    background-color: var(--med);
}

.about-list {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;

    /* Mobile */
    padding: 1.5rem;
}

.about-item {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    border-radius: 2rem;
    box-shadow: 0.1rem 0.1rem 0.5rem var(--dark);

    /* Mobile */
    padding: 1.5rem;
}

.about-item h2 {
    color: var(--blue);
    letter-spacing: 0.15rem;

    /* Mobile */
    font-size: 1.5rem;
}

.about-item .first {
    color: var(--black);
    text-shadow: none;
}

.about-item p {
    color: var(--dark);
    font-weight: 500;
}

.foot-nav {
    background-color: var(--dark);
    height: 50vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.foot-list {
    display: flex;
    flex-direction: row;
    align-items: center;

    /* Mobile */
    column-gap: 2rem;
}

.foot-phrase {
    font-size: 2rem;
    color: var(--white);
    display: flex;

    /* Mobile */
    flex-direction: column;
    align-items: center;
}

.foot-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--white);
    border-radius: 1.5rem;
    color: var(--black);
    box-shadow: 0.1rem 0.1rem 0.1rem var(--med);
}

.foot-icon {
    fill: var(--black);
    scale: 0.8;
}

.foot-item:hover {
    background-color: var(--med);
    box-shadow: 0.15rem 0.15rem 0.15rem var(--med);
    scale: 1.035;
}

b {
    font-weight: 800;
    color: var(--blue);
}

@media (min-width: 600px) {
    .navbar {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .nav-button {
        display: none;
    }

    .nav-list {
        width: 30vw;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        /* Correction */
        height: auto;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        position: relative;
        top: 0;
        transition: none;
    }

    .nav-item {
        padding: 0.5rem;
        font-size: 1.5rem;

        /* Correction */
        display: block;
    }

    .nav-link {
        padding: 0;
    }

    .hero {
        align-items: center;

        /* Correction */
        padding: 0;
    }


    .hero .first {
        font-size: 3rem;
        color: var(--dark);
    }

    .hero-title {
        flex-direction: row;
        column-gap: 1rem;
    }

    .hero-title li {
        /* Correction */
        animation: none;
    }

    .hero-subtext p {
        display: inline;
        color: var(--med);
        letter-spacing: 0.075rem;
        opacity: 0;
        animation: FadeIn 1000ms ease-in 1000ms forwards;
    }

    .about-list {
        padding: 4rem;
    }

    .about-item {
        width: 50vw;
        padding: 2.5rem;

        --slide-factor: calc((50vw + 4rem) / 4);
        animation: SlideIn linear forwards;
        animation-timeline: view();
        animation-range: entry 0 cover 40%;
    }

    .about-item:hover {
        scale: 1.01;
    }

    .about-item h2 {
        font-size: 2rem;
        text-shadow: 0.05rem 0.05rem var(--blue);
    }

    .about-item p {
        font-size: 1.25rem;
    }

    .foot-phrase {
        flex-direction: row;
        column-gap: 0.75rem;
    }

    .foot-list {
        column-gap: 4rem;
    }
}
