/* ==========================================================================
   Rekik Design (rekikdesign.et) - Master Luxury Architectural Design System
   ========================================================================== */

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

:root {
  /* Dynamic Atmospheric Lighting Variables */
  --bg-primary: #0e0d0c;
  --bg-secondary: #161514;
  --bg-card: rgba(26, 25, 24, 0.7);
  --text-primary: #f5f2eb;
  --text-secondary: #a39e93;
  --text-muted: #6e695f;
  
  --accent-gold: #e5a93c;
  --accent-gold-light: #fcd385;
  --accent-bronze: #8c6d46;
  --accent-glow: rgba(229, 169, 60, 0.15);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(229, 169, 60, 0.4);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* Atmospheric Lighting Modes */
body[data-lighting="dawn"] {
  --bg-primary: #120e10;
  --bg-secondary: #1c1518;
  --accent-gold: #f472b6;
  --accent-glow: rgba(244, 114, 182, 0.18);
  --border-active: rgba(244, 114, 182, 0.4);
}

body[data-lighting="day"] {
  --bg-primary: #121417;
  --bg-secondary: #1a1e24;
  --accent-gold: #7dd3fc;
  --accent-glow: rgba(125, 211, 252, 0.18);
  --border-active: rgba(125, 211, 252, 0.4);
}

body[data-lighting="golden"] {
  --bg-primary: #0e0d0c;
  --bg-secondary: #161514;
  --accent-gold: #e5a93c;
  --accent-glow: rgba(229, 169, 60, 0.18);
  --border-active: rgba(229, 169, 60, 0.4);
}

body[data-lighting="twilight"] {
  --bg-primary: #08090f;
  --bg-secondary: #10121d;
  --accent-gold: #a5b4fc;
  --accent-glow: rgba(165, 180, 252, 0.15);
  --border-active: rgba(165, 180, 252, 0.4);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Subtle architectural custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Custom Cursor */
#custom-cursor {
  pointer-events: none;
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  z-index: 9999;
  transition: transform 0.05s ease-out, background-color 0.2s, width 0.2s, height 0.2s;
}

#custom-cursor-follower {
  pointer-events: none;
  position: fixed;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 9998;
  transition: transform 0.18s ease-out, border-color 0.2s;
}

/* Ambient Audio Wave Animation */
@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.animate-wave:nth-child(1) { animation: wave 0.8s ease-in-out infinite; }
.animate-wave:nth-child(2) { animation: wave 1.1s ease-in-out infinite 0.2s; }
.animate-wave:nth-child(3) { animation: wave 0.9s ease-in-out infinite 0.4s; }
.animate-wave:nth-child(4) { animation: wave 1.3s ease-in-out infinite 0.1s; }

/* Subtle noise texture background */
.noise-overlay {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Editorial Hairline Borders */
.hairline-b {
  border-bottom: 1px solid var(--border-subtle);
}

.hairline-t {
  border-top: 1px solid var(--border-subtle);
}

.hairline-l {
  border-left: 1px solid var(--border-subtle);
}

.hairline-r {
  border-right: 1px solid var(--border-subtle);
}

/* Atmospheric Glow Orb */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transition: background 0.8s ease;
}
