/* ============================================
   NOCTURNE BOUDOIR — Shared Design System
   Fine Art Fantasy Boudoir Photography
   ============================================ */

/* TOKENS */
:root {
  /* Dark palette */
  --bg-void: #08060b;
  --bg-deep: #0f0a14;
  --bg-plum: #1a0e16;
  --bg-burgundy: #2a1520;
  --bg-card-dark: #1e1228;

  /* Warm palette */
  --cream: #f5efe6;
  --cream-deep: #ede4d8;
  --cream-mid: #e8ddd0;
  --cream-light: #faf7f2;
  --champagne: #f0e6d6;

  /* Accents */
  --gold-dim: #9a7e4e;
  --gold-mid: #c4a265;
  --gold-bright: #e8c88a;
  --gold-glow: #f5dca8;
  --burgundy: #5c2434;
  --burgundy-deep: #3d1525;
  --burgundy-bright: #8b3a4a;
  --rose: #c4586e;
  --rose-pale: #d4899a;

  /* Text */
  --text-cream: #f5efe6;
  --text-light: #ede6f0;
  --text-light-secondary: #b8adc4;
  --text-light-muted: #7a6e8a;
  --text-dark: #2a1520;
  --text-dark-secondary: #5c4a52;
  --text-dark-muted: #8a7a82;

  /* Borders */
  --border-dark: rgba(196, 162, 101, 0.12);
  --border-dark-glow: rgba(196, 162, 101, 0.25);
  --border-light: rgba(42, 21, 32, 0.1);
  --border-light-strong: rgba(42, 21, 32, 0.2);

  /* Shadows */
  --shadow-polaroid: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-soft: 0 2px 12px rgba(0,0,0,0.08);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-void);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* TYPOGRAPHY */
.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
}
.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
}
.heading-md {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}
.heading-sm {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: 22px;
  line-height: 1.3;
}
.label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
}
.label-lg {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
}
em, .italic { font-style: italic; }

/* ==========================================
   NAV
   ========================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: all 0.5s ease;
}
nav.scrolled {
  background: rgba(8, 6, 11, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  height: 64px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: 22px; letter-spacing: 3px;
  color: var(--gold-bright); text-decoration: none;
}
.nav-logo em { font-style: italic; font-weight: 300; color: var(--text-light-secondary); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 10px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-light-muted); text-decoration: none;
  padding: 4px 0; position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold-bright);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Top bar */
.nav-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--burgundy-deep);
  font-size: 10px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--rose-pale);
}
.nav-topbar a { color: var(--gold-bright); text-decoration: underline; }
nav.has-topbar { top: 36px; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; z-index: 101;
}
.hamburger span {
  width: 24px; height: 1.5px; background: var(--gold-bright);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ==========================================
   SECTIONS
   ========================================== */
.section-dark {
  background: var(--bg-deep);
  color: var(--text-light);
}
.section-plum {
  background: var(--bg-plum);
  color: var(--text-light);
}
.section-burgundy {
  background: var(--burgundy-deep);
  color: var(--text-cream);
}
.section-cream {
  background: var(--cream);
  color: var(--text-dark);
}
.section-cream-light {
  background: var(--cream-light);
  color: var(--text-dark);
}

.section-padding {
  padding: 100px 48px;
}
.section-padding-lg {
  padding: 120px 48px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; transition: all 0.4s;
  border: none; cursor: pointer;
}
.btn-outline-gold {
  border: 1px solid var(--gold-mid);
  color: var(--gold-bright); background: transparent;
}
.btn-outline-gold:hover {
  background: rgba(196, 162, 101, 0.1);
  box-shadow: 0 0 40px rgba(196, 162, 101, 0.1);
}
.btn-outline-dark {
  border: 1px solid var(--burgundy);
  color: var(--burgundy); background: transparent;
}
.btn-outline-dark:hover {
  background: var(--burgundy);
  color: var(--cream);
}
.btn-solid-burgundy {
  background: var(--burgundy); color: var(--cream);
  border: 1px solid var(--burgundy);
}
.btn-solid-burgundy:hover {
  background: var(--burgundy-bright);
  box-shadow: 0 4px 20px rgba(92, 36, 52, 0.3);
}
.btn-solid-gold {
  background: var(--gold-mid); color: var(--bg-void);
  border: 1px solid var(--gold-mid);
}
.btn-solid-gold:hover {
  background: var(--gold-bright);
}

/* ==========================================
   POLAROID CARDS
   ========================================== */
.polaroid {
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.5s ease;
  display: inline-block;
}
.polaroid img, .polaroid .polaroid-placeholder {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block;
}
.polaroid .polaroid-placeholder {
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 14px; color: var(--text-dark-muted);
}
.polaroid-caption {
  text-align: center; padding-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 13px;
  color: var(--text-dark-muted);
}
.polaroid.tilt-left { transform: rotate(-4deg); }
.polaroid.tilt-right { transform: rotate(3deg); }
.polaroid.tilt-slight-left { transform: rotate(-2deg); }
.polaroid.tilt-slight-right { transform: rotate(1.5deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }

/* ==========================================
   DIVIDER / PARALLAX QUOTE
   ========================================== */
.parallax-divider {
  position: relative; overflow: hidden;
  padding: 80px 48px;
  background: var(--burgundy-deep);
  text-align: center;
}
.parallax-divider .divider-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--rose-pale); line-height: 1.5;
  max-width: 700px; margin: 0 auto;
}
.parallax-divider .divider-text em { color: var(--gold-bright); font-style: italic; }
.parallax-divider .divider-rule {
  width: 60px; height: 1px;
  background: var(--gold-mid); margin: 20px auto;
  opacity: 0.5;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-dark);
  padding: 48px 48px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: 18px; letter-spacing: 2px;
  color: var(--gold-dim);
}
.footer-brand em { font-style: italic; font-weight: 300; color: var(--text-light-muted); }
.footer-links {
  display: flex; gap: 24px; list-style: none;
}
.footer-links a {
  font-size: 10px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-light-muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy {
  width: 100%; text-align: center; padding-top: 24px;
  margin-top: 16px; border-top: 1px solid var(--border-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-weight: 300; color: var(--text-light-muted);
}

/* ==========================================
   REVEAL ANIMATION
   ========================================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   REACT-BITS INSPIRED EFFECTS
   ========================================== */

/* SHINY TEXT — Gold shimmer sweep across text */
.shiny-text {
  background: linear-gradient(
    120deg,
    var(--gold-bright) 0%,
    var(--gold-glow) 20%,
    var(--gold-bright) 40%,
    var(--cream) 50%,
    var(--gold-bright) 60%,
    var(--gold-glow) 80%,
    var(--gold-bright) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-sweep 4s ease-in-out infinite;
}
@keyframes shiny-sweep {
  0%, 100% { background-position: 200% center; }
  50% { background-position: 0% center; }
}

/* BLUR TEXT REVEAL — Text starts blurred, reveals on scroll */
.blur-reveal {
  filter: blur(8px);
  opacity: 0;
  transition: filter 1s ease, opacity 0.8s ease;
}
.blur-reveal.visible {
  filter: blur(0);
  opacity: 1;
}

/* SPOTLIGHT CARD — Radial gradient follows cursor */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: var(--border-dark-glow); }

/* GLARE HOVER — Moving shine highlight */
.glare-hover {
  position: relative;
  overflow: hidden;
}
.glare-hover::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(245, 220, 168, 0.06) 45%,
    rgba(245, 220, 168, 0.1) 50%,
    rgba(245, 220, 168, 0.06) 55%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.glare-hover:hover::after {
  transform: translateX(50%) rotate(0deg);
}

/* FILM GRAIN — Subtle noise overlay */
.film-grain::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain-shift 0.5s steps(5) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(2px, -2px); }
}

/* TILT CARD — 3D perspective tilt on hover (JS-enhanced) */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}
.tilt-card-inner {
  transform: translateZ(20px);
}

/* MAGNETIC BUTTON — Subtle pull toward cursor */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 6, 11, 0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 40px; z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { font-size: 14px; letter-spacing: 3px; color: var(--text-light); }
  .section-padding { padding: 64px 20px; }
  .section-padding-lg { padding: 80px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}
