@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;800&display=swap');

:root {
    --blue-one: #041a34;
    --blue-two: #083369;
    --blue-three: #3b679c;
    --blue-four: #008FC7;
    --blue-five: #1EB5DD;
    --blue-six: #99D7F7;
    --grey-one: rgb(20, 20, 20);
    --grey-two: rgb(100, 100, 100);
    --grey-three: rgb(243, 243, 243);
    --white: rgb(255, 255, 255);
    --black: rgb(0, 0, 0);

    --base-size: 8px;
}

*{
    box-sizing: border-box;
}

body, html {
    font-family: 'Inter', sans-serif;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

h1 {
    font-size: calc(7*var(--base-size));
}

h2 {
    font-size: calc(5*var(--base-size));
}

img {
    max-width:100%;
}

.container {
    max-width: 1200px;
    margin:0 auto;
    padding: calc(3*var(--base-size));
}

.flying-bird {
    position: absolute;
    display:none;
}

.flying-bird img {
    max-width: 50px;
}

nav {
    position:fixed;
    width:100%;
    z-index: 99999;
    transition: all .5s;
}

nav .container {
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    display:inline-block;
    width:20px;
    display: flex;
    flex-direction: column;
    height:20px;
    justify-content: space-between;
}

.nav-toggle div {
    border-top:2px solid white;
}

.button {
    background-color: transparent;
    border:2px solid var(--white);
    color: var(--white);
    padding: var(--base-size) calc(4*var(--base-size));
    border-radius:50px;
    text-decoration: none;
    display: inline-block;
}

.card-holder {
    display: grid;
    grid-template-columns: 1fr;
    gap:calc(8*var(--base-size));
}

.brand-wrapper {
    /* padding: 0 calc(10*var(--base-size)); */
}

.founders-wrapper {
    display:flex;
    flex-direction: column;
    gap: calc(8*var(--base-size));
}

.founders-wrapper .card {
    display: grid;
    grid-template-columns: 1fr;
}

.founders-wrapper .card .column {
    padding: calc(1*var(--base-size));
    text-align: left;
}

.founders-wrapper .card .column .date {
    font-weight: bold;
}

.founders-wrapper .card:first-child .column:nth-child(1) {
    order:2;
}

.founders-wrapper .card:first-child .column:nth-child(2) {
    order:3;
}

.founders-wrapper .card:first-child .column:nth-child(3) {
    order:1;
}

.card {
    background-color: var(--grey-three);
    padding: calc(4*var(--base-size));
    color: var(--black);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: hidden;
}

.card .content {
    font-size: 0.9em;
}

.brand {
    padding: 0;
    background-color: transparent;
}

.brand .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(4*var(--base-size));
    transition: all .5s;
    color: var(--white);
    background-color: var(--blue-four);
}

.brand:hover .content {
    opacity: 1;
}

.brand .content h3 {
    margin-top:0;
}

.brand .image {
    z-index: 1;
}

.main-menu {
    display: none;
    position: absolute;
    top:70px;
    right:0;
    width:100%;
    background-color: var(--blue-one);
    padding:0;
}

.main-menu.mobile-nav-open {
    display: block;
}

nav.scrolled, .main-menu.mobile-nav-open {
    background: rgba(4,26,52,0.95);
}

.main-menu li {
    list-style: none;
    display: block;
}

.main-menu li a {
    color: var(--white);
    text-decoration: none;
    padding: calc(2*var(--base-size));
    display: block;
}

#logo {
    width: 250px;
}

.top-half {
    background: var(--blue-two);
    background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0) 70%, rgba(255,255,255,1)98%, rgba(255,255,255,1)100%), linear-gradient(90deg, var(--blue-one) 0%, var(--blue-three) 65%, var(--blue-two) 100%);
    color: var(--white);
}

.top-half > .container {
    padding-top: 60px;
}

.thinner {
    max-width: 1000px;
    margin: 0 auto;
}

#companies {
    background-image: url(/images/bird3.svg), url(/images/bird2.svg), url(/images/bird1.svg), url(/images/bird4.svg), url(/images/bird1.svg);
    background-repeat: no-repeat;
    background-size: 50px, 30px, 20px, 50px, 50px;
    background-position: 20% 5%, 50% 15%, 70% 49%, 0% 95%, 70% 0%;
}

.bottom-half {
    padding-bottom: calc(10*var(--base-size));
}

#hero {
    width: 100%;
    /* height: 500px; */
    background-image: url(/images/mobile-hero.png);
    background-position: top right;
    background-repeat: no-repeat;
}

#hero .content p {
    font-size: calc(3*var(--base-size));
}

.section {
    padding:calc(15*var(--base-size)) 0 0;
}

.section-title {
    padding-bottom:calc(6*var(--base-size));
    max-width:800px;
    margin:0 auto;
}

.section-title.no-content {
    padding-bottom:0;
}

.section-title h2 {
    margin-top:0;
}

.text-center {
    text-align: center;
}

#footer {
    background-color: var(--black);
    padding: calc(10*var(--base-size)) 0;
    color: var(--white);
}

@media only screen and (min-width: 1200px) {

    .flying-bird {
        display: block;
    }

    #logo {
        width: 300px;
    }

    h1 {
        font-size: calc(10*var(--base-size));
    }

    nav .container {
        display: flex;
        justify-content: space-between;
        padding-top:0;
        padding-bottom:0;
    }

    .nav-toggle {
        display:none;
    }

    .main-menu {
        display: block;
        position: relative;
        top:auto;
        right:auto;
        width:auto;
        background-color: transparent;
        padding:0;
    }
    
    .main-menu.mobile-nav-open {
        display: block;
    }
    
    .main-menu li {
        list-style: none;
        display: inline-block;
    }
    
    .main-menu li a {
        color: var(--white);
        text-decoration: none;
        padding: calc(2*var(--base-size));
        display: block;
    }

    #hero {
        width: 100%;
        height: 500px;
        background-image: url(/images/hero.png);
        background-position: top right;
        background-repeat: no-repeat;
    }

    #hero .content {
        max-width: 70%;
    }

    #hero .content p {
        max-width: 60%;
    }

    .card-holder {
        grid-template-columns: 1fr 1fr;
    }

    .brand {
        position: relative;
    }

    .brand .content {
        position:absolute;
        opacity: 0;
        z-index: 999;
        top:0;
        left:0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: calc(4*var(--base-size));
        transition: all .5s;
        font-size: 0.8em;
    }

    .founders-wrapper .card {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .founders-wrapper .card .column {
        padding: calc(4*var(--base-size));
    }

    .founders-wrapper .card:first-child .column:nth-child(1),
    .founders-wrapper .card:first-child .column:nth-child(2),
    .founders-wrapper .card:first-child .column:nth-child(3) {
        order:unset;
    }

    .top-half > .container {
        padding-top: 100px;
    }

}