/* 
  CUSTOMIZE COLORS HERE
  Change these variables to quickly adjust the whole romantic theme.
*/
:root {
  --rose: #b84b65;
  --deep-rose: #7e2f45;
  --blush: #ffe8ec;
  --petal: #f8c8d2;
  --cream: #fff8f1;
  --wine: #43212c;
  --gold: #c79a55;
  --green: #6f8a72;
  --shadow: 0 24px 70px rgba(126, 47, 69, 0.18);
  --radius: 8px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --arabic: "Amiri", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--wine);
  background:
    radial-gradient(circle at 18% 8%, rgba(248, 200, 210, 0.65), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(199, 154, 85, 0.25), transparent 24rem),
    linear-gradient(135deg, var(--cream) 0%, #fff0f3 44%, #fffaf4 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body.rtl {
  font-family: var(--arabic);
}

body.rtl .hero-message,
body.rtl p,
body.rtl button,
body.rtl a {
  font-family: var(--arabic);
}

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

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 75, 101, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 75, 101, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.floating-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-shapes span {
  position: absolute;
  color: rgba(184, 75, 101, 0.28);
  font-size: clamp(1.4rem, 4vw, 3rem);
  animation: floatUp 16s linear infinite;
}

.floating-shapes span:nth-child(1) { left: 8%; animation-delay: 0s; bottom: -8rem; }
.floating-shapes span:nth-child(2) { left: 24%; animation-delay: 3s; bottom: -10rem; color: rgba(111, 138, 114, 0.32); }
.floating-shapes span:nth-child(3) { left: 48%; animation-delay: 6s; bottom: -9rem; }
.floating-shapes span:nth-child(4) { left: 68%; animation-delay: 1s; bottom: -11rem; color: rgba(199, 154, 85, 0.35); }
.floating-shapes span:nth-child(5) { left: 84%; animation-delay: 8s; bottom: -8rem; }
.floating-shapes span:nth-child(6) { left: 38%; animation-delay: 11s; bottom: -10rem; color: rgba(199, 154, 85, 0.35); }

.heart-burst {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.burst-heart {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  color: var(--burst-color, var(--rose));
  font-family: var(--serif);
  font-size: var(--burst-size, 1.6rem);
  text-shadow: 0 12px 24px rgba(126, 47, 69, 0.22);
  opacity: 0;
  animation: heartExplosion var(--burst-duration, 1800ms) cubic-bezier(0.16, 0.9, 0.22, 1) forwards;
  animation-delay: var(--burst-delay, 0ms);
}

.site-header {
  position: sticky;
  top: 0;
  border-radius: 25px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--deep-rose);
  box-shadow: 0 10px 24px rgba(126, 47, 69, 0.22);
}

.language-switcher {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(126, 47, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(126, 47, 69, 0.08);
}

.language-button {
  min-height: 2.3rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  color: var(--deep-rose);
  background: transparent;
  font: 700 0.85rem/1 var(--sans);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.language-button:hover {
  transform: translateY(-1px);
}

.language-button.active {
  color: white;
  background: var(--rose);
}

.section {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 5rem);
  padding-top: 2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.rtl .eyebrow {
  font-size: 1rem;
}

h1,
h2 {
  margin: 0;
  color: var(--deep-rose);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

body.rtl h1,
body.rtl h2 {
  font-family: var(--arabic);
  line-height: 1.2;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 6.8rem);
}

h2 {
  max-width: 720px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.hero-message {
  max-width: 620px;
  margin: 1.4rem 0 2rem;
  color: rgba(67, 33, 44, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--deep-rose));
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(126, 47, 69, 0.23);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(126, 47, 69, 0.28);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.photo-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(126, 47, 69, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 232, 236, 0.56)),
    radial-gradient(circle at 50% 38%, rgba(184, 75, 101, 0.2), transparent 13rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  inset: auto auto -2rem -2rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(248, 200, 210, 0.75);
}

.photo-frame::after {
  inset: -3rem -3rem auto auto;
  background: rgba(199, 154, 85, 0.24);
}

.couple-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 800ms ease, transform 900ms cubic-bezier(0.16, 0.9, 0.22, 1);
}

.couple-photo.is-missing {
  opacity: 0;
}

.photo-frame.photo-loaded .couple-photo {
  opacity: 1;
  transform: scale(1);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(67, 33, 44, 0.08), rgba(67, 33, 44, 0.34)),
    radial-gradient(circle at 50% 24%, rgba(255, 248, 223, 0.35), transparent 12rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
}

.photo-frame.photo-loaded .photo-overlay {
  opacity: 1;
}

.heart-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 13rem);
  text-shadow: 0 18px 44px rgba(67, 33, 44, 0.36);
  animation: heartbeat 2.8s ease-in-out infinite;
}

.heart-center:hover {
  opacity: 0.1;
  transition : 0.3s ease-in-out;
}

.flower {
  position: absolute;
  z-index: 4;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 12%, var(--petal) 0 20%, transparent 21%),
    radial-gradient(circle at 88% 50%, var(--petal) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 88%, var(--petal) 0 20%, transparent 21%),
    radial-gradient(circle at 12% 50%, var(--petal) 0 20%, transparent 21%);
  opacity: 0.92;
}

.flower-one {
  right: 9%;
  bottom: 11%;
  transform: rotate(18deg);
}

.flower-two {
  left: 7%;
  bottom: 22%;
  width: 5rem;
  height: 5rem;
  transform: rotate(-22deg);
}

.section-heading {
  margin-bottom: 2rem;
}

.letter-paper,
.final-card {
  border: 1px solid rgba(126, 47, 69, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.letter-paper {
  max-width: 850px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.letter-paper p,
.final-card p {
  margin: 0;
  color: rgba(67, 33, 44, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.letter-paper p + p {
  margin-top: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reason-card,
.compliment-item {
  border: 1px solid rgba(126, 47, 69, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 38px rgba(126, 47, 69, 0.1);
}

.reason-card {
  min-height: 12rem;
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(126, 47, 69, 0.15);
}

.reason-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rose);
}

.reason-card h3 {
  margin: 0 0 0.45rem;
  color: var(--deep-rose);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

body.rtl .reason-card h3 {
  font-family: var(--arabic);
}

.reason-card p {
  margin: 0;
  color: rgba(67, 33, 44, 0.76);
}

.compliment-list {
  display: grid;
  gap: 0.8rem;
}

.compliment-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.7rem;
  padding: 1rem 1.2rem;
}

.compliment-item span {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--deep-rose);
  background: var(--blush);
}

.compliment-item p {
  margin: 0;
  color: rgba(67, 33, 44, 0.82);
  font-weight: 600;
}

.final-section {
  padding-bottom: clamp(4rem, 7vw, 8rem);
}

.final-card {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.final-card::after {
  content: "♡";
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: -1.4rem;
  color: rgba(184, 75, 101, 0.12);
  font-family: var(--serif);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 1;
}

body.rtl .final-card::after {
  right: auto;
  left: clamp(1rem, 5vw, 4rem);
}

.final-card h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 1rem;
}

.final-card p {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: rgba(67, 33, 44, 0.66);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(180deg);
    opacity: 0;
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.04);
  }
}

@keyframes heartExplosion {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.45) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--burst-x)), var(--burst-y))
      scale(var(--burst-scale, 1.1))
      rotate(var(--burst-rotate, 120deg));
  }
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    overflow-x: auto;
  }

  .language-button {
    flex: 1 0 auto;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-visual {
    order: -1;
  }

  .photo-frame {
    width: min(100%, 330px);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    width: min(100% - 1rem, 1120px);
  }

  .language-switcher {
    border-radius: var(--radius);
  }

  .language-button {
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3rem;
  }

  .compliment-item {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
