/* Custom Styles for Aura Medical Aesthetics & Dermatology Clinic */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #1C2E2A;      /* Deep Medical Emerald */
  --color-primary-light: #2A433D;
  --color-accent: #C5A880;       /* Luxury Champagne Gold */
  --color-accent-hover: #B3946A;
  --color-bg-light: #FBF9F5;     /* Warm Soft Cream */
  --color-surface: #FFFFFF;
  --color-text-dark: #1A1A1A;
  --color-text-muted: #666666;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

/* Glassmorphism Header */
.header-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 10px 30px -10px rgba(28, 46, 42, 0.12);
}

/* Prevent text wrapping in navigation */
nav a, .nav-item {
  white-space: nowrap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1ECE4;
}
::-webkit-scrollbar-thumb {
  background: #C5A880;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A88B63;
}

/* Before & After Interactive Image Comparison Slider */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 850px;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(28, 46, 42, 0.15);
  user-select: none;
  touch-action: none;
}

@media (max-width: 768px) {
  .ba-container {
    height: 360px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .ba-container {
    height: 280px;
    border-radius: 12px;
  }
}

.ba-image-before, .ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.ba-image-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #FFFFFF;
}

.ba-image-after-wrapper .ba-image-after {
  width: var(--container-width, 850px);
  max-width: none;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #FFFFFF;
  z-index: 10;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1C2E2A;
  color: #C5A880;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 480px) {
  .ba-handle-button {
    width: 36px;
    height: 36px;
  }
}

.ba-container:hover .ba-handle-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #2A433D;
}

.ba-badge {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(8px);
}

@media (max-width: 480px) {
  .ba-badge {
    top: 10px;
    padding: 4px 10px;
    font-size: 0.65rem;
  }
}

.ba-badge-before {
  right: 16px;
  background: rgba(28, 46, 42, 0.85);
  color: #FFFFFF;
}

.ba-badge-after {
  left: 16px;
  background: rgba(197, 168, 128, 0.95);
  color: #1C2E2A;
}

/* Modal Animations */
.modal-backdrop {
  background: rgba(15, 26, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card Hover Elevate */
.hover-elevate {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-elevate:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(28, 46, 42, 0.12);
}

/* Accordion Chevron Animation */
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 90vw;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 80px;
    right: 16px;
    left: 16px;
  }
}

.toast-item {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  background: #1C2E2A;
  color: #FFFFFF;
  border-left: 4px solid #C5A880;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
