@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Dark cyber theme with vibrant accents */
  --background: 240 10% 4%;
  --foreground: 0 0% 98%;

  --card: 240 10% 6%;
  --card-foreground: 0 0% 98%;

  --popover: 240 10% 6%;
  --popover-foreground: 0 0% 98%;

  --primary: 0 84% 60%;
  --primary-foreground: 0 0% 100%;

  --secondary: 240 10% 10%;
  --secondary-foreground: 0 0% 98%;

  --muted: 240 10% 15%;
  --muted-foreground: 240 5% 55%;

  --accent: 168 84% 50%;
  --accent-foreground: 168 84% 10%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 10% 15%;
  --input: 240 10% 15%;
  --ring: 0 84% 60%;

  --radius: 0.75rem;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

html {
  scroll-behavior: smooth;
}

/* Glassmorphism card */
.glass-card {
  background-color: hsl(var(--card) / 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glowing border effect */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 50%, hsl(var(--primary)) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

/* Cyber grid background */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 50%, hsl(var(--primary)) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

/* Static gradient text */
.gradient-text-static {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Neon glow effect */
.neon-glow {
  box-shadow: 
    0 0 20px hsl(var(--primary) / 0.3),
    0 0 40px hsl(var(--primary) / 0.2),
    0 0 60px hsl(var(--primary) / 0.1);
}

.neon-glow-accent {
  box-shadow: 
    0 0 20px hsl(var(--accent) / 0.3),
    0 0 40px hsl(var(--accent) / 0.2),
    0 0 60px hsl(var(--accent) / 0.1);
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(0 84% 50%) 100%);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
}

/* Accent button */
.btn-accent {
  background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(168 84% 40%) 100%);
  color: hsl(240 10% 4%);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  box-shadow: 0 10px 40px hsl(var(--accent) / 0.4);
  transform: translateY(-2px);
}

/* Utilities */
.bg-gradient-hero {
  background: 
    radial-gradient(ellipse at 20% 0%, hsl(var(--primary) / 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, hsl(var(--accent) / 0.15) 0%, transparent 50%),
    hsl(var(--background));
}

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

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

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

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

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
}

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

.animate-slide-in {
  opacity: 0;
  animation: slide-in 0.6s ease-out forwards;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
    0%, 100% {
      box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
    }
    50% {
      box-shadow: 0 0 40px hsl(var(--primary) / 0.5);
    }
}
