@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/vt323-v18.woff2') format('woff2');
}

/* --- base --- */
body {
  background-color: #0a0a0a;
  background-image: url('../img/bg.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  background-attachment: scroll;
  margin: 0;
  padding: 0;
  color: #bbb;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

* { box-sizing: border-box; }

a:link, a:visited { color: #ccc; font-weight: bold; }
a:hover { color: #fff; }
a:active { color: #fff; }

img { max-width: 100%; }

::selection { background: #fff; color: #000; }

/* scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #fff; }
::-webkit-scrollbar-thumb:hover { background: #fff; }

/* ===================== */
/* SPLASH / ENTRY PAGE   */
/* ===================== */
.splash-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background-image: url('../img/splash-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.splash-page pre {
  color: #e8e8e8;
  font-size: 7px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 4px rgba(255,255,255,0.25);
}

.splash-page .site-name {
  font-family: 'VT323', monospace;
  font-size: 50px;
  color: #e8e8e8;
  letter-spacing: 8px;
  margin-bottom: 10px;
}

.splash-page .enter {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #e8e8e8;
  text-decoration: none;
  letter-spacing: 3px;
}
.splash-page .enter:hover {
  color: #fff;
}

.splash-page .warning {
  margin-top: 30px;
  font-size: 10px;
  color: #444;
}

.splash-page .deco-gif {
  width: 80px;
  opacity: 0.5;
  margin: 10px;
}

/* ===================== */
/* MAIN SITE LAYOUT      */
/* ===================== */

/* left sidebar - fixed */
#leftCol {
  width: 200px;
  position: fixed;
  top: 15px;
  left: 15px;
  height: calc(100vh - 30px);
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid #444;
  padding: 15px 10px;
  overflow-y: auto;
  z-index: 10;
}

#leftCol .pfp {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  border: 2px solid #ddd;
}

#leftCol .name {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #e8e8e8;
  letter-spacing: 3px;
  margin-bottom: 3px;
}

#leftCol .tagline {
  text-align: center;
  font-size: 10px;
  color: #555;
  margin-bottom: 15px;
}

#leftCol hr {
  border: none;
  border-top: 1px dashed #333;
  margin: 10px 0;
}

#leftCol .nav-title {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #e8e8e8;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

#leftCol nav a {
  display: block;
  padding: 4px 8px;
  color: #999;
  text-decoration: none;
  font-weight: normal;
  font-size: 13px;
  border-bottom: 1px dotted #222;
}
#leftCol nav a:hover {
  color: #e8e8e8;
  background: rgba(255,255,255,0.05);
}

#leftCol .status {
  font-size: 11px;
  margin-top: 5px;
}
#leftCol .status .lbl { color: #e8e8e8; }
#leftCol .status .row {
  padding: 2px 0;
  border-bottom: 1px dotted #222;
}

#leftCol .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin-top: 10px;
}
#leftCol .buttons img {
  width: 88px;
  height: 31px;
  border: 1px solid #333;
}

#leftCol .socials {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}
#leftCol .socials a {
  margin: 0 3px;
  font-weight: normal;
}

/* right side (everything except sidebar) */
#rightSide {
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

/* content header / banner */
#contentHeader {
  width: 580px;
  text-align: center;
  margin-bottom: 6px;
}

/* banner removed — just floating text now */

/* content area */
#content {
  width: 580px;
}

/* --- boxes (mix chaotique noir et blanc) --- */
.box {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid #555;
  padding: 12px;
  margin-bottom: 10px;
  float: left;
  clear: left;
}

.box.full { width: 100%; }
.box.half { width: 49%; }
.box.half + .box.half { float: right; clear: none; }

/* chaque box a un style different */
.box:nth-child(3n+1) {
  border: 2px solid #888;
  border-left: 4px solid #fff;
  transform: rotate(-0.4deg);
}
.box:nth-child(3n+2) {
  border: 1px dashed #777;
  border-top: 3px double #aaa;
  transform: rotate(0.3deg);
}
.box:nth-child(3n+3) {
  border: 2px dotted #666;
  border-right: 4px solid #999;
  transform: rotate(-0.2deg);
}
.box:hover {
  transform: rotate(0deg) !important;
  border-color: #fff !important;
}

.box .box-title {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #444;
}

.box p {
  margin-bottom: 6px;
  line-height: 1.6;
}

.box .scrollable {
  max-height: 200px;
  overflow-y: scroll;
  padding-right: 5px;
}

/* --- about me box (hero) --- */
.about-box {
  border: 2px solid #aaa !important;
  border-left: 5px solid #fff !important;
  box-shadow:
    0 0 15px rgba(255,255,255,0.05),
    inset 0 0 40px rgba(255,255,255,0.01);
  background: rgba(5, 5, 5, 0.93) !important;
  transform: rotate(0deg) !important;
}
.about-box .box-title {
  font-size: 20px !important;
  letter-spacing: 3px;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* clearfix */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* --- project items --- */
.project {
  border: 1px dashed #333;
  padding: 8px;
  margin-bottom: 8px;
}
.project:hover { border-color: #e8e8e8; }
.project h3 {
  font-family: 'VT323', monospace;
  color: #e8e8e8;
  font-size: 16px;
  margin-bottom: 3px;
}
.project p {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}
.project .tag {
  display: inline-block;
  font-size: 10px;
  color: #555;
  border: 1px solid #333;
  padding: 1px 4px;
  margin-right: 3px;
}

/* --- updates --- */
.update {
  padding: 3px 0;
  border-bottom: 1px dotted #333;
  font-size: 12px;
}
.update .date { color: #fff; }

/* --- placeholder --- */
.placeholder {
  border: 1px dashed #333;
  padding: 15px;
  text-align: center;
  color: #444;
  font-size: 12px;
}

/* --- manifesto quote --- */
.manifesto {
  border-left: 2px solid #ddd;
  padding-left: 10px;
  color: #666;
  font-style: italic;
  font-size: 12px;
  margin: 8px 0;
}

/* --- links page --- */
.links-section { margin-bottom: 12px; }
.links-section h2 {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #e8e8e8;
  letter-spacing: 2px;
  border-bottom: 1px dashed #333;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.links-list { list-style: none; padding: 0; }
.links-list li {
  padding: 3px 0;
  border-bottom: 1px dotted #222;
  font-size: 13px;
}
.links-list .link-desc {
  color: #555;
  font-size: 10px;
  margin-left: 10px;
  display: block;
}

/* --- music --- */
.page-title {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: #e8e8e8;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.track {
  margin-bottom: 10px;
  border: 1px solid #333;
  padding: 10px;
  background: rgba(5,8,5,0.85);
}
.track .track-title {
  font-family: 'VT323', monospace;
  color: #e8e8e8;
  font-size: 15px;
  margin-bottom: 5px;
}
.track .track-desc {
  color: #444;
  font-size: 11px;
  margin-top: 4px;
}

/* --- footer --- */
.site-footer {
  clear: both;
  text-align: center;
  padding: 10px;
  font-size: 10px;
  color: #444;
  border-top: 1px dashed #333;
  margin-top: 10px;
}
.site-footer a { font-weight: normal; }

/* --- visitor --- */
.visitor { font-size: 11px; color: #444; }

/* ===================== */
/* ARTISTE TORTURE SHIT  */
/* ===================== */

/* CRT scanlines 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,
    rgba(0,0,0,0.03) 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* glitch title */
@keyframes glitch {
  0%, 90%, 100% { transform: none; text-shadow: 2px 2px 0 rgba(0,0,0,0.8); }
  91% { transform: skewX(-2deg) translateX(-2px); text-shadow: -3px 0 #999, 3px 0 #444; }
  93% { transform: skewX(1deg) translateX(1px); text-shadow: 2px 0 #999, -2px 0 #444; }
  95% { transform: none; text-shadow: -1px 2px #999, 1px -1px #444; }
  97% { transform: skewX(-1deg); text-shadow: 3px 0 #999, -3px 0 #444; }
}

#contentHeader .banner h1 {
  animation: glitch 4s infinite;
}

/* flicker */
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
  98% { opacity: 0.4; }
  99% { opacity: 1; }
}

.box .box-title {
  animation: flicker 8s infinite;
}

/* floating noise text */
.noise {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  font-family: 'Courier New', monospace;
  opacity: 0.06;
  color: #e8e8e8;
  font-size: 10px;
  white-space: pre;
  line-height: 1.2;
  user-select: none;
}

/* sticker / stamp elements */
.sticker {
  position: absolute;
  font-family: 'VT323', monospace;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

/* rotate slightly off some boxes for organic feel */
.box:nth-child(odd) {
  transform: rotate(-0.3deg);
}
.box:nth-child(even) {
  transform: rotate(0.2deg);
}
.box:hover {
  transform: rotate(0deg) !important;
}

/* tape / decoration strip */
.tape {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e8e8e8;
  font-family: 'VT323', monospace;
  font-size: 11px;
  padding: 3px 10px;
  margin-bottom: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(-0.5deg);
  width: fit-content;
}

/* broken/redacted text */
.redacted {
  background: #fff;
  color: #e8e8e8;
  padding: 0 4px;
  cursor: help;
  font-size: 12px;
}
.redacted:hover {
  background: transparent;
  color: #999;
}

/* subtle drift animation for sidebar gif */
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

#leftCol img.pfp {
  animation: drift 6s ease-in-out infinite;
}

/* pixel cursor */
body { cursor: url('../img/cursor.png'), crosshair; }
a { cursor: url('../img/cursor.png'), pointer; }

/* scratchy border on sidebar */
#leftCol {
  border: 1px solid #555;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.5),
    0 0 10px rgba(255,255,255,0.03);
}

/* date stamps style */
.update .date {
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}

/* project hover effect - harsh */
.project:hover {
  border-color: #999 !important;
  box-shadow: 0 0 6px rgba(255,0,0,0.15);
}

/* manifesto glow */
.manifesto {
  border-left-color: #fff;
  text-shadow: 0 0 20px rgba(255,102,0,0.05);
}

/* footer barely visible */
.site-footer {
  opacity: 0.5;
}
.site-footer:hover {
  opacity: 1;
}

/* --- audio player fixed --- */
.audio-player {
  position: fixed;
  bottom: 10px;
  left: 15px;
  z-index: 100;
  background: rgba(5,5,5,0.9);
  border: 1px solid #444;
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  width: 200px;
}
.audio-player .player-title {
  color: #ddd;
  font-size: 13px;
  margin-bottom: 4px;
}
.audio-player audio {
  width: 100%;
  height: 25px;
  filter: invert(1) hue-rotate(180deg) brightness(0.7);
}

/* --- responsive --- */
@media (max-width: 700px) {
  /* sidebar becomes top bar */
  #leftCol {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    border: none;
    border-bottom: 1px solid #333;
    padding: 12px 15px;
    box-shadow: none;
  }

  #leftCol .pfp {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }

  #leftCol .name { font-size: 18px; }

  #leftCol nav a {
    display: inline-block;
    padding: 4px 8px;
    border-bottom: none;
    font-size: 12px;
  }

  /* main content full width */
  #rightSide {
    margin-left: 0;
    padding: 10px 12px;
  }

  #contentHeader,
  #content {
    width: 100%;
    max-width: 100%;
  }

  #contentHeader img,
  #content img.logo,
  #contentHeader > div > img {
    max-width: 100%;
    height: auto;
  }

  /* boxes */
  .box.half {
    width: 100%;
    float: none;
  }

  .box.half + .box.half {
    float: none;
  }

  /* images */
  img { max-width: 100%; height: auto; }

  /* audio player */
  .audio-player {
    width: calc(100% - 24px);
    left: 12px;
  }

  /* floating noise hidden on mobile */
  .noise { display: none; }

  /* fixed gifs smaller or hidden */
  img[style*="position:fixed"] {
    display: none;
  }

  /* tape labels */
  .tape { font-size: 10px; }

  /* page title */
  .page-title { font-size: 22px; }
}

/* small phones */
@media (max-width: 400px) {
  #leftCol { padding: 10px; }
  #leftCol .pfp { width: 60px; height: 60px; }
  #leftCol nav a { font-size: 11px; padding: 3px 6px; }
  #rightSide { padding: 8px; }
  .box { padding: 8px; }
  .audio-player { font-size: 10px; }
}
