@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap');

html,
body {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #0d0d0d;
  font-family: 'Share Tech Mono', monospace;
  color: #8aebf1;
  overflow-x: hidden;
  background-image: linear-gradient(45deg, rgba(94, 129, 245, 0.1), rgba(237, 243, 126, 0.1));
}

/* Neon Glow Effect */
.neon-glow {
  text-shadow: 0 0 5px #8aebf1, 0 0 10px #5e81f5, 0 0 20px #edf37e;
}

/* Header */
header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #edf37e;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5em;
  margin: 0;
  color: #5e81f5;
  animation: glitch 2s linear infinite;
}

/* Glitch Animation */
@keyframes glitch {

  2%,
  64% {
    transform: translate(2px, 0);
  }

  4%,
  60% {
    transform: translate(-2px, 0);
  }

  62% {
    transform: translate(0, 0);
  }
}

/* Centered Link */
.centered-link {
  display: block;
  margin: 20px auto;
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.7);
  color: #8aebf1;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2em;
  border: 2px solid #edf37e;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px #5e81f5;
}

.centered-link:hover {
  background-color: #5e81f5;
  color: #0d0d0d;
  color: #edf37e;
  margin-top: 0;
  animation: flicker 1.5s infinite alternate;
}

/* Flicker Animation */
@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  24%,
  55% {
    opacity: 0.5;
  }
}

p,
ul {
  line-height: 1.6;
  font-size: 1.1em;
}

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

ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(94, 129, 245, 0.2);
}

ul li:last-child {
  border-bottom: none;
}

/* Link Styling */
a {
  color: #5e81f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #edf37e;
  text-decoration: none;
  text-shadow: 0 0 10px #edf37e;
}

a:visited {
  color: #8aebf1;
}

/* Form Elements */
label {
  display: block;
  color: #8aebf1;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  text-shadow: 0 0 5px #5e81f5;
}

input,
button,
select,
textarea {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1em;
  padding: 0.5em;
  margin: 0 0 0.5em 0;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.7);
  color: #8aebf1;
  border: 1px solid #5e81f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

input:focus,
button:focus,
select:focus,
textarea:focus {
  border-color: #edf37e;
  box-shadow: 0 0 10px #edf37e;
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: rgba(138, 235, 241, 0.5);
  border-color: rgba(94, 129, 245, 0.5);
  cursor: not-allowed;
}

button {
  background-color: #5e81f5;
  color: #0d0d0d;
  padding: 0.5em 1em;
  border: 1px solid #edf37e;
  cursor: pointer;
  text-shadow: 0 0 5px #8aebf1;
}

button:hover:not(:disabled) {
  background-color: #edf37e;
  color: #0d0d0d;
  box-shadow: 0 0 15px #edf37e;
}

button:active:not(:disabled) {
  background-color: #8aebf1;
  transform: scale(0.95);
}

button:disabled {
  background-color: rgba(94, 129, 245, 0.5);
  color: rgba(138, 235, 241, 0.5);
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  .centered-link {
    font-size: 1em;
    padding: 10px 20px;
  }

  section h2 {
    font-size: 1.5em;
  }

  main {
    flex-direction: column;
  }
}
