:root {
  --primary: #ff3385;
  --primary-light: #ffa6c9;
  --primary-pale: #ffe6f0;
  --dark: #120106;
  --dark2: #24020c;
  --dark3: #360313;
  --text: #ffe6f0;
  --text-dim: #d6a3b3;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

@media (min-width: 769px) {
  body { cursor: none; }
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed; width: 18px; height: 18px;
  background: var(--primary); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, width .2s, height .2s;
  box-shadow: 0 0 10px var(--primary);
}
#cursor-trail {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid var(--primary-light); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease;
  opacity: 0.6;
}

/* ── POPUP ── */
#popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
#popup-box {
  position: relative;
  background: linear-gradient(135deg, #24020c 0%, #1f010b 50%, #120106 100%);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 50px 60px;
  max-width: 700px; width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(255,51,133,0.3), inset 0 0 80px rgba(255,51,133,0.05);
  animation: popIn .6s cubic-bezier(.175,.885,.32,1.275) both;
  overflow: hidden;
}
@keyframes popIn {
  from { transform: scale(0.5) rotateY(30deg); opacity: 0; }
  to   { transform: scale(1) rotateY(0); opacity: 1; }
}
#popup-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,51,133,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.popup-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--primary-light);
  text-shadow: 0 0 30px var(--primary);
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 20px var(--primary); }
  to   { text-shadow: 0 0 40px var(--primary-light), 0 0 80px var(--primary); }
}
.popup-age {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
  line-height: 1;
  margin: 10px 0;
}
.popup-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--primary-pale);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 20px 0;
}
.popup-date {
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 30px;
}
#close-popup {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 5px 30px rgba(255,51,133,0.5);
}
#close-popup:hover { transform: scale(1.05); box-shadow: 0 8px 40px rgba(255,51,133,0.8); }

/* ── Confetti Canvas & Background Canvas ── */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 10000; }
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 50px;
  background: linear-gradient(to bottom, rgba(18,1,6,0.95), transparent);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 2px;
  text-shadow: 0 0 20px var(--primary);
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .3s;
}
.nav-links a:hover { color: var(--primary); }

/* ── HERO ── */
#hero {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 40px;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem; letter-spacing: 8px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp .8s ease both;
}
.hero-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #ff0040 0%, #ff3385 40%, #ffa6c9 60%, #ff4d79 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .8s .15s ease both;
  position: relative;
}
.hero-name::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,166,201,0.2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(12px);
  z-index: -1;
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(.9rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  letter-spacing: 4px;
  margin: 16px 0;
  animation: fadeUp .8s .3s ease both;
}
.hero-divider {
  width: 200px; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  margin: 24px auto;
  animation: fadeUp .8s .4s ease both;
}
.hero-birth {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 1.05rem;
  animation: fadeUp .8s .5s ease both;
}
.hero-birth span { color: var(--primary-light); }
.scroll-indicator {
  position: absolute; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp 1s .8s ease both;
  opacity: 0.6;
}
.scroll-indicator span {
  font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary);
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem; letter-spacing: 6px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-title em { color: var(--primary); font-style: normal; }
.theme-bar {
  width: 80px; height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  margin-bottom: 40px;
  border-radius: 2px;
}

/* ── TIMELINE ── */
#journey { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); overflow: hidden; }
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--primary), transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: flex; margin-bottom: 60px; position: relative;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(odd) { flex-direction: row-reverse; }
.tl-content {
  width: 45%;
  background: rgba(36,2,12,0.9);
  border: 1px solid rgba(255,51,133,0.2);
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  backdrop-filter: blur(10px);
}
.tl-item:nth-child(odd) .tl-content { margin-right: auto; margin-left: 5%; }
.tl-item:nth-child(even) .tl-content { margin-left: auto; margin-right: 5%; }
.tl-content:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(255,51,133,0.2);
  border-color: var(--primary);
}
.tl-dot {
  position: absolute; left: 50%; top: 30px;
  width: 18px; height: 18px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(255,51,133,0.4);
  z-index: 2;
}
.tl-year {
  font-family: 'Cinzel', serif;
  font-size: .9rem; letter-spacing: 3px;
  color: var(--primary); margin-bottom: 8px; font-weight: bold;
}
.tl-body {
  font-family: 'Lora', serif;
  font-size: .95rem; color: var(--text-dim);
  line-height: 1.7; margin-bottom: 15px;
}
.tl-img {
  width: 100%; border-radius: 10px; border: 1px solid rgba(255,51,133,0.2);
}

/* ── FAMILY GALLERY ── */
#family { background: var(--dark3); }
.family-grid { 
  column-count: 3; 
  column-gap: 24px; 
}
@media (max-width: 900px) { .family-grid { column-count: 2; } }
@media (max-width: 600px) { .family-grid { column-count: 1; } }

.fam-card {
  background: rgba(255,51,133,0.04);
  border: 1px solid rgba(255,51,133,0.15);
  border-radius: 16px;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 24px;
  transition: transform .35s, box-shadow .35s;
}
.fam-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 25px 60px rgba(255,51,133,0.2); }
.fam-card-img {
  width: 100%; height: auto;
  display: block;
}

/* ── WISH BOARD ── */
#wishes { background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%); }
.wish-container { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 900px) { 
  .wish-container { grid-template-columns: 1fr; } 
  .wish-form-box { position: static; }
}
.wish-form-box {
  background: rgba(36,2,12,0.9);
  border: 1px solid rgba(255,51,133,0.2);
  border-radius: 20px; padding: 40px 30px;
  backdrop-filter: blur(10px);
  position: sticky; top: 100px; align-self: start;
}
.wish-form-title { font-family: 'Cinzel', serif; color: var(--primary-light); font-size: 1.5rem; margin-bottom: 20px; }
.wish-form-box input, .wish-form-box select, .wish-form-box textarea {
  width: 100%; padding: 12px 16px; margin-bottom: 16px;
  border-radius: 8px; border: 1px solid rgba(255,51,133,0.3);
  background: rgba(0,0,0,0.5); color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-size: 1rem;
}
.wish-form-box input:focus, .wish-form-box textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(255,51,133,0.3); }

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; width: 100%; padding: 14px; border: none;
  border-radius: 8px; font-family: 'Cinzel', serif; font-weight: 700;
  letter-spacing: 2px; cursor: pointer; transition: transform .3s, box-shadow .3s;
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,51,133,0.4); }

.wishes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.wish-item {
  background: rgba(255,51,133,0.05);
  border: 1px solid rgba(255,51,133,0.15);
  border-radius: 16px; padding: 24px;
  transition: transform .3s, box-shadow .3s;
}
.wish-item:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(255,51,133,0.15); }
.wish-name { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--primary-light); }
.wish-rel { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; }
.wish-msg { font-family: 'Lora', serif; font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); font-style: italic; }

.form-msg { margin-top: 15px; font-weight: 600; text-align: center; }
.success-msg { color: #00ff88; }
.error-msg { color: var(--primary); }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 60px 40px 30px;
  text-align: center; border-top: 1px solid rgba(255,51,133,0.15);
  position: relative; z-index: 1;
}
.footer-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem; color: var(--primary);
  text-shadow: 0 0 30px var(--primary); margin-bottom: 12px;
}
.footer-sub {
  font-family: 'Lora', serif; font-style: italic;
  color: var(--text-dim); font-size: .95rem; margin-bottom: 30px;
}
.footer-line {
  width: 200px; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  margin: 0 auto 24px;
}
.footer-copy { font-size: .8rem; color: var(--text-dim); letter-spacing: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .timeline::before { left: 30px; }
  .tl-item, .tl-item:nth-child(odd) { flex-direction: column; }
  .tl-content { width: 85%; margin-left: auto !important; margin-right: 0 !important; }
  .tl-dot { left: 30px; }
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .section-inner { padding: 0 20px; }
  #cursor, #cursor-trail { display: none; } /* Hide heavy cursors on mobile */
}
