/**
 * Goud-Master: Volledige Styling v195
 * Focus: Fix Mobiel Menu, Globale Gradients, Video Integratie & Terug-Knoppen
 */

/* =========================================
   1. VARIABELEN & THEMA'S
   ========================================= */
:root {
    --bg-base: #f8fafc; 
    --text-main: #0f172a; 
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7); 
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --accent-blue: #3b82f6; 
    --accent-orange: #f97316; 
    --link-color: var(--accent-blue);
    --btn-text: #ffffff;
    --radius: 20px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-base: #020617; 
    --text-main: #f1f5f9; 
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.85); 
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --link-color: #fbbf24; 
    --accent-orange: #f59e0b; 
    --btn-text: #020617; 
}

/* =========================================
   1.5 VIDEO ONDERSTEUNING
   ========================================= */
.hp-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.hp-video-wrapper iframe,
.hp-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* =========================================
   2. BASIS RESET & ACHTERGROND
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: var(--bg-base); 
    color: var(--text-main); 
    line-height: 1.6; 
    transition: background-color 0.4s, color 0.4s; 
    overflow-x: hidden; 
    min-height: 100vh; 
}

.bg-blobs { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: -10; pointer-events: none; overflow: hidden;
}

.blob { 
    position: absolute; width: 600px; height: 600px; 
    filter: blur(80px); opacity: 0.3; border-radius: 50%; 
    will-change: transform; 
}

.blob-1 { top: -100px; left: -100px; background: var(--accent-blue); animation: hp-blob-move-1 20s infinite alternate ease-in-out; }
.blob-2 { bottom: -100px; right: -100px; background: var(--accent-orange); animation: hp-blob-move-2 25s infinite alternate ease-in-out; }

@keyframes hp-blob-move-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(25vw, 15vh) scale(1.1); } }
@keyframes hp-blob-move-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-25vw, -15vh) scale(1.1); } }

html[data-theme="dark"] .blob { opacity: 0.15; }

/* =========================================
   2.5 GRADIENT TYPOGRAFIE & LINKS
   ========================================= */
.site-title,
.news-list-title,
.article-title,
.contact-page-wrapper h2,
.welkom-container h1, 
.welkom-container h2,
.agenda-container h2,
.content-wrapper h1,
.content-wrapper h2 {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; transition: var(--transition);
}
.gradient-back-link span { font-size: 1.5rem; -webkit-text-fill-color: var(--accent-blue); transition: transform 0.2s ease; }
.gradient-back-link:hover span { transform: translateX(-4px); }

/* =========================================
   3. HEADER, NAVIGATIE & MOBIEL MENU
   ========================================= */
.site-header { 
    position: sticky; top: 0; z-index: 1000; 
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
    border-bottom: 1px solid var(--glass-border); padding: 1.2rem 5%; 
}

.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-title-logo { font-size: 1.5rem; font-weight: 900; text-decoration: none; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.main-nav { display: flex; gap: 2rem; align-items: center; }

.main-nav a { 
    text-decoration: none; color: var(--text-main); 
    font-weight: 600; position: relative; transition: color 0.3s; 
}

.main-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; 
    bottom: -4px; left: 0; background-color: var(--link-color); 
    transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--link-color); }
.main-nav a:hover::after { width: 100%; }

.theme-toggle-btn { 
    background: none; border: 1px solid var(--glass-border); 
    padding: 6px 14px; border-radius: 20px; cursor: pointer; color: var(--text-main); 
}

/* Hamburger Menu (Mobiele Navigatie Knop) */
.nav-icon, 
.menu-toggle {
    background: none; border: none; color: var(--text-main); 
    cursor: pointer; font-size: 1.8rem; display: none; transition: color var(--transition);
}
.nav-icon svg, .menu-toggle svg { fill: currentColor; stroke: currentColor; }

@media (max-width: 768px) {
    .nav-icon, .menu-toggle { display: block; }
    
    .main-nav {
        background: var(--bg-base) !important;
        padding: 2rem;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .main-nav a {
        color: var(--text-main) !important;
    }

    [data-theme="dark"] .main-nav {
        background: rgba(2, 6, 23, 0.98) !important;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* =========================================
   4. LIJSTWEERGAVE (PROJECTEN & NIEUWS OVERZICHT)
   ========================================= */
.news-archive-container { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }

.news-list-item { 
    display: flex; flex-direction: row; background: var(--glass-bg); 
    border: 1px solid var(--glass-border); border-radius: var(--radius); 
    overflow: hidden; text-decoration: none; color: inherit; 
    margin-bottom: 2.5rem; transition: var(--transition); backdrop-filter: blur(10px); 
}

.news-list-item:hover { transform: translateY(-5px); border-color: var(--link-color); box-shadow: var(--glass-shadow); }

.news-list-img { width: 40%; min-width: 300px; flex-shrink: 0; }
.news-list-img img, .news-list-img video, .news-list-img > div { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-list-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.news-list-title { font-size: 1.8rem; margin-bottom: 1rem; line-height: 1.2; }

@media (max-width: 768px) {
    .news-list-item { flex-direction: column; }
    .news-list-img { width: 100%; min-width: 100%; height: 200px; }
}

/* =========================================
   5. DETAILWEERGAVE (ARTIKEL PAGINA)
   ========================================= */
.article-page:not(.contact-page-wrapper) { 
    max-width: 850px; margin: 2rem auto; padding: 3rem; 
    background: var(--glass-bg); border-radius: var(--radius); 
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); 
    backdrop-filter: blur(15px); display: flex; flex-direction: column; 
}

.article-hero { width: 100%; border-radius: 16px; margin-bottom: 2rem; }
.article-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1.5rem; }

/* =========================================
   6. CONTACTPAGINA (SPECIFIEKE STIJL)
   ========================================= */
.contact-page-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: start; max-width: 1100px; margin: 4rem auto; padding: 3rem;
    background: var(--glass-bg); border-radius: var(--radius); 
    border: 1px solid var(--glass-border); backdrop-filter: blur(15px);
}

.contact-page-wrapper h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1.2;
    margin-bottom: 1.5rem; font-weight: 800; white-space: nowrap !important; text-align: left;
}

.contact-page-image img { 
    width: 100%; border-radius: 16px; object-fit: cover; border: 1px solid var(--glass-border);
}

.contact-input { 
    width: 100%; padding: 1.2rem; background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); border-radius: 8px; 
    color: var(--text-main); font-size: 1rem; margin-bottom: 1rem;
}

select.contact-input {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fbbf24' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 1.2rem) center;
    background-color: rgba(15, 23, 42, 0.5); color: var(--text-main);
}

select.contact-input option { background-color: var(--bg-base); color: var(--text-main); }
[data-theme="dark"] select.contact-input option { background-color: #020617; color: #f1f5f9; }

@media (max-width: 900px) {
    .contact-page-wrapper { grid-template-columns: 1fr; padding: 1.5rem; }
    .contact-page-image { order: 2; }
}

@media (max-width: 480px) {
    .contact-page-wrapper h2 { white-space: normal !important; font-size: 1.8rem; }
}

/* =========================================
   7. HOMEPAGE & ALGEMENE COMPONENTEN
   ========================================= */
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 4rem 5% 150px 5%; position: relative; z-index: 1; }

.welkom-container { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 20px; line-height: 1.8; font-size: 1.1rem; }
.welkom-text-content { opacity: 0.9; margin-bottom: 2rem; }

.about-section { display: flex; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.about-text-container.clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.25rem; color: var(--text-muted); }
.about-img { width: 350px; height: 350px; border-radius: 30px; object-fit: cover; border: 8px solid var(--glass-border); box-shadow: var(--glass-shadow); }

.projects-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); justify-content: center; margin-top: 2rem; }
.project-card { background: var(--glass-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); transition: var(--transition); box-shadow: var(--glass-shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.project-card:hover { transform: translateY(-8px); border-color: var(--link-color); }

/* GOUD-MASTER FIX: Dit stelt de vaste hoogte in! */
.project-img-thumb { width: 100%; height: 220px; object-fit: cover; background: rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .about-section { flex-direction: column; text-align: center; }
}

/* =========================================
   8. FOOTER & BUTTONS
   ========================================= */
.contact-submit, .btn {
    background: var(--accent-orange); color: var(--btn-text);
    padding: 1.2rem; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%;
}

.site-footer { 
    position: fixed; bottom: 0; width: 100%; background: var(--glass-bg); 
    backdrop-filter: blur(15px); padding: 1.5rem 5%; border-top: 1px solid var(--glass-border); text-align: center; z-index: 1000; 
}