/* css/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff0f5;
  color: #4a2c3a;
  line-height: 1.5;
}

/* DREAMY BACKGROUND */
.dreamy-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 30%, #ffe6f0, #ffc0cb, #ffb7c5);
  background-attachment: fixed;
  z-index: -2;
}
.dreamy-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,220,240,0.2) 0px, rgba(255,220,240,0.2) 2px, transparent 2px, transparent 8px);
  pointer-events: none;
}

/* GLASSMORPHISM core */
.glass-card {
  background: rgba(255, 245, 250, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid rgba(255,255,240,0.7);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

/* floating hearts animation */
.floating-hearts-layer {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events: none;
  z-index: 1;
}
@keyframes floatHeart {
  0% { transform: translateY(100vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.9; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}
.heart-particle {
  position: absolute;
  font-size: 1.6rem;
  pointer-events: none;
  animation: floatHeart 9s linear forwards;
  color: #ff88aa;
  filter: drop-shadow(0 0 5px #ffb7c5);
}

/* buttons & nav */
.glow-button, .nav-glow-btn {
  background: rgba(255, 210, 225, 0.75);
  backdrop-filter: blur(6px);
  border: none;
  padding: 14px 28px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 60px;
  color: #a13e5c;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
  font-family: inherit;
  margin: 1rem 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.glow-button:hover, .nav-glow-btn:hover {
  background: #ffb7cf;
  color: white;
  transform: scale(1.02);
  box-shadow: 0 10px 25px #ff99bb;
  border: 1px solid rgba(255,255,240,0.9);
}
.pulse-button {
  animation: softPulse 2s infinite;
}
@keyframes softPulse {
  0% { box-shadow: 0 0 0 0 #ff99bb88; }
  70% { box-shadow: 0 0 0 12px #ff99bb33; }
  100% { box-shadow: 0 0 0 0 #ff99bb33; }
}

/* INDEX PAGE */
.intro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.intro-card {
  max-width: 650px;
  text-align: center;
  padding: 3rem 2rem;
}
.cinematic-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: #ac4e6e;
  margin-bottom: 1rem;
  min-height: 120px;
  font-family: 'Dancing Script', cursive;
}
.sub-whisper {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 1rem 0;
  letter-spacing: 1px;
}
.music-hint {
  background: rgba(255,215,225,0.6);
  border-radius: 50px;
  width: fit-content;
  margin: 1rem auto;
  padding: 6px 15px;
  font-size: 0.8rem;
  display: flex;
  gap: 5px;
}

/* STRENGTH PAGE */
.strength-page {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.main-heading {
  font-size: 2.6rem;
  text-align: center;
  font-weight: 600;
  background: linear-gradient(135deg, #c45c7a, #ff8aa2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heart-beat {
  animation: beat 1.2s infinite;
  display: inline-block;
}
@keyframes beat { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }}

.progress-healing-section {
  background: rgba(255,240,245,0.7);
  border-radius: 60px;
  padding: 1.2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 550px;
  backdrop-filter: blur(6px);
}
.progress-bar-bg {
  background: #f0cddb;
  border-radius: 40px;
  height: 16px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-fill {
  background: linear-gradient(90deg, #ff90b5, #ff6584);
  width: 0%;
  height: 100%;
  border-radius: 40px;
  transition: width 1.8s ease;
}
.quote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
}
.quote-card {
  width: 240px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
}
.quote-card i {
  font-size: 2rem;
  color: #e27396;
  margin-bottom: 1rem;
}

/* MEMORIES (EMOTION PAGE) */
.emotion-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}
.emotion-card {
  width: 260px;
  padding: 1.2rem;
  cursor: pointer;
  text-align: center;
  transition: 0.2s linear;
}
.emotion-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 35px -15px #ffa5c0;
  border-color: #ffb3c6;
}
.emoji-icon {
  font-size: 3rem;
}
.emotion-img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  margin: 12px 0;
  transition: 0.3s;
}
.hidden-message {
  margin-top: 12px;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
  background: rgba(255,230,240,0.8);
  border-radius: 30px;
  padding: 8px;
  font-size: 0.85rem;
}
.emotion-card.active-message .hidden-message {
  opacity: 1;
  transform: scale(1);
}

/* MESSAGES PAGE */
.message-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}
.magic-card {
  width: 230px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.magic-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #d65c81;
}
.magic-card h3 {
  margin-bottom: 8px;
}
.magic-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #ffb7cf, 0 8px 20px rgba(0,0,0,0.1);
}
.message-reveal-modal {
  display: none;
  position: fixed;
  top: 0; left:0;
  width:100%; height:100%;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  z-index: 200;
}
.modal-content {
  max-width: 380px;
  padding: 2rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* LETTER PAGE */
.letter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
}
.letter-card {
  max-width: 700px;
  padding: 3rem 2.8rem;
  background: rgba(255, 245, 250, 0.8);
  font-family: 'Dancing Script', cursive;
  text-align: center;
  font-size: 1.6rem;
}
.handwritten-title {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: #bc5f7c;
}
.letter-content p {
  margin: 1rem 0;
  font-size: 1.4rem;
  line-height: 1.4;
}
.signature-name {
  font-size: 1.8rem;
  margin-top: 1.4rem;
  font-weight: bold;
  color: #e26a8c;
}
.floating-heart-icon {
  font-size: 2rem;
  margin-top: 20px;
  animation: gentleFloat 3s infinite;
}
@keyframes gentleFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.petals-container {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events: none;
}
.petal {
  position: absolute;
  color: #ffb7c5;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: fallPetals 10s linear infinite;
}
@keyframes fallPetals {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1;}
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0;}
}
/* responsiveness */
@media (max-width: 700px) {
  .main-heading { font-size: 1.8rem; }
  .quote-card { width: 200px; }
  .emotion-card { width: 230px; }
  .glass-card { backdrop-filter: blur(8px); }
  .letter-card { padding: 1.8rem; font-size: 1.2rem; }
  .letter-content p { font-size: 1.2rem; }
}
.fade-in-up {
  animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up {
  animation: slideUpFade 0.6s ease backwards;
}
.nav-buttons, .strength-footer-nav, .navigation-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
  flex-wrap: wrap;
}