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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* ===========================
   SCREENS
=========================== */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #dff0fa 0%, #C9E8F5 50%, #b8dff0 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}

/* ===========================
   CLOUDS
=========================== */
.clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 999px;
  opacity: 0;
}

.cloud1 {
  width: 520px;
  height: 130px;
  top: 5%;
  left: -20%;
  filter: blur(28px);
  opacity: 0.85;
  animation: floatRight 35s linear infinite;
}

.cloud2 {
  width: 380px;
  height: 100px;
  top: 18%;
  right: -15%;
  filter: blur(22px);
  opacity: 0.75;
  animation: floatLeft 28s linear infinite;
}

.cloud3 {
  width: 600px;
  height: 150px;
  bottom: 10%;
  left: -25%;
  filter: blur(32px);
  opacity: 0.8;
  animation: floatRight 40s linear infinite;
}

.cloud4 {
  width: 300px;
  height: 90px;
  bottom: 28%;
  right: -12%;
  filter: blur(20px);
  opacity: 0.7;
  animation: floatLeft 30s linear infinite;
}

.cloud5 {
  width: 450px;
  height: 120px;
  top: 38%;
  left: -18%;
  filter: blur(25px);
  opacity: 0.65;
  animation: floatRight 45s linear infinite;
}

.cloud6 {
  width: 260px;
  height: 75px;
  top: 55%;
  right: -10%;
  filter: blur(18px);
  opacity: 0.6;
  animation: floatLeft 26s linear infinite;
}

@keyframes floatRight {
  0%   { transform: translateX(0); }
  100% { transform: translateX(130vw); }
}

@keyframes floatLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-130vw); }
}

/* ===========================
   ROSE PETALS
=========================== */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  opacity: 0.8;
  animation: petalFall linear infinite;
  user-select: none;
}

@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(40px);
    opacity: 0;
  }
}

/* ===========================
   SCREEN 1
=========================== */
.screen1-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 14px;
}

.couple-photo {
  width: 240px;
  max-width: 62vw;
  object-fit: contain;
  animation: coupleFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}

@keyframes coupleFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 5.5vw, 38px);
  font-weight: 700;
  color: #4a3728;
  line-height: 1.4;
}

.ampersand {
  font-size: clamp(28px, 7vw, 48px);
  color: #C9A84C;
  font-style: italic;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 300;
  color: #6b5a4e;
  max-width: 300px;
  line-height: 1.8;
}

.cta-button {
  margin-top: 8px;
  padding: 14px 36px;
  background: #d64f7a;
  border: 2px solid #b8325e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(214, 79, 122, 0.45);
}

.cta-button:hover {
  background: #b8325e;
  box-shadow: 0 6px 24px rgba(214, 79, 122, 0.65);
  transform: translateY(-2px);
}

/* ===========================
   SCREEN 2
=========================== */
.screen2-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

.card-wrapper {
  position: relative;
  display: inline-block;
}

.wedding-card {
  width: 82vw;
  max-width: 360px;
  border-radius: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

.guest-name-overlay {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(13px, 3.5vw, 20px);
  font-weight: 600;
  color: #7a5c3a;
  text-align: center;
  width: 75%;
  pointer-events: none;
}

.rsvp-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.rsvp-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  color: white;
}

.rsvp-btn.attending {
  background: #5db896;
  border: 2px solid #4aa882;
  box-shadow: 0 4px 16px rgba(93, 184, 150, 0.4);
}

.rsvp-btn.attending:hover {
  background: #4aa882;
  transform: translateY(-2px);
}

.rsvp-btn.declined {
  background: #e8799a;
  border: 2px solid #d4607f;
  box-shadow: 0 4px 16px rgba(232, 121, 154, 0.4);
}

.rsvp-btn.declined:hover {
  background: #d4607f;
  transform: translateY(-2px);
}

/* ===========================
   SCREEN 3
=========================== */
.screen3-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 20px;
}

.thankyou-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 700;
  color: #4a3728;
}

.thankyou-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 300;
  color: #6b5a4e;
  max-width: 300px;
  line-height: 1.7;
}

.change-btn {
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #C9A84C;
  color: #4a3728;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.change-btn:hover {
  background: #C9A84C;
  color: white;
}

.exit-btn {
  padding: 12px 28px;
  background: #8B0000;
  border: 2px solid #6b0000;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.exit-btn:hover {
  background: #6b0000;
}