/* --- VECTOR MATRIX ULTRAVIOLET RESET --- */
/* Use the site's existing font stack; no external font request. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Keep text selectable for accessibility and copying code. */
}

body {
    background-color: #010103;
    color: #9900ff; /* Diep cyberpunk paars */
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* CRT CHROMATIC GLITCH FILTER */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), 
                linear-gradient(90deg, rgba(153, 0, 255, 0.04), rgba(0, 255, 255, 0.03), rgba(255, 0, 85, 0.02));
    z-index: 99999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

/* INTERACTIEVE SPINNENWEB CANVAS */
#spider-web-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.25;
    background: #010103;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px dashed #00ffff;
}

/* --- BRAND NEW SPIDER-SHRED GLITCH --- */
.spider-title {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    text-transform: uppercase;
    text-shadow: 0 0 10px #00ffff, 3px 3px #9900ff, -3px -3px #ff0055;
    animation: webShredder 2s steps(2) infinite;
    cursor: pointer;
}

.sub-status {
    color: #ff0055;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 5px;
    animation: blinkStatus 0.8s infinite alternate;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 25px;
}

/* --- INFO CARDS WITH NEON GLOW --- */
.info-card {
    background: rgba(5, 5, 10, 0.95);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 4px;
    line-height: 1.6;
}

.purple-glow {
    border-top: 4px solid #9900ff;
    box-shadow: 0 0 20px rgba(153, 0, 255, 0.2);
}
.purple-glow h2 { color: #9900ff; margin-bottom: 15px; letter-spacing: 1px;}

.cyaan-glow, .cyan-glow {
    border-top: 4px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}
.cyaan-glow h2, .cyan-glow h2 { color: #00ffff; margin-bottom: 15px; letter-spacing: 1px;}

.info-card p { color: #cccccc; font-size: 1.05rem; }
.info-card strong { color: #00ff66; }

/* --- TECH LAYOUT GRID --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-box {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid #222;
    padding: 20px;
    border-left: 4px solid #ff0055;
    border-radius: 4px;
    transition: all 0.3s;
}
.tech-box:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
}
.tech-box h3 { color: #ff0055; margin-bottom: 10px; font-size: 1.2rem;}
.tech-box p { color: #aaa; font-size: 0.95rem; line-height: 1.4; }

/* --- INTERACTIEVE WORKSHOP TERMINAL --- */
.workshop-terminal {
    background: #040408;
    border: 1px solid #222;
    border-radius: 6px;
    margin-top: 25px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.terminal-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.workshop-btn {
    background: transparent;
    border: 1px solid #9900ff;
    color: #9900ff;
    font-family: 'Share Tech Mono', monospace;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}
.workshop-btn:hover {
    background: #9900ff;
    color: #000;
    box-shadow: 0 0 10px #9900ff;
}

.code-display-box {
    background: #000;
    border: 1px solid #111;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    min-height: 120px;
}
#python-code-output {
    color: #00ff66; /* Prachtig oplichtend groen */
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feedback-text {
    margin-top: 15px;
    font-size: 0.95rem;
    min-height: 20px;
    color: #888;
}
.text-success { color: #00ff66 !important; text-shadow: 0 0 5px #00ff66; }

/* --- UNIVERSAL FOOTER BTN --- */
.cyber-btn {
    background: transparent;
    border: 1px solid #ff0055;
    color: #ff0055;
    font-family: 'Share Tech Mono', monospace;
    padding: 12px 26px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}
.cyber-btn:hover {
    background: #ff0055;
    color: #000;
    box-shadow: 0 0 20px #ff0055;
}

/* --- KEYFRAMES --- */
@keyframes webShredder {
    0%, 100% { transform: translate(0); text-shadow: 0 0 10px #00ffff, 3px 3px #9900ff; }
    50% { transform: translate(-2px, 1px) skewX(2deg); text-shadow: -3px -3px #ff0055, 3px 3px #00ffff; }
}
@keyframes blinkStatus { to { opacity: 0.3; } }

/* Readable learning text and selectable workshop code */
.info-card p, .tech-box p { color: #f0f3fa; }
#python-code-output { user-select: text; white-space: pre; }
.workshop-btn:focus-visible, .cyber-btn:focus-visible { outline: 2px solid #00ffff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .spider-title, .sub-status { animation: none; } }

/* Beginner-friendly expansions and separate crawling spider scene */
.beginner-card { margin-top: 22px; border-left: 3px solid #00ffff; }
.beginner-card h2 { color: #00ffff; margin-bottom: 14px; }
.learning-steps { margin: 12px 0 16px 24px; color: #f0f3fa; line-height: 1.85; }
.learning-steps li { padding-left: 5px; margin-bottom: 6px; }
.beginner-card code, .workshop-note code { color: #a8ffcf; overflow-wrap: anywhere; }
.workshop-note { margin-top: 20px; padding: 16px; border: 1px solid #00ffff55; background: #031316; color: #f5f5ff; line-height: 1.8; }
.spider-stage { position: relative; overflow: hidden; height: 160px; margin: 12px 0 35px; background: radial-gradient(ellipse at 50% 50%, #1d0d31 0%, #03030a 70%); border-top: 1px solid #00ffff77; border-bottom: 1px solid #9900ff77; }
.silk-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.silk-thread { fill: none; stroke: #a86dff; stroke-width: 1.2; opacity: .68; stroke-dasharray: 5 8; animation: silkPulse 5s ease-in-out infinite; }
.silk-thread.faint { stroke: #00ffff; opacity: .2; }
.crawling-spider { position: absolute; left: 0; top: 36%; font-size: 42px; filter: drop-shadow(0 0 9px #ff43b7); animation: spiderPatrol 16s ease-in-out infinite alternate; }
.spider-body { display: inline-block; animation: spiderScuttle .45s ease-in-out infinite alternate; }
.spider-shadow { position: absolute; width: 25px; height: 5px; border-radius: 50%; background: #00ffff88; left: 10px; bottom: -4px; filter: blur(5px); }
.stage-label { position: absolute; right: 12px; bottom: 10px; color: #00ffcc; font-size: .75rem; letter-spacing: 1px; }
@keyframes spiderPatrol { 0% { left: 2%; top: 18%; } 24% { left: 27%; top: 58%; } 50% { left: 49%; top: 15%; } 76% { left: 73%; top: 56%; } 100% { left: 93%; top: 30%; } }
@keyframes spiderScuttle { from { transform: rotate(-9deg) scaleX(1); } to { transform: rotate(9deg) scaleX(.93); } }
@keyframes silkPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .silk-thread, .crawling-spider, .spider-body { animation: none !important; } .crawling-spider { left: 45%; top: 30%; } }
@media (max-width: 520px) { .spider-title { font-size: 1.65rem; overflow-wrap: anywhere; } .container { padding: 0 14px; } .tech-grid { grid-template-columns: minmax(0,1fr); } }
