/* Cyberpunk Retro 90's Color Scheme */
body {
  background-color: #121212; /* deep cyberpunk black */
  color: #c0c0c0; /* silver-gray for retro text */
  font-family: 'Courier New', Courier, monospace; /* hackerish font */
}

a, h1, h2, h3 {
  color: #00FFFF; /* Neon cyan */
  text-shadow: 0 0 5px #00FFFF;
}

header, footer {
  background: #1e1e1e;
  border-top: 3px solid #FF00FF; /* Neon Magenta */
  border-bottom: 3px solid #FF00FF;
  box-shadow: 0 0 20px #FF00FF;
}

pre {
    background-color: black;
  color: lime;
  border: 1px solid #00FF00;
  padding: 1em;
  box-shadow: 0 0 15px #00FF00;
}

img {
  border-radius: 5px;
  max-width: 100%;
  box-shadow: 0 0 15px #FF00FF;
  overflow-clip-margin: 1px;
  overflow: visible;
}

.glitch {
  position: relative;
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFFFFF;
  text-transform: uppercase;
  animation: glitch-animation 2s infinite linear alternate-reverse;
}

@keyframes glitch-animation {
  0% { text-shadow: 2px 0 #FF00FF; }
  25% { text-shadow: -2px -2px #00FFFF; }
  50% { text-shadow: 2px 2px #00FF00; }
  75% { text-shadow: -2px 0 #FFFF00; }
  100% { text-shadow: 2px -2px #FF0000; }
}

/* Aside Nav Styles */
aside {
  background-color: #272932;

}
aside a {
  color: #FDF500; /* neon yellow */
  font-family: 'Courier New', monospace;
  text-transform: lowercase;
  transition: all 0.3s ease;
  position: relative;
}

aside a:hover {
  color: #0ff; /* cyan glow */
  text-shadow:
    0 0 2px #0ff,
    0 0 5px #0ff,
    0 0 10px #0ff,
    0 0 20px #0ff;
}

aside li.active a {
  color: #f0f; /* Magenta glow */
  font-weight: bold;
  text-shadow:
    0 0 3px #f0f,
    0 0 6px #f0f,
    0 0 12px #f0f;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

aside a:hover {
  animation: glitch 0.3s steps(2, jump-none) infinite;
}

body, aside a {
  font-family: 'Share Tech Mono', monospace;
}

/* Glitch Image Style */
.glitch-img {
  position: relative;
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  z-index: 1;
  filter: contrast(1.2) brightness(1.1);
  animation: glitchPulse 3s infinite ease-in-out;
  border: 2px solid #0ff;
  box-shadow:
    0 0 5px #0ff,
    0 0 10px #f0f,
    0 0 20px #0ff;
}

.glitch-img::before,
.glitch-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./theme/img/profile.png') no-repeat center center;
  background-size: cover;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.glitch-img::before {
  animation: glitchShift 0.5s infinite linear alternate;
  transform: translate(-2px, -1px);
  filter: hue-rotate(30deg) contrast(2);
}

.glitch-img::after {
  animation: glitchShift 0.5s infinite linear alternate-reverse;
  transform: translate(2px, 1px);
  filter: hue-rotate(-30deg) contrast(2);
}

@keyframes glitchPulse {
  0% {
    filter: contrast(1.2) brightness(1.1);
  }
  50% {
    filter: hue-rotate(5deg) brightness(1.3);
  }
  100% {
    filter: contrast(1.2) brightness(1.1);
  }
}

@keyframes glitchShift {
  0% {
    clip-path: inset(0 0 95% 0);
  }
  25% {
    clip-path: inset(20% 0 60% 0);
  }
  50% {
    clip-path: inset(40% 0 40% 0);
  }
  75% {
    clip-path: inset(60% 0 20% 0);
  }
  100% {
    clip-path: inset(95% 0 0 0);
  }
}


.glitch-id {
  font-family: 'Share Tech Mono', monospace;
  color: #0ff;
  text-align: center;
  font-size: 0.9rem;
  margin-top: -10px;
  letter-spacing: 0.05em;
  position: relative;
  animation: flicker 3s infinite alternate;
  text-shadow:
    0 0 2px #0ff,
    0 0 5px #f0f,
    0 0 10px #0ff;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.1;
  }
}

.blip {
  animation: blip-fade 1s step-start infinite;
  color: #0ff;
}

@keyframes blip-fade {
  50% {
    opacity: 0;
  }
}


.id-label {
  color: #f0f;
  font-weight: bold;
  margin-right: 5px;
}

#datastream-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
  opacity: 0.08;
  pointer-events: none;
}

/* Spinning Jolt Cola Can */
.jolt-container {
  width: 120px;
  height: 240px;
  margin: 20px auto;
  perspective: 1000px;
}

.jolt-can {
  width: 100%;
  height: auto;
  animation: spin-can 5s linear infinite;
  transform-style: preserve-3d;
}

@keyframes spin-can {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Projects Page CSS Stylings */
.glitch-header {
  color: #0ff;
  text-shadow:
    2px 2px #f0f,
    -2px -2px #00f,
    0 0 10px #fff;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0% {text-shadow: 2px 2px #f0f, -2px -2px #00f;}
  20% {text-shadow: -2px -2px #00f, 2px 2px #f0f;}
  40% {text-shadow: 2px -2px #0ff, -2px 2px #f0f;}
  60% {text-shadow: -2px 2px #f0f, 2px -2px #00f;}
  80% {text-shadow: 2px 2px #00f, -2px -2px #0ff;}
  100% {text-shadow: -2px -2px #f0f, 2px 2px #00f;}
}

.project-list {
  margin-top: 40px;
}

.project-item {
  background: #111;
  border-left: 4px solid #0ff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.project-item h2 a {
  color: #0ff;
  text-decoration: none;
}

.project-item h2 a:hover {
  color: #fff;
}

/* 404 styling */
.terminated-img {
  display: block;
  max-width: 100%;
  width: 420px;
  margin: 0 auto 30px auto;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #f0f;
  filter: contrast(1.2) brightness(1.1);
  animation: fadeFlicker 4s ease-in-out infinite alternate;
}

@keyframes fadeFlicker {
  0% { opacity: 1; }
  45% { opacity: 0.95; filter: hue-rotate(-10deg); }
  70% { opacity: 0.75; filter: grayscale(0.3); }
  100% { opacity: 1; }
}

.terminated-img {
  display: block;
  max-width: 100%;
  width: 420px;
  margin: 0 auto 30px auto;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #f0f;
  filter: contrast(1.2) brightness(1.1);
  animation: fadeFlicker 4s ease-in-out infinite alternate;
}

@keyframes fadeFlicker {
  0% { opacity: 1; }
  45% { opacity: 0.95; filter: hue-rotate(-10deg); }
  70% { opacity: 0.75; filter: grayscale(0.3); }
  100% { opacity: 1; }
}

/* Guest Book */
.guestbook-form {
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 20px;
  border: 2px dashed #0ff;
  background: #111;
  font-family: 'Courier New', monospace;
  box-shadow: 0 0 10px #0ff;
}

.guestbook-form label {
  display: block;
  margin: 15px 0 5px;
  color: #0ff;
  font-weight: bold;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  background: #000;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 10px;
  font-family: inherit;
}

.guestbook-form button {
  margin-top: 15px;
  background: #0ff;
  color: #000;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px #0ff;
}

.entries {
  max-width: 500px;
  margin: 0 auto;
  background: #111;
  padding: 20px;
  border: 2px solid #f0f;
  font-family: 'Courier New', monospace;
  box-shadow: 0 0 10px #f0f;
}

.entries .entry {
  padding: 10px;
  border-bottom: 1px dashed #555;
  color: #fff;
}

/* Cyberpunk Terminal */
.terminal {
  background: black;
  color: #0f0;
  font-family: 'Courier New', monospace;
  padding: 20px;
  margin: 40px auto;
  max-width: 600px;
  min-height: 400px;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #0ff;
  position: relative;
}

.terminal #output {
  overflow-y: auto;
  max-height: 300px;
  white-space: pre-wrap;
  font-size: 1rem;
}

.terminal #commandInput {
  width: 100%;
  background: black;
  color: #0f0;
  border: none;
  border-top: 1px solid #0ff;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

#commandInput {
  caret-color: #0f0;
  background: black;
  color: #0f0;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  outline: none;
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-right-color: transparent; }
  50% { border-right: 1px solid #0f0; }
}

#entries-output .entry {
  padding: 10px;
  border-bottom: 1px dashed #555;
  color: #0ff;
  font-family: 'Courier New', monospace;
}

.glitch-meta {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #ccc;
  background-color: #111;
  padding: 5px 10px;
  border-left: 2px solid #0ff;
  box-shadow: inset 0 0 8px #0ff;
}

.terminal-shell {
  background: #000;
  color: #0ff;
  font-family: 'Share Tech Mono', monospace;
  padding: 20px;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #0ff;
  margin-top: 2rem;
}

.terminal-header {
  background: #0ff;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.terminal-body {
  white-space: pre-line;
}

.glitch-tags a {
  font-family: monospace;
  font-size: 0.85rem;
  color: #0ff;
  text-decoration: none;
  margin-right: 10px;
  border-bottom: 1px dashed #0ff;
}

.glitch-tags a:hover {
  color: #f0f;
  text-shadow: 0 0 5px #f0f;
}


a:hover {
  text-shadow: 0 0 5px #f0f, 0 0 10px #0ff;
  color: #fff;
}

/* 90's Site Visit Counter */
footer {
    text-align: center;
}
.counter {
  display:inline-block;
  background:#111;
  padding:6px 10px;
  border:2px solid #0ff;
  box-shadow:0 0 10px #0ff inset,0 0 8px #f0f;
  font-family:'Share Tech Mono',monospace;
}
.counter .digit {
  display:inline-block;
  margin:0 1px;
  width:20px;
  color:#0ff;
  text-shadow:0 0 2px #0ff,0 0 5px #f0f;
  animation: flicker 2s infinite alternate;
}

/* subtle per-digit flicker phase-shift */
.counter .d0{animation-delay:-0.1s}
.counter .d1{animation-delay:-0.2s}
.counter .d2{animation-delay:-0.3s}
.counter .d3{animation-delay:-0.4s}
.counter .d4{animation-delay:-0.5s}
.counter .d5{animation-delay:-0.6s}
.counter .d6{animation-delay:-0.7s}
.counter .d7{animation-delay:-0.8s}
.counter .d8{animation-delay:-0.9s}
.counter .d9{animation-delay:-1s}

@keyframes flicker{
  0%,18%,22%,25%,53%,57%,100% {opacity:1}
  20%,24%,55% {opacity:0.25}
}
