/* Particle background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.8;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

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

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--primary-color);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
  }
}

/* Hacker's Logo Css */

.hacker-logo {
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: 2px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
}

.logo-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  position: relative;
}

.logo-text:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  ); */
  animation: logo-shine 3s infinite;
}

.logo-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: rgb(254, 254, 254);
  margin-left: 5px;
  animation: cursor-blink 1s infinite;
  box-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
}

@keyframes logo-shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Glitch effect on hover */
.hacker-logo:hover .logo-text {
  animation: text-glitch 0.8s linear infinite;
}

@keyframes text-glitch {
  0% {
    transform: translate(0);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.7), 0 0 0 #f00;
  }
  25% {
    transform: translate(-2px, 1px);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 2px 0 5px rgb(255, 225, 0);
  }
  50% {
    transform: translate(1px, -1px);
    text-shadow: 0 0 10px rgba(255, 217, 0, 0.7), -2px 0 5px rgb(255, 0, 0);
  }
  75% {
    transform: translate(-1px, 1px);
    text-shadow: 0 0 10px rgba(242, 255, 0, 0.7), 0 2px 5px rgb(255, 132, 0);
  }
  100% {
    transform: translate(0);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.7), 0 0 0 #f00;
  }
}

/* For WebKit browsers (Chrome, Safari, newer Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 6px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffc000;
}

/* For Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #000000;
}
