/* Animations */
@keyframes pulse-blue {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes circuit-animation {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loading-animation {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

@keyframes slide {
  0%, 40% { transform: translateY(0); }
  50%, 90% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Utility Classes */
.animate-pulse-slow {
  animation: pulse-blue 3s infinite;
}

.circuit-line {
  stroke-dasharray: 10;
  stroke-dashoffset: 20;
  animation: circuit-animation 3s infinite linear;
}

.dot-pulse {
  animation: dot-pulse 1.5s infinite ease-in-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slide {
  animation: slide 5s infinite ease-in-out;
}

/* Navbar Styles */
.navbar-hidden {
  transform: translateY(-110px);
}

.navbar-scrolled {
  background-color: rgba(20, 20, 20, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Nav Icon Styles */
.nav-icon {
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: visible;
  margin: 0 5px;
}

.nav-icon:hover {
  transform: scale(1.15);
  color: white;
  background-color: rgba(220, 38, 38, 0.5);  /* Red hover background */
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);  /* Red glow effect */
}

.nav-icon.active {
  color: white;
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background-color: rgba(127, 29, 29, 0.9);  /* Red tooltip background */
  color: white !important;  /* White tooltip text with !important */
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  opacity: 0;
  border: 1px solid rgba(239, 68, 68, 0.3);  /* Red border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(127, 29, 29, 0.9) transparent transparent transparent;  /* Red tooltip arrow */
}

.nav-icon:hover .tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Additional selectors to ensure tooltip text is white */
.nav-icon .tooltip,
.nav-icon:hover .tooltip,
span.tooltip,
.tooltip * {
  color: white !important;
}

/* Discord Button Styles */
.discord-button {
  display: inline-flex;
  align-items: center;
  background-color: rgba(127, 29, 29, 0.4);  /* Red background */
  color: #fca5a5;  /* Red text */
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(239, 68, 68, 0.3);  /* Red border */
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 2rem;
  width: fit-content;
}

.discord-button:hover {
  background-color: rgba(127, 29, 29, 0.6);  /* Red hover background */
  color: white;
}

.discord-button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Loading Bar */
.loading-bar {
  animation: loading-animation 2s infinite linear;
}

/* NProgress Styles */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #ef4444;  /* Red progress bar */
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #ef4444, 0 0 5px #ef4444;  /* Red shadow */
  opacity: 1.0;
  transform: rotate(3deg) translate(0px, -4px);
}

#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: solid 2px transparent;
  border-top-color: #ef4444;  /* Red spinner */
  border-left-color: #ef4444;  /* Red spinner */
  border-radius: 50%;
  animation: nprogress-spinner 400ms linear infinite;
}

@keyframes nprogress-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .discord-button {
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
  }
  
  .nav-icon {
    width: 40px;
    height: 40px;
  }
  
  .tooltip {
    display: none;
  }
} 