html {
  scroll-behavior: smooth;
}

body {
  background-color: #09090b;
  color: #fafafa;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #7c6bff 0%, #00d4ff 50%, #7c6bff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 50%, #ff6b6b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Glow effects */
.glow-brand {
  box-shadow: 0 0 40px rgba(108, 71, 255, 0.15), 0 0 80px rgba(108, 71, 255, 0.05);
}

.glow-line {
  background: linear-gradient(90deg, transparent, rgba(108, 71, 255, 0.5), transparent);
  height: 1px;
}

/* Aurora background */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(108, 71, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 40% 80%, rgba(255, 107, 107, 0.04) 0%, transparent 50%);
  animation: aurora 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Noise texture */
.noise-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.015;
  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.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
}

/* Grid pattern */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(108, 71, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 71, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(108, 71, 255, 0.1), 0 0 0 1px rgba(108, 71, 255, 0.1);
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Pulse ring */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

/* Scroll indicator */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

/* Shine effect on buttons */
.shine-btn {
  position: relative;
  overflow: hidden;
}
.shine-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}
.shine-btn:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Line animation */
@keyframes line-draw {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Animation utilities for JS observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
