/*
♤♡◇♧
*/

html::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #0b0b17 0%, #0b0b10 100%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

a:hover::after {
  animation: linkFlicker 1.5s infinite alternate;
}

a {
  color: #00cccc;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor; /* match link color */
  box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #0b0b17;
    color: #ddd;
    max-width: 900px;
    margin: 60px auto;
    line-height: 1.7;
    padding: 0 20px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 0.2em;
    color: #ff3fff;
    text-shadow: 0 0 2px #ff3fff, 0 0 4px #ff3fff;
    letter-spacing: 2px;
    border-bottom: 2px solid #ff3fff;
    display: inline-block;
    padding-bottom: 4px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: #00ffff;
    text-shadow: 0 0 2px #00ffff, 0 0 4px #00ffff;
    letter-spacing: 1.5px;
}

h3 {
    font-size: 1.4em;
    margin-top: 1.5em;
    color: #ff00aa;
    text-shadow: 0 0 1px #ff00aa, 0 0 3px #ff00aa;
    letter-spacing: 1px;
}

p {
    font-size: 1.1em;
    color: #aaa;
}

header {
    border-bottom: 1px solid #ff3fff;
    padding-bottom: 10px;
    margin-bottom: 30px;
    background-color: transparent;
}

main {
    background-color: transparent;
}

nav a {
    color: #0cc;
    text-decoration: none;
    margin-right: 20px;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 1px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #ff3fff;
    box-shadow: 0 0 1px #ff3fff, 0 0 2px #ff3fff;
    transition: width 0.3s;
}

nav a:hover {
    color: #ff3fff;
}

nav a:hover::after {
    width: 100%;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 12px;
}

ul li a {
    color: #0cc;
    text-decoration: none;
    text-shadow: 0 0 1px #0cc, 0 0 2px #0cc;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

ul li a:hover {
    color: #ff3fff;
    text-shadow: 0 0 2px #ff3fff, 0 0 4px #ff3fff;
}

footer {
    margin-top: 30px;
    font-size: 0.9em;
    border-top: 1px solid #ff3fff;
    padding-top: 10px;
    color: #666;
    letter-spacing: 0.5px;
    background-color: transparent;
}

@keyframes topflicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 2px #ff3fff, 0 0 4px #ff3fff;
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    text-shadow: 0 0 1px #770077, 0 0 2px #770077;
    opacity: 0.5;
  }
}

h1 {
    animation: topflicker 2s infinite alternate;
}

@keyframes blueFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 2px #00cccc, 0 0 4px #00cccc;
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    text-shadow: 0 0 1px #004444, 0 0 2px #004444;
    opacity: 0.5;
  }
}

h2 {
    animation: blueFlicker 2s infinite alternate;
}

@keyframes featuredFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 2px #ff00aa, 0 0 4px #ff00aa;
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    text-shadow: 0 0 1px #770022, 0 0 2px #770022;
    opacity: 0.5;
  }
}

h3 {
    animation: featuredFlicker 1.8s infinite alternate;
}

nav a:hover::after {
    animation: topflicker 1.9s infinite alternate
}

nav a:hover {
    animation: topflicker 1.9s infinite alternate
}

ul li a:hover::after {
    animation: topflicker 2s infinite alternate
}

ul li a:hover {
    animation: topflicker 2s infinite alternate
}

/* 404 button */
.button-404 {
  display: inline-block;
  padding: 0.8em 2em;
  font-size: 1.2rem;
  color: #ff3fff; /* neon pink */
  background-color: transparent;
  border: 2px solid #ff3fff;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 1.5px;
  position: relative;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 6px #ff3fff, 0 0 12px #ff3fff;
  margin-top: 1.5em;
}

/* Hover effect for the button */
.button-404:hover {
  color: #00ffff; /* neon cyan on hover */
  border-color: #00ffff;
  box-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
  animation: buttonFlicker 1.2s infinite alternate;
}

/* Button flicker keyframes */
@keyframes buttonFlicker {
  0%, 49%, 51%, 100% {
    box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  }
  50% {
    box-shadow: 0 0 2px #004444, 0 0 4px #004444;
  }
}