/* ============================================
   NADAGERI PRODUCTIONS - Global Design System
   Luxury Event Management Website
   ============================================ */

/* ============================================
   IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* --- Brand Colors --- */
  --gold: #d4af37;
  --gold-light: #e8c55a;
  --gold-dark: #b8942e;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --purple: #e8a0bf;
  --purple-dark: #d47ca3;
  --purple-light: #f0c4d6;
  --rose: #b8a9d4;
  --rose-light: #d4c9e6;
  --royal-blue: #d4af37;
  --teal: #f5e6d3;
  --white: #ffffff;

  /* --- Surfaces --- */
  --deep: #120e0e;
  --deep-2: #1a1515;
  --surface: #221c1c;
  --surface-2: #2d2525;
  --card: #332a2a;
  --card-hover: #3d3232;

  /* --- Text --- */
  --text: #faf3e8;
  --text-secondary: rgba(250, 243, 232, 0.7);
  --text-muted: rgba(250, 243, 232, 0.4);
  --text-dim: rgba(250, 243, 232, 0.2);

  /* --- Glassmorphism --- */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(212, 175, 55, 0.2);
  --glass-strong: rgba(255, 255, 255, 0.12);

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 4px 25px rgba(212, 175, 55, 0.2);
  --shadow-purple: 0 4px 25px rgba(232, 160, 191, 0.3);

  /* --- Typography --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-elegant: 'Cormorant Garamond', 'Georgia', serif;

  /* --- Spacing --- */
  --section-padding: 6rem 2rem;
  --section-padding-mobile: 4rem 1.2rem;
  --container-max: 1200px;
  --container-narrow: 900px;

  /* --- Borders --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-slow: cubic-bezier(0.64, 0, 0.78, 0);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;

  /* --- Z-Index Layers --- */
  --z-noise: 0;
  --z-particles: 1;
  --z-content: 2;
  --z-navbar: 100;
  --z-lightbox: 200;
  --z-cursor: 9999;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:root[data-bg-theme="event"] body {
  background: var(--bg-velvet);
  background-attachment: fixed;
}

body {
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--white);
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-noise);
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  position: relative;
}

.section-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.section-header h2 .gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

.section-header h2 .accent {
  background: linear-gradient(135deg, var(--purple), var(--rose));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SECTION SPACING
   ============================================ */
section {
  padding: var(--section-padding);
  position: relative;
}

section.alt-bg {
  background: var(--deep-2);
}

/* First content section on inner pages - the breadcrumb hero was removed,
   so give the first section extra top padding to clear the fixed navbar. */
body > section:first-of-type {
  padding-top: 8rem;
}

@media (max-width: 900px) {
  body > section:first-of-type {
    padding-top: 7rem;
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   GOLDSMITH GLASS CARD
   ============================================ */
.glass-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-gold), 0 0 40px var(--gold-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-smooth);
  font-size: 1.1em;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold));
  background-size: 200% 200%;
  color: var(--deep);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  animation: goldShimmer 3s ease-in-out infinite;
}

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

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-4px) scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-gold);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  box-shadow: var(--shadow-purple);
}

.btn-purple:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 35px rgba(232, 160, 191, 0.5);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 0.95rem;
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
}

.ripple:active::after {
  transform: scale(0);
  opacity: 0.3;
  transition: 0s;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px;
}

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

/* ============================================
   FLOATING DECORATIVE ELEMENTS
   ============================================ */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

.floating-gold {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 20px var(--gold-glow);
}

.floating-purple {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 15px rgba(232, 160, 191, 0.3);
}

/* ============================================
   ANIMATED GRADIENT BLOBS
   ============================================ */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(60px, -50px) scale(1.15) rotate(5deg); }
  50% { transform: translate(-40px, 40px) scale(0.85) rotate(-3deg); }
  75% { transform: translate(50px, 30px) scale(1.1) rotate(4deg); }
}

.blob-gold {
  background: var(--gold);
  width: 400px;
  height: 400px;
}

.blob-purple {
  background: var(--purple);
  width: 350px;
  height: 350px;
}

.blob-rose {
  background: var(--rose);
  width: 300px;
  height: 300px;
}

.blob-blue {
  background: var(--royal-blue);
  width: 250px;
  height: 250px;
}

/* ============================================
   BACKGROUND PARTICLE CANVAS
   ============================================ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* ============================================
   EVENT MANAGEMENT BACKDROP GRADIENT
   Deep velvet ground for the particle scene across all pages.
   ============================================ */
:root[data-bg-theme="event"] {
  --bg-velvet: linear-gradient(180deg,
      #0a0707 0%,
      #120c0c 35%,
      #16100e 65%,
      #0a0707 100%);
}

#particle-canvas {
  background: var(--bg-velvet);
  background-attachment: fixed;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--rose));
  z-index: calc(var(--z-navbar) + 1);
  transition: width 0.1s linear;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .gradient-blob { animation: none !important; opacity: 0.04; }
  .floating-element { animation: none !important; }
  #particle-canvas { display: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.glass-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root {
    --section-padding: 4rem 1.2rem;
  }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid-auto { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
}

/* ============================================
   LIGHT MODE THEME
   ============================================ */
[data-theme="light"] {
  --deep: #120e0e;
  --deep-2: #1a1515;
  --surface: #221c1c;
  --surface-2: #2d2525;
  --card: #332a2a;
  --card-hover: #3d3232;
  --text: #faf3e8;
  --text-secondary: rgba(250, 243, 232, 0.7);
  --text-muted: rgba(250, 243, 232, 0.45);
  --text-dim: rgba(250, 243, 232, 0.25);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-hover: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(242, 201, 76, 0.4);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 25px rgba(242, 201, 76, 0.25);
  --shadow-purple: 0 4px 25px rgba(232, 160, 191, 0.3);
}

[data-theme="light"] body {
  background: var(--deep);
  color: var(--text);
}

[data-theme="light"] .noise-overlay {
  opacity: 0.01;
}

[data-theme="light"] .navbar {
  background: rgba(248, 246, 240, 0.75);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 246, 240, 0.92);
}

[data-theme="light"] .navbar.transparent {
  background: transparent;
}

[data-theme="light"] .nav-links {
  background: rgba(248, 246, 240, 0.98);
}

[data-theme="light"] .footer::before {
  background: linear-gradient(90deg, transparent, var(--gold), var(--purple), transparent);
}

[data-theme="light"] .service-modal-content,
[data-theme="light"] .form-group select option {
  background: var(--card);
}

[data-theme="light"] .gradient-blob {
  opacity: 0.05;
}

[data-theme="light"] .lightbox {
  background: rgba(248, 246, 240, 0.95);
}

[data-theme="light"] .lightbox-content .preview {
  background: var(--card);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--deep);
}

[data-theme="light"] .btn-secondary {
  color: var(--text);
}

[data-theme="light"] .float-btn .tooltip {
  background: var(--card);
  color: var(--text);
  border-color: var(--glass-border);
}

[data-theme="light"] .mouse-glow {
  display: none !important;
}

