/* ═══════════════════════════════════════════════════════
   NAZRANA — Shared Design System
   Every page imports this file for consistent tokens,
   typography, cursor, and utility styles.
   ═══════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Cormorant+SC:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&family=Tiro+Devanagari:ital@0;1&family=Noto+Serif+Devanagari:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds & Surfaces */
  --bg-cream: #FDFAF5;
  --bg-cream-2: #F4EDE4;

  /* Lavender Scale */
  --lavender-mist: #EDE5F7;
  --lavender-soft: #D5C3EE;
  --lavender: #A882D4;
  --lavender-deep: #7B4FA6;
  --lavender-ink: #3D1A6E;

  /* Short aliases */
  --lav1: #EDE5F7;
  --lav2: #D5C3EE;
  --lav3: #7B4FA6;
  --lav4: #3D1A6E;

  /* Accents */
  --gold: #C9956C;
  --gold-light: #E8C9A8;
  --gold2: #E8C9A8;
  --rose: #E8B4C0;

  /* Text */
  --text-dark: #2A1245;
  --text-mid: #5B3F82;
  --text-soft: #9678B6;
  --ink: #2A1245;
  --mid: #5B3F82;
  --soft: #9678B6;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sc: 'Cormorant SC', serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-deva: 'Tiro Devanagari', 'Noto Serif Devanagari', serif;
  --font-deva-noto: 'Noto Serif Devanagari', serif;
}

/* ── GLOBAL RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cur-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--lavender-deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  transition: width 0.25s, height 0.25s, background 0.25s, margin 0.25s;
}

.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--lavender);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  will-change: transform;
  opacity: 0.55;
  transition: width 0.25s, height 0.25s, margin 0.25s;
}

/* Hover expansion state */
.cur-dot.hover {
  width: 16px;
  height: 16px;
  background: var(--gold);
  margin-left: -3px;
  margin-top: -3px;
}

.cur-ring.hover {
  width: 46px;
  height: 46px;
  margin-left: -7px;
  margin-top: -7px;
}

/* Touch devices — hide cursor, restore normal cursor */
@media (hover: none) {
  body {
    cursor: auto;
  }

  .cur-dot,
  .cur-ring {
    display: none !important;
  }
}

/* Also fix cursor on .nav-signout for touch */
@media (hover: none) {
  .nav-signout {
    cursor: pointer;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MOBILE TAP TARGETS ── */
button,
input,
a,
[role="button"],
select,
textarea {
  touch-action: manipulation;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  will-change: transform, opacity;
  transition: opacity 950ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delay classes */
.rd1 {
  transition-delay: 120ms;
}

.rd2 {
  transition-delay: 240ms;
}

.rd3 {
  transition-delay: 360ms;
}

.rd4 {
  transition-delay: 480ms;
}

.rd5 {
  transition-delay: 600ms;
}

/* ═══════════════════════════════════════════════════════
   LYRIC BANDS
   ═══════════════════════════════════════════════════════ */

/* SVG noise filter — injected at <body> top via JS or inline */
.lyric-band {
  position: relative;
  width: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.lyric-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.lyric-band-text {
  font-family: var(--font-deva);
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  line-height: 1.8;
  word-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.lyric-band-orn {
  font-size: 0.8rem;
  opacity: 0.3;
  display: block;
  margin: 0.6rem 0;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

/* Band color schemes */
.lyric-band--1 {
  background: linear-gradient(135deg, var(--lavender-deep), var(--lavender-ink));
}

.lyric-band--2 {
  background: linear-gradient(135deg, var(--gold), var(--lavender));
}

.lyric-band--3 {
  background: linear-gradient(135deg, var(--lavender-ink), var(--text-mid));
}

.lyric-band--4 {
  background: linear-gradient(135deg, var(--lavender), var(--lavender-deep));
}

.lyric-band--5 {
  background: linear-gradient(135deg, var(--gold), var(--rose));
}

/* ═══════════════════════════════════════════════════════
   AMBIENT PARTICLES
   ═══════════════════════════════════════════════════════ */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ptcl {
  position: absolute;
  bottom: -20px;
  will-change: transform, opacity;
}

@keyframes ptclFloat {
  0% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-28vh) translateX(10px);
  }

  50% {
    transform: translateY(-55vh) translateX(-8px);
  }

  75% {
    transform: translateY(-80vh) translateX(12px);
  }

  100% {
    transform: translateY(-110vh) translateX(0);
  }
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(253, 250, 245, 0.82);
  border-bottom: 1px solid rgba(168, 130, 212, 0.10);
}

.nav-logo {
  font-family: var(--font-sc);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-dark);
  text-decoration: none;
}

a.nav-logo:hover {
  color: var(--lavender-ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: navPulse 3s ease-in-out infinite;
}

@keyframes navPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

.nav-date {
  font-family: var(--font-sc);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lavender-ink);
}

.nav-signout {
  background: none;
  border: 1.5px solid rgba(91, 63, 130, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sc);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--lavender-ink);
  cursor: none;
  transition: all 0.25s;
  margin-left: 0.5rem;
}

.nav-signout:hover,
.nav-signout:active {
  border-color: var(--lavender);
  color: var(--lavender-deep);
  background: rgba(237, 229, 247, 0.3);
}

/* Nav back arrow (for hiya page) */
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--text-mid);
  transition: color 0.25s;
}

.nav-back:hover {
  color: var(--lavender-deep);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--lavender-soft);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--font-sc);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  background: var(--bg-cream);
}

/* ═══════════════════════════════════════════════════════
   PETAL TRAIL (desktop only)
   ═══════════════════════════════════════════════════════ */
.petal-trail {
  position: fixed;
  pointer-events: none;
  z-index: 999997;
  opacity: 0;
  will-change: transform, opacity;
  transition: none;
}

/* Disable petal trail on touch devices */
@media (hover: none) {
  .petal-trail {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   TAP RIPPLE (touch devices)
   ═══════════════════════════════════════════════════════ */
.tap-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 130, 212, 0.55);
  pointer-events: none;
  z-index: 999997;
  animation: rippleExpand 600ms ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE BREAKPOINTS
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1.2rem;
  }
}