/* Custom Styling for QUEST Web App - Converting design variables and animations */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif !important;
}

/* Glassmorphism Navigation */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradients */
.hero-gradient {
  background: linear-gradient(135deg, #00081e 0%, #0a1f44 100%) !important;
}

/* Active Campaign Glow / CTA Pulsation */
.cta-pulse {
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 255, 0, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(223, 255, 0, 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(223, 255, 0, 0);
    transform: scale(1);
  }
}

/* Slide in animation for Modals and Toasts */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-in {
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom shake for volume button hint */
@keyframes shake-voice {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.animate-shake {
  animation: shake-voice 1.5s infinite;
}

/* Subtle bounce for rocket icon in CTA */
@keyframes bounce-rocket {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.animation-bounce {
  animation: bounce-rocket 2s infinite ease-in-out;
}

/* Selection customization rules */
::selection {
  background-color: #DFFF00 !important;
  color: #0A1F44 !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 99px;
}

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

/* Obstacle active classes from Javascript */
.obstacle-card.active {
  border-color: #FF6B00 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.08) !important;
}

/* Fade in custom animation */
@keyframes fade-element {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-fade-in {
  animation: fade-element 0.4s ease-in-out forwards;
}
