body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #ffe0ec 0%, #fff5f8 100%);
  color: #511c29;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- NAVIGATION --- */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px #f8bbd0;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}
.main-nav a {
  margin: 0 22px;
  color: #d72660;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.07rem;
  transition: color 0.2s;
  letter-spacing: 0.03em;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d72660 60%, #ffb6c1 100%);
  transition: width 0.25s;
  border-radius: 2px;
  margin: 0 auto;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover {
  color: #b91345;
}

/* --- HERO --- */
.hero.love-hero {
  background: linear-gradient(120deg, #ffb6c1 75%, #ffe0ec 100%);
  padding: 110px 20px 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.love-hero:before,
.hero.love-hero:after {
  content: "❤";
  position: absolute;
  font-size: 7rem;
  opacity: 0.12;
  color: #d72660;
  z-index: 0;
}
.hero.love-hero:before {
  left: 3vw;
  top: 1vw;
  transform: rotate(-18deg);
}
.hero.love-hero:after {
  right: 6vw;
  bottom: 2vw;
  transform: rotate(12deg);
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hearts {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #e63946;
  letter-spacing: 0.15em;
  text-shadow: 1px 1px 6px #fff9fb;
  animation: heartbeat 1.2s infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.15); }
  40% { transform: scale(0.97); }
  60% { transform: scale(1.05); }
  80% { transform: scale(0.93); }
}
.hero h1 {
  font-size: 3.1rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #d72660;
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px #fff2f4;
}
.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #a22e4b;
}

/* --- BUTTONS --- */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #d72660 60%, #ffb6c1 100%);
  color: #fff;
  padding: 15px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 16px #f8bbd0;
  transition: background 0.2s, transform 0.13s, box-shadow 0.2s;
  margin-top: 12px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #b91345 60%, #ffb6c1 100%);
  transform: scale(1.07);
  box-shadow: 0 8px 24px #f8bbd0;
}
.cta-btn.small {
  padding: 8px 24px;
  font-size: 0.98rem;
}

/* --- INFO SECTION --- */
.info-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(105deg, #fff0f6 60%, #ffe0ec 100%);
  padding: 60px 20px;
  gap: 44px;
  border-radius: 34px;
  margin: 54px 0 36px 0;
  box-shadow: 0 8px 32px #f8bbd0;
  position: relative;
  overflow: hidden;
}
.info-section:before {
  content: "❤";
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 3rem;
  color: #ffe0ec;
  z-index: 0;
  opacity: 0.22;
}
.info-section:after {
  content: "❤";
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 2.1rem;
  color: #ffe0ec;
  z-index: 0;
  opacity: 0.19;
}
.info-text {
  flex: 1 1 320px;
  max-width: 410px;
  z-index: 1;
}
.info-section h2 {
  color: #d72660;
  font-size: 2.1rem;
  margin: 0 0 12px 0;
  letter-spacing: 1px;
}
.info-img.heart-frame {
  flex: 1 1 200px;
  max-width: 320px;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  box-shadow: 0 8px 36px #f8bbd0;
  border: 7px solid #fff0f5;
  position: relative;
  z-index: 1;
  background: #fff;
}

/* --- GALLERY: HEART CARDS (SVG) --- */
.gallery-section {
  background: linear-gradient(120deg, #fff0f6 75%, #ffe0ec 100%);
  padding: 70px 20px 50px 20px;
  border-radius: 28px;
  margin-bottom: 54px;
  box-shadow: 0 8px 32px #f8bbd0;
  position: relative;
  overflow: hidden;
}
.gallery-section:before {
  content: "❤";
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 2.2rem;
  color: #ffe0ec;
  opacity: 0.18;
}
.section-title {
  text-align: center;
  color: #d72660;
  font-size: 2.1rem;
  margin-bottom: 36px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.gallery-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.gallery-card.heart-card {
  background: none;
  box-shadow: none;
  border: none;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery-card.heart-card:hover {
  transform: translateY(-7px) scale(1.04);
}
.heart-svg {
  width: 200px;
  height: 180px;
  display: block;
  margin: 0 auto 0.6em auto;
}
.gallery-desc {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 10px 0 10px;
  text-align: center;
  width: 100%;
}
.gallery-desc h3 {
  margin: 0 0 8px 0;
  color: #d72660;
  font-size: 1.21rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.gallery-desc p {
  margin: 0;
  color: #a22e4b;
  font-size: 1.03rem;
}

/* --- HOW WE MET SECTION (IMPROVED) --- */
.how-we-met {
  background: #fff0f6;
  padding: 64px 0;
}
.how-we-met-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
  justify-content: center;
}
.how-we-met-text {
  flex: 1 1 380px;
  min-width: 320px;
}
.how-we-met-photo-wrap {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.how-we-met-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  box-shadow: 0 8px 32px #f8bbd0, 0 0 0 10px #fff0f6;
  background: #fff;
  border: 5px solid #fff;
  display: block;
}
@media (max-width: 900px) {
  .how-we-met-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .how-we-met-text {
    min-width: 0;
  }
}
@media (max-width: 950px) {
  .gallery-flex {
    flex-direction: column;
    align-items: center;
  }
  .gallery-card.heart-card {
    width: 90vw;
    max-width: 290px;
  }
  .heart-svg {
    width: 90vw;
    max-width: 200px;
    height: auto;
  }
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  background: linear-gradient(120deg, #ffe0ec 70%, #ffb6c1 100%);
  padding: 60px 20px;
  border-radius: 24px;
  margin-bottom: 54px;
  box-shadow: 0 4px 20px #f8bbd0;
  position: relative;
  overflow: hidden;
}
.cta-section:after {
  content: "❤";
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 2.5rem;
  color: #ffe0ec;
  opacity: 0.19;
}
.cta-section h2 {
  color: #d72660;
  margin-bottom: 30px;
  font-size: 2.1rem;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #d72660 70%, #ffb6c1 100%);
  color: #fff;
  text-align: center;
  padding: 24px 8px 14px 8px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-top: 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 12px #f8bbd0;
  position: relative;
}
.hearts-footer {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #fff0f5;
  letter-spacing: 0.15em;
  animation: heartbeat 1.2s infinite;
}
.footer-heart {
  color: #fff0f5;
  font-size: 1.1rem;
}

/* --- ABOUT ME PAGE: CORNER PHOTOS --- */
.aboutme-section {
  max-width: 780px;
  margin: 70px auto 50px auto;
  background: linear-gradient(120deg, #fff0f6 70%, #ffe0ec 100%);
  border-radius: 30px;
  box-shadow: 0 8px 32px #f8bbd0;
  padding: 54px 30px;
  position: relative;
  min-height: 320px;
  text-align: center;
  overflow: hidden;
}
.aboutme-title {
  color: #d72660;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.aboutme-text {
  color: #a22e4b;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 32px auto;
  position: relative;
  z-index: 2;
}
.aboutme-photo-corner {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 16px #f8bbd0, 0 0 0 8px #fff0f6;
  border: 5px solid #fff0f5;
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
  z-index: 1;
}
.aboutme-photo-corner:hover {
  transform: scale(1.09) rotate(-5deg);
  box-shadow: 0 8px 32px #f8bbd0, 0 0 0 8px #ffe0ec;
  border-color: #d72660;
}
.photo-topleft {
  top: 18px;
  left: 18px;
}
.photo-topright {
  top: 18px;
  right: 18px;
}
.photo-bottomleft {
  bottom: 18px;
  left: 18px;
}
.photo-bottomright {
  bottom: 18px;
  right: 18px;
}
@media (max-width: 900px) {
  .aboutme-section { padding: 32px 8px; }
  .aboutme-photo-corner {
    width: 65px;
    height: 65px;
  }
  .photo-topleft, .photo-topright, .photo-bottomleft, .photo-bottomright {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .photo-topleft { top: 8px; left: 8px; }
  .photo-topright { top: 8px; right: 8px; }
  .photo-bottomleft { bottom: 8px; left: 8px; }
  .photo-bottomright { bottom: 8px; right: 8px; }
}
@media (max-width: 600px) {
  .aboutme-section { padding: 22px 0 22px 0; }
  .aboutme-photo-corner {
    width: 48px;
    height: 48px;
  }
}

/* --- BOOK PAGE (About Girlfriend) --- */
.book-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  margin-top: 40px;
}
.book {
  position: relative;
  width: 420px;
  height: 520px;
  perspective: 2000px;
  box-shadow: 0 12px 40px #f8bbd0, 0 0 0 12px #fff;
  border-radius: 16px;
  background: #fff0f6;
}
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(90deg, #d72660 70%, #ffb6c1 100%);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: 2px 0 8px #f8bbd0;
  z-index: 10;
}
.book-page {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px #f8bbd0;
  overflow: hidden;
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.87, -0.41, 0.19, 1.44), z-index 0.7s;
  z-index: 1;
  backface-visibility: hidden;
  padding: 60px 48px 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.book-page .book-hearts {
  font-size: 2rem;
  color: #d72660;
  text-align: center;
  margin-bottom: 10px;
  animation: heartbeat 1.2s infinite;
}
.book-page h2 {
  color: #d72660;
  font-size: 1.7rem;
  margin: 18px 0 12px 0;
  text-align: center;
  letter-spacing: 1px;
}
.book-page .book-photo {
  margin: 0 auto 18px auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  box-shadow: 0 4px 18px #f8bbd0;
  border: 4px solid #fff;
  display: block;
  background: #fff;
}
.book-page .book-text {
  color: #a22e4b;
  font-size: 1.07rem;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 8px;
  margin-top: 6px;
}
.book-page .book-pagenum {
  position: absolute;
  font-size: 1rem;
  color: #f8bbd0;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.15em;
  font-family: monospace;
}
.book-page.flipped {
  transform: rotateY(-180deg);
  z-index: 0;
  transition-delay: 0.07s;
}
.book-page.active {
  z-index: 3;
}
.book-nav-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  background: linear-gradient(90deg, #d72660 60%, #ffb6c1 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px #f8bbd0;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  z-index: 11;
  transform: translateY(-50%);
  transition: background 0.2s, transform 0.13s;
  opacity: 0.92;
}
.book-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.book-nav-btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
}
.book-nav-btn.prev {
  left: -58px;
}
.book-nav-btn.next {
  right: -58px;
}
@media (max-width: 600px) {
  .book {
    width: 98vw;
    min-width: 0;
    height: 75vw;
    min-height: 340px;
    max-height: 420px;
  }
  .book-page, .book-page .book-photo {
    padding: 28px 8px 28px 28px;
    width: 90vw;
    min-width: 0;
    font-size: 0.98rem;
  }
  .book-nav-btn.prev { left: -36px;}
  .book-nav-btn.next { right: -36px;}
}

/* --- RESPONSIVE: INFO & GALLERY --- */
@media (max-width: 950px) {
  .info-section,
  .gallery-flex {
    flex-direction: column;
    align-items: center;
  }
  .info-img {
    max-width: 96vw;
    margin-bottom: 20px;
  }
  .gallery-card {
    width: 93vw;
    max-width: 330px;
  }
}
