@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0d0b0a;
  --bg-surface: #151210;
  --bg-elevated: #1e1a17;
  --bg-card: rgba(26, 22, 19, 0.85);
  --bg-light: #faf7f2;
  --bg-cream: #f4eee3;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-burnished: #b8860b;
  --gold-deep: #996515;
  --gold-gradient: linear-gradient(135deg, #f5e0a3 0%, #d4af37 40%, #aa771c 75%, #8b5a00 100%);
  --gold-glow: rgba(212, 175, 55, 0.28);
  --text-primary: #fcfaf7;
  --text-muted: #b8aba0;
  --text-dark: #1a1614;
  --text-dark-muted: #6b5f54;
  --border-gold: rgba(212, 175, 55, 0.24);
  --border-gold-subtle: rgba(212, 175, 55, 0.12);
  --border-dark: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold-primary);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #110e0d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #996515);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f5e0a3, #d4af37);
}

/* Typography styles */
.font-cinzel {
  font-family: 'Cinzel', serif;
}
.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

/* Metallic Gold Typography Gradients */
.gold-text-gradient {
  background: linear-gradient(135deg, #fff3cf 0%, #e2be5a 30%, #c59b27 70%, #8b6508 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text-bright {
  background: linear-gradient(135deg, #ffffff 0%, #f6e6b4 40%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text-shimmer {
  background: linear-gradient(90deg, #c59b27 0%, #fff0b8 25%, #c59b27 50%, #fff0b8 75%, #c59b27 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 5s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Floating Glass Pill Navbar */
.floating-pill-nav {
  background: rgba(18, 15, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(212, 175, 55, 0.12);
}

/* Editorial Glass Card */
.editorial-glass-card {
  background: rgba(22, 18, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.75);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-glass-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

/* High-Contrast Light Editorial Card */
.editorial-cream-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: 0 12px 35px -8px rgba(35, 25, 15, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-cream-card:hover {
  border-color: rgba(184, 134, 11, 0.55);
  box-shadow: 0 20px 40px -10px rgba(184, 134, 11, 0.18);
  transform: translateY(-4px);
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #e2be5a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
  box-shadow: 0 0 10px #e2be5a;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

/* Luxury Gold Button Primary */
.btn-gold-royal {
  background: linear-gradient(135deg, #e5c365 0%, #d4af37 50%, #aa771c 100%);
  color: #0b0908;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold-royal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: 0.6s ease;
}

.btn-gold-royal:hover::before {
  left: 100%;
}

.btn-gold-royal:hover {
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

/* Ghost Gold Outline Button */
.btn-gold-outline {
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f3e5ab;
  background: rgba(212, 175, 55, 0.04);
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.35s ease;
}

.btn-gold-outline:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Ken Burns Subtle Zoom */
@keyframes kenBurnsSubtle {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1.0); }
}

.animate-ken-burns {
  animation: kenBurnsSubtle 22s infinite alternate ease-in-out;
}

/* Ambient Glow Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.38;
  z-index: 0;
}

/* Before / After Comparison Styles */
.comparison-slider-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.comparison-after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  pointer-events: none;
}

.comparison-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
  pointer-events: none;
  transform: translateX(-50%);
}

.comparison-drag-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #12100e;
  border: 2px solid #d4af37;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3e5ab;
  z-index: 20;
}

/* Interactive Calculator Sliders */
input[type=range].gold-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #2b2520;
  outline: none;
}

input[type=range].gold-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  transition: transform 0.15s ease;
}

input[type=range].gold-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Magazine Bento Lookbook Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Shimmer Border Effect */
.shimmer-gold-border {
  position: relative;
}

.shimmer-gold-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), transparent 50%, rgba(212, 175, 55, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
