/*
|--------------------------------------------------------------------------
| Justin Portfolio - Skizophonic/Ellis Stijl
|--------------------------------------------------------------------------
*/
main {
    position: relative;
    z-index: 50; 
}
/* Globale Stijl en Fonts */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Mono', monospace; /* Strakke, technische basis */
    color: #1a1a1a;
    background-color: #f7f7f7;
    line-height: 1.5;
}

/* Custom Cursors */
body, a, button, .project-card, .chaotic-title {
    cursor: url('cursor_default.png'), default !important; /* Default custom cursor */
}

a, button, .project-card, .cta-title {
    cursor: url('cursor_pointer.png'), pointer !important; /* Pointer custom cursor */
}


/* --- Navigatiebalk --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    z-index: 100;
    transition: opacity 1s ease-out;
}
.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
}
.nav-links a {
    margin-left: 25px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}
.nav-links a:hover {
    color: red; /* De digitale accentkleur */
}
.navbar { opacity: 0; transform: translateY(-20px); }
.navbar.loaded { opacity: 1; transform: translateY(0); }


/*
|--------------------------------------------------------------------------
| PRE-LOADER & SPIRAAL TRANSITIE
|--------------------------------------------------------------------------
*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f7f7f7;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    visibility: visible;
    opacity: 1;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text { position: relative; z-index: 20; color: #1a1a1a; pointer-events: none; visibility: hidden; }
.spiral-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; fill: #1a1a1a; z-index: 10; overflow: hidden; }
#spiral { transform-origin: center; transform: scale(0); }
@keyframes spiralGrow { 0% { transform: scale(0); } 100% { transform: scale(3); } }
.is-loading #spiral { animation: spiralGrow 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }

.white-text-overlay {
    position: absolute; z-index: 30; color: white; mix-blend-mode: difference;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100vw; height: 100vh; pointer-events: none;
}

.preloader-text h1, .preloader-text p, 
.white-text-overlay h1, .white-text-overlay p { opacity: 0; transition: opacity 0.5s ease 0.5s; }

.preloader-text h1, .white-text-overlay h1 { font-size: 8vw; font-weight: 800; margin-bottom: 20px; font-family: 'Syne', sans-serif; }
.preloader-text p, .white-text-overlay p { font-size: 1rem; font-family: 'Space Mono', monospace; }


/*
|--------------------------------------------------------------------------
| HOOFDPAGINA INHOUD & TYPOGRAFIE
|--------------------------------------------------------------------------
*/
.hero-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 80px; }

/* Glitch Title (Hero) */
.chaotic-title { font-family: 'Syne', sans-serif; font-size: 8vw; font-weight: 800; position: relative; cursor: pointer; overflow: hidden; }
.glitch-text { display: block; position: relative; color: #1a1a1a; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.chaotic-title::before, .chaotic-title::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: red; overflow: hidden; clip: rect(0, 900px, 0, 0); 
    transition: clip 0.3s, transform 0.3s;
}
.chaotic-title::after { color: cyan; left: 2px; }

/* Glitch Animatie bij Hover (Gesynchroniseerd met 'stableGlitch' Keyframes) */
.chaotic-title:hover .glitch-text { transform: translate(5px, -5px) skewX(5deg); }
.chaotic-title:hover::before { animation: hoverGlitch 0.3s infinite alternate-reverse; }
.chaotic-title:hover::after { animation: hoverGlitch 0.5s infinite alternate-reverse; }

@keyframes hoverGlitch {
    0% { clip: rect(5px, 9999px, 8px, 0); transform: translate(4px, 0); }
    25% { clip: rect(30px, 9999px, 33px, 0); transform: translate(-3px, 0); }
    50% { clip: rect(60px, 9999px, 63px, 0); transform: translate(2px, 0); }
    75% { clip: rect(85px, 9999px, 88px, 0); transform: translate(-5px, 0); }
    100% { clip: rect(5px, 9999px, 8px, 0); transform: translate(4px, 0); }
}

.subtitle { font-family: 'Space Mono', monospace; font-size: 1.2rem; margin-top: 30px; transition: opacity 1s ease-out, transform 1s ease-out; }
.subtitle { opacity: 0; transform: translateY(-20px); }
.subtitle.loaded { opacity: 1; transform: translateY(0); } 

/* --- CONTENT SECTIES --- */
.content-section { max-width: 1400px; margin: 0 auto; padding: 100px 40px; }
.section-heading { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; margin-bottom: 60px; }

/* Scroll Reveal Basisstijl */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }


/*
|--------------------------------------------------------------------------
| OVER MIJ SECTIE (ABOUT)
|--------------------------------------------------------------------------
*/
.about-section { padding-top: 80px; padding-bottom: 80px; background-color: #ffffff; color: #1a1a1a; }

/* Periodieke Glitch op de 'VERSTORING' tekst */
.section-heading .glitch-word { position: relative; display: inline-block; color: #1a1a1a; z-index: 1; }
.section-heading .glitch-word::before, .section-heading .glitch-word::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: red; overflow: hidden; clip: rect(0, 900px, 0, 0);
    z-index: 5; animation: stableGlitch 0.3s infinite alternate-reverse; 
}
.section-heading .glitch-word::before { left: 2px; text-shadow: -2px 0 red; }
.section-heading .glitch-word::after { left: -2px; text-shadow: 2px 0 cyan; animation-duration: 0.5s; }

@keyframes stableGlitch {
    0% { clip: rect(5px, 9999px, 8px, 0); transform: translate(4px, 0); }
    25% { clip: rect(30px, 9999px, 35px, 0); transform: translate(-3px, 0); }
    50% { clip: rect(60px, 9999px, 65px, 0); transform: translate(2px, 0); }
    75% { clip: rect(85px, 9999px, 90px, 0); transform: translate(-5px, 0); }
    100% { clip: rect(5px, 9999px, 8px, 0); transform: translate(4px, 0); }
}

/* --- GRID LAY-OUT (Fixes de kolomposities) --- */
.about-grid {
    display: grid;
    /* NIEUW: Linkerkolom is flexibel, rechterkolom is vaste breedte (voor de foto) */
    grid-template-columns: 1fr 300px; 
    gap: 60px; 
    text-align: left;
    
    border-left: 1px solid #1a1a1a; 
    padding-left: 60px; 
}

.about-text {
    grid-column: 1 / 2; /* Linkerkolom (Tekst + Ringen) */
}
.about-details {
    grid-column: 2 / 3; /* Rechterkolom (Foto + Details) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* TYPOGRAFIE */
.large-text { font-size: 1.2rem; font-weight: 700; margin-top: 40px; margin-bottom: 20px; line-height: 1.6; }
.about-text p { font-size: 1rem; margin-bottom: 15px; }

/* Foto Styling */
.small-photo-container { width: 300px; height: 300px; margin-bottom: 30px; overflow: hidden; border: 4px solid #1a1a1a; transform: rotate(1deg); }
.detail-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-details p { font-family: 'Space Mono', monospace; font-size: 0.9rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #ddd; }


/* --- SKILL RINGEN --- */
.skills-title {
    font-family: 'Space Mono', monospace; /* Strakke, technische stijl */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px; /* Geeft een digitaal gevoel */
    
    /* Ruimte boven de titel en scheiding van de tekst daarboven */
    margin-top: 40px; 
    margin-bottom: 20px; /* Ruimte tussen de titel en de ringen */
}

.skill-rings-container {
    display: flex;
    justify-content: flex-start; 
    gap: 30px; 
    align-items: center;
    margin-top: 70px; 
    margin-bottom: 30px;
    min-height: 80px; /* Zorgt dat er ruimte is voor de ringen */
}

.skill-ring { width: 80px; height: 80px; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 100%; transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: #dddddd; stroke-width: 3.8; stroke-linecap: round; stroke-dasharray: 65, 35;}
.circle { fill: none; stroke: #1a1a1a; stroke-width: 3.8; stroke-linecap: round; stroke-dasharray: var(--skill-level-percentage, 0), 100; transition: stroke-dasharray 3s ease-out; }
.ring-icon-group { transform: rotate(90deg); transform-origin: center; }
.ring-icon-text { fill: #1a1a1a; font-size: 10px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; font-family: 'Syne', sans-serif; }


/*
|--------------------------------------------------------------------------
| WERK (PORTFOLIO) & CTA SECTIE
|--------------------------------------------------------------------------
*/

/* --- WERK OVERZICHT (PORTFOLIO) --- */

.work-grid {
    display: grid;
    /* Drie gelijke kolommen voor projectkaarten */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
    background-color: #ffffff;
    /* Subtiele, vloeiende overgang die de hover netter maakt */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s;
    overflow: hidden;
}

/* Hover effect voor subtiele lift */
.project-card:hover {
    background-color: #e0e0e0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-details {
    padding: 20px 15px;
    text-align: left;
}
.card-details h3 {
    /* FONTS VERWIJDERD HIER. Ze erven nu van de globale h3 (Syne). */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative; /* Noodzakelijk voor de Glitch-on-Hover die we later toevoegen */
}
.card-details p {
    /* FONTS VERWIJDERD HIER. Ze erven nu van de body (Space Mono). */
    font-size: 0.9rem;
    color: #666;
}

/* --- CALL TO ACTION (CTA) SECTIE --- */

.cta-block {
    text-align: center;
    padding: 150px 40px;
}
.cta-title {
    font-family: 'Syne', sans-serif; /* Dit moet Syne blijven */
    font-size: 5vw;
    font-weight: 800;
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.cta-title span {
    transition: color 0.3s;
}
/* Activeert de rood/cyaan glitch op de titel bij hover */
.cta-title:hover span {
    color: red; 
}
.cta-link-wrapper {
    text-decoration: none;
    color: inherit; /* Behoudt de kleur van de h2 */
    display: block;
}
.link-style-btn {
    font-family: 'Syne', sans-serif; /* Dit moet Syne blijven */
    display: inline-block;
    font-weight: 800;
    margin-top: 30px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.link-style-btn:hover {
    color: red; /* Glitch-achtige accentkleur */
}

/* --- NIEUWE REGELS IN style.css: Footer en Contact Pagina Hoogte --- */

/* Zorgt ervoor dat de content op de Contact pagina de viewport vult */
.viewport-height-min {
    min-height: calc(100vh - 80px); /* 80px is ongeveer de hoogte van de navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Minimalistische Footer Stijl */
.footer-block {
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: #666;
    margin-top: 50px;
}


/*
|--------------------------------------------------------------------------
| CONTACT FORMULIER SECTIE
|--------------------------------------------------------------------------
*/

#contact-form .reveal-on-scroll {
    opacity: 1 !important; /* Dwingt zichtbaarheid af */
    transform: translateY(0) !important; /* Verwijdert de verschuiving */
    transition: none !important; /* Zet de overgang uit */
}
.contact-section {
    /* Dwing de sectie onder de vaste navbar te beginnen */
    margin-top: 80px; 
    
    /* Zorg voor voldoende witruimte, maar voorkom dat de footer uit beeld valt */
    padding-top: 60px; 
    padding-bottom: 60px;
    
    /* Centreer de inhoud verticaal op de pagina */
    min-height: calc(100vh - 80px); /* Garandeert dat de inhoud minstens de viewport vult */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    max-width: 600px;
    margin: -30px auto 50px auto; /* Centreer en geef ruimte */
    text-align: center;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.full-width {
    grid-column: 1 / -1; /* Zorgt dat elementen de volledige breedte innemen */
}

.form-group label {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    padding: 15px;
    background-color: transparent;
    border: 1px solid #1a1a1a; /* Strakke, zwarte rand */
    color: #1a1a1a;
    transition: border-color 0.3s;
    resize: vertical; /* Alleen verticaal herschalen toestaan */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: red; /* Digitale accentkleur bij focus */
}

/* Stijl voor de Submit Knop */
.submit-btn {
    width: 100%;
    margin-top: 30px;
    background-color: #1a1a1a;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}
.submit-btn:hover {
    background-color: red; /* Glitch-kleur op hover */
    color: white;
}

/* --- NIEUWE REGELS: CONTACT PAGINA GRID --- */

.contact-grid-container {
    /* Maak de hele sectie een twee-koloms grid */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px; /* Ruimte tussen het info blok en het formulier */
    max-width: 1200px; /* Maak het breder om de linkerkant te vullen */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    
    /* Vaste lijn tussen de kolommen */
    border-left: 1px solid #1a1a1a;
    padding-left: 60px;
}

/* De linkerkolom */
.contact-info-block {
    padding-top: 100px; /* Lijn uit met het formulier */
}

.section-heading-small {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.info-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.social-links a {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
}

.social-links a:hover {
    color: red;
}

/* De rechterkolom (formulier wrapper) */
.contact-form-wrapper {
    /* Zorg dat het formulier rechts goed start */
    padding-top: 40px; 
}

/* Overwrite de centrering van de sectie voor deze pagina */
.contact-section .section-heading,
.contact-section .contact-subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}
/* --- NIEUWE FIX REGELS IN style.css --- */

/* Fix: Zorg dat de hoofdinhoud altijd onder de vaste navigatie begint */
.main-content {
    /* Hoogte van de navbar is ongeveer 80px. We voegen die marge toe aan de top. */
    padding-top: 80px; 
    min-height: 100vh; /* Zorgt dat de main altijd de hele hoogte beslaat */
}

/*
|--------------------------------------------------------------------------
| VIDEO PAGINA STYLING
|--------------------------------------------------------------------------
*/

.video-section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.video-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    max-width: 800px;
    margin: -30px auto 70px auto; 
    text-align: center;
}

.video-grid {
    display: grid;
    /* Twee kolommen voor grotere schermen */
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    text-align: left;
    margin-bottom: 40px;
}

/* Zorgt ervoor dat embedded video's responsief zijn en hun verhouding behouden */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #1a1a1a; /* Strak kader om de video */
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}
/* --- FIX: GARANDEER ZICHTBAARHEID OP STATISCHE PAGINA'S --- */

/* Deze regels zorgen ervoor dat als JS niet wordt geladen (op bijv. contact.html, video.html), 
   de elementen direct zichtbaar zijn, in plaats van op opacity: 0 te blijven hangen. */
   .reveal-on-scroll {
    /* Dwingt zichtbaarheid af op pagina's zonder script.js */
    opacity: 1 !important; 
    transform: translateY(0) !important; /* Verwijdert de verschuiving */
    transition: none !important; /* Zet de overgang uit */
}

/*
|--------------------------------------------------------------------------
| VIDEO PAGINA: BANNER EN FILTERS
|--------------------------------------------------------------------------
*/

/* Video Banner */
.video-hero-section {
    position: relative;
    height: 70vh; /* Geef de banner een flinke hoogte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Maak de video donker voor witte tekst */
}

.chaotic-title-video {
    font-family: 'Syne', sans-serif;
    font-size: 6vw;
    font-weight: 800;
    color: white; /* Tekst is wit over de donkere video */
    position: relative;
    z-index: 10;
    text-align: center;
}
.quote-section {
    /* FIX: Gebruik marge in plaats van padding om direct na de banner te beginnen */
    margin-top: 0; 
    padding-top: 100px; 
    padding-bottom: 50px;
    text-align: center;
}

/* Filter Navigatie Stijl */
.filter-nav-section {
    padding-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.filter-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid #1a1a1a; /* De dikke lijn onder de knoppen */
    padding-bottom: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    font-family: 'Space Mono', monospace; /* Strakke, technische letters */
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    margin: 0 10px;
    color: #1a1a1a;
    font-weight: 400; /* Standaard dunner */
    cursor: url('cursor_pointer.png'), pointer;
    transition: font-weight 0.2s, color 0.2s;
    position: relative;
}

/* Dikgedrukt wanneer actief */
.filter-btn.active {
    font-weight: 700; /* Dikgedrukt wanneer ingedrukt/actief */
}

.filter-btn:hover {
    color: red; /* Glitch-kleur op hover */
}

/* Video Inhoud Grid */
.video-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.video-item h3 {
    font-size: 1.2rem;
    margin-top: 10px;
    font-family: 'Syne', sans-serif;
}

/* --- NIEUWE REGELS: VIDEO PREVIEW THUMBNAIL --- */

.video-preview-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #1a1a1a;
    cursor: url('cursor_pointer.png'), pointer;
    
    /* NIEUW: Bereid de wrapper voor om de thumbnail als achtergrond te tonen */
    background-size: cover;
    background-position: center;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* De daadwerkelijke video/iframe container */
.video-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    transition: opacity 0.5s;
}

/* Optionele Play Knop Stijl */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    text-align: center;
    pointer-events: none; /* Zorgt dat je op de wrapper klikt */
    transition: transform 0.3s;
}

/* Subtiele animatie bij hover */
.video-preview-wrapper:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}


/*
|--------------------------------------------------------------------------
| GRAFISCHE PAGINA: GALERIJ & LIGHTBOX
|--------------------------------------------------------------------------
*/

.thumbnail-gallery {
    padding-top: 50px;
    padding-bottom: 100px;
}

.gallery-grid {
    display: grid;
    /* 4-koloms raster voor thumbnails */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
.item-info h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.item-info p {
    font-size: 0.8rem;
    color: #333;
}

/* --- LIGHTBOX (POP-UP) STYLING --- */

.lightbox {
    display: none; /* Standaard verborgen */
    position: fixed;
    z-index: 1000; /* Zorg dat dit boven alles staat */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Donkere, semi-transparante achtergrond */
}

.lightbox-content {
    background-color: #fefefe;
    margin: 5% auto; /* Lichte marge bovenaan */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    position: relative;
    animation: fadeIn 0.3s;
}

.close-btn {
    color: #1a1a1a;
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: red;
    text-decoration: none;
}

.lightbox-inner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Afbeelding 2/3, Details 1/3 */
    gap: 40px;
    padding-top: 40px;
}

#lightbox-main-img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}
.lightbox-details {
    text-align: left;
    padding-right: 20px;
}
.lightbox-details h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.lightbox-details p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from { opacity: 0 } 
    to { opacity: 1 }
}

/*
|--------------------------------------------------------------------------
| 3D & 2D PAGINA STYLING (Lichte, Minimale Stijl)
|--------------------------------------------------------------------------
*/

/* Zorgt ervoor dat de navigatie ook licht blijft (dit overschrijft eventuele dark-theme instellingen) */
.navbar {
    background: #f7f7f7;
    color: #1a1a1a;
}
.navbar a {
    color: #1a1a1a;
}

/* Hoofd Layout: Simpele, strakke header */
.three-d-workstation {
    /* Gebruik % breedte om uit de viewport te blijven */
    max-width: 95%; 
    padding-top: 150px; 
    padding-bottom: 50px;
    display: flex; 
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto; /* Centreer de sectie */
}

.three-d-workstation .section-heading {
    font-size: 4rem; 
    margin-bottom: 10px;
    color: #1a1a1a;
}
.three-d-workstation .three-d-subtitle {
    font-size: 1.1rem;
    color: #333;
    max-width: 700px;
    margin-bottom: 40px;
}

/* 3D CANVAS STYLING */
#three-container {
    height: 300px; 
    width: 300px; 
    border: 1px dashed #cccccc; 
    margin: 30px auto; 
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(5deg);
}

/* --- PROJECT GALERIJ (2 Kolommen, GESTABILISEERD) --- */
.three-d-gallery-grid {
    padding-top: 0;
    padding-bottom: 100px;
    display: grid;
    /* Twee gelijke kolommen garanderen */
    grid-template-columns: 1fr 1fr; 
    gap: 20px; /* Kleinere gap */
    
    /* FIX: Gebruik een percentage breedte om overflow te voorkomen */
    max-width: 1200px; 
    width: 95%; 
    margin: 0 auto;
}

.grid-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s;
    transform-style: preserve-3d;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.grid-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotateX(1deg) rotateY(-1deg);
}

/* Detail Tekstblok (Technische stijl) */
.detail-text-block {
    background-color: #ffffff; /* Zwarte achtergrond voor contrast */
    color: #00ff66; /* Groene tekstkleur voor technische look */
    border: 1px solid #ddd; /* Groene rand */
    padding: 30px;
    font-family: 'Space Mono', monospace;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    text-align: left;
}
.detail-text-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a; /* Lichtere tekstkleur voor body */
}
.detail-text-block a {
    color: #1a1a1a;
    font-weight: 700;
}
/* --- NIEUWE REGELS: OVERLAY VOOR TITELS OP TEGELS --- */

.three-d-gallery-grid .grid-item {
    /* Zorgt ervoor dat de a-tag zich als een blok gedraagt */
    display: block; 
    text-decoration: none; /* Haalt de onderstreping van de link weg */
    color: inherit;
}

.item-overlay-simple {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    /* Donkere balk onderin voor leesbaarheid van de witte tekst */
    background: rgba(0, 0, 0, 0.7); 
    color: white;
}

.item-overlay-simple h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

/* Zorgt ervoor dat de afbeeldingen correct worden weergegeven in de a-tag */
.grid-item img {
    height: 100%;
    /* De afbeelding moet zich relatief tot de link positioneren */
    position: relative;
    z-index: 1; 
}