/* ═══════════════════════════════════════════════════════
   iCANDY EVENTS — CORE STYLES
   Luxury Wedding & Event Design Website
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────── */
:root {
  /* Luxury Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-card: rgba(255, 255, 255, 0.03);

  --text-primary: #f5f0eb;
  --text-secondary: #b8b0a8;
  --text-muted: #6e6a65;

  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gold-dark: #8a7340;
  --rose: #c4788a;
  --rose-light: #e8a0b0;
  --champagne: #f5e6d3;
  --ivory: #fffef9;
  --blush: #f0d4d8;

  --accent-glow: rgba(201, 169, 110, 0.15);
  --accent-glow-strong: rgba(201, 169, 110, 0.3);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Dancing Script', cursive;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --container-max: 1280px;
  --container-padding: clamp(20px, 4vw, 60px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Z-index layers */
  --z-particles: 0;
  --z-content: 1;
  --z-nav: 100;
  --z-cursor: 200;
  --z-loader: 1000;
}

/* ─── Light Mode (Creamy Wedding Theme) ─────────────── */
[data-theme="light"] {
  --bg-primary: #FFF8F0;
  --bg-secondary: #FDF3E7;
  --bg-tertiary: #F5EDE3;
  --bg-card: rgba(0, 0, 0, 0.02);

  --text-primary: #2c2420;
  --text-secondary: #6b5d52;
  --text-muted: #a89888;

  --gold: #b8953f;
  --gold-light: #c9a96e;
  --gold-dark: #8a7340;

  --accent-glow: rgba(184, 149, 63, 0.1);
  --accent-glow-strong: rgba(184, 149, 63, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .hero__video-overlay {
  background: linear-gradient(to bottom, rgba(255,248,240,0.4) 0%, rgba(255,248,240,0.85) 100%);
}

[data-theme="light"] .loader {
  background: var(--bg-primary);
}

[data-theme="light"] .nav {
  background: rgba(255, 248, 240, 0.85) !important;
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(255, 248, 240, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer {
  background: #F5EDE3;
  border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .cta-form__input {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8);
  color: var(--text-primary);
}

[data-theme="light"] .cta-form__input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.95);
}

[data-theme="light"] .cta-form__select option {
  background: #fff;
  color: var(--text-primary);
}

[data-theme="light"] .particles-canvas {
  opacity: 0.3;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(184,149,63,0.08) 0%, transparent 70%);
}

[data-theme="light"] .discount-banner {
  background: linear-gradient(135deg, #2c2420, #3d3028);
  color: var(--champagne);
}

[data-theme="light"] .pricing-card--featured {
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(255,255,255,0.9)) !important;
}

[data-theme="light"] .event-card__badge {
  background: linear-gradient(135deg, rgba(196, 120, 138, 0.10), rgba(201, 169, 110, 0.08));
}

[data-theme="light"] .countdown__unit {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.12);
}

[data-theme="light"] .scroll-top {
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}

[data-theme="light"] .whatsapp-float {
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

[data-theme="light"] .timeline__card-inner {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .sticker {
  background: rgba(184, 149, 63, 0.9);
}

[data-theme="light"] .reason-card-h__icon {
  background: rgba(184, 149, 63, 0.12);
}

[data-theme="light"] .process-step__note {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .process-step__tag {
  background: rgba(184, 149, 63, 0.08);
  border-color: rgba(184, 149, 63, 0.25);
}

[data-theme="light"] .book-gallery__page-front,
[data-theme="light"] .book-gallery__page-back {
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-theme="light"] .section-header__label {
  color: var(--gold);
}

[data-theme="light"] .testimonials__bg-text {
  color: rgba(184, 149, 63, 0.05);
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ─── Utility Classes ───────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--champagne), var(--gold-light), var(--rose-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}

/* ─── Loader ────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
  position: relative;
}

.loader__ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-top-color: var(--gold);
  animation: loaderSpin 1.5s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader__ring--2 {
  width: 140px;
  height: 140px;
  border-top-color: var(--rose);
  animation-duration: 2s;
  animation-direction: reverse;
}

.loader__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.loader__icon {
  font-size: 28px;
  color: var(--gold);
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader__brand {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.loader__sub {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.loader__progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loader__text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

@keyframes loaderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ─── Cursor Glow ───────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ─── Particles Canvas ──────────────────────────────── */
#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
  opacity: 0.4;
}

/* ─── Navigation ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 0;
  transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav__logo:hover {
  transform: scale(1.02);
}

.nav__logo-icon {
  color: var(--gold);
  font-size: 20px;
}

.nav__logo-accent {
  color: var(--gold);
  font-weight: 400;
  margin-left: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ─── Nav Actions ───────────────────────────────────── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Theme Toggle ──────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: all 0.4s var(--ease-out-expo);
  position: absolute;
}

.theme-toggle__sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.theme-toggle__moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-toggle__sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

/* ─── WhatsApp Floating Button ──────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float__icon {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Discount Banner ──────────────────────────────── */
.discount-banner {
  position: relative;
  z-index: var(--z-content);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  overflow: hidden;
  padding: 12px 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discount-banner__track {
  display: flex;
  overflow: hidden;
}

.discount-banner__content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: bannerScroll 30s linear infinite;
}

.discount-banner__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  flex-shrink: 0;
}

.discount-banner__item svg {
  flex-shrink: 0;
}

.discount-banner__separator {
  color: rgba(0,0,0,0.2);
  font-size: 18px;
  padding: 0 8px;
  flex-shrink: 0;
}

@keyframes bannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── .nav__logo-i styling ──────────────────────────── */
.nav__logo-i {
  color: var(--gold);
  font-style: italic;
}

.loader__logo-i {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 40px;
}

.loader__logo-candy {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
}

.loader__subtitle {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.loader__content {
  text-align: center;
}

/* ─── Outline Button ────────────────────────────────── */
.btn--outline {
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ─── Section Header Compact ────────────────────────── */
.section-header--compact {
  margin-bottom: clamp(32px, 4vh, 56px);
}

/* ─── Section Header ────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(48px, 6vh, 80px);
  padding: 0 var(--container-padding);
}

.section-header__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-header__desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold-light);
}

.btn--ghost:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover .btn__shimmer {
  transform: translateX(100%);
}

.btn__icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn:hover .btn__icon {
  transform: translateY(2px);
}

/* ─── Sticker Overlays ──────────────────────────────── */
.sticker {
  position: absolute;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 2;
}

.sticker--top-right { top: 12px; right: 12px; }
.sticker--top-left { top: 12px; left: 12px; }
.sticker--bottom-right { bottom: 12px; right: 12px; }
.sticker--bottom-left { bottom: 12px; left: 12px; }

/* ─── Handwritten Notes ─────────────────────────────── */
.handwritten-note {
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--champagne);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ─── Stat Element ──────────────────────────────────── */
.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
}

.stat__label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
