
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #ffe0ec, #e0f7ff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
}
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
h1, h2 {
  font-family: 'Dancing Script', cursive;
  color: #ff6699;
}
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  margin: 1.5rem auto;
  max-width: 800px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.passcode-screen {
  text-align: center;
  margin-top: 100px;
}
.passcode-screen input {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-top: 10px;
}
.passcode-screen button {
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #ff6699;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
}
.error {
  color: red;
  display: none;
}
.love-letter-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px 40px;
  background: rgba(255, 182, 193, 0.2); /* soft pink translucent */
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
  color: #4a004a;
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(255, 182, 193, 0.4);
  user-select: none;
}

.love-letter-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #e60073;
  font-weight: 700;
}

.quote {
  margin-top: 20px;
  font-style: italic;
  color: #444;
}
.photo-gallery {
  padding: 50px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.photo-gallery h2 {
  font-size: 2.5rem;
  color: #ff66a3;
  margin-bottom: 30px;
  font-family: 'Pacifico', cursive;
}

/* Grid */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.grid-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.grid-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Floating Hearts Background */
.floating-hearts-bg {
  position: relative;
  overflow: hidden;
}

.floating-hearts-bg::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  background-image: url('https://i.imgur.com/97gDCVf.png'); /* Soft heart scatter pattern */
  background-size: 200px;
  background-repeat: repeat;
  animation: floatHearts 60s linear infinite;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatHearts {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.music-embed {
  margin: 2rem auto;
  max-width: 500px;
}
.heart-container::before {
  content: "💖 💘 💝 💗 💞 💓 💕";
  font-size: 30px;
  animation: floatHearts 4s infinite linear;
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
@keyframes floatHearts {
  0% { top: 100%; opacity: 1; }
  100% { top: -50px; opacity: 0; }
}
@media (max-width: 768px) {
  .love-list {
    columns: 1;
  }
}
.birthday-heading {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #ff66a3;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(255, 105, 180, 0.3);
  animation: popIn 1s ease-in-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.flower-svg-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
  align-items: center;
}

.flower {
  width: 150px;
  height: 150px;
  opacity: 0;
  transform: scale(0.6);
  animation: bloomRotate 2s ease forwards;
  cursor: default;
  transition: transform 0.3s ease;
}

.flower:hover {
  transform: scale(0.7) rotate(5deg);
}

.flower:nth-child(2) {
  animation-delay: 0.5s;
}

.flower:nth-child(3) {
  animation-delay: 1s;
}

@keyframes bloomRotate {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.heart-container {
  position: fixed;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Each heart */
.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg fill="pink" height="20" width="20" viewBox="0 0 32 29.6" xmlns="http://www.w3.org/2000/svg"><path d="M23.6,0C20.4,0,17.7,2.1,16,5.1C14.3,2.1,11.6,0,8.4,0C3.8,0,0,3.8,0,8.4c0,4.2,3.4,7.6,10.2,13.8c1.4,1.3,2.9,2.6,4.4,4c1.5-1.4,3-2.7,4.4-4C28.6,16,32,12.6,32,8.4C32,3.8,28.2,0,23.6,0z"/></svg>') no-repeat center center;
  background-size: contain;
  opacity: 0.7;
  animation: floatUp 8s linear infinite;
}

/* Floating animation */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}
