/* =========================================
   CSS VARIABELEN (LIGHT & DARK MODE)
========================================= */
:root {
    --bg-main: #050505;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --nav-bg: rgba(5, 5, 5, 0.85);
    --nav-border: rgba(255, 255, 255, 0.05);
    --hero-overlay: rgba(0, 0, 0, 0.6);
    --hero-text: #ffffff;
    --info-bg: #0a0a0a;
    --info-text: #ffffff;
    --info-p: #aaaaaa;
    --portfolio-bg: transparent;
    --contact-bg: #0a0a0a;
    --card-bg: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.1);
    --modal-bg: rgba(0,0,0,0.95);
    --modal-content: #111111;
    --modal-text: #ffffff;
    --cookie-bg: rgba(255, 255, 255, 0.95);
    --cookie-text: #000000;
}

body.light-mode {
    --bg-main: #f9f9f9;
    --text-main: #111111;
    --text-muted: #555555;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(255, 255, 255, 0.7);
    --hero-text: #111111;
    --info-bg: #ffffff;
    --info-text: #111111;
    --info-p: #555555;
    --portfolio-bg: transparent;
    --contact-bg: #f4f4f4;
    --card-bg: rgba(0,0,0,0.03);
    --card-border: rgba(0,0,0,0.1);
    --modal-bg: rgba(255,255,255,0.95);
    --modal-content: #f4f4f4;
    --modal-text: #111111;
    --cookie-bg: rgba(17, 17, 17, 0.95);
    --cookie-text: #ffffff;
}

/* =========================================
   BASIS, RESET & CUSTOM CURSOR
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.6; 
    scroll-behavior: smooth; 
    transition: background-color 0.5s ease, color 0.5s ease;
}

@media (pointer: fine) { 
    body, a, button, img, .project-card, .close-btn, .footer-totop { cursor: none !important; } 
}

.custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background-color: #ffffff; border-radius: 50%; pointer-events: none;
    z-index: 99999; transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference; display: none;
}
@media (pointer: fine) { .custom-cursor { display: block; } }
.custom-cursor.cursor-hover { width: 60px; height: 60px; background-color: rgba(255, 255, 255, 0.3); }

img { max-width: 100%; height: auto; display: block; }
.text-white-force { color: #ffffff !important; border-color: #ffffff !important; }
.text-white { color: #ffffff !important; }

/* =========================================
   PREMIUM PRELOADER (BULLETPROOF)
========================================= */
#preloader { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: #050505; z-index: 999999; 
    display: flex; justify-content: center; align-items: center; 
    transition: opacity 1s ease, visibility 1s; 
    animation: forceHidePreloader 6s forwards; 
}
.preloader-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; max-width: 300px; }
.preloader-logo { height: 80px; width: auto; opacity: 0; animation: logoFadeIn 1.5s ease forwards; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.preloader-logo.pulsing { animation: logoPulse 2s infinite alternate; }
.preloader-logo.zoom-out { transform: scale(1.1); filter: blur(5px); }
.luxury-progress-bar { width: 100%; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; position: relative; }
.luxury-progress { width: 0%; height: 100%; background: #ffffff; transition: width 1.5s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: 0 0 10px rgba(255,255,255,0.8); }

@keyframes logoFadeIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
@keyframes logoPulse { 0% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); } 100% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); } }
@keyframes forceHidePreloader { 0%, 90% { opacity: 1; visibility: visible; } 99% { opacity: 0; visibility: hidden; } 100% { opacity: 0; visibility: hidden; display: none; z-index: -1; pointer-events: none; } }

/* =========================================
   FLOATING GLASS MUSIC PLAYER
========================================= */
.glass-player {
    position: fixed; bottom: 30px; left: 30px; z-index: 3000;
    background: var(--nav-bg); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border); border-radius: 30px;
    padding: 12px 25px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), background-color 0.5s ease;
}
.glass-player.hidden-start { transform: translateY(150px); }
.player-btn {
    background: transparent; border: none; color: var(--text-main);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.player-btn:hover { color: #25D366; transform: scale(1.1); }
.track-info { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.equalizer { display: flex; gap: 3px; align-items: flex-end; height: 12px; margin-left: 5px; }
.eq-bar { width: 3px; background: var(--text-main); height: 3px; border-radius: 2px; transition: background-color 0.5s ease; }
.equalizer.playing .eq-bar { background: #25D366; animation: eq-bounce 1s infinite alternate; }
.equalizer.playing .eq-bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer.playing .eq-bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq-bounce { 0% { height: 3px; } 100% { height: 12px; } }

@media (max-width: 600px) {
    .glass-player { bottom: 20px; left: 5%; width: 90%; justify-content: center; }
}

/* =========================================
   LUXE TITELS (REVEAL-MASKER)
========================================= */
.section-header { text-align: center; margin-bottom: 60px; }
.reveal-mask-title { position: relative; display: inline-block; overflow: hidden; padding: 5px 20px; }
.mask-text { font-size: 3rem; font-weight: 800; letter-spacing: 5px; opacity: 0; color: var(--text-main); }
.reveal-mask-title.active .mask-text { animation: showText 0.01s linear forwards 0.4s; }
.reveal-mask-title::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--text-main); transform: translateX(-101%); z-index: 2; }
.reveal-mask-title.active::after { animation: slideMask 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
@keyframes slideMask { 0% { transform: translateX(-101%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }
@keyframes showText { 100% { opacity: 1; } }
@media (max-width: 768px) { .mask-text { font-size: 2rem; } }

/* =========================================
   LUXE SCROLL-REVEAL ANIMATIES
========================================= */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease-out; }
.reveal-zoom { opacity: 0; transform: scale(0.85); transition: all 0.8s ease-out; }
.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active { opacity: 1; transform: translate(0) scale(1); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

/* =========================================
   NAVIGATIE (MET R LOGO IMG)
========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--nav-border); transition: background-color 0.5s ease; }
.nav-logo { display: flex; align-items: center; }
.brand-logo { height: 35px; width: auto; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); transition: transform 0.3s; }
.brand-logo:hover { transform: scale(1.05); }
body.light-mode .brand-logo { filter: invert(1) drop-shadow(0 0 5px rgba(0,0,0,0.1)); }
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-link:hover { color: var(--text-main); }
.theme-toggle-btn { background: transparent; border: none; color: var(--text-main); display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; transition: 0.3s; }
.theme-toggle-btn:hover { background: var(--nav-border); }
.theme-icon { width: 20px; height: 20px; }
.menu-toggle { display: none; cursor: pointer; z-index: 1001; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px 0; transition: all 0.3s ease; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 0; left: -100%; flex-direction: column; background: var(--bg-main); width: 100%; height: 100vh; align-items: center; justify-content: center; transition: 0.4s ease; }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
    .nav-menu li a { font-size: 1.5rem; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

/* =========================================
   VIDEO FIXES & Z-INDEX LAGEN
========================================= */
.bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; }
.fixed-video-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -2; }
.fixed-video { position: absolute; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: background-color 0.5s ease; }
.video-overlay.dark { background: var(--hero-overlay); }
.video-overlay.extra-dark { background: rgba(0, 0, 0, 0.85); } 

/* =========================================
   HERO & TYPING EFFECT
========================================= */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: var(--bg-main); z-index: 10; }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.title-main { font-size: 6rem; font-weight: 800; letter-spacing: 15px; margin-bottom: 10px; margin-right: -15px; color: var(--hero-text); transition: color 0.5s; }
.subtitle-main { font-size: 1.5rem; font-weight: 300; letter-spacing: 2px; color: var(--hero-text); font-family: 'JetBrains Mono', monospace; }
.cursor-blink { font-weight: bold; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 768px) { .title-main { font-size: 3rem; letter-spacing: 8px; margin-right: -8px; } .subtitle-main { font-size: 1rem; } }

/* =========================================
   INFORMATIE SECTIE (50/50 BLOKKEN)
========================================= */
.info-section { position: relative; z-index: 10; background-color: var(--info-bg); padding: 100px 5%; transition: 0.5s ease; overflow: hidden; }
.info-container { display: flex; min-height: 70vh; max-width: 1400px; margin: 0 auto; background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.info-video-wrapper { flex: 1; position: relative; overflow: hidden; min-height: 400px; }
.side-video { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.info-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px 8%; position: relative; z-index: 2; }
.info-text p { font-size: 1.1rem; margin-bottom: 25px; color: var(--info-p); line-height: 1.8; }
@media (max-width: 900px) { .info-container { flex-direction: column; } .info-video-wrapper { min-height: 350px; } .info-text { padding: 40px 20px; } }

/* =========================================
   GALERIJ
========================================= */
.gallery-section { position: relative; padding: 100px 5%; overflow: hidden; z-index: 1; background-color: transparent; }
.gallery-content { position: relative; z-index: 2; text-align: center; max-width: 1400px; margin: 0 auto; }
.masonry-grid { column-count: 4; column-gap: 15px; }
.masonry-grid img { width: 100%; margin-bottom: 15px; display: block; border-radius: 8px; transition: transform 0.4s ease, filter 0.4s; filter: brightness(0.85); position: relative; z-index: 2; }
.masonry-grid img:hover { transform: translateY(-3px); filter: brightness(1); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
@media (max-width: 1000px) { .masonry-grid { column-count: 3; } }
@media (max-width: 700px) { .masonry-grid { column-count: 2; } }

/* =========================================
   PORTFOLIO
========================================= */
.portfolio-section { position: relative; z-index: 2; padding: 100px 0; overflow: hidden; background: transparent; }
.portfolio-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.85); z-index: -1; }
.horizontal-scroll-wrapper { display: flex; gap: 20px; overflow-x: auto; padding: 20px 5% 50px 5%; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1000px; }
.horizontal-scroll-wrapper::-webkit-scrollbar { display: none; }
.project-card { flex: 0 0 350px; height: 240px; scroll-snap-align: center; position: relative; border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.1s ease-out, box-shadow 0.3s ease; }
.card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.card-overlay h3 { font-size: 1.4rem; margin-bottom: 15px; transform: translateY(15px); transition: 0.4s ease; color: #fff;}
.card-overlay .small-btn { padding: 10px 20px; font-size: 0.8rem; transform: translateY(15px); transition: 0.4s ease; background: transparent; border: 1px solid #fff; display: inline-block; text-transform: uppercase; letter-spacing: 2px; }
.project-card:hover .card-bg { transform: scale(1.1); }
.project-card:hover .card-overlay { opacity: 1; }
.project-card:hover .card-overlay h3, .project-card:hover .card-overlay .small-btn { transform: translateY(0); }
@media (max-width: 768px) { .project-card { flex: 0 0 280px; height: 190px; } }

/* =========================================
   HET LAB (SANDBOX SECTIE MET TOOLS)
========================================= */
.sandbox-section { position: relative; z-index: 10; background-color: var(--bg-main); padding: 100px 5%; text-align: center; border-top: 1px solid var(--card-border); }
.sandbox-content { margin: 0 auto; max-width: 1000px; }
.terminal-window { text-align: left; background: #0a0a0a; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s ease; }
.terminal-window:hover { transform: translateY(-5px); }
.terminal-header { background: #161616; padding: 12px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dot { width: 12px; height: 12px; border-radius: 50%; } .dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.terminal-title { margin-left: auto; margin-right: auto; color: #888; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; letter-spacing: 1px; }

/* Sandbox Tools Styling */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.tool-card { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); padding: 25px; border-radius: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tool-card h3 { font-size: 1rem; color: #fff; margin-bottom: 15px; font-family: 'JetBrains Mono', monospace; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.tool-input { width: 100%; padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 4px; font-family: 'JetBrains Mono', monospace; margin-bottom: 15px; color-scheme: dark; font-size: 0.9rem; }
.tool-output-box { margin-top: 15px; font-size: 0.9rem; color: #00ff41; font-family: 'JetBrains Mono', monospace; min-height: 40px; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 4px; word-wrap: break-word; }
.tool-output-box p { margin-bottom: 5px; color: #aaa; }

/* =========================================
   KNOPPEN
========================================= */
.btn-elegant { display: inline-block; padding: 12px 35px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--btn-text); border: 1px solid var(--btn-border); text-decoration: none; transition: all 0.3s ease; background: transparent; }
.btn-elegant:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }
.small-btn { padding: 10px 15px; font-size: 0.8rem; background: transparent; border: 1px solid #fff; color: #fff; cursor: pointer; transition: 0.3s; width: 100%; font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.small-btn:hover { background: #fff; color: #000; }
.link-btn { border-color: #25D366; color: var(--text-main); }
.link-btn:hover { background: #25D366; color: #000; border-color: #25D366; }

/* =========================================
   MODAL & LIGHTBOX
========================================= */
.modal, .lightbox { display: none; opacity: 0; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 4000; justify-content: center; align-items: center; transition: opacity 0.3s ease; }
.modal { background: var(--modal-bg); }
.lightbox { background: rgba(0,0,0,0.98); }
.modal-content { background: var(--modal-content); color: var(--modal-text); width: 90%; max-width: 1000px; padding: 50px; border-radius: 20px; position: relative; transition: 0.5s ease; border: 1px solid var(--card-border); }
.mockup-container { display: flex; align-items: center; justify-content: center; gap: 40px; }
.mockup-info { flex: 1; }
.macbook-wrapper { flex: 1.5; position: relative; width: 100%; }
.mockup-frame { width: 100%; position: relative; z-index: 2; }
.mockup-screen-video { position: absolute; top: 11%; left: 12%; width: 76%; height: 75%; z-index: 1; object-fit: cover; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.modal-close, .close-btn { position: absolute; top: 20px; right: 40px; font-size: 3rem; color: var(--modal-text); z-index: 4001; cursor: pointer; }
.lightbox .close-btn { color: #ffffff; }
@media (max-width: 900px) { .modal-content { padding: 30px 20px; } .mockup-container { flex-direction: column-reverse; text-align: center; } }

/* =========================================
   PREMIUM FAT FOOTER
========================================= */
.fat-footer { position: relative; z-index: 10; padding: 80px 5% 30px 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: var(--bg-main); min-height: 60vh; }
.footer-content { position: relative; z-index: 2; width: 100%; max-width: 1200px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.footer-cta { margin-bottom: 20px; }
.cta-title { font-size: 4rem; font-weight: 800; letter-spacing: 2px; color: #ffffff; }
.cta-arrow { font-size: 2rem; color: #25D366; margin-top: 10px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-7px); } }

.magnetic-wrapper { display: inline-block; padding: 40px; border-radius: 50%; }
.whatsapp-pulse { position: relative; width: 90px; height: 90px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; margin: 0 auto; transition: transform 0.1s ease-out; box-shadow: 0 10px 30px rgba(37,211,102,0.4); }
.whatsapp-pulse::before, .whatsapp-pulse::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.5s linear infinite; z-index: -1; }
.whatsapp-pulse::after { animation-delay: 1.25s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #888; }
.footer-status { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; background-color: #25D366; border-radius: 50%; box-shadow: 0 0 8px #25D366; animation: blink 2s infinite; }
.footer-totop { cursor: pointer; transition: color 0.3s; }
.footer-totop:hover { color: #fff; }
@media (max-width: 900px) {
    .cta-title { font-size: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}