/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --blush-1: #fff6fa;
  --blush-2: #ffe9f3;
  --blush-3: #ffd9ea;
  --rose: #ef82b0;
  --rose-deep: #c8567f;
  --plum: #7c4d63;
  --ink: #6c5560;
  --cream: #fff3e6;
  --gold-1: #f0d99a;
  --gold-2: #d4af37;
  --gold-3: #b8860b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-brd: rgba(255, 255, 255, 0.75);
  --shadow-soft: 0 18px 50px rgba(200, 86, 127, 0.16);
  --shadow-card: 0 14px 40px rgba(196, 93, 140, 0.18);
  --radius: 26px;
  --maxw: 1120px;
  --gold-grad: linear-gradient(
    120deg,
    #e9cd8a,
    #d4af37 45%,
    #b8860b 80%,
    #e6c878
  );
}

/* ============================================================
   BASE / RESET
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  /* animated gradient background */
  background: linear-gradient(
    135deg,
    #fff6fa,
    #ffe9f3,
    #ffdcea,
    #fbeaf6,
    #fff1e8,
    #ffe6f1
  );
  background-size: 400% 400%;
  animation: gradientShift 26s ease infinite;
}
h1,
h2,
h3,
.display {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--plum);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* gold accent text */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.script-accent {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
}

/* a thin decorative gold divider with a centred diamond */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 4px;
}
.divider span {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.divider span:last-child {
  background: linear-gradient(90deg, var(--gold-2), transparent);
}
.divider i {
  color: var(--gold-2);
  font-size: 0.8rem;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 120px) 22px;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.center {
  text-align: center;
}
.eyebrow {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-deep);
}
.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin-top: 6px;
}
.lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--ink);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

/* glassmorphism card */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   DECORATIVE FULL-PAGE LAYERS (stars, sparkles, petals, hearts, butterflies)
   ============================================================ */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffe9b8);
  box-shadow: 0 0 8px #ffe9b8;
  animation: twinkle 3s ease-in-out infinite;
}
.sparkle {
  position: absolute;
  color: var(--gold-2);
  font-size: 12px;
  animation: sparkle 4s linear infinite;
}
.petal {
  position: absolute;
  top: -8%;
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #ffd0e4, #f7a8c9);
  opacity: 0.85;
  animation: petalFall linear infinite;
}
.heart {
  position: absolute;
  bottom: -6%;
  color: #f5a9c7;
  animation: heartFloat linear infinite;
}
.snowflake {
  position: absolute;
  top: -8%;
  color: #bfe3ff;
  text-shadow: 0 0 8px rgba(150, 200, 255, 0.8);
  animation: snowFall linear infinite;
  user-select: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 22px 90px;
  overflow: hidden;
}
/* soft floating clouds */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 60px;
  filter: blur(2px);
  animation: cloudDrift linear infinite;
  opacity: 0.7;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud::before {
  width: 58%;
  height: 150%;
  top: -46%;
  left: 10%;
}
.cloud::after {
  width: 46%;
  height: 128%;
  top: -30%;
  right: 12%;
}
/* hero balloons */
.balloon {
  position: absolute;
  width: 46px;
  height: 58px;
  border-radius: 50% 50% 48% 48%;
  animation: floatY ease-in-out infinite;
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.08);
}
.balloon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
}
.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -58px;
  width: 1px;
  height: 58px;
  background: rgba(180, 140, 160, 0.5);
  transform: translateX(-50%);
}

.hero-eyebrow {
  font-family: "Poppins";
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-deep);
  font-weight: 500;
  margin-bottom: 26px;
  animation: fadeIn 1.2s ease both;
}

/* circular portrait frame */
.portrait {
  position: relative;
  width: clamp(210px, 42vw, 310px);
  aspect-ratio: 1;
  margin-bottom: 38px;
  animation: fadeIn 1.4s ease both;
}
.portrait .ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed var(--gold-2);
  animation: spin 30s linear infinite;
  opacity: 0.85;
}
.portrait .ring2 {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.portrait .photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow:
    0 20px 50px rgba(200, 86, 127, 0.3),
    0 0 0 12px rgba(255, 255, 255, 0.35);
}
.portrait .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait .glowdot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd76a);
  box-shadow: 0 0 16px #ffd76a;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  color: var(--plum);
  animation: fadeIn 1.6s ease both;
}
.hero h1 .one {
  display: block;
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  max-width: 600px;
  margin: 22px auto 0;
  font-weight: 300;
  color: var(--ink);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  animation: fadeIn 1.9s ease both;
}
.hero-meta {
  margin-top: 30px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--rose-deep);
  animation: fadeIn 2.2s ease both;
}
.hero-meta b {
  font-weight: 600;
}
.scroll-cue {
  margin-top: 46px;
  color: var(--rose);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.count-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 26px);
  margin-top: 34px;
}
.count-box {
  min-width: 104px;
  padding: 24px 18px;
  text-align: center;
}
.count-box .num {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5.4vw, 3rem);
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1;
}
.count-box .lbl {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 500;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-card {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}
.about-card .quotemark {
  font-family: "Playfair Display", serif;
  font-size: 3.4rem;
  color: var(--gold-2);
  line-height: 0.4;
}
.about-card p {
  font-weight: 300;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--ink);
}

/* ============================================================
   EVENT DETAILS
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 46px;
}
.detail-card {
  padding: 38px 26px;
  text-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
}
.detail-card .ico {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 10px 22px rgba(200, 86, 127, 0.32);
  animation: bounce 3s ease-in-out infinite;
}
.detail-card h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.detail-card p {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 300;
}

/* ============================================================
   DRESS CODE
   ============================================================ */
.dress-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(36px, 5vw, 58px);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}
.swatch {
  width: 74px;
  text-align: center;
  transition: transform 0.35s ease;
}
.swatch:hover {
  transform: translateY(-8px) scale(1.06);
}
.swatch .chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 10px 22px rgba(196, 93, 140, 0.28);
  border: 3px solid #fff;
}
.swatch small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--plum);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 46px;
}
.gphoto {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  border: 5px solid #fff;
  cursor: pointer;
}
.gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(200, 86, 127, 0.22),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gphoto:hover img {
  transform: scale(1.12);
}
.gphoto:hover::after {
  opacity: 1;
}

/* ============================================================
   GALLERY PHOTO MODAL
   ============================================================ */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 10, 20, 0.85);
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.photo-modal.is-open {
  display: flex;
}
.photo-modal-img {
  max-width: min(90vw, 720px);
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 6px solid #fff;
}
.photo-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #c8567f;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.photo-modal-close:hover {
  background: #fff;
  transform: scale(1.08);
}

/* ============================================================
   DEDICATION
   ============================================================ */
.dedication {
  position: relative;
}
.ded-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
}
.ded-card .verse {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  color: var(--rose-deep);
  line-height: 1.4;
}
.ded-card .ref {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.ded-card p {
  margin-top: 24px;
  font-weight: 300;
  color: var(--ink);
  font-size: clamp(1rem, 2.3vw, 1.12rem);
}
.ded-card .cross {
  font-size: 1.6rem;
  color: var(--gold-2);
  margin-bottom: 18px;
  animation: bounce 3.4s ease-in-out infinite;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 30px;
  margin-top: 46px;
  align-items: start;
}
.rsvp-form {
  padding: clamp(30px, 4vw, 46px);
}
.field {
  margin-bottom: 18px;
  text-align: left;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(200, 86, 127, 0.25);
  background: rgba(255, 255, 255, 0.7);
  font-family: "Poppins";
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(239, 130, 176, 0.18);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-family: "Poppins";
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  box-shadow: 0 12px 28px rgba(200, 86, 127, 0.36);
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.btn-submit:hover {
  transform: translateY(-3px) scale(1.02);
}
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--rose-deep);
  min-height: 20px;
  font-weight: 500;
}

.contact-card {
  padding: clamp(30px, 4vw, 40px);
  text-align: left;
}
.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.96rem;
  color: var(--ink);
}
.contact-row .ci {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(60px, 8vw, 96px) 22px 56px;
}
.footer .fname {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}
.footer p {
  max-width: 620px;
  margin: 18px auto 0;
  font-weight: 300;
  color: var(--ink);
  font-size: clamp(1rem, 2.3vw, 1.12rem);
}
.footer .sig {
  margin-top: 26px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--rose-deep);
  font-size: 1.2rem;
}
.footer .hearts-line {
  margin-top: 18px;
  color: var(--rose);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
}
.footer .copy {
  margin-top: 30px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--plum);
  opacity: 0.7;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(0);
  }
  40% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(180deg);
  }
}
@keyframes petalFall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(112vh) translateX(var(--dx, 60px)) rotate(540deg);
    opacity: 0.8;
  }
}
@keyframes heartFloat {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-115vh) translateX(var(--dx, 40px)) scale(1.1);
    opacity: 0;
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-26px);
  }
}
@keyframes cloudDrift {
  from {
    transform: translateX(-30vw);
  }
  to {
    transform: translateX(130vw);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 12px 28px rgba(200, 86, 127, 0.36),
      0 0 0 0 rgba(239, 130, 176, 0.5);
  }
  50% {
    box-shadow:
      0 12px 28px rgba(200, 86, 127, 0.36),
      0 0 0 16px rgba(239, 130, 176, 0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes snowFall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(112vh) translateX(var(--dx, 40px)) rotate(360deg);
    opacity: 0.85;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .count-box {
    min-width: 74px;
    padding: 18px 10px;
  }
  .hero-meta {
    font-size: 0.84rem;
    gap: 8px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  body {
    animation: none;
  }
}
