/* --- CONFIG & VARS --- */
:root {
    --bg-color: #050505;
    --neon-green: #0aff0a;
    --neon-blue: #00f3ff;
    --neon-red: #ff003c;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --font-mono: 'Fira Code', monospace;
    --font-heading: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: #e0e0e0;
    font-family: var(--font-mono);
    overflow-x: hidden;
}

/* --- MATRIX BACKGROUND --- */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.15; 
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.boot-text p { margin: 5px 0; opacity: 0; animation: fadeIn 0.1s forwards; color: var(--neon-green); font-size: 1.1rem; }
.boot-text p:nth-child(1) { animation-delay: 0.5s; }
.boot-text p:nth-child(2) { animation-delay: 1.5s; }
.boot-text p:nth-child(3) { animation-delay: 2.5s; }
.boot-text p:nth-child(4) { animation-delay: 3.0s; }
.boot-text p:nth-child(5) { animation-delay: 3.5s; color: var(--neon-blue); }

@keyframes fadeIn { to { opacity: 1; } }

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    position: fixed; top: 0; width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.5rem; color: #fff;
    text-shadow: 0 0 10px rgba(0,255,0,0.3);
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-item {
    color: #888; text-decoration: none; transition: 0.3s;
    position: relative;
}
.nav-item:hover { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.nav-item:hover::before { content: '>'; position: absolute; left: -15px; color: var(--neon-green); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex; align-items: center; padding: 0 10%;
    position: relative;
}
.subtitle { color: var(--neon-green); margin-bottom: 10px; font-size: 1rem; }
.glitch-header {
    font-family: var(--font-heading);
    font-size: 4rem; color: #fff; margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--neon-red), -2px -2px 0px var(--neon-blue);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.typewriter { font-size: 1.5rem; color: #aaa; margin-bottom: 20px; height: 30px;}
.cursor { animation: blink 1s infinite; color: var(--neon-green); }

/* Buttons */
.cta-group { display: flex; gap: 20px; margin-top: 40px; }
.cyber-btn {
    position: relative; padding: 15px 40px; background: transparent;
    color: var(--neon-blue); font-weight: bold; text-decoration: none;
    border: 1px solid var(--neon-blue); overflow: hidden; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 2px;
}
.cyber-btn:hover { background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }
.cyber-btn.secondary { border-color: #fff; color: #fff; }
.cyber-btn.secondary:hover { background: rgba(255,255,255,0.1); box-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* --- SECTIONS GENERAL --- */
.section { padding: 100px 10%; }
.section-title {
    font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 60px;
    color: #fff;
}
.highlight { color: var(--neon-green); }

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center;
}
.about-text p { margin-bottom: 20px; color: #bbb; line-height: 1.8; }
.prompt { color: var(--neon-green); margin-bottom: 10px; display: block; }
.stats-box {
    background: #0d0d0d; border: 1px solid #333; border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s;
}
.stats-box:hover { border-color: var(--neon-blue); transform: translateY(-5px); }
.stats-header {
    background: #1a1a1a; padding: 10px 15px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #333;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.stats-title { margin-left: auto; color: #666; font-size: 0.8rem; }
.stats-body { padding: 20px; font-size: 0.9rem; }
.string { color: #ce9178; } .number { color: #b5cea8; } .keyword { color: var(--neon-blue); }

/* --- SKILLS --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.glass-card {
    background: var(--glass); border: 1px solid var(--border);
    padding: 30px; border-radius: 10px; backdrop-filter: blur(5px);
    transition: 0.4s; position: relative; overflow: hidden;
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--neon-blue); box-shadow: 0 0 30px rgba(0, 243, 255, 0.1); }
.icon-box { font-size: 2rem; color: var(--neon-blue); margin-bottom: 20px; }
.skill-list { list-style: none; margin-top: 20px; }
.skill-list li { margin-bottom: 8px; color: #bbb; }
.skill-list li::before { content: ">> "; color: var(--neon-green); }
.progress-bar { height: 6px; background: #222; border-radius: 3px; overflow: hidden; margin-top: 5px;}
.fill { height: 100%; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.progress-label { font-size: 0.8rem; color: #888; }

/* --- PROJECTS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.project-card {
    background: #111; border: 1px solid #333; padding: 25px;
    transition: 0.3s; border-radius: 5px;
}
.project-card:hover { border-color: var(--neon-green); transform: scale(1.02); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.folder-icon { font-size: 40px; color: var(--neon-green); }
.links a { color: #fff; font-size: 20px; }
.links a:hover { color: var(--neon-blue); }
.tags { display: flex; gap: 10px; margin-top: 20px; font-size: 0.8rem; flex-wrap: wrap; }
.tags span { color: var(--neon-blue); border: 1px solid #333; padding: 2px 8px; border-radius: 4px; }

/* --- CONTACT --- */
.terminal-form {
    background: #0a0a0a; border: 1px solid #333; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; max-width: 700px; margin: 0 auto;
}
.terminal-bar {
    background: #1a1a1a; padding: 10px 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #333;
}
.btn-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-title { margin-left: auto; color: #666; font-size: 0.8rem; }
.cyber-form { padding: 30px; }
.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.input-prefix { color: var(--neon-green); margin-bottom: 5px; font-size: 0.9rem; }
input, textarea {
    background: transparent; border: none; border-bottom: 1px solid #333;
    color: #fff; padding: 10px; font-family: var(--font-mono); font-size: 1rem; width: 100%;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--neon-blue); }
.submit-btn {
    background: var(--neon-green); color: #000; font-weight: bold; border: none;
    padding: 12px 30px; font-family: var(--font-mono); cursor: pointer; margin-top: 10px; transition: 0.3s;
}
.submit-btn:hover { background: #fff; box-shadow: 0 0 15px #fff; }

/* --- ANIMATIES --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch-anim {
    0% { text-shadow: 2px 2px var(--neon-red), -2px -2px var(--neon-blue); }
    25% { text-shadow: -2px 2px var(--neon-red), 2px -2px var(--neon-blue); }
    50% { text-shadow: 2px -2px var(--neon-red), -2px 2px var(--neon-blue); }
    75% { text-shadow: -2px -2px var(--neon-red), 2px 2px var(--neon-blue); }
    100% { text-shadow: 2px 2px var(--neon-red), -2px -2px var(--neon-blue); }
}

/* Mobiel */
@media (max-width: 768px) {
    .glitch-header { font-size: 2.5rem; }
    .section { padding: 60px 5%; }
    .about-grid { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; gap: 15px; }
}