@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --font-display: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Rajdhani", "Inter", system-ui, sans-serif;

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-neon-purple: var(--neon-purple);
  --color-neon-blue: var(--neon-blue);
  --color-neon-pink: var(--neon-pink);
  --color-neon-cyan: var(--neon-cyan);
  --color-glass: var(--glass);

  --shadow-glow-purple: 0 0 20px oklch(0.65 0.28 305 / 0.5), 0 0 40px oklch(0.65 0.28 305 / 0.3);
  --shadow-glow-blue: 0 0 20px oklch(0.7 0.25 240 / 0.5), 0 0 40px oklch(0.7 0.25 240 / 0.3);
  --shadow-glow-pink: 0 0 20px oklch(0.7 0.32 340 / 0.5), 0 0 40px oklch(0.7 0.32 340 / 0.3);
}

:root, .dark {
  --radius: 0.875rem;

  /* Deep cosmic background */
  --background: oklch(0.08 0.03 280);
  --foreground: oklch(0.98 0.01 280);

  --card: oklch(0.13 0.04 280 / 0.6);
  --card-foreground: oklch(0.98 0.01 280);
  --popover: oklch(0.12 0.04 280);
  --popover-foreground: oklch(0.98 0.01 280);

  /* Neon purple primary */
  --primary: oklch(0.65 0.28 305);
  --primary-foreground: oklch(0.08 0.03 280);

  --secondary: oklch(0.18 0.05 280);
  --secondary-foreground: oklch(0.98 0.01 280);

  --muted: oklch(0.16 0.04 280);
  --muted-foreground: oklch(0.7 0.05 280);

  --accent: oklch(0.7 0.25 240);
  --accent-foreground: oklch(0.08 0.03 280);

  --destructive: oklch(0.65 0.27 25);
  --destructive-foreground: oklch(0.98 0.01 280);

  --border: oklch(0.28 0.08 290 / 0.4);
  --input: oklch(0.18 0.05 280);
  --ring: oklch(0.65 0.28 305);

  --neon-purple: oklch(0.65 0.28 305);
  --neon-blue: oklch(0.7 0.25 240);
  --neon-pink: oklch(0.7 0.32 340);
  --neon-cyan: oklch(0.85 0.18 200);
  --glass: oklch(0.15 0.05 290 / 0.4);

  --gradient-cosmic: linear-gradient(135deg, oklch(0.08 0.03 280) 0%, oklch(0.12 0.08 295) 50%, oklch(0.1 0.06 250) 100%);
  --gradient-neon: linear-gradient(135deg, oklch(0.65 0.28 305) 0%, oklch(0.7 0.25 240) 100%);
  --gradient-card: linear-gradient(135deg, oklch(0.18 0.06 290 / 0.5) 0%, oklch(0.12 0.05 270 / 0.3) 100%);
}

@layer base {
  * {
    border-color: var(--color-border);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background: var(--gradient-cosmic);
    background-attachment: fixed;
    color: var(--color-foreground);
    font-family: var(--font-sans);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
  }
}

@layer utilities {
  .glass {
    background: var(--gradient-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid oklch(0.65 0.28 305 / 0.2);
  }

  .glass-strong {
    background: oklch(0.13 0.05 285 / 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid oklch(0.65 0.28 305 / 0.25);
  }

  .neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px oklch(0.65 0.28 305 / 0.4);
  }

  .neon-border {
    box-shadow: var(--shadow-glow-purple);
  }

  .neon-border-blue {
    box-shadow: var(--shadow-glow-blue);
  }

  .glow-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .glow-hover:hover {
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-2px);
  }

  .grid-bg {
    background-image:
      linear-gradient(oklch(0.65 0.28 305 / 0.06) 1px, transparent 1px),
      linear-gradient(90deg, oklch(0.65 0.28 305 / 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
  }

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px oklch(0.65 0.28 305 / 0.4); }
  50% { box-shadow: 0 0 40px oklch(0.65 0.28 305 / 0.7), 0 0 60px oklch(0.7 0.25 240 / 0.4); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
