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

:root {
  --rh-green: #00c805;
  --rh-green-hover: #00e806;
  --rh-green-glow: rgba(0, 200, 5, 0.45);
  --rh-bg: #050709;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--rh-bg);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 3D Tilt Card Wrapper */
.tilt-card-container {
  perspective: 1200px;
  position: relative;
}

.tilt-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 5;
}

/* Breathing Ambient Spotlight Glow */
@keyframes ambientBreathe {
  0% {
    opacity: 0.35;
    transform: scale(0.95);
    filter: blur(55px);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
    filter: blur(75px);
  }
  100% {
    opacity: 0.35;
    transform: scale(0.95);
    filter: blur(55px);
  }
}

.ambient-spotlight {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 200, 5, 0.28) 0%, rgba(0, 200, 5, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: ambientBreathe 5s ease-in-out infinite;
}

/* Floating Glass Action Dock (macOS / iOS style) */
.glass-dock {
  background: rgba(12, 16, 22, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(0, 200, 5, 0.15);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-dock:hover {
  border-color: rgba(0, 200, 5, 0.35);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px -5px rgba(0, 200, 5, 0.25);
}

/* Glass Box Containers */
.glass-box {
  background: rgba(14, 18, 24, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-box:hover {
  border-color: rgba(0, 200, 5, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 200, 5, 0.15);
}

/* Buttons */
.btn-green {
  background: #00c805;
  color: #000000;
  font-weight: 800;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 200, 5, 0.35);
}

.btn-green:hover {
  background: #00e806;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 200, 5, 0.55);
}

.btn-green:active {
  transform: translateY(0);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1) translateY(0);
}

/* Audio Waveform icon animation */
@keyframes soundWave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.sound-bar {
  width: 2px;
  background: #00c805;
  border-radius: 9999px;
  display: inline-block;
  animation: soundWave 0.8s ease-in-out infinite;
}

.sound-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; }
