﻿@font-face {
    font-family: Typo-Slab;
    src: url('assets/fonts/typo-slab.light.otf');
}

@font-face {
    font-family: Mountella-Trial;
    src: url('assets/fonts/mountella-trial.extra-bold.ttf');
}

:root {
    --bg: #ffffff;
    --bg-light: #fcfcf4;
    --accent1: #dce1c1;
    --accent2: #fad6a1;
    --accent2-light: #fbeedb;
    --contour-color: #3C1E06;
    --card: var(--white);
    --white: #ffffff;
    --black: #252422;
    --gray-light: #eeeeee;
    --shadow-medium: rgba(12, 20, 24, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
    --pad: 3vw;
    --title-font: Mountella-Trial;
    --text-font: sans-serif;
    --border-tickness: 2px;
    --standard-border: var(--border-tickness) solid var(--contour-color);
    --flip-max-width: 600px;
    --nav-bar-height: 77px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;

    color: var(--black);
    font-family: var(--text-font);
    font-size: 20px;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
    color: inherit;
}

section,
header {
    border-bottom: 2px solid var(--black);
    scroll-margin-top: var(--nav-bar-height);

}

h1 {
    font-size: 48px;
    font-family: var(--title-font);
    text-transform: uppercase;
    word-break: break-word;
}

h2 {
    font-size: 48px;
    font-family: var(--title-font);
    text-transform: uppercase;
    text-align: center;
    padding: 3vw;
    margin: 0;
}

h3 {
    font-size: 24px;
}

strong {
    font-style: italic;
    font-weight: normal;
}

.emphasize {
    font-size: 2.5vw;
    font-family: var(--title-font);
    text-transform: uppercase;
    font-style: italic;
    text-align: center;

    padding: 8px 24px;
    border-radius: 16px;
    border: var(--standard-border);
}

.quote {
    font-style: italic;
    text-align: center;
    font-family: var(--title-font);
    text-transform: uppercase;
}

.vertical-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    align-content: stretch;
}

.vertical-split-side {
    border-right: var(--standard-border);
    padding: var(--pad);
    flex: 1 1 0;
    min-width: 0;
}

.vertical-split-side:last-child {
    border-right: none;
}

/* Navigation bar */
nav {
    width: 100%;
    height: var(--nav-bar-height);
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: var(--standard-border);
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-around;
    justify-items: center;
    align-items: stretch;
    font-weight: bold;
}

.nav-button {
    /*border: var(--standard-border);*/
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.nav-button img {
     height: 40px; /* Adjust as needed */
     display: block;
 }

/* Hero */
#hero-section .vertical-split-side {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero-section .vertical-split-side:first-child {
    background: var(--accent1);
}


#hero-section .vertical-split-side img {
    max-height: 70%;
    max-width: 90%;
    object-fit: contain;
    border: var(--standard-border);
}

.hero-lead {
    margin-bottom: 24px;
}
#hero-section a {
    background: var(--accent1);
    font-style: normal;
}

#hero-section a:hover {
    box-shadow: 4px 4px 0 var(--accent2);
}

/* Why Levee */
#why-levee-section {
    display: flex;
    flex-direction: column;
    background: var(--accent2-light);
    padding-bottom: var(--pad);
}

#why-levee-section h2 {
    border-bottom: var(--standard-border);
}

#why-levee-section .vertical-split{
    padding: 0 var(--pad);
}

#why-levee-section .vertical-split-side {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 8vw;
}

#why-levee-section .vertical-split-side .emphasize{
    background: var(--bg-light);
}

#why-levee-section .vertical-split-side:hover {
    background: var(--bg-light);
    scale: 1.05;
    border: var(--standard-border);
    box-shadow: 0 0 4px 0 var(--black);
}

#why-levee-section .vertical-split-side:hover h3{
    background: var(--accent1);
}

/* Projecten */
#project-section {
    background-size: 64px 64px;
}

#project-section .vertical-split-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

#project-section .vertical-split-side:first-child h2 {
    border-bottom: var(--standard-border);
}

#project-section .vertical-split-side:last-child {
    scroll-margin-top: calc(var(--nav-bar-height) - var(--border-tickness));
    background: var(--accent2);
}

#project-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: var(--pad);
}

.project-card {
    /*background: var(--bg-light);*/
    border-bottom: var(--standard-border);
    padding: 8px;
}

.project-card h3 {
    font-family: var(--title-font);
    margin: 0;
    text-transform: uppercase;
}
.project-card p {
    font-family: var(--title-font);
    font-size: 16px;
}

.project-card:hover {
    /*background: var(--accent1);*/
    border: var(--standard-border);
}

.project-details {
    display: flex;
    flex-direction: column;
    padding: var(--pad);
}

.project-details .emphasize {
    background: var(--bg-light);
}

.yt-video {
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    background: var(--accent3);
}

.project-details ul {
    list-style: none;
    font-size: 16px;
    font-weight: bold;
}

.project-details li {
    margin-bottom: 8px;
}

.project-details li:before {
    content: "+ ";
}

.project-details .media-container {
    min-height: 200px;
    /*aspect-ratio: 16/9;*/
    /*background: var(--black);*/
    /*border: var(--standard-border);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-details p a {
    /*background: var(--accent1);*/
    font-style: italic;
    text-decoration: underline;
}


#project-2,
#project-3 {
    display: none;
}



/* Work flow */
#work-flow {
    background: var(--accent1);
    height: 60vh;
    min-height: 600px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#work-flow h2 {
}

.flip-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;

    flex-grow: 1;
    padding: 0 var(--pad) var(--pad);
    /*border: var(--standard-border);*/
}

.flip-card {
    perspective: 800px;
    position: relative;
    min-width: 200px;
    flex: 1 1 0;
}

.flip-card .emphasize {
    background: var(--accent2);
    margin: auto;
}

.flip-card-num {
    font-weight: bold;
    font-size: 4vw;
    font-style: italic;
    font-family: var(--title-font);
    display: inline-block;
    margin: auto;
    border-bottom: var(--standard-border);
}
.front, .back {
    position: absolute;
    inset: 0;
    border: 2px solid var(--black);
    background: var(--bg);
    box-shadow: 8px 8px 5px var(--black);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    backface-visibility: hidden;
    transition: transform .6s;
}

.back {
    transform: rotateX(180deg);
}

.flip-card-container .front  img {
    max-width: 80%;
}

.flip-card:hover .front {
    transform: rotateX(180deg);
}
.flip-card:hover .back {
    transform: rotateX(360deg);
}

.flip-over-sign {
    font-size: 24px;
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

/* About section */
#about-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#story {
    flex-grow: 1;
    max-width: 1000px;
    align-self: center;
    border: var(--standard-border);
    margin: var(--pad);
}

#story #title-block {
    padding: var(--pad)
}

#story h2 {
    padding: 0;
}

#story .vertical-split {
    padding-bottom: var(--pad);
}

#story .vertical-split-side {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4px var(--pad);
}

#story .vertical-split p {
    /*font-size: 16px;*/
}

#story .quote span{
    background-color: var(--accent1);
    font-size: 20px;
}

#story .vertical-split-side div {
    flex-grow: 1;
    overflow: hidden;
    justify-content: center;
    /*align-items: center;*/
    display: flex;
}

#story .vertical-split-side img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin-top: var(--pad);
    border: var(--standard-border);
}

/* SKILLS */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    flex-grow: 1;
    border-right: var(--standard-border);
    border-top: var(--standard-border);
    padding: 8px 40px;
    background: var(--accent2-light);
    text-align: center;
}
.skill p {
    margin: 0;
    font-style: italic;
}

/* Contact section */
#contact-section {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    justify-content: center;
    padding: var(--pad);
    height: 50vh;
    min-height: 600px;
    background: var(--accent1);
}

#contact-container {
    background: var(--bg);
    border: var(--standard-border);
    padding: var(--pad);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
}

#contact-container p {
    padding-left: var(--pad);
}

#contact-container .emphasize {
    background: var(--accent2);
}

footer {
    margin-left: calc(50% - 50vw);
    text-align: center;
    padding: 40px 0;
    opacity: .6;
    font-size: 14px;
}

@media (max-width: 647px) {
    .vertical-split {
        flex-direction: column;
    }

    .vertical-split-side {
        border-right: none;
        border-top: var(--standard-border);
        flex-grow: 0;
        flex-basis: auto;
    }

    .vertical-split-side:first-child {
        border-top: none;
    }
    .nav-button {
        font-size: 16px;
    }
    #hero-section {
        flex-direction: column-reverse;
    }
    #hero-section .vertical-split-side:last-child {
        border-top: none;
        border-bottom: var(--standard-border);
    }
    h1 {
        font-size: 11vw;
    }
    h2{
        font-size: 8vw;
    }
    .emphasize {
        font-size: 4vw;
    }
    #contact-section {
        height: 80vh;
    }
    #contact-container {
        padding: 20px;
    }
}