/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8b6d2, #c3a3f3);
  opacity: 0;
  filter: blur(6px);
  transition: all 1.2s ease;
  overflow: hidden;
}

body.loaded {
  opacity: 1;
  filter: blur(0);
}

/* Container */
.container {
  padding: 20px;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 25px;
  padding: 45px 35px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

/* Heart & Top Photo */
.heart-container {
  position: relative;
  height: 120px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart {
  font-size: 60px;
  animation: pulse 2s infinite;
}

.her-photo-top {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Headings */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin: 20px 0;
  color: #7a3db8;
}

.her-name {
  color: #a74cf0;
  font-weight: 700;
  animation: glow 2.5s ease-in-out infinite;
}

/* Paragraph */
p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  white-space: pre-line;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

button:active::after {
  transform: scale(2);
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Button colors */
.yes-btn {
  background: linear-gradient(135deg, #a74cf0, #d63384);
  color: white;
}

.no-btn {
  background: #f4e9ff;
  color: #8e5ac2;
}

/* Signature */
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.your-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.name {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Floating hearts */
.heart-float {
  position: fixed;
  font-size: 18px;
  animation: rise 4s ease forwards;
  pointer-events: none;
}

/* Animations */

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-160px); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(167, 76, 240, 0.4); }
  50% { text-shadow: 0 0 15px rgba(167, 76, 240, 0.9); }
  100% { text-shadow: 0 0 5px rgba(167, 76, 240, 0.4); }
}

/* Mobile */
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .her-photo-top { width: 95px; height: 95px; }
  button { padding: 10px 20px; font-size: 14px; }
}
