:root {
  /* Premium Elegant Palette */
  --color-bg-base: #fff0f5;
  /* Lavender Blush */
  --color-bg-gradient: linear-gradient(135deg, #fff0f5 0%, #fae1e5 100%);

  --color-primary: #d63384;
  /* Deep Rose for primary actions */
  --color-gold: #d4af37;
  /* Metallic Gold for accents */
  --color-text: #4a4a4a;
  /* Soft Charcoal */

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-glass: 0 15px 35px rgba(214, 51, 132, 0.1);

  --font-display: 'Pacifico', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-bubbly: 'Fredoka', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  background: var(--color-bg-gradient);
  min-height: 100vh;
}

/* --- Background Animation Bubbles --- */
.bg-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(212, 175, 55, 0.2) 100%);
  /* Gold/White glow */
  bottom: -150px;
  border-radius: 50%;
  animation: bubbleFloat 25s infinite linear;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.bg-bubbles li:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.bg-bubbles li:nth-child(2) {
  left: 20%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bg-bubbles li:nth-child(3) {
  left: 25%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.bg-bubbles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bg-bubbles li:nth-child(5) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.bg-bubbles li:nth-child(6) {
  left: 80%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  background: rgba(255, 255, 255, 0.15);
}

.bg-bubbles li:nth-child(7) {
  left: 32%;
  width: 140px;
  height: 140px;
  animation-delay: 7s;
  background: rgba(255, 255, 255, 0.2);
}

.bg-bubbles li:nth-child(8) {
  left: 55%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.bg-bubbles li:nth-child(9) {
  left: 25%;
  width: 10px;
  height: 10px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.bg-bubbles li:nth-child(10) {
  left: 90%;
  width: 130px;
  height: 130px;
  animation-delay: 11s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

/* --- Glassmorphism Utils --- */
/* --- Glassmorphism Utils (Elegant Milky Glass) --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  padding: 40px;
}

/* --- Buttons --- */
/* --- Buttons (Elegant Gradient) --- */
.btn-bubbly {
  font-family: var(--font-body);
  font-weight: 700;
  display: inline-block;
  padding: 16px 45px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b95 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(214, 51, 132, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-bubbly:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(214, 51, 132, 0.4);
}

.btn-bubbly::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
  z-index: -1;
}

.btn-bubbly:hover::after {
  transform: translateX(100%);
}

.btn-bubbly:active {
  transform: scale(0.98);
}

.pulse-btn {
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 64, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
  }
}

/* --- Sections --- */
section {
  min-height: 90vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* --- Hero Redesign --- */
#hero {
  height: 100vh;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Transparent: Uses Body BG */
}

.hero-glass-container {
  background: rgba(255, 255, 255, 0.7);
  /* Lighter */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #fff;
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  /* Softer Shadow */
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounceInUp 1s ease-out;
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: heartbeat 2s infinite ease-in-out;
  filter: drop-shadow(0 5px 15px rgba(233, 30, 99, 0.4));
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  color: #444;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.1);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.1);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes bounceInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 300px, 0);
  }

  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }

  75% {
    transform: translate3d(0, 10px, 0);
  }

  90% {
    transform: translate3d(0, -5px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

/* --- Quiz --- */
#quiz {
  perspective: 1000px;
  /* Transparent: Uses Body BG */
}

#quiz-container {
  width: 100%;
  max-width: 500px;
  min-height: 400px;
  position: relative;
  /* Center the cards */
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz-card {
  width: 100%;
  /* Position absolute to stack them exactly on top if needed, 
       but we are using display:none logic which removes from flow.
       Let's keep them as flow items but only show one. */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px;
  animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-card.active {
  display: flex;
}

@keyframes slideIn {
  from {
    transform: translateX(100px) rotate(5deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
}

/* Shake animation removed */

.quiz-options {
  display: grid;
  gap: 15px;
  width: 100%;
  margin-top: 25px;
}

.btn-option {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  padding: 20px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn-option:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.15);
}

/* --- Slider --- */
#memories {
  text-align: center;
  /* Transparent: Uses Body BG */
}

.slider-wrapper {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
  animation: fadeScale 0.6s ease-out;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  background: #fff;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* --- Proposal --- */
#proposal {
  position: relative;
  text-align: center;
  overflow: hidden;
  /* Transparent: Uses Body BG */
}

.proposal-box {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 700px;
}

.proposal-area {
  width: 100%;
  height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-yes {
  background: #4CAF50;
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
  margin-right: 0;
  /* Centered visually with No moving around */
  z-index: 20;
}

.btn-no {
  background: #e0e0e0;
  color: #555;
  position: absolute;
  /* Floating */
  transition: top 0.3s ease-out, left 0.3s ease-out;
  cursor: pointer;
  z-index: 100;
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-bubbly);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: 50px 30px;
  border-radius: 30px;
  text-align: center;
  max-width: 90%;
  width: 450px;
  animation: popUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes popUp {
  from {
    transform: scale(0.5) translateY(100px);
  }

  to {
    transform: scale(1) translateY(0);
  }
}

.modal .btn-close {
  margin-top: 30px;
  background: #f0f0f0;
  color: #666;
  padding: 12px 25px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.modal .btn-close:hover {
  background: #ddd;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-icon {
    font-size: 4rem;
  }

  .btn-bubbly {
    font-size: 1.1rem;
    padding: 12px 30px;
  }

  .glass-card {
    padding: 20px;
  }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}