@font-face {
    font-family: 'Montserrat';
    src: url('./assets/Montserrat-VariableFont_wght.ttf') format('truetype') tech('variations');
    src: url('./assets/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

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

main {
    overflow: auto;
    margin-top: var(--header-height);
}

:root {
    --outer-gutter: 0.5rem;
    --header-height: 90px;
    --container-width: unset;
    --inner-width: 100vw;
}

@media(min-width: 420px) {
    :root {
        --outer-gutter: 1rem;
        --header-height: 90px;
        --container-width: unset;
    }
}

@media(min-width: 768px) {
    :root {
        --outer-gutter: 2rem;
        --header-height: 90px;
        --container-width: unset;
    }
}

@media(min-width: 1024px) {
    :root {
        --outer-gutter: 2.5rem;
        --header-height: 90px;
        --container-width: unset;
    }
}

@media(min-width: 1280px) {
    :root {
        --outer-gutter: 3rem;
        --header-height: 90px;
        --container-width: unset;
    }
}

@media(min-width: 1680px) {
    :root {
        --outer-gutter: 3rem;
        --header-height: 90px;
        --container-width: 1632px;
    }
}

.container,
section {
    width: calc(var(--container-width, 100%) - (2 * var(--outer-gutter, 0)));
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
}

:target::before {
    content: "";
    display: block;
    height: var(--header-height);
    margin: -(var(--header-height)) 0 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;

    /* display: none; */
}

img {
    max-width: 100%;
    overflow: hidden;
    object-fit: contain;
    object-position: center;
    align-items: center;
}

h1,
h2,
h3 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

/* Mobile */
h1 {
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Web */
@media(min-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}


/* Header Specific */

/* Mobile */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 50%;
    translate: -50%;
    z-index: 10;
    color: white;
    height: var(--header-height);
    transition: all 0.5s ease-in-out;
    align-content: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1rem 0; */
    align-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-size: 1rem;
}

header img {
    max-height: 40px;
    height: 40px;
    height: auto;
}

header.scrolled {
    background-color: #0b0b0bc7;
    width: 90%;
    margin: auto;
    border-radius: 1rem;
    top: 1rem;
}

header #menu-dropdown {
    background-color: transparent;
    border: none;
    padding: none;
    cursor: pointer;
    outline: none;
}

header nav {
    display: none;
    min-width: fit-content;
}

header.dropdown nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: #0b0b0bc7;
    padding: 1rem;
    right: 0;
    top: calc((var(--header-height) + 100%) / 2);
}

header.scrolled.dropdown {
    border-bottom-right-radius: 0;
}

/* Web */

@media(min-width: 480px) {
    header #menu-dropdown {
        display: none;
    }

    header nav {
        display: block;
    }

    header.dropdown nav {
        position: unset;
        display: unset;
        flex-direction: unset;
        background: unset;
        padding: unset;
        right: unset;
        top: unset;
    }

    header.scrolled.dropdown {
        border-bottom-right-radius: 1rem;
    }

    header .container {
        gap: 0;
    }

    nav a:last-child {
        background-color: #2D4FDE;
    }
}

/* Intro Section Specific */

/* Mobile */

#introduction {
    text-align: center;
    height: calc(100vh - var(--header-height));
}

#introduction p {
    font-size: 1.5rem;
}

.intro-container {
    position: relative;
    top: 30%;
    transform: translateY(-50%);
    padding: 0 1rem;
}

/* Web */
@media(min-width: 768px) {
    #introduction p {
        margin: 0 auto;
        font-size: 2rem;
    }
}


/* Portfolio Section Specific */

/* Mobile */

#portfolio {}

#portfolio .portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4rem;
    margin: 0 auto;
    max-width: 1200px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 1rem 0;
}

#portfolio img {
    margin: auto;
    width: auto;
    max-width: calc(min(400px, 100%));
}

#portfolio a {
    padding: .75rem 2rem;
    margin: 1rem 0;
    cursor: pointer;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* Web */
@media(min-width: 768px) {
    #portfolio .portfolio-container {
        gap: 6rem;
        margin: 0 auto;
    }

    #portfolio p {
        font-size: 1.25rem;
    }

    .portfolio-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .portfolio-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .portfolio-item>div {
        width: 50%;
    }

    #portfolio img {
        margin: 0;

    }

}

/* Closing Section Specific */

/* Mobile */

#closing {
    margin: 8rem auto;
    text-align: center;
    align-content: center;
}

#closing p {
    font-size: 1.5rem;
}

/* Web */
@media(min-width: 768px) {
    #closing {
        margin: 16rem auto;
    }

    #closing p {
        margin: 0 auto;
        font-size: 2rem;
    }
}

/* Partner Section Specific */

/* Mobile */

.scroller {
    margin: 4rem auto;
}

.scroller ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 0 1rem;
    list-style: none;
    width: fit-content;
}

.scroller li {
    width: 8rem;
    align-content: center;
}

.scroller[animated=true] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg,
            transparent,
            white 20%,
            white 80%,
            transparent);
    mask: linear-gradient(90deg,
            transparent,
            white 20%,
            white 80%,
            transparent)
}

.scroller[animated=true] ul {
    flex-wrap: nowrap;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 2rem))
    }
}

/* Web */
@media(min-width: 768px) {
    .scroller {
        /* max-width: 80%; */
    }
}

/* Contact Section Specific */

/* Mobile */

form {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    margin: 0 auto 4rem auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    max-width: 900px;
}

form label {
    color: #E8E5E2;
}

form input,
form textarea {
    background-color: #38393b6d;
    border: 1px solid rgb(76, 74, 74);
    color: white;
}

form input {
    height: 2.5rem;
    padding: 0 0.5rem;
}

form textarea {
    resize: vertical;
    min-height: 6rem;
    padding: 0.5rem;
}

form div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

form .span {
    grid-column: span 1;
}

form button {
    width: fit-content;
    margin: 1rem auto;
    background-color: #2D4FDE;
    color: #E8E5E2;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

/* Web */
@media(min-width: 768px) {

    #contact {
        margin-top: 6rem;
    }

    form {
        grid-template-columns: 1fr 1fr;
        grid-gap: 2rem;
        padding: 4rem;
    }

    form .span {
        grid-column: span 2;
    }
}


/* Footer Section Specific */

/* Mobile */

footer {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    overflow: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer h2 {
    font-size: 1rem;
    text-align: left;
    margin: 1rem 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

footer ul {
    list-style: none;
}

footer p,
footer li {
    margin: 1rem 0;
}

.footer-info img {
    width: 400px;
}

footer a {
    text-decoration: none;
    color: #2D4FDE;
    ;
}

.copyright {
    margin: 2rem;
    text-align: center;
}

/* Web */

@media(min-width: 768px) {
    footer .footer-content {
        flex-direction: row;
        padding: 4rem 0;
    }

    .footer-info {
        gap: 2rem;
    }

    footer h2 {
        margin: 0 0 2rem 0;
    }

    .footer-links {
        flex-direction: row;
        width: 60%;
        justify-content: space-around;
    }

    .copyright {
        margin-top: 4rem;
    }
}



/* Temp */
body {
    background-color: gray;
}