@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Manrope:wght@200..800&display=swap');

/* --- Theme Variables --- */
:root {
  --color-background: #131313;
  --color-surface: #1c1b1b;
  --color-surface-container: #201f1f;
  --color-on-surface: #e5e2e1;
  --color-on-surface-variant: #c6c6cd;
  --color-primary: #bec6e0;
  --color-secondary: #e9c349;
  --color-secondary-hover: #ffe088;
  --color-tertiary: #f5b8ae;
  
  --font-headline: "Playfair Display", serif;
  --font-body: "Manrope", sans-serif;
}

/* --- Base Reset & Defaults --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-background);
}
::-webkit-scrollbar-thumb {
  background: #353534;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* --- Typography Helper --- */
.font-headline {
  font-family: var(--font-headline);
}
.font-body {
  font-family: var(--font-body);
}

/* --- Premium Luxury Visual Classes --- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(233, 195, 73, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(233, 195, 73, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mask {
  background: linear-gradient(to bottom, rgba(19, 19, 19, 0.1) 0%, rgba(19, 19, 19, 0.75) 65%, rgba(19, 19, 19, 1) 100%);
}

/* --- Animations & Effects --- */
.reveal-up {
  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-up.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.animate-pulse-slow {
  animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 20s infinite linear;
}

@keyframes spin-reverse-slow {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.animate-spin-reverse-slow {
  animation: spin-reverse-slow 12s infinite linear;
}

/* --- Skin Cross-section Visualizer Wave pulses --- */
.pulse-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(96, 165, 250, 0.05);
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  opacity: 0;
  transform: scaleX(0.95);
  transition: opacity 0.5s ease;
}

.skin-layer-active .pulse-overlay {
  opacity: 1;
  animation: wave-pulse 1.5s infinite ease-in-out;
}

@keyframes wave-pulse {
  0%, 100% {
    transform: scaleX(0.95);
    background: rgba(96, 165, 250, 0.03);
  }
  50% {
    transform: scaleX(1.03);
    background: rgba(96, 165, 250, 0.08);
  }
}

/* --- Modals Transitions --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

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

.modal-content {
  background: var(--color-surface);
  border: 1px solid rgba(233, 195, 73, 0.3);
  border-top: 4px solid var(--color-secondary);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

/* --- Focus states for luxury input forms --- */
.luxury-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-on-surface);
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.luxury-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(233, 195, 73, 0.1);
}

.luxury-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e9c349'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
