/* ============================================================
   ARVIND & JYOTI — Global Styles
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --rose-gold:      #C9748A;
  --rose-gold-deep: #B5546E;
  --rose-gold-light:#E8A5B8;
  --ivory:          #FDF6EE;
  --ivory-dark:     #F5E8D8;
  --burgundy:       #5C1A2A;
  --burgundy-deep:  #3D0F1C;
  --blush:          #F7D4DE;
  --blush-soft:     #FDE8EF;
  --gold:           #D4A853;
  --gold-light:     #F0CC7A;
  --text-dark:      #2D1420;
  --text-mid:       #6B3A4A;
  --text-soft:      #A06070;

  --font-display:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  48px;

  --shadow-soft: 0 4px 24px rgba(92, 26, 42, 0.10);
  --shadow-glow: 0 0 32px rgba(201, 116, 138, 0.35);
  --shadow-card: 0 8px 40px rgba(92, 26, 42, 0.14);

  --transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
  --page-pad: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Grain texture overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ── Mobile wrapper — always 430px centered ── */
#app-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: var(--ivory);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(92, 26, 42, 0.12);
}

/* Desktop side decoration */
@media (min-width: 430px) {
  body {
    background: var(--burgundy-deep);
    background-image:
      radial-gradient(ellipse at 20% 50%, rgba(201,116,138,0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 50%, rgba(212,168,83,0.10) 0%, transparent 50%);
  }
  body::before {
    content: '"आशिक हूँ मैं तेरा"';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(calc(-50% - 240px)) translateY(-50%) rotate(-90deg);
    font-family: var(--font-display);
    font-size: 14px;
    color: rgba(201,116,138,0.25);
    letter-spacing: 0.2em;
    white-space: nowrap;
    pointer-events: none;
  }
  body::after {
    content: '"Arvind ♾ Jyoti"';
    position: fixed;
    right: 50%;
    top: 50%;
    transform: translateX(calc(50% + 240px)) translateY(-50%) rotate(90deg);
    font-family: var(--font-display);
    font-size: 14px;
    color: rgba(201,116,138,0.25);
    letter-spacing: 0.2em;
    white-space: nowrap;
    pointer-events: none;
  }
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 8vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--text-mid);
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rose-gold-light); border-radius: 999px; }

/* ── Page wrapper ── */
.page-content {
  padding: var(--page-pad);
  padding-bottom: calc(var(--nav-height) + 24px);
  min-height: 100vh;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-height);
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(201, 116, 138, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 1000;
  box-shadow: 0 -4px 24px rgba(92, 26, 42, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  flex: 1;
}

.nav-item:hover, .nav-item.active {
  background: var(--blush-soft);
}

.nav-item .nav-icon {
  font-size: 1.3rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.nav-item.active .nav-icon {
  transform: scale(1.2) translateY(-2px);
}

.nav-item .nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.nav-item.active .nav-label {
  color: var(--rose-gold-deep);
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  background: var(--rose-gold);
  border-radius: 50%;
  animation: navDot 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-deep) 100%);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(201, 116, 138, 0.40);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201, 116, 138, 0.55);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--rose-gold-deep);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--rose-gold);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--blush-soft);
  transform: translateY(-1px);
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,116,138,0.08);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(92, 26, 42, 0.16);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header .section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  color: var(--burgundy);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rose-gold-light));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--rose-gold-light));
}

.section-divider .divider-heart {
  color: var(--rose-gold);
  font-size: 0.8rem;
  animation: heartbeat 2s ease-in-out infinite;
}

/* ── Shimmer text ── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #fff8e7 35%,
    var(--gold-light) 50%,
    #fff8e7 65%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Glow card ── */
.glow-card {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(92, 26, 42, 0.35), 0 0 0 1px rgba(201,116,138,0.2);
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--rose-gold-light), var(--gold), var(--rose-gold-light));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

/* ── Tag badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
}

.tag-instagram { background: #fce4ec; color: #c2185b; }
.tag-whatsapp  { background: #e8f5e9; color: #2e7d32; }
.tag-special   { background: #fff3e0; color: #e65100; }
.tag-moment    { background: var(--blush-soft); color: var(--rose-gold-deep); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Page transition ── */
.page-enter {
  animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-rose   { color: var(--rose-gold); }
.text-burgundy { color: var(--burgundy); }
.text-gold   { color: var(--gold); }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

/* ── Keyframe references (defined in animations.css) ── */
/* heartbeat, shimmer, borderGlow, navDot, pageEnter */
