/* Custom Base Styles */
body {
  background-color: #050505; /* bg-dark */
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Utilities */
.glass {
  --tw-backdrop-blur: blur(24px);
  backdrop-filter: var(--tw-backdrop-blur);
  -webkit-backdrop-filter: var(--tw-backdrop-blur);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.neon-glow-primary {
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.15), 0 0 40px rgba(0, 242, 255, 0.05);
}

.neon-glow-secondary {
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.15), 0 0 40px rgba(112, 0, 255, 0.05);
}

.neon-glow-accent {
  box-shadow: 0 0 20px rgba(255, 0, 200, 0.15), 0 0 40px rgba(255, 0, 200, 0.05);
}

.neon-glow-error {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), 0 0 40px rgba(239, 68, 68, 0.1);
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.scanline {
  animation: scanline 8s linear infinite;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations that were handled by framer-motion */
.view-enter {
  animation: popIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.view-exit {
  animation: popOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(1.05) translateY(-20px);
  }
}

/* Perfectly balanced touch/click feedback */
.btn-press {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent; /* Remove default tap highlight on mobile */
  cursor: pointer;
  transform-origin: center;
  will-change: transform, opacity;
}

.btn-press:active {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
  transition: transform 0.05s ease, opacity 0.05s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hover-glass:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}
/* For elements showing up dynamically */
.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Base utility fixes */
.hidden {
  display: none !important;
}
