:root {
    --bg: oklch(15% 0 0);
    --bg-secondary: oklch(25% 0 0);
    --color: oklch(95% 0 0);
    --accent: oklch(62% 0.2 65);
    --border: oklch(35% 0 0);
    --error: oklch(64.385% 0.18391 37.959);
    --light-border: var(--border);
    --bg-hover: var(--accent);
    --color-inverse: var(--bg);
}

html {
    font-size: 62.5%;
    font-family: sans-serif;
    background-color: var(--bg);
}

body {
    font-size: 1.6rem;
    margin: 0;
    color: var(--color);
    accent-color: var(--accent);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(
        to bottom, 
        oklch(25% 0.1 65) 0%,
        var(--bg) 40%
    );
    background-attachment: fixed;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 128rem;
    width: 100%;
}

main.container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    flex: 1;
}

label, fieldset { 
    margin-top: 3rem; 
}

input, fieldset, textarea, select {
    border: 0.1rem solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--color);
    border-radius: .3rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.5rem oklch(from var(--accent) l c h / 30%);
}

input:not([type=radio]):not([type=checkbox]):not([type=submit]), 
select, 
textarea {
    display: block; 
    width: 100%; 
    max-width: 40rem; 
    padding: 0 .75em; 
    line-height: 2em;
}

textarea { 
    resize: vertical; 
}

input[type=submit] {
    padding: .8em 2.5em; 
    margin-top: 3rem; 
    background-color: var(--accent);
    color: var(--bg); 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 0.05rem; 
    border: none; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

input[type=submit]:hover { 
    background-color: oklch(from var(--accent) l c h / 85%); 
}

input[type=submit]:active { 
    transform: scale(0.98); 
}

select { 
    padding-top: .5em; 
    padding-bottom: .5em; 
}

label { 
    display: block; 
    margin-bottom: .5em; 
    font-weight: bold; 
    letter-spacing: 0.05rem; 
}

legend { 
    font-weight: bold; 
    padding: 0 .5em; 
    color: var(--accent); 
}

input[type=radio] + label, 
input[type=checkbox] + label {
    display: inline-block; 
    margin: 0 1.5em 0 .5em; 
    font-weight: normal;
}

fieldset { 
    padding: 1.5em; 
    max-width: 40rem; 
}

.message { 
    font-size: 1.4rem; 
    margin-bottom: 1rem; 
}

.message.error { 
    color: var(--error); 
    font-weight: bold; 
}

header {
    border-bottom: 0.1rem solid var(--border);
    background-color: oklch(from var(--bg) l c h / 95%);
    backdrop-filter: blur(5px);
    position: sticky; 
    top: 0; 
    z-index: 100;
}

header .container {
    display: flex; 
    justify-content: space-between; 
    align-items: stretch;
}

header a {
    position: relative; 
    padding: 0 2rem; 
    min-height: 6rem;
    display: flex; 
    align-items: center; 
    text-transform: uppercase;
    font-weight: bold; 
    font-size: 1.2rem; 
    letter-spacing: 0.1rem;
    color: var(--color); 
    transition: color 0.3s ease, background-color 0.3s ease;
}

header a::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    opacity: 0;
    content: '';
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header a:hover::after, header a:focus::after {
    opacity: 1;
    transform: scaleY(1);
}

header a:hover {
    color: var(--bg);
    text-decoration: none;
}

header a.active {
    border-bottom: 0.4rem solid var(--accent);
}

header a.active:hover {
    border-bottom: none;
}

header a.logo { 
    margin-left: -2rem; 
    font-size: 1.6rem; 
}

header a.logo::after { 
    display: none; 
}

header a.logo:hover { 
    color: var(--accent); 
    background: none; 
}

nav ul, nav li { 
    all: unset; 
}

nav ul { 
    display: flex; 
    align-items: stretch; 
}

.intro {
    margin-bottom: 6rem;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.intro-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.intro-text p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.intro-image img {
    width: 100%;
    max-width: 25rem;
    border-radius: 1rem;
    border: 0.2rem solid var(--accent);
    box-shadow: 0 0.5rem 2rem oklch(0 0 0 / 50%);
}

ul.cards-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 6rem;
    padding: 0; 
    list-style: none; 
}

.card {
    background-color: var(--bg-secondary);
    border: 0.1rem solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--accent);
    box-shadow: 0 0.5rem 1.5rem oklch(0 0 0 / 50%);
}

.card-img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-bottom: 0.1rem solid var(--border);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 2rem;
}

.card p {
    flex-grow: 1;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.card a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    align-self: flex-start;
}

.socials ul {
    list-style: none; 
    padding: 0; 
    display: flex; 
    gap: 3rem; 
    margin-top: 2rem;
}

.socials a {
    font-size: 1.8rem; 
    border-bottom: 0.2rem solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
    border-color: var(--accent); 
    text-decoration: none; 
    color: var(--color);
}

footer {
    margin-top: auto; 
    padding: 3rem 0; 
    border-top: 0.1rem solid var(--border);
    background-color: oklch(from var(--bg) l c h / 95%);
    font-size: 1.4rem;
}

.footer-content {
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 2rem;
}

.footer-links a {
    margin-left: 2rem; 
    color: var(--color); 
    opacity: 0.6; 
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover { 
    opacity: 1; 
    color: var(--accent); 
    text-decoration: none; 
}

@media screen and (min-width: 768px) {
    .intro-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .intro-text {
        flex: 1;
        padding-right: 4rem;
    }

    .intro-image {
        flex: 0 0 35rem;
    }

    ul.cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 120rem; 
    }

    ul.cards-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 4rem;
    }

    .intro h1 {
        font-size: 4rem;
    }
}

ul.project-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.project-item {
    background-color: var(--bg-secondary);
    border: 0.1rem solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-0.3rem);
    border-color: var(--accent);
    box-shadow: 0 0.5rem 1.5rem oklch(0 0 0 / 50%);
}

.project-image {
    width: 100%;
    height: 15rem;
    border-bottom: 0.1rem solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.project-content h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: oklch(90% 0 0);
}

.project-content a {
    align-self: flex-start;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.05rem;
    border-bottom: 0.2rem solid transparent;
    transition: border-color 0.3s ease;
}

.project-content a:hover {
    border-color: var(--accent);
    text-decoration: none;
}

@media screen and (min-width: 768px) {
    .project-item {
        flex-direction: row;
        min-height: 18rem;
    }

    .project-image {
        width: 25rem;
        flex: 0 0 25rem;
        height: auto;
        border-bottom: none;
        border-right: 0.1rem solid var(--border);
    }
    
    .project-content {
        flex: 1;
        padding: 3rem;
    }
}

.labo-detail h2 {
    border-bottom: 0.2rem solid var(--accent);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    color: var(--accent);
}

.labo-detail h3 {
    color: var(--color);
    margin-top: 2rem;
    font-size: 1.8rem;
}

.labo-detail ul {
    list-style-type: disc;
    padding-left: 2rem;
    line-height: 1.8;
}

.btn-oplossing {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--bg);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0.3rem;
    transition: background-color 0.3s ease;
}

.btn-oplossing:hover {
    background-color: oklch(from var(--accent) l c h / 80%); 
    text-decoration: none;
    color: var(--bg);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-wrapper > p {
    max-width: 60rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-wrapper h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-form {
    width: 100%;
    max-width: 50rem;
    background-color: oklch(from var(--bg-secondary) l c h / 30%); 
    padding: 3rem;
    border-radius: 1rem;
    border: 0.1rem solid var(--border);
    text-align: left; 
}

.contact-form input:not([type=radio]):not([type=checkbox]):not([type=submit]),
.contact-form textarea,
.contact-form select,
.contact-form fieldset {
    max-width: 100%;
}

.contact-form input[type=submit] {
    width: 100%;
}