/* Import in HTML head or CSS top */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:ital,wght@0,400;0,700;1,400&family=Space+Mono&display=swap');

:root {
  --font-main: 'Orbitron', sans-serif;
  --font-secondary: 'Exo 2', sans-serif;
  --font-mono: 'Space Mono', monospace;
}
body {
    background-color: #000;
    animation: colorChange 15s infinite;
    font-family: var(--font-mono);
}
@keyframes colorChange {
    0% { background-color: #EEEEEE; }
    50% { background-color: #AAAAAA; }
    100% { background-color: #EEEEEE; }
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

h1 a {
    color:darkred;
    text-decoration: none;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 5px solid #0dd; /* Decorative accent */
  padding-left: 15px;
  text-shadow: 0 0 5px rgba(0, 192, 192, 0.5);
}

h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  font-style: italic;
  color: #1c5151;
  letter-spacing: 0.05em;

}

h5 {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0f0;
  opacity: 0.8;
}

h2 {
  background: rgba(0, 255, 255, 0.1);
}

img
{
    margin-bottom:4px;
    margin-right:8px;

}
.sci-fi-link {
  position: relative;
  color: rgb(13, 121, 121);
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 5px;
  border: 1px solid #0ff;
  transition: 0.3s;
  text-shadow: 0 0 5px #0ff;
  overflow: hidden;
  display: inline-block;
}

/* Scanline background */
.sci-fi-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.1) 3px,
    rgba(0, 255, 255, 0.1) 4px
  );
  z-index: -1;
  opacity: 0.5;
}

/* Glitch layer (hidden by default) */
.sci-fi-link::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: -2px;
  width: 100%; height: 100%;
  background: #000;
  color: #f0f; /* Magenta glitch */
  border: 1px solid #f0f;
  z-index: -2;
  opacity: 0;
  clip-path: polygon(0 20%, 100% 20%, 100% 50%, 0 50%);
  transition: opacity 0.1s;
}

/* Hover State: Invert and Glitch */
.sci-fi-link:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff;
  text-shadow: none;
}

.sci-fi-link:hover::after {
  opacity: 1;
  left: 3px;
  animation: glitch-anim 0.3s infinite linear alternate;
}

@keyframes glitch-anim {
  0% { clip-path: polygon(0 20%, 100% 20%, 100% 50%, 0 50%); transform: translate(0); }
  50% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(-2px, 2px); }
  100% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translate(2px, -2px); }
}