/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff0f5;
  color: #3a3a3a;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 0;
}

/* ========== CANVAS BACKGROUND ========== */
#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* 👈 Push behind all content */
}
/* ========== SECTION BASE STYLES ========== */
section {
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1.5s ease both;
}

/* ========== TYPOGRAPHY ========== */
h1, h2 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

p, li {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 1rem;
}
.typewriter {
  overflow: hidden;
  border-right: 2px solid #000;
  white-space: nowrap;
  animation: typing 2s steps(20, end), blink 0.75s step-end infinite;
  display: inline-block;
  font-family: monospace;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: black; }
}
/* ========== LANDING SECTION ========== */
.landing {
  background: linear-gradient(to bottom, #fce4ec, #f8bbd0);
  color: #4a2c2a;
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 2s ease-out;
}

.landing h1 {
  font-size: 3rem;
}

/* ========== MUSIC TOGGLE ========== */
#musicToggle {
  margin-top: 2rem;
  padding: 0.5rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #d48aa5;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#musicToggle:hover {
  background-color: #fce4ec;
}

/* ========== WHY I LOVE YOU SECTION ========== */
.why-love {
  background-color: rgba(255, 228, 225, 0.6);
}

.reasons li {
  list-style: none;
  margin: 1rem 0;
  position: relative;
  padding-left: 2rem;
  transition: transform 0.3s ease;
}

.reasons li::before {
  content: "🌸";
  position: absolute;
  left: 0;
  top: 0;
}

/* ========== WHY YOU'RE AMAZING SECTION ========== */
.why-amazing {
  background-color: rgba(243, 229, 245, 0.6);
}

.cat {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.cat:hover::after {
  content: attr(data-name);
  display: block;
  font-size: 0.8rem;
  color: #6a1b9a;
  margin-top: 0.2rem;
}

/* ========== LOVE NOTE SECTION ========== */
.love-note {
  background-color: rgba(255, 205, 210, 0.6);
  color: #4e0303;
  font-family: 'Sacramento';
}

.note {
  font-size: 2.2rem;
  line-height: 2.8rem;
  max-width: 800px;
}

/* ========== COME BACK SOON SECTION ========== */
.come-back {
  background-color: rgba(255, 250, 250, 0.6);
  color: #5c5c5c;
}

/* ========== FOOTER ========== */
.footer {
  width: 100%;
  background: linear-gradient(to right, #f8bbd0, #fce4ec);
  padding: 2rem 1rem;
  position: relative;
  z-index: 3;
  color: #4a2c2a;
  font-family: 'Georgia', serif;
  border-top: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  width: 100%;
}


.footer-note {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Add this animation if you want it to float in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MEDIA QUERIES ========== */
@media screen and (max-width: 600px) {
  h1, h2 {
    font-size: 2rem;
  }

  p, li {
    font-size: 1rem;
  }

  .note {
    font-size: 1.6rem;
  }

  #musicToggle {
    font-size: 1rem;
    padding: 0.3rem 1rem;
  }
}

.heart {
  animation: pulse 1.5s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
