/* ==========================================================================
   CLAFFEY POOLS - ULTRA-LUXURY DIGITAL SHOWROOM CSS
   ========================================================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
  --color-bg-dark: #080C14;
  --color-bg-deep: #050810;
  --color-azure: #00A8E8;
  --color-azure-glow: rgba(0, 168, 232, 0.4);
  --color-gold: #D4AF37;
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --color-alabaster: #F4F1EA;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(24px) saturate(180%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--color-bg-dark);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Base Reset & Typography Setup */
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-dark);
  color: var(--color-alabaster);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #0c1527 0%, var(--color-bg-dark) 70%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Apple Glassmorphism Core */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px -10px rgba(0, 168, 232, 0.1);
}

.glass-panel-gold:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 30px 60px -10px rgba(212, 175, 55, 0.1);
}

/* Luxury Gold & Blue Accent Highlights */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 50%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-azure {
  background: linear-gradient(135deg, #E0F7FF 0%, #00A8E8 60%, #0077A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scroll-Triggered Animation Engine */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }
.reveal-delay-400 { transition-delay: 0.4s; }

/* Interactive Target Hotspot Pins */
.hotspot-pin {
  position: absolute;
  cursor: pointer;
  z-index: 20;
}

.hotspot-outer-ring {
  width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px var(--color-gold-glow);
}

.hotspot-pin:hover .hotspot-outer-ring {
  background: rgba(212, 175, 55, 0.3);
  border-color: rgba(212, 175, 55, 1);
  transform: scale(1.15);
  box-shadow: 0 0 25px var(--color-gold);
}

.hotspot-inner-dot {
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Day/Night Studio Image Crossfade */
.studio-image-container {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.studio-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Texture Viewport */
.material-viewport {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.material-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.material-viewport:hover img {
  transform: scale(1.15);
}

/* Custom Apple-style Range Input (Slider) */
input[type="range"].luxury-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  border: none;
  cursor: pointer;
}

/* Webkit browser slider track */
input[type="range"].luxury-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(0, 168, 232, 0.3));
  border-radius: 3px;
}

/* Webkit browser slider thumb */
input[type="range"].luxury-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--color-gold-glow), 0 2px 4px rgba(0,0,0,0.5);
  margin-top: -7px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

input[type="range"].luxury-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #FFF6D6;
  box-shadow: 0 0 15px var(--color-gold);
}

/* Firefox browser slider track */
input[type="range"].luxury-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Firefox browser slider thumb */
input[type="range"].luxury-slider::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
  cursor: pointer;
  transition: transform 0.2s;
}

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

/* Customized Interactive Swatch Button Selection styles */
.swatch-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swatch-btn.active {
  border-color: var(--color-gold) !important;
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

.swatch-btn.active span {
  color: var(--color-gold) !important;
}

/* Navigation Shrink Effect */
nav.scrolled {
  background: rgba(8, 12, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Hotspot floating details transitions */
.hotspot-details-card {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotspot-details-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Particle / Water ripples simulation backdrop overlay */
.ambient-ripple-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(0, 168, 232, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}
