:root {
  --background: 245 20% 98%;
  --foreground: 245 40% 10%;
  --card: 0 0% 100%;
  --card-foreground: 245 40% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 245 40% 10%;
  --primary: 245 80% 60%;
  --primary-foreground: 245 20% 98%;
  --secondary: 160 80% 40%;
  --secondary-foreground: 245 20% 98%;
  --muted: 245 20% 94%;
  --muted-foreground: 245 10% 40%;
  --accent: 35 90% 55%;
  --accent-foreground: 245 20% 98%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 245 20% 98%;
  --border: 245 20% 90%;
  --input: 245 20% 90%;
  --ring: 245 80% 60%;
  --radius: 1.5rem;
  --success: 160 80% 40%;
  --warning: 35 90% 55%;
  
  --shadow-3d: 0 20px 25px -5px rgb(60 60 120 / 0.05), 0 8px 10px -6px rgb(60 60 120 / 0.05);
  --shadow-3d-hover: 0 25px 50px -12px rgb(60 60 120 / 0.15);
}

.dark {
  --background: 245 20% 5%;
  --foreground: 245 20% 98%;
  --card: 245 20% 8%;
  --card-foreground: 245 20% 98%;
  --popover: 245 20% 8%;
  --popover-foreground: 245 20% 98%;
  --primary: 245 80% 65%;
  --primary-foreground: 245 20% 5%;
  --secondary: 160 80% 50%;
  --secondary-foreground: 245 20% 5%;
  --muted: 245 20% 15%;
  --muted-foreground: 245 10% 60%;
  --accent: 35 90% 60%;
  --accent-foreground: 245 20% 5%;
  --destructive: 0 62.8% 40%;
  --destructive-foreground: 245 20% 98%;
  --border: 245 20% 15%;
  --input: 245 20% 15%;
  --ring: 245 80% 65%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(var(--primary), 0.1);
  box-shadow: var(--shadow-3d);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .glass-card {
  background: rgba(20, 20, 30, 0.7);
  border: 1px solid hsla(var(--primary), 0.1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-hover);
}

.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d-inner {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d:hover .card-3d-inner {
  transform: rotateX(5deg) rotateY(5deg);
}

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

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

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

.animate-pulse-slow {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .8; }
}

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

/* 3D Button Effect */
.btn-3d {
  position: relative;
  transition: all 0.2s ease;
  top: 0;
}

.btn-3d:active {
  top: 2px;
  box-shadow: none !important;
}

/* Mesh Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: hsl(var(--background));
  background-image: 
    radial-gradient(at 0% 0%, hsla(var(--primary), 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(var(--secondary), 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(var(--accent), 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(var(--primary), 0.08) 0px, transparent 50%);
}