/* Spatial Bionic Glass Theme - CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-bg-base: #0a0f16;
  --color-glass: rgba(255, 255, 255, 0.03);
  --color-glass-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(14, 165, 233, 0.4);
  --color-primary: #0ea5e9;
  --color-primary-glow: rgba(14, 165, 233, 0.6);
  --color-accent: #10b981;
  --color-accent-2: #f59e0b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-bg-base);
  color: #f8fafc;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* =========================================
   BIONIC BACKGROUND BLOBS
   ========================================= */
.bionic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--color-bg-base);
}

.blob {
  position: absolute;
  filter: blur(120px);
  opacity: 0.6;
  animation: float-blob 20s infinite alternate ease-in-out;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--color-accent-2) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* =========================================
   GLASSMORPHISM UTILITIES
   ========================================= */
.glass-panel {
  background: var(--color-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-panel:hover {
  background: var(--color-glass-hover);
  border-color: var(--color-border-glow);
  box-shadow: 0 16px 48px 0 rgba(14, 165, 233, 0.15);
  transform: translateY(-4px);
}

.glass-panel:hover::before {
  opacity: 1;
}

.glass-nav {
  background: rgba(10, 15, 22, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.glass-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: white;
  transition: all 0.3s ease;
}
.glass-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* =========================================
   BUTTONS & CTAs
   ========================================= */
.btn-bionic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-bionic::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-bionic:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn-bionic:hover::before {
  left: 100%;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255,255,255,0.3);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
