/* ================================ */
/* --- 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;
}

/* --- SCANLINE OVERLAY --- */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* --- MATRIX BACKGROUND --- */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* --- 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);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--neon-blue);
    cursor: pointer;
    transition: 0.3s;
}
.mobile-menu-btn:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.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; }
.welcome-msg { color: #aaa; font-size: 1.1rem; margin: 20px 0; max-width: 600px; line-height: 1.6; }
.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: flex; gap: 50px; align-items: stretch;
}
.about-image {
    flex: 0 0 280px;
}
.about-content {
    display: block; flex: 1;
}
.about-text p { margin-bottom: 20px; color: #bbb; line-height: 1.8; }
.prompt { color: var(--neon-green); margin-bottom: 10px; display: block; }
.profile-pic {
    width: 100%; height: auto; border: 2px solid var(--neon-green);
    border-radius: 5px; box-shadow: 0 0 20px rgba(10, 255, 10, 0.3);
    transition: 0.4s;
}
.profile-pic:hover { box-shadow: 0 0 30px rgba(10, 255, 10, 0.6); }
.cv-btn {
    display: inline-block; margin-top: 20px; padding: 12px 25px;
    background: var(--neon-green) !important; color: #000 !important; font-weight: bold;
    border-radius: 5px; text-decoration: none !important; transition: 0.3s;
    border: none; cursor: pointer; font-family: var(--font-mono);
}
.cv-btn:hover { background: #fff !important; box-shadow: 0 0 15px rgba(10, 255, 10, 0.5); }
.cv-btn:link, .cv-btn:visited, .cv-btn:active { color: #000 !important; }
.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; display: none;
}
.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; }
.proficiency {
    font-size: 0.95rem; color: var(--neon-green); font-weight: bold;
    margin: 10px 0; text-transform: uppercase; letter-spacing: 1px;
}
.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); }

/* --- PROJECTS --- */
.section-intro {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 50px;
}

.highlight-blue { color: var(--neon-blue); }

/* Category Blocks */
.category-block {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: 1px solid;
}

.category-header.primary {
    background: rgba(255, 0, 60, 0.05);
    border-color: rgba(255, 0, 60, 0.3);
}

.category-header.secondary {
    background: rgba(0, 243, 255, 0.03);
    border-color: rgba(0, 243, 255, 0.2);
}

.category-icon {
    font-size: 1.8rem;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.category-header.primary .category-icon { color: var(--neon-red); }
.category-header.secondary .category-icon { color: var(--neon-blue); }

.category-info { flex-grow: 1; }

.category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-desc {
    color: #666;
    font-size: 0.85rem;
}

.category-badge-label {
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.category-badge-label.primary {
    background: rgba(255, 0, 60, 0.15);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
}

.category-badge-label.secondary {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-blue);
}

.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; display: flex; flex-direction: column;
}
.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; }
.card-content { display: flex; flex-direction: column; height: 100%; }
.card-content h3 { margin-bottom: 10px; }
.project-excerpt { font-size: 0.9rem; color: #888; line-height: 1.5; flex-grow: 1; margin-bottom: 15px; }
.folder-icon { font-size: 40px; color: var(--neon-green); }
.links a { color: #fff; font-size: 20px; }
.links a:hover { color: var(--neon-blue); }
.view-logs-btn {
    background: transparent; border: 1px solid var(--neon-blue);
    color: var(--neon-blue); padding: 8px 15px; margin: 15px 0;
    cursor: pointer; font-family: var(--font-mono); font-weight: bold;
    border-radius: 3px; transition: 0.3s; font-size: 0.9rem;
}
.view-logs-btn:hover { background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.tags { display: flex; gap: 10px; margin-top: 15px; 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; }

/* --- MODAL --- */
.modal {
    display: none !important; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 2000; pointer-events: none; visibility: hidden;
}
.modal.active { display: flex !important; align-items: center; justify-content: center; pointer-events: auto; visibility: visible; }
.modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); cursor: pointer;
}
.modal-content {
    position: relative; z-index: 2001; background: #0d0d0d; border: 1px solid var(--neon-blue);
    border-radius: 5px; max-width: 800px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--neon-blue); background: #1a1a1a;
}
.modal-header h2 { color: var(--neon-green); font-size: 1.5rem; margin: 0; }
.modal-close {
    background: transparent; border: none; color: var(--neon-blue);
    font-size: 1.5rem; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.modal-close:hover { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.modal-body {
    padding: 30px; color: #bbb;
}
.project-section {
    margin-bottom: 30px;
}
.section-label {
    color: var(--neon-green); font-size: 1rem; font-weight: bold;
    margin-bottom: 15px; display: block; text-transform: uppercase; letter-spacing: 1px;
}
.modal-image {
    width: 100%; height: auto; margin-top: 15px; border: 1px solid var(--neon-blue);
    border-radius: 5px; max-height: 300px; object-fit: cover;
}
.skills-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px;
}
.skills-columns h4 {
    color: var(--neon-blue); font-size: 0.95rem; margin-bottom: 10px; text-transform: uppercase;
}
.skills-columns ul {
    list-style: none; margin: 0; padding: 0;
}
.skills-columns li {
    color: #aaa; margin-bottom: 8px; padding-left: 15px; position: relative;
}
.skills-columns li::before {
    content: "▸"; position: absolute; left: 0; color: var(--neon-green);
}

.modal-body .skill-list {
    list-style: none;
    margin: 15px 0 25px 0;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.modal-body .skill-list li {
    margin-bottom: 12px;
    color: #bbb;
    line-height: 1.6;
}

.modal-body .skill-list li::before {
    content: ">> ";
    color: var(--neon-green);
    font-weight: bold;
    margin-right: 5px;
}

.modal-body p {
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(10, 255, 10, 0.4);
}
.timeline-date {
    color: var(--neon-green);
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: var(--font-mono);
}
.timeline-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.timeline-desc {
    color: #bbb;
    line-height: 1.6;
}

/* --- 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; }
.delay-300 { transition-delay: 0.3s; }
@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); }
}

/* --- LOADING & FEEDBACK --- */
.loading-state {
    color: var(--neon-green);
    font-size: 1rem;
    padding: 30px 0;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--neon-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    color: #555;
    font-size: 1rem;
    padding: 30px 0;
    text-align: center;
}

.form-feedback {
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    border-radius: 3px;
}

.form-feedback.success {
    background: rgba(10, 255, 10, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.form-feedback.error {
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
}

/* --- CV VIEWER --- */
.cv-viewer {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* ================================ */
/* --- COMPONENTS & UTILITIES --- */
/* ================================ */

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--neon-green);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: 1px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.back-to-top:hover {
    background: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    color: #fff;
}

/* --- PROJECT STATUS BADGE --- */
.card-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.status-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: #888;
    border: 1px solid #444;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #0a0a0a;
    border-top: 1px solid #333;
    margin-top: 50px;
}
.footer-text {
    margin-bottom: 15px;
    color: #bbb;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
}
.footer-socials a {
    color: #888;
    font-size: 1.5rem;
    transition: 0.3s;
}
.footer-socials a:hover {
    color: var(--neon-green);
    transform: translateY(-3px);
    text-shadow: 0 0 15px var(--neon-green);
}

/* ================================ */
/* --- RESPONSIVE LAYOUT --- */
/* ================================ */

/* Mobiel */
@media (max-width: 768px) {
    .glitch-header { font-size: 2.5rem; }
    .section { padding: 60px 5%; }
    .about-content { grid-template-columns: 1fr; }
    .about-grid { flex-direction: column; }
    .about-image { flex: 0 0 auto; text-align: center; }
    .about-image .profile-pic { max-width: 220px; }
    
    .navbar { padding: 15px 5%; }
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    
    .cta-group { flex-direction: column; gap: 15px; width: 100%; align-items: center; }
    .cyber-btn { width: 100%; text-align: center; max-width: 300px; }
    
    .projects-grid { grid-template-columns: 1fr; }
    
    .modal-content { width: 95%; max-height: 90vh; }
    .skills-columns { grid-template-columns: 1fr; }
    .category-header { flex-wrap: wrap; padding: 15px; gap: 12px; }
    .category-badge-label { order: -1; width: 100%; text-align: center; }
    .category-icon { font-size: 1.4rem; width: auto; }
}