@import "tailwindcss";

@theme inline {
  --color-navy: #0A0F2E;
  --color-navy-light: #111640;
  --color-navy-mid: #0D1235;
  --color-accent: #00D4FF;
  --color-accent-blue: #0088FF;
  --color-accent-violet: #6C63FF;
  --color-text-secondary: #94A3B8;
  --color-glass-border: rgba(255, 255, 255, 0.06);
  --color-glass-bg: rgba(17, 22, 64, 0.5);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;

  --animate-float: float 8s ease-in-out infinite;
  --animate-float-slow: float-slow 12s ease-in-out infinite;
  --animate-glow-pulse: glow-pulse 3s ease-in-out infinite;
  --animate-fade-in-up: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  --animate-shimmer: shimmer 2.5s linear infinite;
  --animate-spin-slow: spin 20s linear infinite;
}

/* ── Keyframes ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(-6px) rotate(-0.3deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes spotlight-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3%, -2%) scale(1.05); }
  50% { transform: translate(-2%, 3%) scale(0.98); }
  75% { transform: translate(1%, -1%) scale(1.02); }
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0A0F2E;
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── Noise texture overlay on body ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Cinematic spotlight ambient layer ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 85%, rgba(108, 99, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0, 136, 255, 0.02) 0%, transparent 50%);
  animation: spotlight-drift 20s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1a2050;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00D4FF;
}

/* ── Selection ── */
::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #ffffff;
}

/* ── Logo white filter ── */
.logo-white {
  filter: brightness(0) invert(1);
}
