@charset "UTF-8";

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

:root {
  --primary: #ff6b81;
  --primary-dark: #ff4757;
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff4757 100%);
  --bg-gradient: linear-gradient(135deg, #fff3f5 0%, #fff0f7 50%, #f1f2fe 100%);
  --text-main: #2f3542;
  --text-muted: #57606f;
  --card-bg: rgba(255, 255, 255, 0.93);
  --card-border: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 16px 36px rgba(255, 107, 129, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Hind Siliguri', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Background floating particles */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  color: rgba(255, 107, 129, 0.35);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% { opacity: 0.75; }
  85% { opacity: 0.75; }
  100% {
    transform: translateY(-10vh) scale(1.1) rotate(360deg);
    opacity: 0;
  }
}

/* Music Control Button */
.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 129, 0.3);
  border-radius: 30px;
  padding: 7px 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 129, 0.2);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 129, 0.35);
}

.music-toggle.playing .music-icon {
  animation: rotateMusic 3s linear infinite;
}

@keyframes rotateMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.song {
  display: none;
}

/* Main Container & Universal Scene Structure */
.container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  visibility: hidden;
  z-index: 1;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(14px, 3.5vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.scene-inner {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}

/* --- Scene 1: Initial Greeting & Dua --- */
.main-title {
  font-size: clamp(2.2rem, 5.8vw, 3.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.25;
  text-shadow: 0 4px 15px rgba(255, 71, 87, 0.18);
}

.main-title #name {
  background: linear-gradient(45deg, #ff4757, #ff6b81, #ff7f50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.greeting-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.greeting-dua {
  font-size: clamp(1.02rem, 2.8vw, 1.35rem);
  font-weight: 500;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 129, 0.2);
  display: inline-block;
  max-width: 620px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.08);
}

/* --- Scene 2: 3 Years Journey --- */
.journey-text {
  font-size: clamp(1.35rem, 4.2vw, 2.4rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.journey-text .highlight {
  color: var(--primary-dark);
  background: rgba(255, 71, 87, 0.08);
  padding: 3px 14px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 71, 87, 0.35);
  display: inline-block;
  margin: 0 4px;
}

.journey-subtext {
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* --- Scene 3: Chat Box ("Send with Love") --- */
.chat-card {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  padding: clamp(14px, 3.5vw, 22px);
  width: min(92vw, 560px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  box-sizing: border-box;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  background: var(--primary-gradient);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(255, 117, 140, 0.3);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-status {
  font-size: 0.75rem;
  color: #2ed573;
  font-weight: 500;
}

.heart-icon {
  font-size: 1.3rem;
  animation: pulseHeart 1.5s infinite;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.chat-bubble {
  background: rgba(255, 245, 247, 0.75);
  border: 1px solid rgba(255, 107, 129, 0.15);
  border-radius: 16px;
  padding: clamp(12px, 2.6vw, 18px);
  margin-bottom: 12px;
  max-height: min(48vh, 280px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 129, 0.3) transparent;
}

.chat-bubble::-webkit-scrollbar {
  width: 4px;
}
.chat-bubble::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 129, 0.3);
  border-radius: 4px;
}

.hbd-chatbox {
  display: inline;
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  line-height: 1.75;
  color: #333;
  word-break: break-word;
}

.typing-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 2px;
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fake-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
  width: 100%;
}

.fake-btn {
  background: var(--primary-gradient);
  border: none;
  outline: none;
  border-radius: 25px;
  color: #fff;
  padding: 9px 20px;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fake-btn:hover, .fake-btn.pulse {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(255, 71, 87, 0.45);
}

.fake-btn:active {
  transform: translateY(0);
}

/* --- Scene 4: Thoughts & Ideas --- */
.ideas-wrapper {
  position: relative;
  width: min(92vw, 750px);
  min-height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.idea {
  position: absolute;
  width: 100%;
  font-size: clamp(1.2rem, 3.8vw, 1.95rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0;
  visibility: hidden;
}

.idea-4 strong, .idea-5 strong {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 8px;
  display: inline-block;
  padding: 2px 10px;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.idea-5 {
  font-size: clamp(1.35rem, 4.2vw, 2.2rem) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}

.idea-5 .ring-emoji {
  display: inline-block;
  margin-left: 6px;
}

.idea-6 {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 16px);
  width: 100%;
  opacity: 0;
  visibility: hidden;
}

.idea-6 span {
  font-size: clamp(2.8rem, 11vw, 6.5rem);
  font-weight: 700;
  color: var(--primary-dark);
  text-shadow: 0 6px 20px rgba(255, 71, 87, 0.25);
  display: inline-block;
}

/* --- Scene 5: Photo & Birthday Wish --- */
.photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 650px;
  width: 100%;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.profile-picture {
  width: clamp(160px, 34vw, 250px);
  height: clamp(160px, 34vw, 250px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 12px 30px rgba(255, 107, 129, 0.28), 0 0 0 3px rgba(255, 107, 129, 0.25);
  display: block;
}

.six .hat {
  position: absolute;
  top: -24%;
  right: 4%;
  width: clamp(55px, 13vw, 85px);
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.wish-hbd {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.wish-hbd span {
  display: inline-block;
}

.wish h5 {
  font-size: clamp(1rem, 3.2vw, 1.45rem);
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- Scene 6 & SVGs --- */
.seven, .eight {
  height: 100vh;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.baloons img {
  display: inline-block;
  position: absolute;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.08));
}

.baloons img:nth-child(even) { left: -8%; }
.baloons img:nth-child(odd) { right: -8%; }
.baloons img:nth-child(3n + 0) { left: 32%; }

.eight svg {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 25px;
  z-index: -1;
}

.eight svg:nth-child(1) { fill: #ff6b81; left: 5vw; top: 7vh; }
.eight svg:nth-child(2) { fill: #2ed573; left: 35vw; top: 23vh; }
.eight svg:nth-child(3) { fill: #1e90ff; left: 23vw; top: 33vh; }
.eight svg:nth-child(4) { fill: #ffa502; left: 57vw; top: 43vh; }
.eight svg:nth-child(5) { fill: #ff4757; left: 7vw; top: 68vh; }
.eight svg:nth-child(6) { fill: #9b59b6; left: 77vw; top: 42vh; }
.eight svg:nth-child(7) { fill: #ff7f50; left: 83vw; top: 68vh; }
.eight svg:nth-child(8) { fill: #2bcbba; left: 37vw; top: 86vh; }
.eight svg:nth-child(9) { fill: #e056fd; left: 87vw; top: 94vh; }

/* --- Scene 7: Final Conclusion --- */
.conclusion-card {
  max-width: 620px;
  width: 100%;
}

.nine p.final-wish {
  font-size: clamp(1.1rem, 3.5vw, 1.55rem);
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.6;
}

.nine p.dua-text {
  font-size: clamp(0.96rem, 3vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.signature-box {
  margin: 12px auto;
  display: inline-block;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 129, 0.25);
  box-shadow: 0 6px 18px rgba(255, 107, 129, 0.12);
}

.sign-from {
  font-size: 1rem;
  color: #747d8c;
}

.sign-name {
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  margin-top: 2px;
}

.replay-wrapper {
  margin-top: 14px;
}

#replay {
  cursor: pointer;
  z-index: 10;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  font-size: clamp(0.92rem, 2.8vw, 1.1rem);
  font-weight: 600;
  color: #fff;
  background: var(--primary-gradient);
  padding: 10px 24px;
  border: none;
  outline: none;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.35);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

#replay:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 71, 87, 0.45);
}

#replay:active {
  transform: translateY(0);
}

.last-smile {
  font-size: 1.8rem;
  margin-top: 10px;
}

/* SweetAlert popup customization */
.swal2-romantic-popup {
  border-radius: 22px !important;
  box-shadow: 0 20px 45px rgba(255, 107, 129, 0.2) !important;
  border: 1.5px solid rgba(255, 107, 129, 0.15) !important;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif !important;
  padding: 20px !important;
  max-width: 90vw !important;
}

.swal2-romantic-popup .swal2-title {
  font-size: 1.5rem !important;
  color: var(--primary-dark) !important;
}

.swal2-romantic-popup .swal2-html-container {
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
}
