/* ==========================================================================
   Modern Editorial Photography Portfolio - Dynamic Theme System
   ========================================================================== */

/* STANDAARD: Premium Warm Dark Mode */
:root {
    --bg-color: rgb(14, 12, 11);          /* Diep, fluweelachtig warm-zwart */
    --surface-color: #1a1614;     /* Subtiel lichtere warme ondergrond voor elementen */
    --text-main: #f5ebe6;         /* Zacht, rustig warm off-white */
    --text-muted: #968a82;        /* Elegant gedempt warm-grijs */
    --accent-color: #c6764c;      /* EXACT dezelfde premium terracotta/oranje accentkleur */
    --header-bg: rgba(14, 12, 11, 0.82); /* Transparante donkere basis voor glaseffect */
    --border-color: rgba(245, 235, 230, 0.08); /* Fijne, zachte scheidingslijnen */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Diepe schaduw voor donkere modus */
    --neutral-color: #202020;
    
    --radius-gallery: 0px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* OVERRIDE: Luxe Warm Light Mode (geactiveerd via JS) */
html[data-theme="light"] {
    --bg-color: #faf5f1;          /* Jouw subtiele, luxe warm-oranje/ivoren tint */
    --surface-color: #f3eae1;     /* Iets diepere warme toon voor subtiel contrast */
    --text-main: #1a1412;         /* Elegant diep warm-houtskool */
    --text-muted: #756c64;        /* Verfijnd warm-grijs */
    --header-bg: rgba(250, 245, 241, 0.82); /* Transparante lichte basis voor glaseffect */
    --border-color: rgba(26, 20, 18, 0.08); /* Fijne warme scheidingslijnen */
    --shadow-color: rgba(26, 20, 18, 0.06); /* Subtiele zachte schaduw voor lichte modus */
    --neutral-color: #fff;
}

/* Universele Reset & Thema Overgangen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    /* Zorgt dat de hele pagina vloeiend van kleur verandert bij het togglen */
    transition: background-color 0.5s ease, color 0.5s ease; 
}

/* Layout Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   1. Moderne Sticky Glassmorphism Navigatie
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin: 0 -30px 40px -30px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

header .logo h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
}

/*nav a:nth-child(1) {
    color: var(--accent-color);
}*/

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

nav .nav-right {
    margin-left: auto;
    order: 2;
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Ultramoderne Minimalistische Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.theme-btn:hover {
    color: var(--text-main);
    background-color: var(--border-color);
    transform: scale(1.05);
}

/* Logica voor de icoontjes: toon zon in darkmode, toon maan in lightmode */
html[data-theme="light"] .theme-btn .sun-icon { display: none; }
html[data-theme="light"] .theme-btn .moon-icon { display: block; }
html[data-theme="dark"] .theme-btn .sun-icon { display: block; }
html[data-theme="dark"] .theme-btn .moon-icon { display: none; }

/* Minimalistische Capsule Taal Knop */
.lang-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

[data-translate] {
    /*display: inline-block;
    white-space: pre;*/
}

/* ==========================================================================
   2. Introductie Sectie (Fine-art Magazine Stijl)
   ========================================================================== */
.intro-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: 80px 0 100px 0;
}

.intro-text h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 15px;
    background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 540px;
    line-height: 1.6;
    transition: color 0.5s ease;
    white-space: pre-line;
    text-align: justify;
}

.profile-img {
    width: 400px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Sectietitels met elegante vloeiende lijn */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    flex: 1;
    margin-left: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

/* ==========================================================================
   3. Borderless Galerie Grid & Interactie
   ========================================================================== */
.album-grid {
    column-count: 4;
    column-gap: 25px;
    width: 100%;
    margin-bottom: 80px;
}

.album-grid.albums-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.album-grid.albums-overview .album-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.album-card {
    background-color: transparent;
    padding: 0;
    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    cursor: pointer;
}

.album-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-gallery);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 18px var(--shadow-color);
}

.album-grid.albums-overview .album-card img {
    aspect-ratio: 1;
    object-fit: cover;
}

.album-card:hover img {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 18px 35px var(--shadow-color);
    filter: brightness(1.04);
}

/* Elegante typografie voor albumtitels — Nu groter en opvallender! */
.album-title {
    margin-top: 16px;
    font-size: 1.35rem;        /* Een stuk groter voor directe impact */
    font-weight: 700;         /* Extra dik (bold) zodat de tekst krachtig staat */
    color: var(--text-main);
    letter-spacing: -0.02em;  /* Iets compacter voor een high-end look */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Duwt de titel naar links en de pijl naar rechts */
    transition: var(--transition-smooth);
    padding: 0 4px;
}

/* Een elegant, onzichtbaar pijltje dat klaarstaat aan de linkerkant */
.album-title::after {
    content: '→';
    font-size: 1.25rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-15px); /* Start iets naar links verschoven */
    transition: var(--transition-smooth);
}

/* Wat er gebeurt als je de muis over de hele album-card beweegt */
.album-card:hover .album-title {
    color: var(--accent-color); /* Titel licht direct op in terracotta */
}

/* Laat het pijltje vloeiend tevoorschijn komen en op zijn plek vallen */
.album-card:hover .album-title::after {
    opacity: 1;
    transform: translateX(0);     /* Schuift soepel op zijn plek */
}

/* ==========================================================================
   4. Volledig Responsive Ontwerp
   ========================================================================== */
@media (max-width: 1100px) {
    .album-grid { column-count: 3; }
    .intro-text h1 { font-size: 2.5rem; }
}

@media (max-width: 800px) {
    .album-grid { column-count: 2; }
    .intro-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 30px;
        margin: 40px 0 60px 0;
    }
    .profile-img { width: 120px; height: 120px; }
}

@media (max-width: 500px) {
    .album-grid { column-count: 1; column-gap: 0; }
    header { padding: 20px; }
    .intro-text h1 { font-size: 2rem; }
}

/* ==========================================================================
   5. Modern Lightbox Modal met EXIF Data
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.88); /* Zeer donkere cinematografische overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    width: 92%;
    max-width: 1200px;
    height: 80vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--accent-color);
    color: #fff;
}

.modal-body {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-image-container {
    flex: 3; /* Verhoogd van 2.2 naar 3 voor een bredere fotocontainer */
    background: var(--neutral-color); /* Pure black achter de foto voor maximaal contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 75px; /* 30px boven/onder, 75px links/rechts om ruimte te maken voor de pijlen */
    height: 100%;
    position: relative;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.modal-sidebar {
    flex: 1;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.modal-sidebar h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--accent-color);
}

.exif-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exif-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.exif-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.exif-item span:last-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Pijltjes navigatie in de Lightbox - Exact gestijld als .modal-close */
.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 1.2rem; /* Iets kleiner dan 1.5rem zodat de pijl-symbolen mooi in de cirkel passen */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
    user-select: none;
    padding: 0; /* Reset standaard button padding voor perfecte centrering */
}

.modal-nav-arrow:hover {
    background: var(--accent-color);
    color: #fff;
}

.arrow-left {
    left: 20px; /* Netjes uitgelijnd vanaf de linkerkant */
    padding-right: 2px; /* Optische correctie om het pijltje exact in het midden te zetten */
}

.arrow-right {
    right: 20px; /* Netjes uitgelijnd vanaf de rechterkant */
    padding-left: 2px; /* Optische correctie om het pijltje exact in het midden te zetten */
}

/* Mobiele optimalisatie */
@media (max-width: 600px) {
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }
}

/* Responsive Modal voor Tablets en Smartphones */
@media (max-width: 950px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-content {
        height: 85vh;
        overflow-y: auto;
    }
    .modal-image-container {
        flex: none;
        height: 45%;
        padding: 15px;
    }
    .modal-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 30px 20px;
    }
}

/* ==========================================================================
   6. Contactpagina (Grid Layout) & Formulier Styling
   ========================================================================== */

/* Titels op de contactpagina centreren en horizontale lijn verwijderen */
.contact-grid-wrapper .section-title {
    justify-content: center; /* Centreert de tekst */
    text-align: center;
}

.contact-grid-wrapper .section-title::after {
    display: none; /* Verwijdert de horizontale lijn naast de tekst */
}

/* Hoofdcontainer van het contactgedeelte */
.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0; /* We zetten de gap op 0 en regelen de afstand met padding voor de verticale lijn */
    max-width: 1050px;
    margin: 40px auto 100px auto;
}

/* Linker Kolom: Contactgegevens */
/* Linker Kolom: Contactgegevens */
.contact-info {
    display: flex;
    flex-direction: column;
    padding-right: 40px;
    position: relative; /* Nodig om de lijn aan vast te maken */
    /* border-right: 1px solid var(--border-color); <-- Deze is nu weg */
}

/* De uitfadende verticale scheidingslijn */
.contact-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    /* Start transparant, is solide in het midden, en fadet weer uit aan de onderkant */
    background: linear-gradient(180deg, transparent 0%, var(--border-color) 15%, var(--border-color) 85%, transparent 100%);
}

/* Rechter Kolom: Formulier */
.contact-form-side {
    padding-left: 40px; /* Helft van de originele 80px gap */
}

.contact-intro {
    margin-bottom: 40px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: center; /* Optioneel: centreert ook de inleidende tekst */
}

.info-block {
    margin-bottom: 30px;
    text-align: center; /* Centreert de contactgegevens */
}

.info-block h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-link, .info-text {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.info-link:hover {
    color: var(--accent-color);
}

/* Rechter Kolom: Formulier styling */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-main);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: transparent;
    box-shadow: 0 0 0 3px rgba(198, 118, 76, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--text-main);
    color: var(--bg-color);
    border: 1px solid var(--text-main);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Responsive Fallback: Onder elkaar op mobiel/tablet */
@media (max-width: 850px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 600px;
    }
    
    .contact-info {
        padding-right: 0;
        padding-bottom: 40px;
        margin-bottom: 40px;
        /* border-bottom: 1px solid var(--border-color); <-- Ook weggehaald */
    }
    
    /* De uitfadende horizontale scheidingslijn voor mobiel */
    .contact-info::after {
        top: auto;
        bottom: 0;
        left: 0;
        right: auto;
        width: 100%;
        height: 1px;
        /* Vloeiende overgang van links naar rechts */
        background: linear-gradient(90deg, transparent 0%, var(--border-color) 15%, var(--border-color) 85%, transparent 100%);
    }
    
    .contact-form-side {
        padding-left: 0;
    }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    position: relative;
}

/* Subtiele uitfadende lijn boven de footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    line-height: 1.6;
}