@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

@custom-variant dark (&:is(.dark *));

@theme {
  --color-brand-dark: #050816;
  --color-brand-slate: #0F172A;
  --color-brand-cyan: #00D9FF;
  --color-brand-purple: #7C3AED;
  --color-brand-white: #FFFFFF;
  --color-brand-muted: #94A3B8;

  --font-montserrat: var(--font-montserrat), sans-serif;

  --animate-progress-bar: progress-bar 1.5s ease-in-out;

  @keyframes progress-bar {
    0% {
      transform: scaleX(0);
      opacity: 1;
    }
    50% {
      transform: scaleX(0.7);
      opacity: 1;
    }
    100% {
      transform: scaleX(1);
      opacity: 0;
    }
  }

  @keyframes glow {
    from {
      box-shadow: 0 0 10px #00D9FF, 0 0 20px #00D9FF;
    }
    to {
      box-shadow: 0 0 20px #7C3AED, 0 0 40px #7C3AED;
    }
  }

  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0px);
    }
  }
}

:root {
  --background: #FFFFFF;
  --foreground: #050816;
  --card: #F8FAFC;
  --card-foreground: #050816;
  --popover: #FFFFFF;
  --popover-foreground: #050816;
  --primary: #2563EB;
  --primary-foreground: #FFFFFF;
  --secondary: #7C3AED;
  --secondary-foreground: #FFFFFF;
  --muted: #64748B;
  --muted-foreground: #64748B;
  --accent: #F1F5F9;
  --accent-foreground: #0F172A;
  --destructive: #EF4444;
  --destructive-foreground: #FFFFFF;
  --border: #E2E8F0;
  --input: #E2E8F0;
  --ring: #2563EB;
  --radius: 0.75rem;
  --elegant-font: 'Great Vibes';
}

* {
  border-color: var(--border);
}

body {
  font-family: var(--font-montserrat);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-montserrat);
  font-weight: 700;
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.neo-glow {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.text-gradient {
  background-image: linear-gradient(to right, #2563EB, #7C3AED);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.dark .text-gradient {
  background-image: linear-gradient(to right, #00D9FF, #CF30AA);
}

/* Lenis smooth scroll */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@theme inline {
  --font-heading: var(--font-sans);
  --font-sans: var(--font-sans);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-foreground: var(--foreground);
  --color-background: var(--background);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  --elegant-font: var(----elegant-font);
}

.dark {
  --background: oklch(0.1 0.02 260);
  --foreground: oklch(0.95 0.01 260);
  --card: oklch(0.15 0.05 260 / 0.5);
  --card-foreground: oklch(0.95 0.01 260);
  --popover: oklch(0.15 0.05 260 / 0.8);
  --popover-foreground: oklch(0.95 0.01 260);
  --primary: oklch(0.65 0.25 260);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.2 0.1 300);
  --secondary-foreground: oklch(0.95 0.01 260);
  --muted: oklch(0.2 0.05 260);
  --muted-foreground: oklch(0.7 0.02 260);
  --accent: oklch(0.5 0.25 300);
  --accent-foreground: oklch(1 0 0);
  --destructive: oklch(0.6 0.2 20);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(1 1 1 / 0.1);
  --input: oklch(1 1 1 / 0.1);
  --ring: oklch(0.65 0.25 260);
  --chart-1: oklch(0.65 0.25 260);
  --chart-2: oklch(0.5 0.25 300);
  --chart-3: oklch(0.6 0.2 160);
  --chart-4: oklch(0.7 0.2 60);
  --chart-5: oklch(0.6 0.2 20);
  --sidebar: oklch(0.12 0.03 260 / 0.8);
  --sidebar-foreground: oklch(0.95 0.01 260);
  --sidebar-primary: oklch(0.65 0.25 260);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.2 0.1 260);
  --sidebar-accent-foreground: oklch(1 0 0);
  --sidebar-border: oklch(1 1 1 / 0.1);
  --sidebar-ring: oklch(0.65 0.25 260);
}

/* Admin glassmorphism utilities */
.glass {
  background: oklch(0.15 0.05 260 / 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.glass-panel {
  background: oklch(0.1 0.02 260 / 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.neon-border-blue {
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.4), inset 0 0 10px rgba(0, 195, 255, 0.1);
}
.neon-border-purple {
  box-shadow: 0 0 10px rgba(180, 0, 255, 0.4), inset 0 0 10px rgba(180, 0, 255, 0.1);
}
.neon-text-blue {
  text-shadow: 0 0 10px rgba(0, 195, 255, 0.7), 0 0 20px rgba(0, 195, 255, 0.5);
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans;
  }
}
/* Animation for the pulsing effect */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation for the ping effect */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Custom animations for the orbital timeline */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

/* Backdrop blur */
.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

/* Custom gradients */
.bg-gradient-orbital {
  background: linear-gradient(to bottom right, #6366f1, #3b82f6, #14b8a6);
}

/* Z-index utilities */
.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Custom shadows */
.shadow-orbital {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Custom transforms */
.scale-125 {
  transform: scale(1.25);
}

.scale-150 {
  transform: scale(1.5);
}

/* Custom opacity values */
.opacity-70 {
  opacity: 0.7;
}

.opacity-50 {
  opacity: 0.5;
}

/* Custom border opacity */
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/30 {
  border-color: rgba(255, 255, 255, 0.3);
}

.border-white\/40 {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Custom background opacity */
.bg-black\/90 {
  background-color: rgba(0, 0, 0, 0.9);
}

.bg-white\/50 {
  background-color: rgba(255, 255, 255, 0.5);
}

.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Custom text opacity */
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
