* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #120b11;
  color: #fff;
}

body {
  overflow: auto;
}

.screen,
.page-content {
  display: none;
}

.screen.active {
  display: flex;
}

.page-content.active-page {
  display: block;
}

/* Tela inicial */
.home {
  min-height: 100vh;
  background:
    linear-gradient(rgba(253,231,239,.50), rgba(253,231,239,.72)),
    url("../fotos/nos/praia.jpg");
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.home-content {
  width: min(1100px, 94vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.home-text h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: #d94f7d;
  font-weight: 500;
}

.home-text h1 span {
  font-size: 1.2em;
}

.home-text p {
  font-size: clamp(20px, 3vw, 30px);
  margin: 8px 0;
  color: #5c1f35;
}

.heart-line {
  font-size: 50px;
  color: #e46a92;
  margin-bottom: 20px;
}

button {
  border: 0;
  cursor: pointer;
  margin-top: 30px;
  padding: 18px 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e95f8d, #d94f7d);
  color: white;
  font-size: 22px;
  box-shadow: 0 15px 40px rgba(217,79,125,.35);
}

.polaroids {
  position: relative;
  width: 420px;
  height: 520px;
}

.polaroid {
  position: absolute;
  background: white;
  padding: 12px 12px 45px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.polaroid img {
  width: 230px;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #f7cdd9;
}

.p1 { top: 20px; left: 40px; transform: rotate(-7deg); }
.p2 { top: 160px; left: 190px; transform: rotate(8deg); }
.p3 { top: 300px; left: 80px; transform: rotate(-3deg); }

/* Intro */
.intro {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde7ef, #fff5f8);
  color: #5c1f35;
  padding: 28px;
}

.center-card {
  text-align: center;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.5;
}

/* Conteúdo único */
.page-content {
  min-height: 100vh;
  background:
    linear-gradient(rgba(12, 8, 16, .78), rgba(12, 8, 16, .92)),
    url("../fotos/nos/praia.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 34px 18px 70px;
}

.content-title {
  text-align: center;
  font-size: clamp(42px, 9vw, 72px);
  line-height: 1.05;
  color: #ffd1bc;
  font-weight: 400;
  margin: 24px auto 10px;
}

.content-subtitle {
  text-align: center;
  font-size: clamp(19px, 5vw, 26px);
  line-height: 1.35;
  margin: 0 auto 36px;
  max-width: 680px;
}

/* Timeline vertical */
.mobile-timeline {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 0 20px 28px;
}

.mobile-timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ff8fb2, rgba(255,143,178,.6), rgba(255,255,255,.12));
  border-radius: 999px;
}

.mobile-item {
  position: relative;
  margin-bottom: 34px;
}

.mobile-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 18px;
  width: 20px;
  height: 20px;
  background: #ff7fa8;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255,127,168,.9);
  z-index: 2;
}

.mobile-card {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  padding: 18px;
  color: white;
  backdrop-filter: blur(9px);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.mobile-date {
  color: #ff9dbc;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mobile-title {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 14px;
}

.mobile-text {
  font-size: 18px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.mobile-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-photos img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.mobile-photos img:first-child {
  grid-column: span 2;
  height: 240px;
}

.mobile-continue {
  text-align: center;
  color: #ffd1df;
  font-size: 25px;
  margin: 12px 0 45px;
}

/* Galeria */
.section-title {
  max-width: 620px;
  margin: 45px auto 12px;
  font-size: 34px;
  color: #ffb6cf;
}

.section-text {
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 20px;
  line-height: 1.5;
  color: #f8e7ee;
}

.our-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 25px auto 50px;
}

.our-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
}

.our-gallery img:first-child {
  grid-column: span 2;
  height: 260px;
}

/* Carta */
.letter {
  max-width: 620px;
  margin: 50px auto;
  background: rgba(255,255,255,.88);
  color: #6b213d;
  padding: 34px 28px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(217,79,125,.18);
  font-size: 22px;
  line-height: 1.6;
}

.letter h2 {
  color: #d94f7d;
  font-size: 46px;
  margin-top: 0;
}

.signature {
  margin-top: 40px;
  text-align: right;
  font-weight: bold;
}

/* Final */
.final-simple {
  text-align: center;
  max-width: 620px;
  margin: 60px auto 20px;
  padding-bottom: 40px;
}

.big-heart {
  font-size: 90px;
  animation: pulse 1.5s infinite;
}

.final-simple h1 {
  color: #ffb6cf;
  font-size: 42px;
}

.final-simple p {
  font-size: 22px;
  color: #f8e7ee;
}

.final-message {
  margin-top: 34px;
  font-size: 28px;
  font-weight: bold;
  color: #ffb6cf;
}

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

/* Mobile */
@media (max-width: 760px) {
  .home {
    align-items: flex-start;
    padding-top: 70px;
  }

  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .home-text h1 {
    font-size: 48px;
  }

  .home-text p {
    font-size: 21px;
  }

  .polaroids {
    width: 310px;
    height: 330px;
  }

  .polaroid img {
    width: 145px;
    height: 185px;
  }

  .p1 { top: 0; left: 10px; }
  .p2 { top: 80px; left: 145px; }
  .p3 { top: 160px; left: 55px; }

  button {
    font-size: 20px;
    padding: 16px 36px;
  }

  .mobile-card {
    padding: 18px;
  }

  .mobile-title {
    font-size: 28px;
  }

  .mobile-photos img:first-child {
    height: 220px;
  }

  .mobile-photos img {
    height: 145px;
  }

  .letter {
    font-size: 20px;
    padding: 30px 24px;
  }
}

/* Fontes elegantes */
body {
  font-family: 'Poppins', sans-serif;
}

.home-text h1,
.content-title,
.letter h2,
.final-simple h1 {
  font-family: 'Playfair Display', serif;
}

/* Correção do bloco final */
.final-simple {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 70px auto 30px;
  text-align: center;
  clear: both;
}

.final-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 28px;
  margin: 18px auto 28px;
  display: block;
}

.final-simple h1,
.final-simple p,
.final-message {
  text-align: center;
}

@media (max-width: 760px) {
  .final-simple {
    max-width: 100%;
    padding: 0 14px 40px;
  }

  .final-photo {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
  }

  .final-simple h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .final-simple p {
    font-size: 18px;
  }

  .final-message {
    font-size: 24px;
    line-height: 1.25;
  }
}

/* Polaroids flutuando suavemente */
.polaroid {
  animation: floatPolaroid 6s ease-in-out infinite;
}

.p1 {
  animation-delay: 0s;
}

.p2 {
  animation-delay: 1.2s;
}

.p3 {
  animation-delay: 2.4s;
}

@keyframes floatPolaroid {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }
}

/* Fotos surgindo ao rolar */
.mobile-photos img,
.our-gallery img {
  opacity: 0;
  transform: translateY(22px) scale(.96);
  transition: opacity .9s ease, transform .9s ease;
}

.mobile-photos img.reveal,
.our-gallery img.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contorno e contraste da tela inicial */
.home-text h1 {
  color: #d94f7d;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow:
    0 3px 0 rgba(255,255,255,.95),
    0 8px 20px rgba(92,31,53,.25);
}

.home-text p {
  color: #7a2343;
  font-weight: 600;
  text-shadow:
    0 2px 0 rgba(255,255,255,.9),
    0 6px 18px rgba(92,31,53,.22);
}

.heart-line {
  -webkit-text-stroke: 1px #fff;
  text-shadow: 0 5px 16px rgba(92,31,53,.25);
}

.home button {
  border: 3px solid rgba(255,255,255,.95);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(217,79,125,.25),
    0 18px 45px rgba(217,79,125,.45);
}

/* Confetes */
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  opacity: .95;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Ajuste visual: remover contorno pesado */
.home-text h1 {
  -webkit-text-stroke: 0 !important;
  color: #cf4f7b !important;
  text-shadow:
    0 2px 4px rgba(255,255,255,.95),
    0 8px 20px rgba(80,20,45,.22) !important;
}

.home-text p {
  color: #6f2340 !important;
  text-shadow:
    0 1px 3px rgba(255,255,255,.9),
    0 5px 14px rgba(80,20,45,.16) !important;
}

.heart-line {
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 3px 10px rgba(255,255,255,.8) !important;
}

/* Confete mais discreto */
.confetti {
  width: 7px !important;
  height: 10px !important;
  opacity: .75 !important;
}

/* Segunda tela mais elegante */
.intro {
  background:
    radial-gradient(circle at top, rgba(255,255,255,.95), rgba(253,231,239,.96) 45%, rgba(248,203,218,.92));
}

.center-card {
  max-width: 680px;
  padding: 30px 26px;
  font-family: 'Playfair Display', serif;
  color: #6b213d;
}

.center-card p {
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.18;
  margin: 28px 0;
  text-shadow:
    0 2px 0 rgba(255,255,255,.9),
    0 8px 24px rgba(107,33,61,.16);
}

.center-card h2 {
  font-size: clamp(48px, 11vw, 76px);
  line-height: 1.05;
  margin-top: 42px;
  color: #a92350;
  -webkit-text-stroke: 1.2px #fff;
  text-shadow:
    0 4px 0 rgba(255,255,255,.92),
    0 12px 28px rgba(169,35,80,.28);
}

.gift-icon {
  font-size: 82px;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 18px rgba(169,35,80,.22));
}

.center-card p::after {
  content: "  ♡";
  color: #e95f8d;
  font-size: .6em;
}

.center-card p + p::before {
  content: "♡  ";
  color: #e95f8d;
  font-size: .6em;
}

.intro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #e95f8d;
  font-size: 24px;
  margin: 22px auto 6px;
}

.intro-divider::before,
.intro-divider::after {
  content: "";
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e95f8d, transparent);
}

/* Ajuste segunda tela para caber no celular */
.intro {
  min-height: 100vh;
  overflow: hidden;
  padding: 18px 22px;
}

.center-card {
  max-width: 620px;
  padding: 10px 18px;
}

.gift-icon {
  font-size: 58px !important;
  margin-bottom: 18px !important;
}

.center-card p {
  font-size: clamp(30px, 7vw, 44px) !important;
  line-height: 1.12 !important;
  margin: 18px 0 !important;
}

.intro-divider {
  margin: 14px auto 4px !important;
}

.center-card h2 {
  font-size: clamp(40px, 9vw, 58px) !important;
  line-height: 1.02 !important;
  margin-top: 24px !important;
  color: #8f294c !important;
  -webkit-text-stroke: 0 !important;
  text-shadow:
    0 2px 0 rgba(255,255,255,.9),
    0 8px 22px rgba(143,41,76,.22) !important;
}

@media (max-height: 760px) {
  .gift-icon {
    font-size: 48px !important;
    margin-bottom: 10px !important;
  }

  .center-card p {
    font-size: 30px !important;
    margin: 14px 0 !important;
  }

  .center-card h2 {
    font-size: 40px !important;
    margin-top: 16px !important;
  }
}
