/* ======================
   CHERRY WEBSITE STYLES
   Soft pink + white girly theme
====================== */

:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe4ec;
  --pink-200: #ffc2d4;
  --pink-300: #ff9bb8;
  --pink-400: #ff6b9d;
  --pink-500: #ff4d88;
  --pink-600: #e6356f;
  --white: #ffffff;
  --cream: #fff9fb;
  --text-dark: #4a2c3a;
  --text-soft: #7a5a68;
  --shadow-soft: 0 10px 40px rgba(255, 107, 157, 0.15);
  --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.25);
  --radius: 24px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--pink-50) 0%, var(--white) 40%, var(--pink-100) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating hearts background */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.25;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  10% { opacity: 0.3; }
  90% { opacity: 0.2; }
  100% {
    transform: translateY(-20vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* Sparkles */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--pink-300);
  border-radius: 50%;
  animation: twinkle 2.5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--pink-500);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink-400);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 480px;
  text-align: left;
}

.greeting {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--pink-500);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-hearts {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 107, 157, 0.35);
}

/* Photo frame */
.hero-photo {
  text-align: center;
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 340px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 8px rgba(255, 255, 255, 0.8), 0 0 0 12px var(--pink-200);
  background: var(--pink-100);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 107, 157, 0.15), transparent 50%);
  pointer-events: none;
}

.photo-caption {
  margin-top: 1.2rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--pink-500);
}

.photo-frame {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-frame:active {
  transform: scale(0.97);
}

.photo-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-500);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  opacity: 0.9;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

/* Floating controls */
.floating-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.music-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: var(--shadow-soft);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.music-btn.playing {
  background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
  color: white;
  animation: pulse-music 1.5s ease-in-out infinite;
}

@keyframes pulse-music {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 107, 157, 0); }
}

.dedication-badge {
  background: white;
  color: var(--pink-500);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--pink-200);
  white-space: nowrap;
}

/* Dreams section */
.dreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.dream-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 182, 193, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dream-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(255, 107, 157, 0.18);
}

.dream-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.7rem;
}

.dream-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--pink-600);
  margin-bottom: 0.5rem;
}

.dream-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Secret message */
.secret-heart {
  font-size: 2.2rem !important;
  padding: 0.6rem 1.4rem !important;
  background: linear-gradient(135deg, var(--pink-200), var(--pink-400)) !important;
}

.secret-progress {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--pink-500);
  font-weight: 500;
}

.secret-message {
  margin-top: 1rem;
  min-height: 48px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--pink-600);
  opacity: 0;
  transition: opacity 0.5s ease;
  line-height: 1.4;
}

.secret-message.revealed {
  opacity: 1;
}

.hug-btn {
  background: linear-gradient(135deg, #ff9bb8, #ff4d88) !important;
}

/* Sections */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--pink-600);
  margin-bottom: 0.8rem;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  border-radius: 4px;
  margin: 0 auto 1rem;
}

.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.about-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 182, 193, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 107, 157, 0.2);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--pink-600);
  margin-bottom: 0.7rem;
}

.about-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Letter section */
.letter {
  background: transparent;
}

.letter-container {
  display: flex;
  justify-content: center;
}

.letter-paper {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2rem;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 182, 193, 0.4);
  position: relative;
  overflow: hidden;
}

.letter-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500), var(--pink-300));
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.letter-date {
  font-size: 0.85rem;
  color: var(--pink-400);
  font-style: italic;
}

.letter-heart {
  font-size: 1.4rem;
}

.letter-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--pink-600);
  margin-bottom: 1.5rem;
  text-align: center;
}

.letter-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.letter-body p {
  margin-bottom: 1.1rem;
}

.signature {
  margin-top: 1.8rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: var(--pink-500);
}

.signature span {
  font-size: 1.5rem;
}

.letter-footer {
  text-align: center;
  margin-top: 2rem;
}

.btn-heart {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: white;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-heart:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.35);
}

/* Reasons */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  background: white;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 182, 193, 0.3);
  transition: transform 0.25s ease;
}

.reason-item:hover {
  transform: translateX(8px);
}

.reason-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-300);
  min-width: 48px;
}

.reason-text h3 {
  font-size: 1.15rem;
  color: var(--pink-600);
  margin-bottom: 0.3rem;
}

.reason-text p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Fun section */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.fun-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 182, 193, 0.35);
}

.fun-card.wide {
  grid-column: 1 / -1;
}

.fun-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--pink-600);
  margin-bottom: 0.5rem;
}

.fun-card p {
  color: var(--text-soft);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.btn-fun {
  background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
  color: white;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-fun:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.heart-count {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--pink-500);
  font-weight: 500;
}

/* Meter */
.meter {
  height: 14px;
  background: var(--pink-100);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.meter-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meter-label {
  font-size: 0.9rem !important;
  margin-bottom: 1.2rem !important;
}

/* Message box */
.message-box {
  background: var(--pink-50);
  border: 2px dashed var(--pink-200);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--pink-600);
  margin-bottom: 1.4rem;
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, transparent, var(--pink-100));
  position: relative;
  z-index: 1;
}

.footer-hearts {
  font-size: 1.3rem;
  letter-spacing: 0.4rem;
  margin-bottom: 0.8rem;
}

.footer p {
  color: var(--text-soft);
  font-size: 1rem;
}

.footer strong {
  color: var(--pink-500);
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 0.9rem !important;
  opacity: 0.85;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: white;
  color: var(--pink-600);
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--pink-200);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Burst hearts (temporary) */
.burst-heart {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 150;
  animation: burst 1.2s ease-out forwards;
}

@keyframes burst {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.3);
    opacity: 0;
  }
}

/* Menu toggle (hamburger) - hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--pink-500);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.8rem 2rem;
    gap: 1.4rem;
    box-shadow: -10px 0 40px rgba(255, 107, 157, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--text-dark);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2.2rem;
    padding: 5.5rem 1.2rem 3rem;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .photo-frame {
    width: min(260px, 72vw);
    height: min(320px, 88vw);
  }

  .photo-caption {
    font-size: 1.2rem;
  }

  .letter-paper {
    padding: 1.6rem 1.2rem 1.4rem;
  }

  .letter-title {
    font-size: 1.5rem;
  }

  .letter-body {
    font-size: 0.98rem;
  }

  .section {
    padding: 3.2rem 1.2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .about-grid {
    gap: 1.2rem;
  }

  .about-card {
    padding: 1.5rem 1.3rem;
  }

  .reason-item {
    padding: 1.2rem 1.1rem;
    gap: 1rem;
  }

  .reason-num {
    font-size: 1.35rem;
    min-width: 40px;
  }

  .fun-card {
    padding: 1.5rem 1.2rem;
  }

  .message-box {
    font-size: 1.2rem;
    padding: 1.2rem;
    min-height: 70px;
  }

  .footer {
    padding: 2.5rem 1.2rem;
  }

  .toast {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    transform: translateY(100px);
    width: auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }

  .toast.show {
    transform: translateY(0);
  }

  .floating-controls {
    bottom: 1rem;
    right: 1rem;
  }

  .music-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .dedication-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .dreams-grid {
    gap: 1rem;
  }

  .dream-card {
    padding: 1.3rem 1.1rem;
  }

  .photo-hint {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .photo-frame {
    width: 220px;
    height: 270px;
  }

  .btn-primary,
  .btn-heart,
  .btn-fun {
    padding: 0.75rem 1.4rem;
    font-size: 0.92rem;
  }
}
