@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

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

body {
    margin: 0;
    padding: 0;
}

img,
video {
    width: 100%;
    display: block;
}


h1 {
    font-size: 78.54px;
}

h2 {
    font-size: 58px;
}

h3 {
    font-size: 44.2px;
    color: #DBCFB0;
}

h4 {
    font-size: 33.16px;
}

p,
li {
    font-size: 13px;
}


nav {
    position: fixed;
    /* blijft bovenaan het scherm tijdens scrollen */
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 2%;
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
    /* altijd boven andere content */
    background: rgba(0, 0, 0, 0.4);
    /* transparant zwart */
    backdrop-filter: blur(10px);
    /* blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* voor Safari */
    transition: background 0.3s ease, padding 0.3s ease;
}

/* Optioneel: kleiner maken bij scroll */
nav.scrolled {
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
}

nav ul {
    display: flex;

}

nav ul.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    /* 50% transparant zwart */
    ;
}

nav ul li {
    list-style: none;
    margin-left: 32px;
    font-size: 16px;
    font-weight: 600;
}

nav a {
    position: relative;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background-color: #90B494;
    transition: width 0.4s ease;
}

nav a:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    /* hoogte van hamburger */
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

/* gelijkmatige spacing tussen de drie balken */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}


header {
    position: relative;
    width: 100%;
    min-height: auto;
    /* Allow the image to set the height */
    background: none;
    padding: 0;
    display: block;
    overflow: hidden;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Optioneel: tekst binnen hero beter schalen */
header h1 {
    font-size: clamp(2rem, 6vw, 78.54px);
}

header h2 {
    font-size: clamp(1.5rem, 4vw, 58px);
    margin-top: -2vh;
    /* iets flexibeler */
}


main h2 {
    color: #BFC8AD;
    text-align: center;
    margin: 2vh 0 3vh;
    /* Changed from 6vh to 2vh */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

section article p {
    margin-bottom: 8px;
}

section.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 5vh 0;
    text-align: center;
}

section.container article {
    position: relative;
    padding: 40px 20px;
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vh;
    max-width: 300px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.blob svg {
    width: 100%;
}


.aboutme h2 {
    text-align: center;
    color: #BFC8AD;
}

.about-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6vh;
}

.about-container aside {
    position: relative;
}

.about-image img {
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 16px;
}

.about-text {
    max-width: 500px;
    text-align: left;
}

.about-text ul {
    margin-left: 20px;
}


#portfolio {
    margin: 6vh auto;
    max-width: 1440px;
    padding: 0 5%;
}

#portfolio h2 {
    color: #BFC8AD;
    text-align: center;
    margin: 4vh 0 2vh;
}

#portfolio h3 {
    margin-bottom: 8px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 6vh;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
    height: auto;
    object-fit: contain;
}

.portfolio-card figcaption {
    padding: 12px;
    font-size: 13px;
    text-align: center;
}


.contact-form {
    max-width: 560px;
    width: 100%;
    margin: 40px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #BFC8AD;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    background: #f9f9f7;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #90B494;
    box-shadow: 0 0 0 2px rgba(144, 180, 148, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #90B494;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #7ea684;
    transform: translateY(-2px);
}

.contact-container.split {
    max-width: 1440px;
    margin: 6vh auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text {
    position: relative;
}

.contact-text h1 {
    color: #BFC8AD;
    margin-bottom: 12px;
}

.contact-text p {
    max-width: 400px;
}

.contact-blob {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 420px;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

.contact-blob svg {
    width: 100%;
}


footer {
    background-image: url("../images/footer.svg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 300px;
    padding: 60px 20px;
    text-align: center;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10%;
}

footer img {
    width: 60px;
}


@media (max-width: 768px) {

    /* 1. Header Fix: Remove background images and forced heights */
    header {
        min-height: auto;
        background-image: none !important;
        padding-top: 75px;
        /* Creates space for the fixed navigation */
        display: block;
    }

    .header-banner {
        width: 100%;
        height: auto;
        display: block;
    }

    /* 2. Grid & Layout Adjustments */
    section.container,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* 3. Navigation Adjustments */
    nav {
        padding: 16px 2%;
        min-height: 60px;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 5%;
        top: 15px;
    }

    nav ul {
        position: fixed;
        top: 60px;
        right: 0;
        width: 220px;
        height: auto;
        padding: 20px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    nav ul.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .contact-container.split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* 1. Typography scaling */
    h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    /* 2. Header Mobile spacing */
    header {
        padding-top: 60px;
    }

    /* 3. Remove Blobs on small screens to keep it clean */
    .blob,
    .contact-blob {
        display: none;
    }

    .about-image img {
        max-width: 100%;
    }

    .socials {
        margin-top: 40px;
        gap: 20px;
    }

    footer img {
        width: 48px;
    }
}