/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@400;700&display=swap');

/* ========== CSS Variables ========== */
:root {
  --pink-light: #ffe4ec;
  --pink-medium: #ff8fab;
  --pink-dark: #e63975;
  --rose: #ff2d75;
  --blush: #fff0f5;
  --crimson: #dc143c;
  --gold: #ffd700;
  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(230, 57, 117, 0.18);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.10);
  --font-heading: 'Pacifico', cursive;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Dancing Script', cursive;
}

/* ========== Global Reset ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== PAGE 1 — Proposal ========== */
.proposal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 30%, #f48fb1 60%, #f06292 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Floating Hearts Background */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.5rem;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Proposal Card */
.proposal-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px 40px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: cardAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.proposal-card .name {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--pink-dark);
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(230, 57, 117, 0.15);
}

.proposal-card .name .heart-icon {
  color: var(--crimson);
  animation: heartPulse 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.proposal-card .question {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 35px;
  line-height: 1.4;
}

.proposal-card .question .emoji {
  display: inline-block;
  animation: heartPulse 1.2s ease-in-out infinite;
}

/* Buttons Container */
.btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  min-height: 70px;
}

/* Yes Button */
.btn-yes {
  background: linear-gradient(135deg, var(--rose) 0%, var(--crimson) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 38px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.btn-yes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff2d75 100%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
}

.btn-yes:hover::before {
  opacity: 1;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.45);
}

.btn-yes span {
  position: relative;
  z-index: 1;
}

/* No Button */
.btn-no {
  background: var(--white);
  color: #555;
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 14px 38px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: absolute;
  z-index: 2;
  user-select: none;
}

.btn-no:hover {
  border-color: var(--pink-medium);
}

/* Quote */
.proposal-card .quote {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: #888;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* Sparkle decoration */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* ========== PAGE 2 — Celebration ========== */
.celebration-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0011 0%, #2d0024 30%, #4a0033 60%, #1a0011 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.celebration-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 117, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.celebration-hero {
  text-align: center;
  padding: 60px 20px 30px;
  position: relative;
  z-index: 10;
}

.yay-text {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--white);
  text-shadow: 0 0 40px rgba(255, 45, 117, 0.6), 0 0 80px rgba(255, 45, 117, 0.3);
  animation: bounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 10px;
}

.yay-subtext {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--pink-medium);
  animation: fadeInUp 1s ease 0.4s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-60px);
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Section */
.gallery-section {
  position: relative;
  z-index: 10;
  padding: 30px 20px 80px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 20px rgba(255, 45, 117, 0.4);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}

/* Polaroid Frame */
.polaroid {
  background: var(--white);
  border-radius: 8px;
  padding: 12px 12px 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  animation: fadeInUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}

.polaroid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose));
}

.polaroid:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 16px 50px rgba(255, 45, 117, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.polaroid .date-label {
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: var(--pink-dark);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.polaroid .photo-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--pink-light);
  position: relative;
}

.polaroid .photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid:hover .photo-wrapper img {
  transform: scale(1.05);
}

.polaroid .photo-caption {
  font-family: var(--font-script);
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  padding: 8px 4px 4px;
}

/* Stagger animation delays for each polaroid */
.polaroid:nth-child(1)  { animation-delay: 0.1s; }
.polaroid:nth-child(2)  { animation-delay: 0.2s; }
.polaroid:nth-child(3)  { animation-delay: 0.3s; }
.polaroid:nth-child(4)  { animation-delay: 0.4s; }
.polaroid:nth-child(5)  { animation-delay: 0.5s; }
.polaroid:nth-child(6)  { animation-delay: 0.6s; }
.polaroid:nth-child(7)  { animation-delay: 0.7s; }
.polaroid:nth-child(8)  { animation-delay: 0.8s; }
.polaroid:nth-child(9)  { animation-delay: 0.9s; }
.polaroid:nth-child(10) { animation-delay: 1.0s; }
.polaroid:nth-child(11) { animation-delay: 1.1s; }
.polaroid:nth-child(12) { animation-delay: 1.2s; }

/* Footer love note */
.love-footer {
  text-align: center;
  padding: 30px 20px 50px;
  position: relative;
  z-index: 10;
}

.love-footer p {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--pink-medium);
}

.love-footer .big-heart {
  font-size: 3rem;
  display: inline-block;
  animation: heartPulse 1s ease-in-out infinite;
  margin-top: 10px;
}

/* Glowing particles on celebration page */
.glow-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: glowFloat linear infinite;
}

@keyframes glowFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .proposal-card {
    padding: 40px 25px 30px;
    border-radius: 24px;
  }

  .proposal-card .name {
    font-size: 2.2rem;
  }

  .proposal-card .question {
    font-size: 1.3rem;
    margin-bottom: 28px;
  }

  .btn-yes {
    padding: 12px 30px;
    font-size: 1.05rem;
  }

  .btn-no {
    padding: 12px 30px;
    font-size: 1.05rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .yay-text {
    font-size: 2.5rem;
  }

  .yay-subtext {
    font-size: 1.3rem;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .celebration-hero {
    padding: 40px 15px 20px;
  }
}

@media (max-width: 480px) {
  .proposal-card .name {
    font-size: 1.9rem;
  }

  .proposal-card .question {
    font-size: 1.15rem;
  }

  .proposal-card {
    padding: 30px 20px 25px;
    width: 92%;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 300px;
  }

  .yay-text {
    font-size: 2rem;
  }

  .polaroid {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ========== Lightbox ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(255, 45, 117, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}
