/* ==========================================================================
   LUMINA RESIDENCES - BASE STYLES & FOUNDATIONS
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #0d1527 0%, var(--bg-deep) 60%);
}

/* Custom Scrollbar for Smooth Filming */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Background Ambient Glows & Grid */
.ambient-lighting {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  mix-blend-mode: screen;
  transition: transform 1.2s var(--ease-out-expo), opacity 0.8s ease;
}

.ambient-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #d4af37, #b8860b 60%, transparent);
  top: -200px;
  left: -150px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #00f2fe, #0077b6 60%, transparent);
  bottom: 10%;
  right: -250px;
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7928ca, transparent);
  top: 45%;
  left: 20%;
  opacity: 0.1;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.08); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.cyan-gradient-text {
  background: linear-gradient(135deg, #a5f3fc, #00f2fe, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

/* Custom Interactive Cursor Glow */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease-out;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}

body:hover .cursor-follower.active {
  width: 70px;
  height: 70px;
  border-color: var(--cyan-laser);
  background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, transparent 70%);
}

/* Glassmorphism Surface Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card), var(--glow-gold);
}
