:root {
            --bg-color: #050505;
            --text-main: #ffffff;
            --text-muted: #a1a1aa;
            
            --cyan: #40E0D0; 
            --teal: #00CED1;
            --blue: #4169E1;
            
            --glass-border: rgba(255, 255, 255, 0.08);
            --font-head: 'Outfit', sans-serif;
            --font-body: 'Inter', sans-serif;
        }

        * { 
            margin: 0; padding: 0; box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: var(--font-body);
            overflow-x: hidden;
            padding-bottom: 140px; /* Ruimte voor navbar */
        }

        /* --- 2. ACHTERGROND SFEER --- */
        .ambient-bg { position: fixed; inset: 0; z-index: -1; background: #020202; overflow: hidden; }
        .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 14s infinite alternate ease-in-out; }
        .b1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--blue); }
        .b2 { bottom: 0; right: 0; width: 40vw; height: 40vw; background: var(--teal); animation-delay: -5s; }
        @keyframes float { to { transform: translate(30px, -30px) scale(1.05); } }

        /* --- 3. GLOBAL LAYOUT --- */
        .container { max-width: 1100px; margin: 0 auto; padding: 20px; }
        
        header { text-align: center; padding: 60px 20px 40px; transition: 0.5s; }
        header.hide { opacity: 0; transform: translateY(-20px); pointer-events: none; height: 0; padding: 0; margin: 0; }
        
        h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 5px; background: linear-gradient(to right, #fff, var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .subtitle { color: var(--text-muted); font-size: 1.1rem; }

        /* --- 4. PROJECT KAARTEN --- */
        .tab-section { display: none; animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
        .tab-section.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
        
        .project-card {
            background: rgba(20, 20, 20, 0.6); border: 1px solid var(--glass-border);
            border-radius: 20px; padding: 15px; cursor: pointer; transition: 0.4s;
            position: relative; overflow: hidden;
        }
        .project-card:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(64, 224, 208, 0.15); }
        
        .card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: #1a1a1a; }
        
        .card-tags-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
        .tiny-tag {
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
            background: rgba(64, 224, 208, 0.15); color: var(--cyan);
            padding: 4px 8px; border-radius: 6px;
        }

        .project-card h3 { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
        .project-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

        /* --- 5. OVER MIJ (CV Style) --- */
        .about-grid {
            display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
            background: rgba(15, 15, 15, 0.5); border: 1px solid var(--glass-border);
            backdrop-filter: blur(20px); border-radius: 30px; padding: 40px;
        }
        @media(max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

        .profile-container { position: relative; width: 160px; height: 160px; margin: 0 auto 30px; }
        .profile-ring {
            position: absolute; inset: -5px; border-radius: 50%;
            background: linear-gradient(135deg, var(--cyan), var(--blue));
            filter: blur(15px); animation: spin 8s linear infinite; opacity: 0.8;
        }
        .profile-img {
            position: relative; width: 100%; height: 100%; border-radius: 50%;
            object-fit: cover; border: 2px solid var(--bg-color); z-index: 2;
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        .about-sidebar { text-align: center; border-right: 1px solid var(--glass-border); padding-right: 20px; }
        @media(max-width: 800px) { .about-sidebar { border-right: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 30px; padding-right: 0; } }

        .timeline-item { position: relative; padding-left: 30px; margin-bottom: 30px; border-left: 2px solid rgba(255,255,255,0.1); }
        .timeline-item::before {
            content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px;
            background: var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--cyan);
        }
        .time-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; display: block; }
        .job-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
        
        .skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; justify-content: center; }
        .skill-pill {
            background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
            padding: 6px 12px; border-radius: 20px; font-size: 0.8rem;
        }

        /* --- 6. NAVBAR --- */
        .nav-wrapper { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 100; }
        .nav-bar {
            display: flex; position: relative; background: rgba(10,10,10,0.7); backdrop-filter: blur(20px);
            padding: 8px; border-radius: 60px; border: 1px solid var(--glass-border);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }
        
        .nav-pill {
            position: absolute; 
            top: 8px; 
            left: 0;
            height: calc(100% - 16px); 
            width: 0;
            background: linear-gradient(90deg, var(--teal), var(--blue)); 
            border-radius: 50px;
            z-index: 0; 
            transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
            box-shadow: 0 0 15px rgba(64, 224, 208, 0.3);
        }

        .nav-item {
            position: relative; z-index: 1; background: none; border: none; padding: 12px 24px;
            color: #888; font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: 0.3s;
            display: flex; align-items: center; gap: 8px;
        }
        .nav-item.active { color: #fff; }
        @media(max-width: 600px) { .nav-item span { display: none; } .nav-item { padding: 14px 20px; } }

        /* --- 7. PURE GLASS MODAL --- */
        .modal-overlay {
            position: fixed; inset: 0; z-index: 2000;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none; transition: all 0.4s ease;
        }
        
        .modal-overlay.open { opacity: 1; pointer-events: all; }

        .modal-pane {
            width: 90%; max-width: 900px; max-height: 85vh;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px);
            
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-top: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 24px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5);
            
            transform: scale(0.95) translateY(40px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
            overflow-y: auto;
            position: relative;
        }

        .modal-overlay.open .modal-pane { transform: scale(1) translateY(0); opacity: 1; }

        .close-btn {
            position: absolute; top: 20px; right: 20px;
            width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: flex; justify-content: center; align-items: center;
            z-index: 10; backdrop-filter: blur(10px); transition: 0.3s;
        }
        .close-btn:hover { background: var(--cyan); border-color: var(--cyan); color: #000; transform: rotate(90deg); }

        .modal-content { padding: 40px; }
        .modal-hero { width: 100%; height: 350px; object-fit: cover; border-radius: 16px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
        .modal-text { line-height: 1.8; color: #e0e0e0; font-size: 1.05rem; white-space: pre-line; }
        
        .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 40px; }
        .gallery img { 
            width: 100%; height: 140px; object-fit: cover; border-radius: 10px; 
            cursor: zoom-in; 
            border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; 
        }
        .gallery img:hover { transform: scale(1.03); border-color: var(--cyan); }

        /* --- 8. LIGHTBOX --- */
        .lightbox {
            position: fixed; inset: 0; z-index: 3000;
            background: rgba(0,0,0,0.95); backdrop-filter: blur(15px);
            display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s;
        }
        .lightbox.active { opacity: 1; pointer-events: all; }
        .lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 60px rgba(64, 224, 208, 0.1); }
        .lightbox-close {
            position: absolute; top: 30px; right: 30px; color: #fff; font-size: 30px; cursor: pointer;
        }
