@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Quicksand:wght@300;400;500;600;700&family=Dancing+Script:wght@400;700&display=swap');

:root {
  --bg-pink: #FFE4EC;
  --bg-light: #FFF0F5;
  --text-dark: #4A2040;
  --rose: #FF6B8A;
  --coral: #FF8FA3;
  --gold: #FFD700;
  --lavender: #E8D5F5;
  --cream: #FFF8F0;
  --mint: #C8F7DC;
  
  --font-handwritten: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-poem: 'Dancing Script', cursive;
}

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

body {
  background: linear-gradient(135deg, var(--bg-pink), var(--bg-light), var(--lavender));
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" style="font-size:16px"><text y="16">💕</text></svg>'), auto;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 5px;
}

/* ==================
   LOADING SCREEN
   ================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}
.loading-content {
  text-align: center;
}
.loading-emoji {
  font-size: 4rem;
  display: inline-block;
  animation: wiggle 1s infinite ease-in-out;
}
.loading-text {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  color: var(--rose);
  margin-top: 10px;
}
.loading-dots span {
  display: inline-block;
  animation: gentle-bounce 1s infinite alternate;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ==================
   BACKGROUND STICKERS
   ================== */
.floating-stickers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.floating-sticker {
  position: absolute;
  animation: float-around linear infinite;
  opacity: 0.3;
}

/* ==================
   CLICK HEARTS
   ================== */
.click-heart {
  position: fixed;
  pointer-events: none;
  animation: heart-float 1.5s ease-out forwards;
  z-index: 9999;
}

/* ==================
   SPARKLE TRAIL
   ================== */
.mouse-sparkle {
  position: fixed;
  pointer-events: none;
  animation: sparkle 0.5s ease-out forwards;
  z-index: 9998;
  font-size: 1rem;
}

/* ==================
   SECTIONS GENERAL
   ================== */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-family: var(--font-handwritten);
  font-size: 3.5rem;
  text-align: center;
  color: var(--rose);
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-top: -20px;
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* ==================
   HERO SECTION
   ================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  opacity: 1; 
  transform: translateY(0);
}
.bounce-emoji {
  font-size: 5rem;
  display: inline-block;
  animation: gentle-bounce 2s infinite;
}
.hero-title {
  font-family: var(--font-handwritten);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--rose);
  text-shadow: 2px 2px 4px rgba(255,107,138,0.3);
  margin: 20px 0;
}
.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-line {
  font-size: 1.4rem;
  margin-bottom: 30px;
}
.hero-sparkle-ring {
  font-size: 1.5rem;
  letter-spacing: 10px;
}

/* ==================
   CUTE CARDS (ABOUT)
   ================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cute-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--lavender);
  border-radius: 1rem;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  cursor: pointer;
}
.cute-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 25px rgba(255,107,138,0.2);
  border-color: var(--rose);
}
.card-sticker {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s;
}
.cute-card:hover .card-sticker {
  transform: scale(1.2) rotate(5deg);
}
.cute-card p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ==================
   FLIP CARDS (NOTES)
   ================== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.flip-card {
  background-color: transparent;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.flip-front {
  background: var(--rose);
  color: white;
}
.flip-front span {
  font-size: 3rem;
  margin-bottom: 10px;
}
.flip-front p {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
}
.flip-back {
  background: var(--cream);
  color: var(--text-dark);
  transform: rotateY(180deg);
  border: 2px solid var(--rose);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ==================
   REASONS LIST
   ================== */
.reasons-scroll {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.reason-item {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.7);
  padding: 15px 20px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.reason-item:hover {
  transform: translateX(10px);
  background: rgba(255,255,255,0.9);
}
.reason-num {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  color: var(--rose);
  margin-right: 20px;
  font-weight: bold;
}
.reason-item p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* ==================
   POEM SECTION
   ================== */
.poem-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2rem;
  padding: 60px 20px;
  margin-bottom: 100px;
}
.poem-heading {
  font-family: var(--font-handwritten);
  font-size: 3.5rem;
  color: var(--rose);
  margin-bottom: 40px;
}
.poem-container {
  font-family: var(--font-poem);
  font-size: 2rem;
  line-height: 1.5;
  color: var(--text-dark);
}
.poem-stanza {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.poem-stanza.visible {
  opacity: 1;
  transform: translateY(0);
}
.poem-sign-off {
  margin-top: 50px;
  font-size: 2.5rem;
  color: var(--rose);
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.poem-sign-off.visible {
  opacity: 1;
}
.sign-name {
  margin-top: 15px;
  font-weight: bold;
}

/* ==================
   FOOTER
   ================== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-pink);
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
}
.footer-small {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-top: 10px;
  opacity: 0.7;
}

/* ==================
   ANIMATIONS
   ================== */
@keyframes gentle-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

@keyframes float-around {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(10deg); }
  66% { transform: translate(-20px, -80px) rotate(-10deg); }
  100% { transform: translate(0, -120px) rotate(0deg); }
}

@keyframes heart-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-150px) scale(1.5); opacity: 0; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes sparkle {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ==================
   CONFETTI (JS Generated)
   ================== */
.confetti {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.8rem; }
  .poem-container { font-size: 1.6rem; }
  .card-grid, .notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.4rem; }
  .hero-line { font-size: 1.1rem; }
  .card-grid, .notes-grid {
    grid-template-columns: 1fr;
  }
}
