@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
  color: #4b2c3d;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Glassmorphism style for boxes */
.page {
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Remove harsh shadows */
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reveal on scroll */
.page.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro {
  font-weight: 700;
  font-size: 2.8rem;
  background: transparent;
  margin-top: 80px;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

/* Text styles */
h1 {
  margin-bottom: 10px;
  color: #9b2a6c;
  text-shadow: 0 1px 3px rgba(255 255 255 / 0.7);
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: #b83973;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(255 255 255 / 0.8);
}

p {
  font-size: 1.25rem;
  max-width: 600px;
  color: #5a3245;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(255 255 255 / 0.9);
}

/* Floating hearts */
.heart {
  position: fixed;
  bottom: 0;
  color: #ff4060;
  animation: floatUp 6s linear forwards;
  pointer-events: none;
  user-select: none;
  z-index: 1000;
  filter: drop-shadow(0 0 2px #ff1c5b);
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) translateX(40px);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    margin: 20px 15px;
    padding: 50px 15px;
    border-radius: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1rem;
  }
}
/* Top bar styling */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #9b2a6c;
  z-index: 1100;
  box-shadow: 0 2px 8px rgba(255 255 255 / 0.2);
}

/* Logo text */
.logo {
  user-select: none;
}

/* Heart icon styling */
.heart-icon {
  font-size: 1.5rem;
  user-select: none;
  animation: pulse 2s infinite ease-in-out;
  cursor: default;
  color: #d6336c;
}

/* Heart pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Add padding-top to body or first section to avoid content hidden behind bar */
body {
  padding-top: 60px; /* same height as topbar */
}
/* Top bar styling */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 222, 225, 0.85), rgba(238, 156, 167, 0.85));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #b2306e;
  z-index: 1200;
  box-shadow: 0 3px 10px rgba(255 182 193 / 0.4);
  overflow: hidden;
}

/* Logo text with gradient and bounce */
.logo {
  user-select: none;
  background: linear-gradient(45deg, #d6336c, #ff8aad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bounce 3s ease-in-out infinite;
  cursor: default;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Heart icon styling */
.heart-icon {
  font-size: 1.6rem;
  user-select: none;
  animation: pulse 2.2s infinite ease-in-out;
  cursor: default;
  color: #d6336c;
  position: relative;
  z-index: 10;
}

/* Heart pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* Floating hearts container - positioned absolutely */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}

/* Individual hearts animation */
.floating-hearts .heart {
  position: absolute;
  font-size: 18px;
  opacity: 0.6;
  animation-timing-function: linear;
  user-select: none;
  color: #ff6699;
  filter: drop-shadow(0 0 2px #ff3366);
}

/* Animate floating hearts differently */
.floating-hearts .heart:nth-child(1) {
  left: 10%;
  animation: floatAcross 8s linear infinite;
  animation-delay: 0s;
}

.floating-hearts .heart:nth-child(2) {
  left: 40%;
  font-size: 22px;
  animation: floatAcross 10s linear infinite;
  animation-delay: 3s;
}

.floating-hearts .heart:nth-child(3) {
  left: 70%;
  font-size: 16px;
  animation: floatAcross 7s linear infinite;
  animation-delay: 1.5s;
}

/* Floating hearts moving horizontally and slightly vertically */
@keyframes floatAcross {
  0% {
    transform: translateX(-30px) translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(110vw) translateY(-10px);
    opacity: 0;
  }
}

/* Push page content down so it's not hidden */
body {
  padding-top: 70px; /* height of topbar */
}
.page.reason {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 30px auto;
  padding: 50px 20px;
}

.page.reason .content {
  flex: 1;
  text-align: left;
}

.page.reason img {
  flex: 1;
  max-width: 250px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(219, 99, 142, 0.3);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* When visible, fade in and slide image into place */
.page.reason.visible img {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive for small screens: stack content vertically */
@media (max-width: 600px) {
  .page.reason {
    flex-direction: column;
    padding: 40px 15px;
  }
  .page.reason .content {
    text-align: center;
  }
  .page.reason img {
    max-width: 70vw;
    margin-top: 20px;
    transform: translateY(40px);
  }
  .page.reason.visible img {
    transform: translateY(0);
  }
}
.page.reason {
  position: relative;
  max-width: 700px;
  margin: 60px auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #4b2c3d;
  box-shadow: 0 10px 24px rgba(255 182 193 / 0.3);
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Background image styles */
.page.reason::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.15;
  transform-origin: center;
  z-index: -1;
  filter: drop-shadow(0 0 6px rgba(219, 99, 142, 0.3));
}.page.reason {
  position: relative;
  max-width: 700px;
  margin: 60px auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #4b2c3d;
  box-shadow: 0 10px 24px rgba(255 182 193 / 0.3);
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Background image container */
.page.reason::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.12;
  transform-origin: center;
  z-index: -1;
  filter: drop-shadow(0 0 6px rgba(219, 99, 142, 0.2));
  background-blend-mode: screen;
  /* Center & rotate - will override per reason */
  transform: translate(-50%, -50%) rotate(0deg);
}

.page.reason {
  position: relative;
  max-width: 700px;
  margin: 60px auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #4b2c3d;
  box-shadow: 0 10px 24px rgba(255 182 193 / 0.3);
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Container for background images */
.bg-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* so images don’t block text */
  overflow: visible;
  z-index: 0;
}

/* Base style for all bg images */
.bg-img {
  position: absolute;
  opacity: 0.15;
  filter: drop-shadow(0 0 4px rgba(219, 99, 142, 0.3));
  border-radius: 15px;
  user-select: none;
  transition: transform 1s ease;
}
/* Remove border-radius and increase image size */

/* Base style for all bg images */
.bg-img {
  position: absolute;
  opacity: 0.15;
  filter: drop-shadow(0 0 4px rgba(219, 99, 142, 0.3));
  user-select: none;
  transition: transform 1s ease;
  border-radius: 0 !important;  /* Remove any rounding */
}

/* Bigger sizes for reason1 images */
#reason1 .img1 {
  top: 10%;
  left: 5%;
  width: 180px;  /* bigger */
  transform: rotate(-12deg);
}
#reason1 .img2 {
  top: 50%;
  right: 10%;
  width: 150px;  /* bigger */
  transform: rotate(18deg);
}
#reason1 .img3 {
  bottom: 5%;
  left: 45%;
  width: 130px;  /* bigger */
  transform: rotate(-8deg);
}

/* Bigger sizes for reason2 images */
#reason2 .img1 {
  top: 15%;
  right: 15%;
  width: 200px;  /* bigger */
  transform: rotate(10deg);
}
#reason2 .img2 {
  bottom: 20%;
  left: 20%;
  width: 160px;  /* bigger */
  transform: rotate(-15deg);
}

/* Bigger sizes for reason3 images */
#reason3 .img1 {
  top: 5%;
  left: 10%;
  width: 140px;  /* bigger */
  transform: rotate(7deg);
}
#reason3 .img2 {
  top: 45%;
  right: 15%;
  width: 180px;  /* bigger */
  transform: rotate(-12deg);
}
#reason3 .img3 {
  bottom: 15%;
  left: 35%;
  width: 130px;  /* bigger */
  transform: rotate(20deg);
}
#reason3 .img4 {
  bottom: 5%;
  right: 40%;
  width: 110px;  /* bigger */
  transform: rotate(-25deg);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .bg-img {
    width: 90px !important;  /* bigger on mobile than before */
    border-radius: 0 !important;  /* no rounding */
  }
}
#toggle-music {
  background: rgba(219, 99, 142, 0.7);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#toggle-music:hover {
  background: rgba(219, 99, 142, 0.9);
}
