/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== QUESTIONNAIRE ========== */
#questionnaire {
  position: relative;
  width: 100%;
  height: 100dvh;
}

.question {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.question.active {
  opacity: 1;
  pointer-events: auto;
}

.question-inner {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.question-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #fff;
}

.hint-text {
  min-height: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #f0a0a0;
  transition: opacity 0.4s ease;
}

.hint-text.visible {
  animation: fadeInUp 0.5s ease forwards;
}

/* ========== BUTTONS ========== */
.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-yes {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

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

.btn-no {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.3);
}

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

.btn-no.shrinking {
  transform: scale(0.5);
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}

.btn-no.disappearing {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.btn-yes.growing {
  transform: scale(1.3);
  padding: 1.2rem 3.5rem;
  font-size: 1.3rem;
}

.btn-huge {
  font-size: 1.6rem;
  padding: 1.5rem 4rem;
  transform: scale(1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5); }
}

/* ========== BIRTHDAY REVEAL ========== */
#reveal {
  min-height: 100dvh;
}

#reveal.hidden {
  display: none;
}

#birthday-splash {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.birthday-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #f472b6, #a78bfa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite, scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0);
}

.birthday-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== CONTENT SECTIONS ========== */
#content {
  opacity: 0;
  transition: opacity 1s ease;
  padding-bottom: 4rem;
}

#content.visible {
  opacity: 1;
}

.greeting-section {
  padding: 3rem 1.5rem;
  text-align: center;
}

.greeting-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d4d4d4;
  max-width: 400px;
  margin: 0 auto;
}

.scroll-hint {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
}

.scroll-hint h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e5e5;
  margin-bottom: 1rem;
}

.scroll-arrow {
  font-size: 2rem;
  animation: bounce 2s infinite;
  color: #a78bfa;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* ========== VENUE SECTIONS ========== */
.venue-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.venue-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fbbf24;
}

.venue-text {
  padding: 1.5rem 1.5rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #a3a3a3;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #404040;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.carousel-dot.active {
  background: #fbbf24;
  transform: scale(1.3);
}

/* ========== SPLASH SCROLL ARROW ========== */
.splash-scroll-arrow {
  font-size: 2rem;
  color: #a78bfa;
  margin-top: 2rem;
  animation: bounce 2s infinite;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.splash-scroll-arrow.visible {
  opacity: 1;
}

.splash-scroll-arrow.hidden {
  opacity: 0;
}

/* ========== VENUE LINK ========== */
.venue-link {
  display: inline-block;
  margin: 1.2rem auto 0;
  padding: 0.7rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.venue-link:active {
  transform: scale(0.95);
}

.venue-section {
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #525252;
  font-size: 0.9rem;
}

/* ========== DESKTOP: just center it ========== */
@media (min-width: 600px) {
  body {
    display: flex;
    justify-content: center;
  }

  #questionnaire,
  #reveal {
    max-width: 500px;
  }

  .carousel-slide img {
    height: 400px;
    border-radius: 12px;
  }

  .carousel-slide {
    padding: 0 0.25rem;
  }

  .birthday-title {
    font-size: 4rem;
  }
}
