/* WIVANE.COM - 21st.dev Aesthetic Custom CSS & 3D Interactive Graphics */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #050505;
  --bg-card: rgba(13, 13, 16, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #ededed;
  overflow-x: hidden;
  selection-background-color: #8b5cf6;
  selection-color: #ffffff;
}

code, pre, .font-mono {
  font-family: 'Geist Mono', monospace;
}

/* 21st.dev Grid Background */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* 3D Canvas Container */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Subtle glowing backdrops */
.radial-spotlight {
  background: radial-gradient(circle 800px at 50% -100px, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.06) 50%, transparent 80%);
}

.radial-card-glow {
  background: radial-gradient(circle 400px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
}

/* Custom 3D Tilt Glass Cards */
.wiv-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.wiv-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(139, 92, 246, 0.18);
}

/* Spotlight Card mouse tracking */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.22), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Sleek Pill Badges */
.badge-5x {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* 3D Chrome Floating Pill */
.chrome-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Live Radar Pulse */
.radar-pulse {
  position: relative;
}

.radar-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Animated gradient text */
.gradient-text-shimmer {
  background: linear-gradient(90deg, #ffffff 0%, #a1a1aa 40%, #c4b5fd 70%, #ffffff 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Audio Visualizer Wave Bars */
.audio-bar {
  display: inline-block;
  width: 3px;
  background: #06b6d4;
  border-radius: 2px;
  animation: equalize 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 20px; animation-delay: 0.25s; }
.audio-bar:nth-child(3) { height: 14px; animation-delay: 0.05s; }
.audio-bar:nth-child(4) { height: 24px; animation-delay: 0.35s; }
.audio-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes equalize {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Code Highlighting Block */
.code-window {
  background: #0a0a0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* Glass Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.84);
}
