/* Ali Altunkara Hair Clinic - Custom Master Styles */
:root {
  --color-primary: #f2ca50;
  --color-primary-container: #d4af37;
  --color-primary-fixed: #ffe088;
  --color-surface: #131318;
  --color-surface-low: #1b1b20;
  --color-surface-container: #1f1f24;
  --color-surface-high: #2a292f;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1eb857;
  --gold-gradient: linear-gradient(135deg, #aa771c 0%, #d4af37 50%, #f5e7a3 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --wa-glow: 0 0 25px rgba(37, 211, 102, 0.45);
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0e0e13;
}
::-webkit-scrollbar-thumb {
  background: #35343a;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer Button */
.btn-gold-shimmer {
  background: var(--gold-gradient);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn-gold-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s ease;
}
.btn-gold-shimmer:hover::before {
  transform: rotate(30deg) translateX(100%);
}
.btn-gold-shimmer:hover {
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

/* Interactive Before/After Comparison Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --slider-pos: 50%;
}
.ba-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.ba-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
}
.ba-slider-overlay .ba-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 3px;
  background: linear-gradient(180deg, #aa771c 0%, #f2ca50 50%, #aa771c 100%);
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.9), 0 0 6px rgba(0, 0, 0, 0.9);
  z-index: 20;
  touch-action: none;
  animation: handleBreathingPulse 3.5s ease-in-out infinite;
}
.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  background: #131318;
  border: 2px solid #f2ca50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2ca50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.7);
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-slider-container:hover .ba-slider-button {
  transform: scale(1.08);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.9), 0 0 25px rgba(242, 202, 80, 0.9);
}

/* Glassmorphism Card Style */
.glass-panel {
  background: rgba(27, 27, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* ==================== POLISH & MICRO-ANIMATIONS ==================== */

/* 1. Scroll Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 2. Ambient Glow Breathing Animation */
@keyframes ambientBreathe {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.12;
  }
  50% {
    transform: translateX(-50%) scale(1.18);
    opacity: 0.24;
  }
}
.animate-ambient-glow {
  animation: ambientBreathe 8s ease-in-out infinite;
}

/* 3. Slider Handle Pulse Glow */
@keyframes handleBreathingPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.8), 0 0 6px rgba(0, 0, 0, 0.9);
  }
  50% {
    box-shadow: 0 0 30px rgba(242, 202, 80, 1), 0 0 45px rgba(212, 175, 55, 0.6);
  }
}

/* 4. Luxury Card Hover Light Sweep */
.luxury-card {
  position: relative;
  overflow: hidden;
}
.luxury-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(242, 202, 80, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.luxury-card:hover::after {
  opacity: 1;
  left: 135%;
  transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* 5. VIP Lead Form Border Glow Aura */
.vip-form-box {
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.12);
}
.vip-form-box:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(212, 175, 55, 0.2);
}

/* 6. VIP Journey Roadmap Timeline Connector */
.journey-timeline-line {
  position: absolute;
  top: 3.25rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(242, 202, 80, 0.45) 0px,
    rgba(242, 202, 80, 0.45) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
  pointer-events: none;
}

/* 7. Floating WhatsApp Radar Pulse */
@keyframes waRadar {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.wa-radar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.5);
  z-index: -1;
  animation: waRadar 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

/* 8. Lightbox Zoom Inspection State */
.lightbox-zoom-active {
  transform: scale(1.3) !important;
  cursor: zoom-out !important;
}
