/* ===========================
   Jenimylove.com – Badass Upgrade
   Mobile-first, glassy, romantic
   =========================== */

:root {
  --bg: #fff9fb;
  --bg-card: #ffffff;
  --accent: #ff8ba7;
  --accent-soft: #ffe3ec;
  --accent-dark: #ff4f7d;
  --accent-gold: #fbbf24;
  --text-main: #2f2435;
  --text-muted: #7b6c82;
  --border-subtle: rgba(255, 143, 167, 0.25);
  --shadow-soft: 0 18px 45px rgba(36, 13, 40, 0.16);
  --radius-xl: 28px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --section-padding-mobile: 3.2rem;
  --section-padding-desktop: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #ffe3ec 0, #fff9fb 42%, #fef6ff 100%),
    radial-gradient(circle at bottom right, #e0f2fe 0, transparent 55%);
  background-size: 180% 180%;
  animation: gradientShift 24s ease-in-out infinite;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Global helpers --- */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0.9rem 2.4rem;
}

/* Soft fade-in for content */
.page-wrap > * {
  animation: fadeInUp 0.7s ease-out both;
}

/* ===========================
   Header / Logo / Nav
   =========================== */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(92, 26, 65, 0.12);
  position: static;
  z-index: 10;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transform-origin: left center;
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.brand:hover .brand-img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 6px 14px rgba(92, 26, 65, 0.35));
}

nav {
  display: none;
}

nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.18s ease-out;
  border: 1px solid transparent;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0;
  transform: translate3d(-40%, -60%, 0);
  transition: opacity 0.2s ease-out, transform 0.3s ease-out;
}

nav a:hover::before {
  opacity: 1;
  transform: translate3d(40%, 60%, 0);
}

nav a:hover {
  background: var(--accent-soft);
  border-color: rgba(255, 143, 167, 0.3);
  color: var(--accent-dark);
}

nav .tag {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.45);
}

/* ===========================
   Layout / Sections
   =========================== */

main {
  margin-top: 1.1rem;
}

section {
  margin-bottom: var(--section-padding-mobile);
  scroll-margin-top: 6rem;
}

section:target {
  position: relative;
}

section:target::after {
  content: "";
  position: absolute;
  inset-inline: -0.5rem;
  inset-block: -0.4rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(255, 143, 167, 0.18), transparent 60%);
  z-index: -1;
}

/* ===========================
   Hero
   =========================== */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: stretch;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.hero-text h1 span.highlight {
  background: linear-gradient(120deg, #ff4f7d, #ff9eb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}

.hero-text h1 span.highlight::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.2rem;
  height: 8px;
  background: rgba(255, 143, 167, 0.25);
  border-radius: 999px;
  z-index: -1;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 20px rgba(148, 27, 78, 0.16);
}

.hero-subtitle .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn-primary {
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff4f7d, #ff8ba7);
  color: #fff;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 69, 118, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
  position: relative;
  overflow: hidden;
}

.btn-primary span.icon {
  font-size: 1.05rem;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0;
  transform: translate3d(-40%, -60%, 0);
  transition: opacity 0.2s ease-out, transform 0.35s ease-out;
  pointer-events: none;
}

.btn-primary:hover::before {
  opacity: 1;
  transform: translate3d(40%, 60%, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 20px 45px rgba(255, 69, 118, 0.55);
}

.hero-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta span.heart-dot {
  margin-inline: 0.3rem;
  font-size: 0.9rem;
}

/* Hero side card */

.hero-card {
  border-radius: 22px;
  background: radial-gradient(circle at top left, #ffdeeb 0, #ffe9f0 35%, #ffffff 80%);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  transform-origin: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 60%);
  top: -40px;
  right: -40px;
  opacity: 0.9;
}

.hero-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 55px rgba(92, 26, 65, 0.32);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  margin-bottom: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-badge .pill {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(252, 165, 165, 0.95);
  font-size: 0.7rem;
}

.hero-card-quote {
  font-family: "Playfair Display", serif;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-card-quote span.heart {
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 0.4rem;
}

.hero-card-footer strong {
  font-weight: 600;
  color: var(--text-main);
}

.tiny-hearts {
  display: flex;
  gap: 0.2rem;
}

.tiny-hearts span {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ===========================
   Section Headings
   =========================== */

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

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 22rem;
}

/* ===========================
   Love Letter
   =========================== */

.letter-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 0 0, rgba(255, 207, 221, 0.8), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 212, 255, 0.5), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.letter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(36, 13, 40, 0.28);
  border-color: rgba(255, 143, 167, 0.4);
}

.letter-inner {
  position: relative;
  z-index: 1;
}

.letter-body {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-main);
  white-space: pre-line;
}

.letter-body p + p {
  margin-top: 0.9rem;
}

.letter-greeting {
  font-weight: 600;
  margin-bottom: 1rem;
}

.letter-signoff {
  margin-top: 1.4rem;
  font-weight: 500;
}

.letter-signature {
  margin-top: 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.letter-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  gap: 0.3rem;
}

/* ===========================
   Poem
   =========================== */

.poem-card {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  border: 1px dashed rgba(255, 143, 167, 0.55);
  box-shadow: 0 10px 28px rgba(148, 27, 78, 0.18);
}

.poem-text {
  font-family: "Playfair Display", serif;
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: pre-line;
}

.poem-author {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
}

/* ===========================
   Photos
   =========================== */

.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.photo-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  background: radial-gradient(circle at top left, rgba(255, 143, 167, 0.45), rgba(255, 255, 255, 0.9));
}

.photo-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: #020617;
  opacity: 0.06;
  pointer-events: none;
}

.photo-item::after {
  content: "";
  position: absolute;
  inset-inline: -40%;
  top: -120%;
  height: 60%;
  background: linear-gradient(
    120deg,
    transparent 0,
    rgba(255, 255, 255, 0.4) 40%,
    transparent 80%
  );
  transform: translate3d(0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.6s ease-out;
}

.photo-item:hover::after {
  opacity: 1;
  transform: translate3d(0, 180%, 0);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.photo-caption {
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0.55rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #f9fafb;
  font-size: 0.72rem;
  text-align: center;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   Our Song
   =========================== */

.song-card {
  background: radial-gradient(circle at top left, #fee2e2 0, #ffffff 45%);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.95);
  position: relative;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.song-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.22), transparent 40%, rgba(96, 165, 250, 0.2));
  opacity: 0.85;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.song-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(36, 13, 40, 0.3);
  border-color: rgba(255, 143, 167, 0.45);
}

.song-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.song-art {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 0, #f97316, #7c2d12);
  display: grid;
  place-items: center;
  color: #fef3c7;
  font-size: 1.05rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.45);
}

.song-text-main {
  font-size: 0.9rem;
}

.song-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.song-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.song-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.song-embed {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(156, 163, 175, 0.45);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.34);
}

.song-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.song-helper {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ===========================
   Timeline
   =========================== */

.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 0.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(to bottom, #ff8ba7, transparent);
  opacity: 0.65;
}

.timeline-item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1.1rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff8ba7;
  box-shadow: 0 0 0 4px rgba(255, 143, 167, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  color: #ff4f7d;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 0.18rem;
  font-size: 0.95rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Dedication
   =========================== */

.dedication {
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.2rem;
  background: #111827;
  color: #f9fafb;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.dedication::before,
.dedication::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.dedication::before {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.9), transparent 55%);
  top: -70px;
  left: -40px;
  opacity: 0.7;
}

.dedication::after {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.95), transparent 55%);
  bottom: -50px;
  right: -50px;
  opacity: 0.7;
}

.dedication-inner {
  position: relative;
  z-index: 1;
}

.dedication-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  opacity: 0.9;
}

.dedication-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.dedication-text {
  font-size: 0.9rem;
  max-width: 24rem;
  margin: 0.6rem auto 1.4rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.dedication-signoff {
  font-size: 0.88rem;
  opacity: 0.96;
}

.dedication-hearts {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.dedication-hearts span {
  display: inline-block;
  margin-inline: 0.12rem;
  transform: translateY(1px);
}

/* ===========================
   Footer
   =========================== */

footer {
  margin-top: 1.2rem;
  padding-bottom: 2rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
}

footer a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.15em;
}

/* ===========================
   Animations
   =========================== */

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  25% { background-position: 50% 10%; }
  50% { background-position: 100% 40%; }
  75% { background-position: 50% 80%; }
  100% { background-position: 0% 0%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Tablet and Up
   =========================== */

@media (min-width: 520px) {
  .page-wrap {
    padding: 1.3rem 1.2rem 2.8rem;
  }

  header {
    justify-content: space-between;
  }

  .brand-img {
    height: 38px;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero {
    gap: 1.6rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    max-width: 28rem;
  }

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

  .letter-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ===========================
   Desktop and Up
   =========================== */

@media (min-width: 860px) {
  .page-wrap {
    padding: 1.5rem 1.5rem 3rem;
  }

  header {
    border-radius: var(--radius-pill);
    position: sticky;
    top: 1rem;
  }

  .brand-img {
    height: 44px;
  }

  main {
    margin-top: 1.5rem;
  }

  section {
    margin-bottom: var(--section-padding-desktop);
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-card {
    order: 0;
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 3.2vw + 1rem, 3.4rem);
  }

  .hero-text p,
  .section-subtitle {
    max-width: 32rem;
  }

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

  .letter-card,
  .song-card,
  .dedication {
    padding: 2.1rem 2rem;
  }

  .dedication-text {
    max-width: 34rem;
    font-size: 0.98rem;
  }
}


/* === Upgraded overrides – header logo, hero, letter card, rhythm === */

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #ff8ba7, #ffc6ff, #ffdeeb, #ff8ba7);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
  animation: floatSoft 5s ease-in-out infinite;
}

.brand-logo::before {
  content: "♥";
  font-size: 0.7rem;
  color: #fff;
  animation: pulseHeart 2.4s ease-in-out infinite;
}

/* Hero refinement with soft spotlight */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -60px -40px auto;
  background: radial-gradient(circle at 20% 0%, rgba(255, 200, 220, 0.35), transparent 60%);
  z-index: -1;
}

.hero-text {
  max-width: 32rem;
}

.hero-text h1 {
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Luxury letter card */
.letter-card {
  background: radial-gradient(circle at top left, #ffffff 0, #fff8fb 45%, #fdf2ff 100%);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.4rem;
  box-shadow: 0 22px 55px rgba(31, 22, 45, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 207, 221, 0.85), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 212, 255, 0.55), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.letter-inner {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  padding: 1.25rem 1.4rem 1.6rem;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 245, 248, 0.96));
}

.letter-greeting {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Section rhythm */
section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.9);
  padding-top: 2.4rem;
}

/* Button halo on hover */
.btn-primary {
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 143, 167, 0.7);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Animations for logo */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.9; }
}


/* ===== Final polish tweaks ===== */

/* Hero layout balance on desktop */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 3rem;
  }

  .hero-card {
    transform: translate(10px, -18px);
  }

  .hero-card:hover {
    transform: translate(10px, -22px) scale(1.015);
  }
}

/* More breathing room under hero body text */
.hero-text p {
  margin-bottom: 1.6rem;
}

/* Gradient fade between sections */
section + section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}

/* Softer letter card shadow */
.letter-card {
  box-shadow: 0 18px 45px rgba(165, 121, 146, 0.16);
}

/* Underline accent for "My Love." highlight */
.hero-text h1 span.highlight {
  position: relative;
}

.hero-text h1 span.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: linear-gradient(
    to right,
    rgba(255,143,167,0.55),
    rgba(255,143,167,0.12)
  );
  border-radius: 999px;
}

/* Slightly tighter header + nav pill padding */
header {
  padding: 0.5rem 1.3rem;
}

nav a {
  padding: 0.35rem 0.7rem;
}
