body {
  background-color: #020617;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Animated Grid Background */
.bg-grid {
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(50px);
  }
}

/* Glitch Text Effect */
.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #ff0055;
  clip-path: inset(44% 0 61% 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 #00f3ff;
  clip-path: inset(24% 0 21% 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
  animation-delay: 1s;
}

@keyframes glitch-anim {
  0% {
    clip-path: inset(80% 0 0 0);
  }

  20% {
    clip-path: inset(10% 0 60% 0);
  }

  40% {
    clip-path: inset(50% 0 30% 0);
  }

  60% {
    clip-path: inset(10% 0 80% 0);
  }

  80% {
    clip-path: inset(40% 0 20% 0);
  }

  100% {
    clip-path: inset(5% 0 50% 0);
  }
}

/* Spotlight Card Effect */
.spotlight-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 243, 255, 0.6), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
  border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f3ff;
}

.terminal-shadow {
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
}