/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: #FAF6F1;
  color: #4A3C38;
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 50px;
}
img { max-width: 100%; display: block; }

/* ========== PALETTE ========== */
:root {
  --bg: #FAF6F1;
  --bg-warm: #F5EDE5;
  --card: #FFFDF9;
  --pink: #C9788E;
  --pink-light: #F5DFE5;
  --pink-soft: #FADCE5;
  --pink-dark: #A85D73;
  --text: #4A3C38;
  --text-light: #8A7E78;
  --text-muted: #B5AAA3;
  --border: #EDE5DD;
}

/* ========== PASSWORD GATE ========== */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#password-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-content { max-width: 400px; }
.gate-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.gate-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 2rem;
}
.gate-input-wrap {
  display: flex;
  gap: 0;
  max-width: 300px;
  margin: 0 auto;
  border: 2px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.gate-input-wrap:focus-within {
  border-color: var(--pink);
}
#gate-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
#gate-input::placeholder { color: var(--text-muted); }
#gate-btn {
  background: var(--pink);
  border: none;
  color: white;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
#gate-btn:hover { background: var(--pink-dark); }
.gate-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--pink-dark);
  min-height: 1.2em;
}
.gate-shake {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ========== CONFETTI CANVAS ========== */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ========== HERO ========== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,120,142,0.08), transparent 70%);
  top: 10%; left: -10%;
  animation: float 10s ease-in-out infinite;
}
#hero::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,120,142,0.06), transparent 70%);
  bottom: 10%; right: -10%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-pre {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--pink);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-punchline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  font-weight: 300;
}
.scroll-hint {
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.scroll-arrow {
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
  margin-top: 0.5rem;
  color: var(--pink);
}

/* Hero animations */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* ========== MARQUEE ========== */
.marquee-strip {
  background: var(--pink);
  padding: 0.7rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-reverse .marquee-track {
  animation: marquee-reverse 25s linear infinite;
}
.marquee-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.marquee-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

/* ========== WGD BANNER ========== */
.wgd-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-warm);
}
.wgd-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.wgd-label {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.wgd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--pink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.wgd-badge {
  display: inline-block;
  background: var(--pink);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-top: 0.3rem;
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ========== ORIGIN STORY ========== */
#origin {
  text-align: center;
  padding-bottom: 2rem;
}
.origin-dm {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px 20px 20px 4px;
  padding: 1.25rem 2rem;
  margin: 0 auto 1.5rem;
  max-width: 400px;
  text-align: left;
}
.origin-dm-platform {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.origin-dm-text {
  font-size: 1.3rem;
  color: var(--text);
  font-style: italic;
}
.origin-dm-sender {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.origin-arrow {
  font-size: 1.5rem;
  color: var(--pink);
  margin: 1rem 0;
}
.origin-note {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== TRIPS ========== */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.trip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74,60,56,0.08);
}
.trip-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  overflow: hidden;
}
.trip-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.trip-card-body {
  padding: 1.25rem 1.5rem;
}
.trip-card-date {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}
.trip-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.trip-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}
.trip-badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}
.trip-card-placeholder {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-warm), var(--pink-light));
}

/* ========== CAROUSEL ========== */
.trip-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.trip-carousel:hover .carousel-btn { opacity: 1; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-btn:hover { background: white; }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ========== BUBU DUDU ========== */
#bubududu {
  text-align: center;
}
.bubu-content {
  max-width: 700px;
  margin: 0 auto;
}
.bubu-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.bubu-catchphrases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.bubu-phrase {
  background: var(--pink-light);
  color: var(--pink-dark);
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: transform 0.2s ease;
}
.bubu-phrase:hover { transform: rotate(-3deg) scale(1.05); }
.bubu-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.bubu-stickers img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.bubu-stickers img:hover { transform: scale(1.1) rotate(3deg); }
.sticker-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 2rem;
}
.sticker-placeholder code {
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ========== CHAT ANALYSIS ========== */
.big-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.big-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.big-stat-card:hover { transform: translateY(-3px); }
.big-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink);
  display: block;
}
.big-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Stat sections */
.stat-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.stat-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Versus bar */
.versus-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  margin-bottom: 0.75rem;
}
.versus-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
}
.versus-side.rishabh { background: var(--text); }
.versus-side.prerna { background: var(--pink); }
.versus-name { font-weight: 700; }
.stat-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.75rem;
}

/* Fun stat row */
.fun-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.fun-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.fun-stat-card:hover { transform: translateY(-3px); }
.fun-stat-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.fun-stat-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.fun-stat-versus {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.rishabh-tag { background: #F0EBE5; color: var(--text); }
.prerna-tag { background: var(--pink-light); color: var(--pink-dark); }
.fun-stat-verdict {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Joke cards */
.joke-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.joke-card {
  background: var(--pink-light);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
  transition: transform 0.3s ease;
}
.joke-card:hover { transform: scale(1.05); }
.joke-word {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--pink-dark);
  display: block;
  font-weight: 700;
}
.joke-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink);
}
.joke-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pink);
  font-style: italic;
  display: block;
  margin-top: 0.2rem;
}

/* Emoji grid */
.emoji-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.emoji-person {
  text-align: center;
}
.emoji-person-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.emoji-list {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.emoji-big {
  font-size: 2rem;
  transition: transform 0.2s ease;
}
.emoji-big:hover { transform: scale(1.2); }
.emoji-vs {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* First message bubble */
.first-message-section { text-align: center; }
.first-message-bubble {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 1rem 1.5rem;
  text-align: left;
  margin: 0 auto 1rem;
  max-width: 350px;
}
.bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}
.bubble-sender { font-weight: 700; color: var(--pink); font-size: 0.85rem; }
.bubble-time { font-size: 0.7rem; color: var(--text-muted); }
.bubble-text { font-size: 1.15rem; color: var(--text); }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(74,60,56,0.1);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2rem;
}
#lightbox.active { display: flex; }
#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

/* ========== FOOTER ========== */
#footer {
  text-align: center;
  padding: 5rem 2rem 6rem;
  background: var(--bg-warm);
}
.footer-message-small {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-message-big {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.footer-love {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--pink);
  margin-bottom: 1rem;
}
.footer-sign {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  section { padding: 3rem 1.25rem; }
  .trips-grid { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: repeat(2, 1fr); }
  .big-number { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .versus-side { font-size: 0.7rem; padding: 0 0.5rem; }
  .fun-stats-row { grid-template-columns: 1fr; }
  .emoji-row { flex-direction: column; gap: 1rem; }
}

@media (max-width: 400px) {
  .big-stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .joke-grid { flex-direction: column; align-items: center; }
}
