/* ==========================================================================
   ANSAR360 — CREATIVE DIRECTOR MONOGRAPH & HAUTE COUTURE ATELIER
   Aesthetic: Editorial Fashion Monograph • High-End Art Direction
   Typography: Cormorant Garamond / Cinzel (Couture Display) + Plus Jakarta Sans
   ========================================================================== */

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

:root {
  /* Default: NOIR & GOLD ATELIER */
  --bg-primary: #060608;
  --bg-surface: #0e0e12;
  --bg-card: rgba(16, 16, 22, 0.75);
  --bg-card-hover: rgba(24, 24, 34, 0.92);
  
  --accent-primary: #e5c07b;
  --accent-light: #f7e6c4;
  --accent-dark: #b8934a;
  --accent-glow: rgba(229, 192, 123, 0.28);
  --accent-gradient: linear-gradient(135deg, #fae5be 0%, #d4af37 45%, #9e7520 100%);
  --accent-metallic: linear-gradient(110deg, #d4af37 0%, #fff2cc 25%, #d4af37 50%, #947120 75%, #fff2cc 100%);
  
  --text-main: #f5f5f7;
  --text-muted: #9ba2b5;
  --text-faint: #5e6475;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(229, 192, 123, 0.35);
  --border-accent-bright: rgba(229, 192, 123, 0.85);

  --font-serif: 'Cormorant Garamond', serif;
  --font-display: 'Cinzel', serif;
  --font-italiana: 'Italiana', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-luxury: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px var(--accent-glow);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CREATIVE DIRECTOR THEME MOODS (ATELIER PRESETS)
   ========================================================================== */
/* Mood 1: CRIMSON & ZARDOZI COUTURE */
body.mood-zardozi {
  --bg-primary: #0a0406;
  --bg-surface: #14080c;
  --bg-card: rgba(26, 12, 18, 0.8);
  --bg-card-hover: rgba(38, 16, 26, 0.95);
  --accent-primary: #f28b82;
  --accent-light: #fcdad7;
  --accent-dark: #c53929;
  --accent-glow: rgba(242, 139, 130, 0.28);
  --accent-gradient: linear-gradient(135deg, #fcdad7 0%, #e06d63 50%, #8a241b 100%);
  --border-accent: rgba(242, 139, 130, 0.35);
}

/* Mood 2: RAW SILK & ALABASTER (HIGH-FASHION LIGHT) */
body.mood-ivory {
  --bg-primary: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(248, 245, 238, 0.98);
  --text-main: #121215;
  --text-muted: #555b6c;
  --text-faint: #848b9d;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(184, 147, 74, 0.45);
  --accent-primary: #b8934a;
  --accent-light: #8e6c27;
  --accent-glow: rgba(184, 147, 74, 0.16);
  --shadow-luxury: 0 20px 45px rgba(0, 0, 0, 0.09), 0 0 25px rgba(184, 147, 74, 0.08);
}

/* Mood 3: IMPERIAL EMERALD HERITAGE */
body.mood-emerald {
  --bg-primary: #040906;
  --bg-surface: #08140c;
  --bg-card: rgba(10, 26, 17, 0.8);
  --bg-card-hover: rgba(14, 38, 25, 0.95);
  --accent-primary: #34d399;
  --accent-light: #a7f3d0;
  --accent-dark: #059669;
  --accent-glow: rgba(52, 211, 153, 0.28);
  --accent-gradient: linear-gradient(135deg, #a7f3d0 0%, #10b981 50%, #047857 100%);
  --border-accent: rgba(52, 211, 153, 0.35);
}

/* Core Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Editorial Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Film Grain Overlay */
.luxury-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Radial Glows */
.ambient-glow-1 {
  position: absolute;
  top: -12vw;
  right: -12vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(85px);
  transition: background 0.6s ease;
}

.ambient-glow-2 {
  position: absolute;
  top: 42%;
  left: -15vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

/* Custom Runway Magnetic Cursor */
.custom-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  z-index: 9999;
  opacity: 0;
}
.custom-cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  opacity: 0;
}
body:hover .custom-cursor,
body:hover .custom-cursor-dot {
  opacity: 1;
}
.custom-cursor.hovering {
  width: 65px;
  height: 65px;
  background: var(--accent-glow);
  border-color: var(--accent-light);
  backdrop-filter: blur(3px);
}

/* Editorial Typography */
.font-serif {
  font-family: var(--font-serif);
}
.font-display {
  font-family: var(--font-display);
}
.font-italiana {
  font-family: var(--font-italiana);
}
.font-sans {
  font-family: var(--font-sans);
}

.gold-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-metallic-text {
  background: var(--accent-metallic);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 4s linear infinite;
  display: inline-block;
}
@keyframes metallicShine {
  to { background-position: 200% center; }
}

.text-gold {
  color: var(--accent-primary);
}

/* Editorial Monograph Badges */
.edition-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border-accent);
  background: rgba(229, 192, 123, 0.08);
  color: var(--accent-primary);
}

/* Editorial Navigation */
.luxury-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.35rem 2.5rem;
  transition: var(--transition-smooth);
}
.luxury-navbar.scrolled {
  padding: 0.9rem 2.5rem;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #070709;
  background: var(--accent-gradient);
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
  overflow: hidden;
  text-decoration: none;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  transition: 0.7s;
}
.btn-gold:hover::after {
  left: 150%;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 38px rgba(212, 175, 55, 0.55);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-accent);
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-luxury-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(229, 192, 123, 0.2);
}

/* Glass Cards & Editorial Monograph Sections */
.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
.luxury-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-luxury);
}
.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent-bright), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.luxury-card:hover::before {
  opacity: 1;
}

/* 3D Tilt */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Moodboard Atelier Canvas */
.moodboard-pin {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.2s ease;
}
.moodboard-pin:hover {
  transform: translateY(-8px) scale(1.03) !important;
  z-index: 30;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
  border-color: var(--accent-primary);
}

/* Palette Swatch Button */
.palette-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.palette-btn:hover, .palette-btn.active {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--accent-primary);
}

/* Infinite Marquee */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 14, 0.7);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 2.5rem;
  min-width: 100%;
  animation: scrollMarquee 40s linear infinite;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 360 Orbit Canvas */
.orbit-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#orbitCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Stats */
.stat-box {
  border-left: 2px solid var(--border-accent);
  padding-left: 1.25rem;
  transition: var(--transition-smooth);
}
.stat-box:hover {
  border-left-color: var(--accent-primary);
  transform: translateX(4px);
}

/* Filter Pills */
.filter-pill {
  padding: 0.55rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--accent-light);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* Timeline */
.timeline-container {
  position: relative;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(229, 192, 123, 0.25) 100%);
}
@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  z-index: 5;
}

/* Modals */
.luxury-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}
.luxury-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.luxury-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 45px var(--accent-glow);
  border-radius: 1.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.5rem;
  position: relative;
}
.luxury-modal-overlay.active .luxury-modal-box {
  transform: translateY(0) scale(1);
}

/* Sound Wave */
.audio-pulse {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.audio-bar {
  width: 2.5px;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: soundBars 1.2s ease-in-out infinite alternate;
}
.audio-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.audio-bar:nth-child(3) { animation-delay: 0.4s; height: 85%; }
.audio-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
@keyframes soundBars {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Zoom Hover */
.luxury-img-zoom {
  overflow: hidden;
  position: relative;
}
.luxury-img-zoom img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxury-img-zoom:hover img {
  transform: scale(1.08);
}

/* Print CSS */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .luxury-navbar,
  .luxury-noise,
  .ambient-glow-1,
  .ambient-glow-2,
  .custom-cursor,
  .custom-cursor-dot,
  .orbit-canvas-wrapper,
  .btn-gold,
  .btn-luxury-outline,
  #strategySandbox,
  .filter-pill,
  .marquee-container,
  .atelier-swatches,
  .no-print {
    display: none !important;
  }
  .luxury-card {
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    box-shadow: none !important;
    color: #111111 !important;
    page-break-inside: avoid;
  }
  .text-gold, .gold-gradient-text, .gold-metallic-text {
    color: #997328 !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
  }
}
