body {
  background-color: #000;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  position: relative;
}

/* CRT Static Grid Background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(248, 232, 89, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(248, 232, 89, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -2;
}

/* CRT Wave Effect */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 100px;
  animation: scan-wave 8s infinite linear;
  pointer-events: none;
  z-index: -1;
}

@keyframes scan-wave {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100vh;
  }
}

/* Overall screen glitch and flicker */
.crt-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: flicker 0.1s infinite;
}

@keyframes flicker {
  0% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.95;
  }
}

.glitch-effect {
  text-align: center;
  padding: 40px;
  position: relative;
  color: rgb(248, 89, 222);
  filter: blur(0.5px);
  text-shadow: 0 0 5px rgba(245, 89, 248, 0.7);
  animation: blurry-glitch 4s infinite alternate;
}

/* Updated Blurry Glitch Animation */
@keyframes blurry-glitch {
  0% {
    transform: translate(0, 0);
    filter: blur(0.5px);
    opacity: 1;
  }
  5% {
    transform: translate(2px, -2px);
    filter: blur(1px);
    opacity: 0.95;
  }
  10% {
    transform: translate(-2px, 2px);
    filter: blur(0.5px);
    opacity: 1;
  }
  15% {
    transform: translate(1px, 1px);
    filter: blur(1.5px);
    opacity: 0.9;
  }
  20% {
    transform: translate(0, 0);
    filter: blur(0.5px);
    opacity: 1;
  }
  25% {
    transform: translate(-1px, -1px);
    filter: blur(1px);
    opacity: 0.95;
  }
  30% {
    transform: translate(1px, -1px);
    filter: blur(0.5px);
    opacity: 1;
  }
  35% {
    transform: translate(0, 0);
    filter: blur(0.5px);
    opacity: 1;
  }
}

@keyframes text-glow {
  to {
    text-shadow: 0 0 10px rgb(243, 156, 255),
      0 0 20px rgba(255, 116, 246, 0.5);
  }
}

h1,
p {
  margin: 10px 0;
  white-space: pre-wrap;
  overflow: hidden;
}

.socials-section {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.social-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-link {
  color: #b983ff;
  text-shadow:0 0 8px rgba(185,131,255,.4);
  text-decoration: none;
  font-size: 1.5em;
  margin: 0 15px;
  position: relative;
  transition: all 0.3s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: rgb(234, 0, 255);
  transition: width 0.3s ease-in-out;
}

.social-link:hover::after {
  width: 100%;
}
