/* =======================================
   ✴ EXISTENTIAL ANGST THEME: TEXTURED VOID ✴
   Pure CSS background texture + flicker fx
   No downloaded images, no mercy.
========================================== */

body {
  margin: 0;
  background-color: #0d0d0d;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease;

  /* 🔲 Boosted Texture */
  background-image:
    radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 75%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 5px),
    linear-gradient(180deg, rgba(255,255,255,0.0125), rgba(0,0,0,0.12));

  background-blend-mode: overlay;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 🌫️ Flickering background pulse */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015),
    rgba(0, 0, 0, 0.03) 2px
  );
  animation: flicker 4s infinite;
  z-index: 2;
}

@keyframes flicker {
  0%, 100% { opacity: 0.025; }
  50% { opacity: 0.055; }
}

/* 🎞️ Grain Layer — Simulates analog grain/static noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  /* Noise/grid pattern using only gradients */
  background-image: 
    repeating-linear-gradient(0deg, rgba(255,255,255,0.006) 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.006) 1px, transparent 2px);
  
  animation: noise 1.2s steps(2) infinite;
  mix-blend-mode: overlay;
}

@keyframes noise {
  0%, 100% { opacity: 0.015; }
  50% { opacity: 0.05; }
}
nav {
  display: flex;
  justify-content: center;
  background-color: #111111;
  padding: 1rem;
  width: 100%;
  gap: 2rem;
  border-bottom: 1px solid #333;
  z-index: 5;
}

nav a {
  text-decoration: none;
  color: #e6e6e6;
  font-family: 'IBM Plex Mono', monospace;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}