/* PinPoint Contact — Vitra Funnel Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #090d16;
  --card-bg: rgba(15, 23, 42, 0.75);
  --cyan-accent: #06b6d4;
  --indigo-accent: #6366f1;
  --violet-accent: #8b5cf6;
  --emerald-accent: #10b981;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 40px -10px rgba(6, 182, 212, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.glass-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease-in-out;
}

.glass-input:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
  background: rgba(15, 23, 42, 0.9);
  outline: none;
}

/* Glowing Audio Orb Animations */
.orb-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.4);
  animation: spinSlow 20s linear infinite;
  pointer-events: none;
}

.orb-ring-2 {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.25);
  animation: spinReverse 25s linear infinite;
  pointer-events: none;
}

.vitra-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #06b6d4 35%, #4f46e5 75%, #312e81 100%);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.vitra-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.7), 0 0 80px rgba(99, 102, 241, 0.5);
}

.vitra-orb.listening {
  background: radial-gradient(circle at 35% 30%, #34d399 0%, #10b981 40%, #059669 80%, #064e3b 100%);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.7), 0 0 80px rgba(52, 211, 153, 0.4);
  animation: orbPulse 1.4s ease-in-out infinite alternate;
}

.vitra-orb.speaking {
  background: radial-gradient(circle at 35% 30%, #a78bfa 0%, #8b5cf6 40%, #6366f1 80%, #3730a3 100%);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.75), 0 0 90px rgba(99, 102, 241, 0.5);
  animation: orbPulse 1.2s ease-in-out infinite alternate;
}

@keyframes orbPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  border-radius: 9999px;
  height: 8px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #06b6d4;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #06b6d4;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
  border: 2px solid #ffffff;
}

/* Audio Visualizer Canvas */
#visualizer-canvas {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
}

/* Sound Wave Bars Simulation */
.sound-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
}

.sound-bar {
  width: 3px;
  height: 100%;
  background: #06b6d4;
  border-radius: 9999px;
  animation: wave 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.sound-bar:nth-child(4) { animation-delay: 0.45s; height: 50%; }
.sound-bar:nth-child(5) { animation-delay: 0.6s; height: 85%; }
.sound-bar:nth-child(6) { animation-delay: 0.2s; height: 40%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Modal Backdrop & Animations */
.modal-backdrop {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
