:root {
  --bg: #fff7fb;
  --bg-2: #fff0f6;
  --soft: #ffe7f1;
  --soft-2: #fff3f8;
  --pink: #f8bfd4;
  --pink-2: #f4a9c5;
  --pink-3: #e987aa;
  --dark-pink: #c9668e;
  --deep-pink: #b84266;
  --brown: #573845;
  --text: #2e2529;
  --muted: #94727d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(232, 138, 170, 0.18);
  --shadow-2: 0 16px 50px rgba(90, 59, 70, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 191, 212, 0.48), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 221, 232, 0.75), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #ffffff 100%);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.34'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 46px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dark-pink);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--brown);
}

.section-title p {
  max-width: 670px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: 0.9s ease;
}

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

/* ==============================
   DESKTOP NAV
============================== */

.desktop-nav {
  width: min(1040px, calc(100% - 30px));
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(232, 138, 170, 0.22);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(232, 138, 170, 0.13);
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--brown);
  transition: 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.desktop-nav a i {
  color: var(--dark-pink);
  font-size: 13px;
}

.desktop-nav a:hover {
  background: var(--soft);
  color: var(--dark-pink);
}

.mobile-bottom-nav {
  display: none;
}

/* ==============================
   HERO
============================== */

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  top: -240px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 191, 212, 0.6), transparent 68%);
  filter: blur(4px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  bottom: -220px;
  left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 232, 0.72), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.wedding-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(232, 138, 170, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--dark-pink);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 800;
}

.wedding-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 8px rgba(248, 191, 212, 0.28);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  color: var(--brown);
  letter-spacing: -2.5px;
  margin-bottom: 26px;
}

.hero h1 .and {
  display: inline-block;
  font-family: "Great Vibes", cursive;
  color: var(--dark-pink);
  font-weight: 400;
  transform: rotate(-7deg);
  margin: 0 5px;
}

.hero-desc {
  max-width: 590px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 15px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  transition: 0.28s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink-3), #f3a9c2);
  box-shadow: 0 16px 35px rgba(232, 138, 170, 0.38);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(232, 138, 170, 0.48);
}

.btn-ghost {
  color: var(--brown);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 138, 170, 0.22);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--soft);
}

.hero-card {
  position: relative;
  padding: 18px;
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: floatCard 4.5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-photo {
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 4 / 5.25;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.03);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(90, 59, 70, 0.38));
}

.date-badge {
  position: absolute;
  left: 34px;
  bottom: 34px;
  right: 34px;
  z-index: 3;
  padding: 22px;
  border-radius: 26px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.date-badge strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 8px;
}

.date-badge span {
  font-size: 14px;
  opacity: 0.94;
  line-height: 1.5;
}

.mini-note {
  position: absolute;
  top: 38px;
  right: -24px;
  z-index: 4;
  width: 160px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 50px rgba(232, 138, 170, 0.2);
  color: var(--brown);
  transform: rotate(7deg);
  text-align: center;
}

.mini-note .heart {
  font-size: 24px;
  color: var(--dark-pink);
  display: block;
  margin-bottom: 8px;
}

.mini-note p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 700;
}

/* ==============================
   COUNTDOWN
============================== */

.countdown-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.countdown {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 138, 170, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown-title {
  text-align: center;
  color: var(--brown);
  margin-bottom: 18px;
  font-weight: 800;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.time-box {
  text-align: center;
  padding: 22px 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fff1f7);
  border: 1px solid rgba(232, 138, 170, 0.15);
}

.time-box strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--dark-pink);
  line-height: 1;
}

.time-box span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

/* ==============================
   INTRO
============================== */

.intro-card {
  padding: 58px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,240,246,0.92)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 15c18 19 18 51 0 90-18-39-18-71 0-90Z' fill='%23f8bfd4' opacity='.22'/%3E%3C/svg%3E");
  border: 1px solid rgba(232, 138, 170, 0.18);
  box-shadow: var(--shadow);
  text-align: center;
}

.intro-card .script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(46px, 7vw, 82px);
  color: var(--dark-pink);
  line-height: 1;
  margin-bottom: 16px;
}

.intro-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--brown);
  margin-bottom: 20px;
}

.intro-card p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 2;
  font-size: 17px;
}

/* ==============================
   COUPLE
============================== */

.couple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.person-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.person-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: 0.8s ease;
}

.person-card:hover img {
  transform: scale(1.07);
}

.person-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.person-info small {
  color: var(--dark-pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.person-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--brown);
  margin: 8px 0 10px;
}

.person-info p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ==============================
   STORY
============================== */

.story {
  background:
    linear-gradient(180deg, rgba(255, 247, 251, 0.82), rgba(255, 232, 241, 0.62)),
    radial-gradient(circle at center, rgba(248, 191, 212, 0.28), transparent 44%);
}

.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 138, 170, .5), transparent);
}

.story-item {
  width: 50%;
  padding: 0 34px 42px;
  position: relative;
}

.story-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
}

.story-item:nth-child(even) {
  margin-left: 50%;
}

.story-item::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--pink-3);
  border: 5px solid #fff;
  box-shadow: 0 0 0 6px rgba(232,138,170,.18);
}

.story-item:nth-child(odd)::before {
  right: -12px;
}

.story-item:nth-child(even)::before {
  left: -12px;
}

.story-box {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(232,138,170,.16);
  box-shadow: 0 18px 50px rgba(232, 138, 170, 0.1);
}

.story-box .year {
  color: var(--dark-pink);
  font-weight: 800;
  margin-bottom: 8px;
}

.story-box h3 {
  font-family: "Playfair Display", serif;
  color: var(--brown);
  font-size: 27px;
  margin-bottom: 10px;
}

.story-box p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.memory-card {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 46px rgba(232, 138, 170, 0.13);
  aspect-ratio: 1 / 1.18;
  position: relative;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s ease;
}

.memory-card:hover img {
  transform: scale(1.08);
}

.memory-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  color: var(--brown);
  font-size: 12px;
  text-align: center;
  font-weight: 800;
}

/* ==============================
   GALLERY - ĐÃ TỐI ƯU
   Desktop: 3 ảnh / hàng
   Tất cả khung ảnh đứng
============================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 22px;
  align-items: stretch;
}

.gallery-item,
.gallery-item:nth-child(1),
.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6),
.gallery-item:nth-child(7),
.gallery-item:nth-child(8),
.gallery-item:nth-child(9),
.gallery-item:nth-child(10) {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.35;
  grid-row: auto;
  grid-column: auto;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(232, 138, 170, 0.13);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: 0.7s ease;
}

.gallery-item::after {
  content: "Xem ảnh";
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(90, 59, 70, 0.25);
  color: white;
  opacity: 0;
  transform: scale(0.96);
  transition: 0.3s ease;
  font-weight: 800;
  letter-spacing: 1px;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   EVENT
============================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.event-card {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(232, 138, 170, 0.17);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(248,191,212,.36);
  top: -90px;
  right: -90px;
}

.event-icon {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--dark-pink);
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.event-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--brown);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.event-list {
  list-style: none;
  display: grid;
  gap: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.event-list b {
  color: var(--brown);
}

.map-box {
  margin-top: 26px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(90,59,70,.74), rgba(232,138,170,.58)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  min-height: 330px;
  display: flex;
  align-items: end;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-content {
  max-width: 660px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.24);
}

.map-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin-bottom: 10px;
}

.map-content p {
  line-height: 1.75;
  opacity: .94;
  margin-bottom: 18px;
}

/* ==============================
   RSVP
============================== */

.rsvp-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.rsvp-side {
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,232,241,.86)),
    url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='80' cy='80' r='48' fill='none' stroke='%23e987aa' stroke-width='1' opacity='.22'/%3E%3C/svg%3E");
  border: 1px solid rgba(232,138,170,.16);
  box-shadow: var(--shadow);
}

.rsvp-side h3 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  color: var(--brown);
  margin-bottom: 16px;
}

.rsvp-side p {
  color: var(--muted);
  line-height: 1.9;
}

.rsvp-form {
  padding: 42px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(232,138,170,.16);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--brown);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(232, 138, 170, 0.23);
  background: #fff8fb;
  border-radius: 18px;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  color: var(--text);
  transition: 0.25s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(232, 138, 170, 0.62);
  box-shadow: 0 0 0 5px rgba(232, 138, 170, 0.14);
  background: white;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ==============================
   TOAST / FOOTER / EFFECTS
============================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 120px);
  padding: 15px 20px;
  border-radius: 999px;
  background: rgba(90,59,70,.92);
  color: white;
  z-index: 300;
  box-shadow: 0 16px 45px rgba(0,0,0,.2);
  transition: 0.35s ease;
  font-size: 14px;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 30px);
}

.toast.show {
  transform: translate(-50%, 0);
}

.footer {
  padding: 74px 0 44px;
  text-align: center;
  color: var(--muted);
}

.footer .names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 7vw, 88px);
  color: var(--dark-pink);
  line-height: 1;
  margin-bottom: 16px;
}

.footer p {
  line-height: 1.8;
}

.floating-petal {
  position: fixed;
  top: -30px;
  z-index: 20;
  pointer-events: none;
  opacity: 0.72;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: var(--pink-3);
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(360deg);
  }
}

/* ==============================
   MODAL XEM ẢNH - NỀN TRẮNG NHẠT
============================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(255, 250, 252, 0.9);
  backdrop-filter: blur(18px) saturate(1.05);
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(248, 191, 212, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 231, 241, 0.28), transparent 36%);
  pointer-events: none;
}

.modal.open {
  display: grid;
}

.modal img {
  position: relative;
  z-index: 2;
  max-height: 88vh;
  width: auto;
  max-width: min(92vw, 980px);
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(87, 56, 69, 0.16);
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.94);
  color: var(--brown);
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(87, 56, 69, 0.12);
}

.music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink-3), #f3a9c2);
  color: white;
  box-shadow: 0 15px 38px rgba(232,138,170,.48);
  animation: musicPulse 2.4s ease-in-out infinite;
  font-size: 20px;
}

@keyframes musicPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.music-toggle.playing {
  animation: musicSpin 4s linear infinite;
}

@keyframes musicSpin {
  to {
    transform: rotate(360deg);
  }
}

.heart-trail {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  color: var(--dark-pink);
  font-size: 16px;
  animation: heartUp 0.9s ease forwards;
}

@keyframes heartUp {
  to {
    opacity: 0;
    transform: translateY(-38px) scale(1.8) rotate(22deg);
  }
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px) {
  body {
    padding-bottom: 112px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 200;
    width: min(390px, calc(100% - 18px));
    height: 76px;
    display: grid;
    grid-template-columns: 1fr 1fr 86px 1fr 1fr;
    align-items: center;
    padding: 8px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(232, 138, 170, 0.24);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a {
    height: 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    gap: 3px;
    color: #5d4650;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    transition: 0.28s ease;
  }

  .mobile-bottom-nav a i {
    font-size: 18px;
    line-height: 1;
    color: #6e5660;
    transition: 0.28s ease;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--dark-pink);
    background: linear-gradient(135deg, #fff6fa, #ffe7f1);
  }

  .mobile-bottom-nav a.active i,
  .mobile-bottom-nav a:hover i {
    color: var(--dark-pink);
  }

  .mobile-bottom-nav .call-btn {
    position: relative;
    width: 74px;
    height: 74px;
    margin: -44px auto 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #b84266, #e987aa);
    border: 6px solid #ffffff;
    box-shadow: 0 14px 36px rgba(184, 66, 102, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    animation: callShake 1.9s ease-in-out infinite;
  }

  .mobile-bottom-nav .call-btn::before,
  .mobile-bottom-nav .call-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(184, 66, 102, 0.28);
    animation: callRipple 1.9s ease-out infinite;
    pointer-events: none;
  }

  .mobile-bottom-nav .call-btn::after {
    animation-delay: 0.65s;
  }

  .mobile-bottom-nav .call-btn i {
    font-size: 30px;
    color: #fff;
    line-height: 1;
    animation: phoneWiggle 1.1s ease-in-out infinite;
  }

  .mobile-bottom-nav .call-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #b84266, #e987aa);
  }

  @keyframes callShake {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }

    8% {
      transform: translateY(-1px) rotate(-4deg);
    }

    16% {
      transform: translateY(1px) rotate(4deg);
    }

    24% {
      transform: translateY(-1px) rotate(-3deg);
    }

    32% {
      transform: translateY(0) rotate(3deg);
    }

    42% {
      transform: translateY(0) rotate(0deg);
    }
  }

  @keyframes phoneWiggle {
    0%, 100% {
      transform: rotate(0deg);
    }

    18% {
      transform: rotate(-16deg);
    }

    36% {
      transform: rotate(16deg);
    }

    54% {
      transform: rotate(-10deg);
    }

    72% {
      transform: rotate(8deg);
    }
  }

  @keyframes callRipple {
    0% {
      opacity: 0.55;
      transform: scale(0.82);
    }

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

  .music-toggle {
    display: none;
  }

  .hero-grid,
  .couple-grid,
  .events-grid,
  .rsvp-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
    min-height: auto;
  }

  .mini-note {
    right: 12px;
    top: 22px;
  }

  .timeline::before {
    left: 9px;
  }

  .story-item,
  .story-item:nth-child(even),
  .story-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    padding-left: 42px;
    padding-right: 0;
    text-align: left;
  }

  .story-item::before,
  .story-item:nth-child(even)::before,
  .story-item:nth-child(odd)::before {
    left: 0;
    right: auto;
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9),
  .gallery-item:nth-child(10) {
    aspect-ratio: 3 / 4.35;
    grid-row: auto;
    grid-column: auto;
    border-radius: 24px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 70px);
    letter-spacing: -1.2px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .countdown {
    padding: 16px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .time-box {
    padding: 18px 8px;
  }

  .intro-card,
  .event-card,
  .rsvp-side,
  .rsvp-form {
    padding: 28px 20px;
  }

  .person-card,
  .person-card img {
    min-height: 460px;
  }

  .person-info h3 {
    font-size: 30px;
  }

  .memory-grid {
    gap: 12px;
  }

  .memory-card {
    border-radius: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9),
  .gallery-item:nth-child(10) {
    aspect-ratio: 3 / 4.45;
    border-radius: 20px;
  }

  .map-box {
    padding: 18px;
  }

  .map-content {
    padding: 22px;
  }

  .date-badge {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .mobile-bottom-nav {
    width: min(382px, calc(100% - 16px));
  }
}