/* ==========================================================================
   DENTAL STUDIO - LUXURY MEDICAL UI STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --color-brand-cyan: #00f2fe;
  --color-brand-blue: #4facfe;
  --color-brand-ice: #e0f2fe;
  --color-dark-bg: #050811;
  --color-dark-surface: #0a1120;
  --color-dark-card: rgba(15, 23, 42, 0.7);
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-dark-bg);
  color: #f8fafc;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  position: relative;
  background-color: var(--color-dark-bg);
  min-height: 100vh;
}

/* Custom Typography */
.font-display {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.font-mono-tech {
  font-family: var(--font-mono);
}

/* Smooth Canvas Container */
#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: transform;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(13, 20, 36, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-nav {
  background: rgba(6, 11, 22, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Glowing Ambient Orbs */
.glow-cyan {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, rgba(79, 172, 254, 0.05) 50%, transparent 70%);
}

.glow-blue {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.03) 50%, transparent 70%);
}

.glow-text-cyan {
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

/* Text Gradient */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-titanium {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Button Shine */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.25) 28%,
    transparent 32%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-shine:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Before / After Slider Component */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  border-radius: 1.5rem;
}

.ba-image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s ease-out;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #38bdf8;
  box-shadow: 0 0 20px #38bdf8;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #090e1a;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

/* Hotspot Radar Pulse */
.hotspot-pulse {
  position: relative;
}

.hotspot-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(56, 189, 248, 0.45);
  animation: pulse-wave 2.2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse-wave {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 320%;
    height: 320%;
    opacity: 0;
  }
}

/* Scroll Indicators and animations */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2.4s infinite ease-in-out;
}

/* Subtle Grid Pattern Overlay */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050811;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Hero HUD Transitions */
.hud-step {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hud-step.hud-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hud-step.hud-inactive {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Reveal on Scroll Elements */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
