/* Pastel Love Page Styles (Karsa x Namira) */

:root {
  --bg1: #fff1f6; /* pink pastel */
  --bg2: #f1fbff; /* sky pastel */
  --card: #ffffffcc;
  --stroke: #ffffff80;
  --text: #2c2a3a;
  --muted: #6b6a7e;
  --pink: #ff7ab6;
  --peach: #ffb199;
  --mint: #53e3c4;
  --lav: #b8a4ff;
  --butter: #ffe58a;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, var(--bg1), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, var(--bg2), transparent 55%),
    linear-gradient(180deg, #fff7fb, #f4fcff 40%, #fff 100%);
}

/* Fun floating hearts + sparkles */
@keyframes floatUp {
  0% {
    transform: translateY(20px) translateX(0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-220px) translateX(35px) scale(1.1);
    opacity: 0;
  }
}

@keyframes drift {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes popIn {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes wobble {
  0% {
    transform: rotate(-1deg) scale(1);
  }
  30% {
    transform: rotate(2deg) scale(1.02);
  }
  60% {
    transform: rotate(-2deg) scale(1.01);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Layout */
.page {
  position: relative;
  min-height: 100vh;
}

/* Top decorative blobs */
.blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: drift 4.8s ease-in-out infinite;
  pointer-events: none;
}
.blob.b1 {
  left: -120px;
  top: 40px;
  background: rgba(255, 122, 182, 0.4);
}
.blob.b2 {
  right: -140px;
  top: 160px;
  background: rgba(83, 227, 196, 0.35);
  animation-duration: 5.6s;
}
.blob.b3 {
  left: 35%;
  bottom: -160px;
  background: rgba(184, 164, 255, 0.28);
  animation-duration: 6.4s;
}

.header {
  padding: 52px 16px 22px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 35px rgba(255, 122, 182, 0.1);
  backdrop-filter: blur(10px);
  animation: popIn 0.8s ease both;
}

.badge .spark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--pink), var(--lav));
  transform: rotate(18deg);
  box-shadow: 0 0 0 6px rgba(255, 122, 182, 0.1);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: popIn 0.9s 0.05s ease both;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--pink),
    var(--peach),
    var(--mint),
    var(--lav)
  );
  background-size: 250% 250%;
  animation: shimmer 4.2s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  animation: popIn 1s 0.12s ease both;
}

/* Hero card */
.hero {
  width: min(1050px, 92vw);
  margin: 18px auto 0;
  padding: 18px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  animation: popIn 1.05s 0.18s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.copy {
  padding: 8px 6px 6px 6px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.55);
}

.story-title {
  font-size: 22px;
  margin: 6px 0 8px;
}

.story {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Image collage */
.collage {
  position: relative;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.25)
  );
  border: 1px dashed rgba(255, 255, 255, 0.8);
}

@media (max-width: 860px) {
  .collage {
    height: 280px;
  }
}

.collage img {
  position: absolute;
  width: 46%;
  height: 48%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease;
}

.collage img:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.01);
}

.i1 {
  left: 10px;
  top: 12px;
  transform: rotate(-2deg);
}
.i2 {
  right: 12px;
  top: 18px;
  transform: rotate(3deg);
}
.i3 {
  left: 18px;
  bottom: 14px;
  transform: rotate(2deg);
}
.i4 {
  right: 18px;
  bottom: 18px;
  transform: rotate(-3deg);
}

.caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.caption .heart {
  font-size: 18px;
  animation: wobble 1.2s ease-in-out infinite;
}

.caption small {
  color: var(--muted);
  line-height: 1.2;
}

/* Gallery */
.gallery {
  width: min(1050px, 92vw);
  margin: 18px auto 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

.card {
  grid-column: span 4;
  min-height: 170px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  animation: popIn 1s ease both;
}

.card.big {
  grid-column: span 6;
  min-height: 210px;
}

@media (max-width: 980px) {
  .card {
    grid-column: span 6;
  }
  .card.big {
    grid-column: span 6;
  }
}
@media (max-width: 620px) {
  .card {
    grid-column: span 12;
  }
  .card.big {
    grid-column: span 12;
  }
  .gallery {
    gap: 12px;
  }
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.88) 100%
  );
  opacity: 0.95;
  pointer-events: none;
}

.card .label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.card .label strong {
  font-size: 16px;
}

.card .label span {
  font-size: 13px;
  color: var(--muted);
}

/* Floating hearts layer (existing ambient hearts) */
.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.heartFloat {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: rgba(255, 122, 182, 0.9);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 4px;
  animation: floatUp 4.2s linear infinite;
  box-shadow: 0 0 0 6px rgba(255, 122, 182, 0.1);
}

.heartFloat::before,
.heartFloat::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border-radius: 50%;
}

.heartFloat::before {
  top: -9px;
  left: 0;
}
.heartFloat::after {
  left: -9px;
  top: 0;
}

/* ===== Love button burst (only when clicked) ===== */
@keyframes lbRise {
  0% {
    transform: translate(0, 0) rotate(var(--lb-rot, 0deg)) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--lb-dx, 0px), var(--lb-dy, -240px))
      rotate(calc(var(--lb-rot, 0deg) * -1)) scale(1.15);
    opacity: 0;
  }
}

.loveBurstOverlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.lbHeart,
.lbSpark {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) rotate(var(--lb-rot, 0deg));
  animation: lbRise var(--lb-dur, 900ms) ease-out forwards;
}

.lbHeart {
  background: rgba(255, 122, 182, 0.95);
  border-radius: 6px;
  box-shadow: 0 0 0 8px rgba(255, 122, 182, 0.1);
}

.lbHeart::before,
.lbHeart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
}

.lbHeart::before {
  top: -50%;
  left: 0;
}

.lbHeart::after {
  left: -50%;
  top: 0;
}

.lbSpark {
  background: linear-gradient(
    135deg,
    rgba(255, 122, 182, 0.95),
    rgba(184, 164, 255, 0.95)
  );
  border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(184, 164, 255, 0.12);
  transform: translate(-50%, -50%) rotate(45deg);
}

.loveBtn {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 122, 182, 0.95),
    rgba(184, 164, 255, 0.85)
  );
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 35px rgba(255, 122, 182, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  user-select: none;
}

.loveBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 45px rgba(255, 122, 182, 0.24);
  filter: saturate(1.05);
}

.loveBtn:active {
  transform: translateY(0px) scale(0.99);
}

.loveBtn .btnIcon {
  font-size: 18px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}

.loveBtn .btnText {
  font-size: 14px;
}

@keyframes lbBtnShake {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-2px) rotate(-6deg) scale(1.03);
  }
  50% {
    transform: translateY(1px) rotate(6deg) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.loveBtn--burst {
  animation: lbBtnShake 520ms ease-out;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--muted);
  padding: 22px 16px 40px;
  position: relative;
  z-index: 2;
}

.footer .loveLine {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}
