/* ======================================= */
/* 1. Basis & Variabelen */
/* ======================================= */
:root {
    --bg-color: #1a1a1c;
    --text-color: #ffffff;
    --accent-color: #a4a4b5;
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden; 
    line-height: 1.4;
    min-height: 100vh;
}

/* Zorg dat de afbeeldingen de kaders vullen */
.media-placeholder img, 
.photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dit zorgt ervoor dat de foto niet uitgerekt wordt */
    display: block;
    border-radius: 12px;
}

.media-placeholder {
    background-color: transparent; /* Verwijder de grijze achtergrond */
    min-height: auto; /* Laat de foto de hoogte bepalen of zet op bijv 500px */
}

/* ======================================= */
/* 2. Achtergrond Effecten & Cursor */
/* ======================================= */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 99;
}

.blob {
    position: absolute;
    background: radial-gradient(circle, rgba(42, 42, 46, 0.8) 0%, rgba(26, 26, 28, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    top: -10vw;
    left: -10vw;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    bottom: 10%;
    right: -5vw;
}

.cursor-light {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 0.15s ease-out;
}

/* ======================================= */
/* 3. Navigatie & Algemene Elementen */
/* ======================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-logo {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.icon-circle {
    width: 15px;
    height: 15px;
    border: 1px solid #fff;
    border-radius: 50%;
}


/* ======================================= */
/* 4. Hero Sectie (Home) */
/* ======================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

.filled {
    color: var(--accent-color);
    -webkit-text-stroke: 0px;
}

.subtitle {
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--accent-color);
    max-width: 500px;

    /*Definitieve fix voor het centreren van de subtitle*/
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    
    
}

.cta-group {
    margin-top: 50px;
    display: flex;
    gap: 40px;
    justify-content: center; /*Dit stukje code zorgt ervoor dat de 2 teksten gecentreerd staan*/
}

.btn-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-link:hover {
    opacity: 0.6;
    transform: translateX(5px);
}

/* ======================================= */
/* 5. Work Lijst Sectie */
/* ======================================= */
.work-section {
    padding: 100px 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.work-header {
    margin-bottom: 60px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.work-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 0.8;
}

.project-count {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-list {
    list-style: none;
}

.project-list li {
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    text-decoration: none;
    color: white;
    transition: padding-left 0.4s ease;
}

.project-link:hover {
    padding-left: 20px;
}

.project-name {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    transition: all 0.4s ease;
}

.project-link:hover .project-name {
    color: white;
    -webkit-text-stroke: 1px transparent;
}

.project-category {
    font-size: 1rem;
    color: #666;
    text-transform: capitalize;
}

/* ======================================= */
/* 6. Project Detail Pagina's */
/* ======================================= */
.project-detail {
    display: none; 
    padding: 100px 50px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.project-header-detail {
    margin-bottom: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.project-info {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.project-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: none;
}

/* Intro Grid (Samenvatting) */
.project-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.intro-column h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.intro-column p, .intro-column li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
}

.intro-column ul {
    list-style: none;
    padding: 0;
}

.project-media {
    margin: 80px 0;
}

.media-placeholder {
    width: 100%;
    background-color: #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 500px;
}

.project-detail-block {
    margin-bottom: 100px;
}

.project-detail-block h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Detail Grid voor foto en tekst */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin: 50px 0;
    align-items: center;
}

.small-image {
    min-height: 300px;
}

.project-footer-nav {
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.next-project {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-align: right;
}

.next-project:hover {
    color: white;
}

.next-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-top: 5px;
}

/* ======================================= */
/* 7. Responsive Aanpassingen (Netter op Mobiel) */
/* ======================================= */
@media (max-width: 768px) {
    nav {
        padding: 20px 20px;
    }

    .work-section, .project-detail {
        padding: 50px 20px;
    }
    
    /* Projectlijst: kleinere padding */
    .project-link {
        padding: 20px 0;
    }
    
    .project-link:hover {
        padding-left: 10px; /* Minder ver schuiven */
    }

    /* Detailpagina: Stacks kolommen op */
    .project-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-detail-block h4 {
        font-size: 1.8rem;
    }
    
    /* Hero knoppen onder elkaar */
    .cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .btn-link:hover {
        transform: none; /* Geen schuif-effect op kleine schermen */
    }
    
    .next-title {
        font-size: 1.5rem;
    }
}

/* ======================================= */
/* 8. Taal Switcher Stijlen (Nieuw) */
/* ======================================= */

.language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px;
    user-select: none;
    transition: background-color 0.3s;
}

.language-switch:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-option {
    color: var(--accent-color);
    transition: color 0.3s;
}

.lang-option.active {
    color: var(--text-color);
}

/* De knop zelf */
.switch-indicator {
    width: 35px;
    height: 18px;
    background-color: #333;
    border-radius: 9px;
    position: relative;
    transition: background-color 0.3s;
}

.switch-indicator::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
}

/* Engels geactiveerd (verschuif de knop naar rechts) */
body.en .switch-indicator::before {
    transform: translateX(17px); 
}

/* ======================================= */
/* 9. About Me Sectie Stijlen (Nieuw) */
/* ======================================= */

.about-section {
    display: none; /* Wordt met JS getoond */
    padding: 100px 50px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Tekst links, Foto rechts */
    gap: 80px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.about-header h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #ccc;
}

.photo-area {
    width: 110%;
    aspect-ratio: 1.3 / 1; /* Maak een vierkant */
    background-color: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
}

.photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive aanpassing About Me */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Zorg dat de foto bovenaan komt op mobiel */
    .photo-area {
        order: -1; 
        height: 300px;
    }
}


/* ======================================= */
/* 10. Scroll Indicator (Verbeterd Pijltje) */
/* ======================================= */

.scroll-indicator {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: var(--text-color); /* Maak de hele indicator wit */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 50;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-indicator .label {
    font-size: 0.8rem; /* Kleinere tekst */
    color: var(--accent-color);
    letter-spacing: 2px;
}

.scroll-indicator .arrow {
    display: block;
    font-size: 2.5rem; /* Grotere pijl */
    line-height: 1;
    font-weight: 300;
    color: var(--text-color);
    animation: floating-arrow 1.5s infinite ease-in-out; /* Nieuwe, vloeiendere animatie */
}

@keyframes floating-arrow {
    0% {
        transform: translateY(0); /* Startpositie */
    }
    50% {
        transform: translateY(15px); /* Beweeg 15px naar beneden */
    }
    100% {
        transform: translateY(0); /* Terug naar startpositie */
    }
}

/* Responsive aanpassing: iets kleiner op mobiel */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
    .scroll-indicator .arrow {
        font-size: 2rem;
    }
}

:root {
    --bg-color: #1a1a1c;
    --text-color: #ffffff;
    --accent-color: #a4a4b5;
    --border-color: rgba(255, 255, 255, 0.1);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden; 
    line-height: 1.4;
}

/* --- ACHTERGROND & CURSOR --- */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 99;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
}

.blob-1 { width: 60vw; height: 60vw; top: -10vw; left: -10vw; background: radial-gradient(circle, rgba(42, 42, 46, 0.8) 0%, rgba(26, 26, 28, 0) 70%); }
.blob-2 { width: 50vw; height: 50vw; bottom: 10%; right: -5vw; background: radial-gradient(circle, rgba(42, 42, 46, 0.8) 0%, rgba(26, 26, 28, 0) 70%); }

.cursor-light {
    position: fixed;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* --- NAVIGATIE --- */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px;
}

.switch-indicator {
    width: 35px; height: 18px;
    background-color: #333;
    border-radius: 9px;
    position: relative;
}

.switch-indicator::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

body.en .switch-indicator::before { transform: translateX(17px); }

/* --- HERO --- */
.hero { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
h2 { font-size: clamp(2rem, 8vw, 4rem); text-transform: uppercase; line-height: 1; }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
.filled { color: var(--accent-color); -webkit-text-stroke: 0px; }
.subtitle { margin: 30px auto; color: var(--accent-color); max-width: 500px; }
.cta-group { display: flex; gap: 40px; }
.btn-link { text-decoration: none; color: #fff; font-weight: 600; }

/* --- WORK SECTION --- */
.work-section { padding: 100px 50px; max-width: 1300px; margin: 0 auto; }
.work-title { font-size: clamp(4rem, 15vw, 10rem); font-weight: 800; }
.project-list { list-style: none; }
.project-link { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; text-decoration: none; color: white; border-top: 1px solid var(--border-color); }
.project-name { font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); }

/* --- DETAILS & ABOUT --- */
.project-detail, .about-section { display: none; padding: 100px 50px; max-width: 1000px; margin: 0 auto; }
.project-intro-grid, .about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; margin-top: 50px; }

/* --- IMAGE FIXES --- */
.media-placeholder, .photo-area {
    width: 100%;
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
}

.media-placeholder img, .photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-indicator .arrow { display: block; font-size: 2.5rem; animation: float 1.5s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }