/* =================================================================
   1. CSS VARIABELEN & BASIS STYLING (Oranje Cyber Thema)
   ================================================================= */
:root {
    --neon-orange: #ff6600;
    --neon-cyan: #00f0ff;
    --neon-pink: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #ffffff;
    --body-bg: #030406;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 5% 15%, rgba(255, 102, 0, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 95% 85%, rgba(0, 240, 255, 0.2) 0%, transparent 40%),
        linear-gradient(135deg, #07080c 0%, #010203 100%);
    background-attachment: fixed;
}

/* Retro CRT Scanlines over het scherm */
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(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.04));
    z-index: 999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    opacity: 0.35;
}

#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 98;
}

/* =================================================================
   2. 💾 BOOTLOADER / OPSTARTSCHERM STYLING
   ================================================================= */
#bootloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #030406;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-orange);
    padding: 20px;
}

.boot-container {
    max-width: 600px;
    width: 100%;
}

.boot-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--neon-orange);
    text-align: center;
}

.boot-terminal {
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #ffaa66;
    height: 180px;
    overflow: hidden;
    margin-bottom: 20px;
    line-height: 1.5;
}

.boot-progress-container {
    width: 100%;
    height: 20px;
    border: 2px solid var(--neon-orange);
    padding: 2px;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.boot-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange);
    transition: width 0.1s linear;
}

.boot-footer {
    margin-top: 25px;
    font-size: 0.6em;
    text-align: center;
    opacity: 0.5;
}

/* Glitch fouteffect voor uitschakelen */
.fade-out-glitch {
    animation: glitchFade 0.5s forwards;
}

@keyframes glitchFade {
    0% { opacity: 1; transform: scale(1); filter: hue-rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.1) skewX(20deg); filter: hue-rotate(90deg); }
    100% { opacity: 0; transform: scale(0); display: none; pointer-events: none; }
}
/* =================================================================
   3. RESPONSIVE MENU CAPSULE (Navigatiebalk Fix)
   ================================================================= */
nav {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    margin: 20px auto;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    max-width: 95%;
    width: max-content;
    align-self: center;
    flex-wrap: wrap;
}

nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    padding: 8px 14px;
    border-radius: 30px;
    transition: all 0.3s;
    border: 1px solid transparent;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: #fff;
    background: rgba(255, 102, 0, 0.25);
    border: 1px solid rgba(255, 102, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.download-nav-btn {
    background: rgba(0, 240, 255, 0.15) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.download-nav-btn:hover {
    background: var(--neon-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 25px var(--neon-cyan) !important;
}

/* Modificaties specifiek voor kleine mobiele schermen */
@media (max-width: 600px) {
    nav {
        border-radius: 20px;
        padding: 6px 10px;
        gap: 2px;
    }
    nav a {
        font-size: 0.8em;
        padding: 6px 10px;
    }
}

/* =================================================================
   4. DASHBOARD LAYOUT & BENTO PANELS
   ================================================================= */
.glass-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    max-width: 1280px;
    width: 95%;
    margin: 10px auto 40px auto;
    z-index: 1;
    padding: 10px;
    perspective: 1000px;
}

@media (max-width: 968px) {
    .glass-dashboard { grid-template-columns: 1fr; }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-panel::after {
    content: ''; position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid transparent; border-radius: 16px;
    pointer-events: none; transition: border-color 0.3s;
}

.glass-panel:hover::after {
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    border-left: 1px solid rgba(0, 240, 255, 0.15);
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    border-right: 1px solid rgba(255, 102, 0, 0.15);
}

.glass-panel::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 102, 0, 0.1), transparent 80%);
    pointer-events: none; z-index: 1;
}

.glass-panel:hover {
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 0 20px 45px rgba(255, 102, 0, 0.15);
}

/* Grote Knaloranje Welkomstbalk */
.hero-panel {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.95) 0%, rgba(180, 40, 0, 0.98) 100%);
    border: 1px solid rgba(255, 153, 51, 0.5);
    box-shadow: 0 25px 60px rgba(255, 85, 0, 0.3);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 320px;
}

.hero-panel h1 {
    font-size: 3.8em; font-weight: 800; margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff, #ffd6b3);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.cta-button {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, #00bcff 100%);
    color: #030406; padding: 18px 36px; font-size: 1.1em; font-weight: 800;
    text-decoration: none; border-radius: 50px; box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transition: all 0.3s ease; cursor: pointer;
}

.cta-button:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 0 45px rgba(0, 240, 255, 0.8); }

/* Updates Module */
.update-item {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px; padding: 16px; margin-bottom: 12px; transition: all 0.3s;
}
.update-item:hover { border-color: var(--neon-cyan); transform: translateX(5px); }
.update-version { color: var(--neon-orange); font-weight: 800; display: block; margin-bottom: 5px; }

/* Roblox Badge Elementen */
.roblox-badge {
    background: linear-gradient(135deg, #121318 0%, #06070a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 20px;
    display: flex; align-items: center; justify-content: space-between;
    text-decoration: none; color: #fff; transition: all 0.3s;
}
.roblox-badge:hover { border-color: var(--neon-cyan); box-shadow: 0 0 25px rgba(0, 240, 255, 0.25); }
.roblox-icon {
    width: 44px; height: 44px; background: #ff2222; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.6em;
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* =================================================================
   5. TERMINAL CONSOLE & EDITOR INTERFACE
   ================================================================= */
.console-panel {
    font-family: 'Courier New', monospace; background: rgba(0, 0, 0, 0.75);
    border-radius: 16px; padding: 18px; color: #00ff66; border: 1px solid rgba(0, 255, 102, 0.2);
    max-height: 180px; overflow-y: auto;
}
.console-status-bar { height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.console-status-progress { width: 100%; height: 100%; background: var(--neon-orange); transform-origin: left; animation: progressSweep 25s linear infinite; }
@keyframes progressSweep { 0% { transform: scaleX(0); background: var(--neon-cyan); } 100% { transform: scaleX(1); background: var(--neon-pink); } }

/* Canvas Editor Elementen */
#editorCanvas { background: #08090d; border: 2px solid var(--neon-orange); border-radius: 16px; max-width: 100%; }
.editor-tools { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.02); padding: 12px 24px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.05); }
.effect-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 20px; padding: 6px 14px; cursor: pointer; }
.effect-btn.active { background: var(--neon-cyan); color: #000; font-weight: bold; }
.btn-2026 { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-2026:hover { background: var(--neon-orange); transform: translateY(-2px); }

/* =================================================================
   6. WEBCAM INTERFACE & CYBER RADAR AVATAR
   ================================================================= */
.avatar-container { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.avatar-radar { position: absolute; width: 100%; height: 100%; border: 1px solid rgba(0, 240, 255, 0.3); border-radius: 50%; animation: radarSweep 4s linear infinite; }
@keyframes radarSweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.avatar { position: absolute; width: 110px; height: 110px; background: #0c0d12; border: 3px solid #fff; border-radius: 50%; overflow: hidden; }
#userAvatarImg { width: 100%; height: 100%; object-fit: cover; }
.cyber-glasses-overlay { position: absolute; width: 65px; height: 22px; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)); border-radius: 4px; top: 40px; left: 22px; }
.avatar-scanline { position: absolute; width: 100%; height: 4px; background: rgba(0, 240, 255, 0.8); top: 0; animation: scan-avatar 3s infinite linear; }
@keyframes scan-avatar { 0% { top: 0%; } 100% { top: 100%; } }
.milan-speech-bubble { background: rgba(0, 240, 255, 0.03); border: 2px solid var(--neon-cyan); border-radius: 16px; padding: 15px; margin-top: 15px; position: relative; display: none; border-left-width: 6px; }
.avatar-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 0.8em; cursor: pointer; }
.avatar-btn:hover { background: var(--neon-cyan); color: #000; }
#webcamVideo { display: none; }
footer { text-align: center; padding: 35px; font-size: 0.95em; color: rgba(255, 255, 255, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.03); margin-top: auto; }

/* =================================================================
   7. RETRO GAME MODE OVERRIDES (In te schakelen via JS)
   ================================================================= */
body.game-mode {
    background-color: #ff6600 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px !important; color: #000000 !important; font-family: 'Press Start 2P', cursive;
}
body.game-mode .glass-panel {
    background-color: #ffaa66 !important; border: 4px solid #000000 !important;
    border-radius: 0 !important; color: #000000 !important; box-shadow: 10px 10px 0 #000000 !important; transform: none !important;
}
body.game-mode .hero-panel { background: #000000 !important; color: #ff6600 !important; }
body.game-mode .hero-panel h1 { color: #ff6600 !important; -webkit-text-fill-color: #ff6600; font-size: 2em; }
body.game-mode .cta-button { background: #ff6600 !important; color: #000 !important; border: 3px solid #000 !important; border-radius: 0 !important; box-shadow: 5px 5px 0 #000 !important; }

