/* Custom styles for NEARVERSEE 2.0 */
body {
  font-family: 'Inter', sans-serif;
  background-color: #111827;
  color: white;
}

/* App background with enhanced gradient for Web4 style */
.app-background {
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, rgba(17, 24, 39, 0.8) 50%),
              radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.1) 0%, rgba(17, 24, 39, 0.8) 50%);
  background-attachment: fixed;
}

/* Pulse animation for AI elements */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Enhanced nav links with hover effect */
.nav-link:hover .absolute {
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* Wallet button glow effect */
.wallet-button {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.wallet-button:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Connect wallet button with enhanced glow */
.wallet-connect-button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.wallet-connect-button:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(30deg);
  animation: sheen 3s infinite;
}

@keyframes sheen {
  0%, 100% {
    transform: translateX(-100%) rotate(30deg);
  }
  50% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* Balance animation */
.balance-animation {
  position: relative;
  transition: all 0.3s ease;
}

.balance-animation:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #10b981);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.balance-animation:hover:after {
  transform: scaleX(1);
}

/* AI Assistant Icon Animation */
.ai-assistant-icon {
  transition: transform 0.3s ease;
}

.ai-assistant-icon:hover {
  transform: scale(1.1);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Data wave animation for data flow visualization */
.data-wave {
  background: linear-gradient(90deg, #00C6FB, #005BEA, #3b82f6, #00C6FB);
  background-size: 300% 100%;
  animation: wave 8s ease infinite;
}

@keyframes wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 3D card effect for award winners */
.award-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.award-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    20px 20px 30px rgba(0, 0, 0, 0.2),
    -5px -5px 30px rgba(59, 130, 246, 0.1);
}

/* Enhanced glassmorphism effect */
.glass-effect {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}