/* =========================================================
   BASE / GLOBAL
========================================================= */

body {
  margin: 0;
  background: #0b0f14;
  color: #00f0ff;
  font-family: "JetBrains Mono", monospace;
}

/* subtle moving grid */
body::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 40s linear infinite;
  z-index: -2;
}

@keyframes gridMove {
  from { transform: translate(0,0); }
  to { transform: translate(-40px,-40px); }
}

/* glow text */
.glow {
  text-shadow: 0 0 6px #00f0ff;
}

/* ascii block */
pre {
  margin: 0;
  text-shadow: 0 0 8px #00f0ff;
}


/* =========================================================
   TERMINAL
========================================================= */

.terminal {
  padding: 20px;
}

.line {
  display: flex;
}

.prompt {
  margin-right: 10px;
  color: #00ff9c;
}

input {
  background: transparent;
  border: none;
  color: #00f0ff;
  outline: none;
  width: 100%;
  caret-color: #00f0ff;
}


/* =========================================================
   PANEL (DESKTOP)
========================================================= */

.panel {
  position: fixed;
  top: 10%;
  right: -800px;

  width: 700px;
  height: 70%;

  background: rgba(0,0,0,0.95);
  border: 1px solid #00f0ff;
  border-radius: 12px;

  padding: 20px;
  overflow-y: auto;

  transition: right 0.4s ease;

  box-shadow: 0 0 20px #00f0ff22;
  animation: panelGlow 4s infinite alternate;
}

.panel.open {
  right: 40px;
}

@keyframes panelGlow {
  from { box-shadow: 0 0 10px #00f0ff22; }
  to   { box-shadow: 0 0 25px #00f0ff44; }
}

/* scanline effect */
.panel::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  top: 0;
  left: 0;
  background: #00f0ff;
  opacity: 0.08;
  animation: scan 10s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}


/* =========================================================
   PANEL COMPONENTS
========================================================= */

/* close button (ALGEMEEN) */
.panel .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

/* cards */
.card {
  border: 1px solid #00ff9c;
  padding: 10px;
  margin-top: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card:hover {
  background: rgba(0,255,156,0.1);
  transform: scale(1.02);
}


/* =========================================================
   COMMAND LIST
========================================================= */

.commands {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.commands li {
  cursor: pointer;
  padding: 6px 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.commands li:hover {
  background: rgba(0,255,156,0.1);
  border-left: 2px solid #00ff9c;
  transform: translateX(4px);
}

.desc {
  opacity: 0.6;
  margin-left: 6px;
}


/* =========================================================
   EXPERIENCE / JOBS
========================================================= */

.job {
  margin-bottom: 25px;
  padding: 12px;
  border-left: 2px solid rgba(0,255,156,0.3);
  transition: all 0.2s ease;
}

.job:hover {
  background: rgba(0,255,156,0.05);
  border-left: 2px solid #00ff9c;
}

.meta {
  opacity: 0.6;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.highlight {
  border: 1px solid #00ff9c;
  background: rgba(0,255,156,0.08);
  box-shadow: 0 0 10px rgba(0,255,156,0.2);
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h3 {
  color: #00ff9c;
  margin-top: 20px;
}

h4 {
  margin-top: 10px;
  color: #00ff9c;
}

ul {
  margin-bottom: 15px;
}

ul li {
  margin-bottom: 4px;
}


/* =========================================================
   DIAGRAMS / IMAGES
========================================================= */

.diagram {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid rgba(0,255,156,0.3);
  background: rgba(0,255,156,0.03);
  text-align: center;
}

.diagram img {
  max-width: 100%;
  height: auto;
  filter: brightness(0.9) contrast(1.1);
}

.diagram-caption {
  font-size: 0.9em;
  opacity: 0.6;
  margin-top: 8px;
}

.profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid #00ff9c;
}


/* =========================================================
   BOOT SCREEN
========================================================= */

#bootscreen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  color: #00f0ff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.boot-content {
  text-align: left;
  max-width: 600px;
}


/* =========================================================
   STATUS BAR (HTOP STYLE)
========================================================= */

#statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: rgba(0,0,0,0.95);
  border-top: 1px solid #00f0ff;

  padding: 8px 15px;

  display: flex;
  justify-content: center;
  gap: 40px;

  font-size: 12px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar {
  width: 120px;
  height: 8px;
  background: #111;
  border: 1px solid #00f0ff33;
  overflow: hidden;
}

.bar div {
  height: 100%;
  width: 0%;
  background: #00f0ff;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px #00f0ff;
}


/* =========================================================
   MOBILE COMMANDS
========================================================= */

#mobile-commands {
  display: none;
}

@media (max-width: 768px) {
  #mobile-commands {
    display: flex;
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;

    justify-content: center;
    gap: 10px;
    padding: 10px;

    background: rgba(0,0,0,0.9);
  }

  #mobile-commands button {
    background: black;
    border: 1px solid #00f0ff;
    color: #00f0ff;
    padding: 8px 12px;
    border-radius: 6px;
  }
}


/* =========================================================
   MOBILE PANEL (FIX CLOSE BUTTON)
========================================================= */

@media (max-width: 768px) {
  .panel {
    width: 100vw;
    height: 100dvh;

    top: 0;
    right: -100vw;

    border-radius: 0;

    /* EXTRA ruimte bovenin voor notch + close button */
    padding: 60px 20px 80px 20px;

    box-sizing: border-box;
  }

  .panel.open {
    right: 0;
  }

  /* 🔥 FIX: close button altijd zichtbaar */
  .panel .close-btn {
    top: max(15px, env(safe-area-inset-top));
    right: 15px;
  }
}

/* =========================================================
   LAYERING FIX (MOBILE OVERLAP)
========================================================= */

/* panel moet boven alles */
.panel {
  z-index: 1000;
}

/* close button nóg hoger */
.panel .close-btn {
  z-index: 1100;
}

/* mobile command bar lager houden */
#mobile-commands {
  z-index: 900;
}

/* =========================================================
   GHOST FACE
========================================================= */

#ghost-face {
  position: fixed;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(1);

  width: min(40vw, 500px);

  opacity: 0;
  pointer-events: none;

  z-index: 0;

  filter: grayscale(100%) blur(2px);

  transition:
    opacity 2s ease,
    transform 3s ease;
}

/* =========================================================
   CLASSIFIED BANNER
========================================================= */

#classified-banner {
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  font-size: 48px;
  font-weight: bold;
  color: #ff3b3b;

  letter-spacing: 6px;

  text-shadow:
    0 0 10px #ff3b3b,
    0 0 20px #ff0000;

  opacity: 1;
  transition: opacity 0.5s ease;

  pointer-events: none;
}

/* =========================================================
   CONTACT HACK EFFECT
========================================================= */

#contact-terminal {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #00ff9c;
}

/* kleine blink cursor */
#contact-terminal::after {
  content: "_";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* contact links */
#contact-content a {
  color: #00ff9c;
  text-decoration: none;
}

#contact-content a:hover {
  text-shadow: 0 0 6px #00ff9c;
  text-decoration: underline;
}

/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-btn {
  background: black;
  border: 1px solid #00ff9c;
  color: #00ff9c;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.download-btn:hover {
  box-shadow: 0 0 10px #00ff9c;
}

#cv-terminal {
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  color: #00ff9c;
}

/* optional cursor */
#cv-terminal::after {
  content: "_";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes fadePulse {
  0% { opacity: 0.08; }
  50% { opacity: 0.18; }
  100% { opacity: 0.08; }
}

#signature {
  position: fixed;
  
  left: 50%;   /* startpunt */
  top: 50%;

  font-size: 11px;
  font-family: monospace;
  letter-spacing: 1px;

  color: #00f0ff;

  pointer-events: none;
  z-index: 9999;

  animation: fadePulse 6s infinite;

  transition: all 4s ease-in-out; /* 👈 smooth movement */
}
