/* Valentine's Day - Cute theme for Ranam 💕 */
:root {
  --pink-light: #FFB6C1;
  --pink: #FFC0CB;
  --pink-deep: #FF69B4;
  --rose: #E8A0BF;
  --cream: #FFF5F7;
  --white: #FFFFFF;
  --text: #4A2C3D;
  --text-soft: #6B4A5C;
  --shadow: rgba(232, 160, 191, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --font-title: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--cream) 0%, #FFE4EC 50%, var(--cream) 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-deep), var(--rose));
  z-index: 50;
  transition: width 0.1s ease-out;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/6.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../assets/4.avif');
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.4) 0%, rgba(255, 192, 203, 0.6) 50%, rgba(255, 245, 247, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 600px;
}

.hero-from {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-title .name {
  color: var(--pink-deep);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

.hero-title .name:hover {
  filter: brightness(1.1);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.scroll-hint {
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 1.5rem;
  color: var(--pink-deep);
}

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

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

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
}

/* Ask section */
.ask-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 182, 193, 0.2) 100%);
}

.buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.btn {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-yes {
  background: linear-gradient(135deg, var(--pink-deep), var(--rose));
  color: var(--white);
  box-shadow: 0 6px 20px var(--shadow);
}

.btn-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px var(--shadow);
}

.btn-no {
  background: var(--white);
  color: var(--text-soft);
  border: 2px solid var(--pink);
}

.btn-no:hover {
  transform: scale(1.02);
}

.answer-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pink-deep);
  min-height: 2rem;
}

/* Gallery */
.gallery-section {
  background: rgba(255, 255, 255, 0.5);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .heart-pop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.gallery-item .heart-pop span {
  font-size: 4rem;
  animation: heartPop 0.6s ease-out forwards;
}

@keyframes heartPop {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

.gallery-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 1rem;
}

/* Reasons */
.reasons-section {
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.15) 0%, transparent 100%);
}

.reasons-list {
  list-style: none;
}

.reasons-list li {
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px var(--shadow);
  border-left: 4px solid var(--pink-deep);
  transition: transform 0.2s, box-shadow 0.2s;
}

.reasons-list li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.reasons-list li .reason-desc {
  display: block;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.reasons-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 24px var(--shadow);
}

/* Letter */
.letter-section {
  padding-bottom: 5rem;
}

.letter-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 12px 40px var(--shadow);
  border: 1px solid rgba(255, 182, 193, 0.4);
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.letter-reactions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.reaction-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px var(--shadow);
}

.reaction-btn:hover {
  transform: scale(1.15);
  background: var(--pink);
}

.reaction-btn:active {
  transform: scale(0.95);
}

.letter-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-soft);
}

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

.signature {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--pink-deep);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Compliment section */
.compliment-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.btn-compliment {
  display: block;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: var(--text);
  font-size: 1rem;
}

.btn-compliment:hover {
  transform: scale(1.03);
}

.compliment-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pink-deep);
  font-weight: 600;
  min-height: 2rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  max-width: 90%;
}

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

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Lottie decorative hearts */
.lottie-hearts {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.7;
}

/* Lightbox for gallery */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
  .section {
    padding: 3rem 1rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .letter-card {
    padding: 1.5rem;
  }

  .buttons-wrap {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 240px;
  }
}
