@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border: #E5E7EB;
    --text-main: #111827;
    --text-muted: #4B5563;
  }
  
  :root.dark {
    --background: #0A0A0A;
    --surface: #141414;
    --border: #262626;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@layer utilities {
  .glass-card {
    @apply bg-surface/40 backdrop-blur-xl border border-border;
  }
  
  .text-gradient {
    @apply text-transparent bg-clip-text bg-brand-gradient;
  }
}

/* Lenis Smooth Scrolling Fixes */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Custom Animations */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
  animation: blob 7s infinite;
}
.animation-delay-2000 {
  animation-delay: 2s;
}
.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Ticker Animation */
.ticker-track {
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Magnetic Button Base (GSAP handles the rest) */
.magnetic-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4B5563;
}

/* 3D Feature Card Hover */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: #6C63FF; /* Brand Purple */
  box-shadow: 0 10px 30px -10px rgba(108, 99, 255, 0.2);
}

/* Nav Glass Effect */
.nav-scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
:root:not(.dark) .nav-scrolled {
  background: rgba(255, 255, 255, 0.8);
}
