
:root {

    /* --------- Hero --------- */

    /* Nav height */
    --nav-height: 115px;

}





/*         Nav         */

nav {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;

    padding-top: 0.5vh;
    
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    
    height: var(--nav-height);
    transition: height 0.3s cubic-bezier(0.25,0.1,0.25,1);
    overflow: hidden;
}

nav ul {
    position: relative;
    display: flex;
    width: var(--content-width);
    margin: 0 auto;
    list-style-type: none;
}

nav li {
    display: flex;
}

nav a {
    color: var(--white);
    transition: color 0.2s ease-in-out;
    margin: auto 0;
}

nav.light a {
    color: var(--blue-main);
    transition: color 0.2s ease-in-out;
}

nav a:hover {
    color: var(--blue-accent);
}

nav .logo { 
    height: var(--nav-height);
    margin-right: auto; 
}

nav .logo a { 
    width: 170px;
}

nav #logo_svg {
    display: block;
    fill: var(--white);
    transition: fill 0.2s ease-in-out;
}

nav.light #logo_svg {
    fill: var(--blue-main);
    transition: fill 0.2s ease-in-out;
}

nav .link {
    height: calc(var(--nav-height));
    margin-left: 1.6vw;

    font-family: 'Oswald', Arial, sans-serif;
    font-size: 25px;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.03em;
}

nav .hamburger {
    display: flex;
    position: absolute;
    top: 0px;
    right: 0px;
    height: var(--nav-height);

    display: none;
}

nav.open {
    height: calc(var(--nav-height) * 4);
}

nav.open ul {
    flex-wrap: wrap;
}

nav.open .link {
    display: flex;
    width: 100%;
    margin-left: 0;
}







/*         Hero         */

#hero {
    height: 690px;
    background-color: var(--blue-dark);
    padding-top: var(--nav-height);
    z-index: 0;
}

.inner-hero {
    margin: 0 auto;
    height: 100%;
    width: var(--content-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-hero { width: 48%; }

.inner-hero h1 {
    font-size: 85px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
}

.inner-hero h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    margin-top: 16px;
    margin-bottom: calc(var(--nav-height) * 0.4);
    color: #959ca8;
}

.inner-hero a {
    color: #c1c5cd;
}

.inner-hero a:hover {
    color: var(--blue-accent);
}

.arduino {
    width: 450px;
    margin-right: -1.3%;
    margin-bottom: calc(var(--nav-height) * 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0% { transform: translatey(0px) }
	50% { transform: translatey(-10px) }
	100% { transform: translatey(0px) }
}







/*         Course description         */ 


#course {
    width: var(--content-width);
    margin: 100px auto;
    display: flex;
    flex-wrap: wrap;
}

#course img { width: 530px; }

.desc-margin { margin-bottom: 40px; }

.desc-text {
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    margin-left: 85px;
}

.desc-text h2 {
    margin-bottom: 20px;
}

