:root {
  --bg-dark: #1a1525;
  --bg-darker: #0d0a14;
  --text-main: #fcf9fc;
  --text-muted: #d0c4d8;
  --accent-pink: #ff7eb3;
  --accent-purple: #9a66d0;
  --glass-bg: rgba(30, 22, 45, 0.65);
  --glass-border: rgba(255, 126, 179, 0.2);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, .quote {
  font-family: 'Playfair Display', serif;
}

/* Base Utility Classes */
.wrapper {
  position: relative;
  z-index: 2;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

.fade-in.dl-1 { animation-delay: 0.3s; }
.fade-in.dl-2 { animation-delay: 0.6s; }
.fade-in.dl-3 { animation-delay: 0.9s; }

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero & Parallax Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero.parallax {
  background-image: url('../couple.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 10, 20, 0.4) 0%,
    rgba(13, 10, 20, 0.95) 100%
  );
  z-index: 1;
}

.music-toggle {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 179, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  color: var(--accent-pink);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  font-style: italic;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .quote {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-pink));
  animation: bounceDown 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(-10px); opacity: 0; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* Zoom Image Section */
.zoom-section {
  min-height: 80vh;
  padding: 80px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.zoom-container {
  flex: 1;
  min-width: 300px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 15s ease-out;
}

.zoom-container.visible .zoom-image {
  transform: scale(1.15);
}

.zoom-text {
  flex: 1;
  min-width: 300px;
}

.zoom-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--accent-pink);
}

.zoom-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Countdown Section */
.timer-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.timer-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.timer-subtitle,
.timer-footer {
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.timer-subtitle { margin-bottom: 40px; }
.timer-footer { margin-top: 40px; }

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 20px);
  margin: 0 auto;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(15px, 3vw, 25px);
  min-width: clamp(70px, 15vw, 120px);
}

.time-val {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.time-label {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-pink);
  margin-top: 10px;
}

.colon {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--text-muted);
  font-weight: bold;
  animation: blink 2s infinite;
}

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

/* Mini Game Section */
.game-section {
  padding: 40px 20px 100px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.game-panel h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--accent-pink);
}

.game-panel > p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.game-board {
  position: relative;
  width: 100%;
  height: 350px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  border: 1px dashed var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-display {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 126, 179, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10;
  display: none;
}

.game-board.active .score-display {
  display: block;
}

.pulse-button {
  background: var(--accent-pink);
  color: #1a0a14;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 126, 179, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.pulse-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 126, 179, 0.6);
}

.catchable-heart {
  position: absolute;
  top: -40px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.catchable-heart:active {
  transform: scale(1.5);
}

.catchable-heart.caught {
  pointer-events: none;
  animation: heartBurst 0.3s ease-out forwards;
}

@keyframes heartBurst {
  to { transform: scale(3); opacity: 0; }
}

.hidden { display: none !important; }

/* Form Styles */
.success-title {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-top: 20px;
  margin-bottom: 10px;
}

.reply-form {
  margin-top: 30px;
  display: grid;
  gap: 16px;
  text-align: left;
}

.reply-form label {
  display: grid;
  gap: 8px;
}

.reply-form span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: inherit;
  transition: background 0.3s, border-color 0.3s;
}

.reply-form input:focus,
.reply-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-pink);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cta-button {
  flex: 1;
  min-width: 200px;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  box-shadow: 0 5px 15px rgba(255, 126, 179, 0.3);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.cta-button:hover { transform: translateY(-3px); }

/* Floating Hearts Background Background */
#hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-heart {
  position: absolute;
  color: rgba(255, 126, 179, 0.1);
  animation: floatUp linear infinite;
  bottom: -50px;
}

@keyframes floatUp {
  to {
    transform: translateY(-110vh) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .zoom-section { gap: 40px; }
  .form-actions { flex-direction: column; }
}
