:root {
  --cream:#fff9f4;
  --ivory:#fffdfb;
  --blush:#f8bbd9;
  --rose:#d96c9d;
  --champagne:#e6c66a;
  --rose-gold:#c7897b;
  --ink:#253041;
  --muted:#6d6470;
  --line:rgba(199,137,123,.22);
  --shadow:0 24px 70px rgba(74,47,68,.10);
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins', sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(248,187,217,.28), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(230,198,106,.18), transparent 26%),
    var(--cream);
  color:var(--ink);
  line-height:1.7;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(rgba(255,249,244,.78), rgba(255,249,244,.88)),
    url('https://images.unsplash.com/photo-1520763185298-1b434c919102?q=80&w=1800&auto=format&fit=crop');
  background-size:cover;
  background-position:center;
  opacity:.28;
  pointer-events:none;
  z-index:-1;
}

.nav {
  position:sticky;
  top:18px;
  z-index:20;
  width:min(1180px, calc(100% - 32px));
  margin:18px auto 0;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 16px 50px rgba(74,47,68,.08);
  backdrop-filter:blur(18px);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px 14px 26px;
}
.brand {
  font-family:'Great Vibes', cursive;
  color:var(--rose);
  text-decoration:none;
  font-size:clamp(1.4rem, 3vw, 2rem);
  white-space:nowrap;
}
.links { display:flex; align-items:center; gap:22px; }
.links a {
  color:var(--ink);
  text-decoration:none;
  font-weight:500;
  font-size:.98rem;
}
.links a:hover { color:var(--rose); }
.lang-toggle {
  border:1px solid rgba(199,137,123,.25);
  background:#fff;
  color:var(--rose-gold);
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

.hero { padding:70px 18px 40px; }
.hero-shell {
  width:min(1220px,100%);
  margin:auto;
  border-radius:28px;
  padding:18px;
  background:rgba(255,255,255,.50);
  border:1px solid rgba(230,198,106,.22);
  box-shadow:var(--shadow);
}
.hero-card {
  text-align:center;
  border-radius:24px;
  padding:92px 38px;
  border:1px solid rgba(230,198,106,.24);
  background:linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.72));
  overflow:hidden;
  position:relative;
}
.hero-card::before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 22% 42%, rgba(248,187,217,.25), transparent 25%),
    radial-gradient(circle at 78% 30%, rgba(230,198,106,.20), transparent 25%);
  pointer-events:none;
}
.hero-card > * { position:relative; z-index:1; }
.kicker {
  text-transform:uppercase;
  letter-spacing:.35em;
  color:var(--rose-gold);
  font-weight:700;
  font-size:.8rem;
  margin-bottom:10px;
}
.hero h1 {
  font-family:'Great Vibes', cursive;
  color:var(--rose);
  font-size:clamp(4rem, 12vw, 8rem);
  line-height:.88;
  margin-bottom:20px;
}
.hero h2 {
  font-family:'Playfair Display', serif;
  font-size:clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom:18px;
}
.hero p {
  max-width:760px;
  margin:0 auto 28px;
  color:var(--muted);
  font-size:1.1rem;
}
.date {
  display:inline-block;
  margin-bottom:24px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(230,198,106,.18);
  color:#7a5a00;
  border:1px solid rgba(230,198,106,.35);
  font-weight:700;
}
.event-date {
  display:flex;
  align-items:center;
  justify-content:center;

  min-width:220px;
  height:64px;

  border-radius:999px;

  background:rgba(230,198,106,.15);
  border:1px solid rgba(230,198,106,.35);

  color:#8a6a00;
  font-weight:700;
  font-size:1rem;

  box-shadow:0 8px 20px rgba(230,198,106,.12);
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions .btn,
.hero-actions .event-date {
  min-width: 220px;
  height: 64px;
}
.section { width:min(1220px, calc(100% - 32px)); margin:auto; padding:78px 0; }
.section-title { text-align:center; max-width:850px; margin:0 auto 42px; }
.script {
  font-family:'Great Vibes', cursive;
  font-size:2rem;
  color:var(--rose);
  margin-bottom:4px;
}
.section-title h2 {
  font-family:'Playfair Display', serif;
  font-size:clamp(2.25rem, 5.5vw, 4.2rem);
  line-height:1.08;
  margin-bottom:18px;
}
.section-title p { color:var(--muted); font-size:1.08rem; }

.memory-grid,
.timeline,
.gallery {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.lux-card {
  background:rgba(255,255,255,.84);
  border:1px solid rgba(255,255,255,.92);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.memory-card {
  min-height:315px;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.icon { font-size:2.2rem; margin-bottom:28px; }
.memory-card h3,
.milestone h3 {
  font-family:'Playfair Display', serif;
  font-size:1.55rem;
  margin-bottom:12px;
}
.memory-card p,
.milestone p { color:var(--muted); }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:14px 28px;
  background:linear-gradient(135deg, var(--rose), #e59ac0);
  color:#fff;
  font-weight:800;
  font-size:1rem;
  box-shadow:0 16px 30px rgba(217,108,157,.22);
}
.btn:hover { transform:translateY(-1px); }
.btn.secondary { background:#fff; color:var(--rose); border:1px solid rgba(217,108,157,.25); }
.btn.full { width:100%; margin-top:10px; }
.file-btn input { display:none; }
.status {
  margin:28px auto 0;
  max-width:760px;
  text-align:center;
  color:var(--ink);
  font-weight:600;
}
.status.success { color:#167a3a; }
.status.error { color:#b42318; }

.empty-gallery {
  display:block;
  background:rgba(255,255,255,.76);
  border:1px dashed rgba(199,137,123,.35);
  border-radius:24px;
  padding:36px;
  text-align:center;
  color:var(--muted);
}
.gallery-item {
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  min-height: auto;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* Swiper Carousel */
.mySwiper {
  width: 100%;
  padding: 20px 0 60px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--rose);
}

.swiper-pagination-bullet-active {
  background: var(--rose);
}

.timeline { grid-template-columns:repeat(3, 1fr); }
.milestone-selector{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
  margin-bottom:30px;
}

.milestone-card{
  background:white;
  border-radius:24px;
  padding:24px;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:.25s;
  text-align:center;
}

.milestone-card:hover{
  transform:translateY(-4px);
}

.milestone-card.active{
  border:2px solid var(--rose);
  background:linear-gradient(
    rgba(248,187,217,.15),
    rgba(255,255,255,1)
  );
}

.milestone-card h3{
  margin-bottom:10px;
  color:var(--rose);
}

.message-display{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:20px;
}
.milestone { padding:28px; }
.milestone span { display:block; color:var(--rose); font-weight:800; margin-bottom:10px; }
.memory-message-card{
  background:white;
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
  border:1px solid rgba(217,108,157,.12);
  position:relative;
}

.memory-message-card::before{
  content:"💕";
  position:absolute;
  top:18px;
  right:22px;
  font-size:1.4rem;
  opacity:.35;
}

.message-type{
  color:var(--rose);
  font-weight:700;
  margin-bottom:18px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.85rem;
}

.message-body{
  font-size:1.1rem;
  line-height:1.8;
  color:var(--ink);
  margin-bottom:24px;
}

.message-author{
  font-family:'Playfair Display', serif;
  font-size:1.15rem;
  color:var(--rose);
  font-weight:700;
}

.message-relationship{
  color:var(--muted);
  margin-top:4px;
  font-size:.9rem;
}
.quote {
  text-align:center;
  padding:60px 30px;
  border-radius:30px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow);
}
.quote p {
  font-family:'Playfair Display', serif;
  font-size:clamp(1.55rem, 3.5vw, 2.8rem);
  line-height:1.35;
  max-width:900px;
  margin:auto;
}
.thank-you {
  background:rgba(255,255,255,.86);
  border:1px solid rgba(230,198,106,.22);
  border-radius:28px;
  box-shadow:var(--shadow);
  text-align:center;
  padding:68px 42px;
}
.emblem {
  width:96px;
  height:96px;
  margin:0 auto 24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(248,187,217,.38), rgba(230,198,106,.22));
  border:1px solid rgba(230,198,106,.32);
  font-size:2.8rem;
}
.thank-you h2 { font-family:'Playfair Display', serif; font-size:2.2rem; margin-bottom:22px; }
.thank-you p { max-width:850px; margin:0 auto 20px; color:#374156; }
.signature { margin-top:34px; padding-top:28px; border-top:1px solid var(--line); font-family:'Playfair Display', serif; font-style:italic; color:#7b737a; }
.signature strong { display:block; margin-top:6px; color:var(--ink); font-style:normal; font-size:1.15rem; }
.footer { text-align:center; padding:36px 20px 70px; color:var(--muted); }

.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(37,48,65,.48);
  display:none;
  place-items:center;
  padding:18px;
}
.modal-backdrop:not([hidden]) {
  display:grid;
}
.modal {
  width:min(620px, 100%);
  max-height:90vh;
  overflow:auto;
  background:var(--ivory);
  border-radius:26px;
  padding:30px;
  box-shadow:0 30px 90px rgba(0,0,0,.24);
  position:relative;
}
.close {
  position:absolute;
  top:14px;
  right:18px;
  border:none;
  background:transparent;
  font-size:2rem;
  color:var(--muted);
  cursor:pointer;
}
.modal h2 { font-family:'Playfair Display', serif; font-size:2rem; margin-right:36px; }
.modal p { color:var(--muted); margin:8px 0 22px; }
.form { display:grid; gap:16px; }
.form label { display:grid; gap:8px; font-weight:700; color:var(--ink); }
.form input,
.form textarea {
  width:100%;
  border:1px solid rgba(199,137,123,.25);
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  background:#fff;
}
.recorder { display:grid; gap:14px; }
audio { width:100%; }

@media(max-width:960px) {
  .memory-grid { grid-template-columns:repeat(2, 1fr); }
  .timeline { grid-template-columns:repeat(2, 1fr); }
  .gallery { grid-template-columns:repeat(2, 1fr); }
  .links a { display:none; }
}
@media(max-width:640px) {
  .nav { top:8px; width:calc(100% - 16px); padding:10px 12px 10px 16px; }
  .brand { font-size:1.35rem; }
  .lang-toggle { padding:8px 11px; font-size:.85rem; }
  .hero { padding-top:40px; }
  .hero-card { padding:58px 18px; }
  .memory-grid, .timeline, .gallery { grid-template-columns:1fr; }
  .memory-card { min-height:260px; padding:28px; }
  .thank-you { padding:48px 22px; }
  .section { padding:58px 0; }
}
.message-types {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

.type-pill {
  border:none;
  border-radius:999px;
  padding:10px 18px;
  background:#fff;
  border:1px solid rgba(217,108,157,.25);
  color:var(--rose);
  cursor:pointer;
  font-weight:600;
}

.type-pill.active {
  background:linear-gradient(135deg,var(--rose),#e59ac0);
  color:white;
}
