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

html,
body {
  overflow-x: hidden;
}

/* =====================================================
   BASE DO SITE
===================================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  background: #4b1024;
  padding: 4rem 0;
}

/* =====================================================
   BOTÃO FIXO
===================================================== */
.btn-voltar-fixo {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #ffb6c1;
  color: #8b0000;
  font-weight: bold;
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  text-decoration: none;
  z-index: 1000;
}

/* =====================================================
   PADRÃO VISUAL DOS CONTAINERS
   (não une containers, apenas padroniza tamanho)
===================================================== */
.box-2,
.trabalho-parto1,
.trabalho-parto2 {
  width: 90%;
  max-width: 1200px;
  margin: 1rem auto;
  border-radius: 20px;
}

/* =====================================================
   HEADER / SOBRE MIM
===================================================== */
header {
  background: linear-gradient(to right, #ffb6c1, #ffe4e1);
  padding: 3rem 0;
}

/* Alinha o conteúdo do header ao padrão dos outros */
.sobre-mim {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.bloco-nathalia {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fdecec;
  border-radius: 20px;
  padding: 40px;
}

/* Imagem */
.lado-imagem {
  flex: 0 0 320px;
}

.imagem-redonda {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Texto */
.lado-texto {
  flex: 1;
}

.lado-texto h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #4b1024;
}

.texto-topo {
  margin-bottom: 20px;
}

.sobre-mim p,
.lado-texto p,
.conteudo-lateral p,
.conteudo-trabalho p {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #070707;
}

/* =====================================================
   ALTERNÂNCIA DE CONTAINERS
===================================================== */
.box-2 .conteudo-lateral,
.trabalho-parto1 .conteudo-trabalho,
.trabalho-parto2 .conteudo-trabalho {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Alternar automaticamente */
.box-2 .conteudo-lateral:nth-child(odd),
.trabalho-parto1 .conteudo-trabalho:nth-child(odd),
.trabalho-parto2 .conteudo-trabalho:nth-child(odd) {
  flex-direction: row-reverse;
}

.box-2 .conteudo-lateral img,
.trabalho-parto1 img,
.trabalho-parto2 img {
  width: 360px;
  border-radius: 12px;
}

/* =====================================================
   BOX 2
===================================================== */
.box-2 {
  background-color: #fff0f5;
  padding: 2rem;
}

.box-2 h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.conteudo-lateral {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* <-- INVERTE: imagem esquerda / texto direita */
}

.conteudo-lateral img {
  width: 320px;
  border-radius: 12px;
}

/* =====================================================
   TRABALHOS DE PARTO (1 E 2)
===================================================== */
.trabalho-parto1,
.trabalho-parto2 {
  background-color: #fff0f5;
  padding: 2rem;
}

.trabalho-parto1 .conteudo-trabalho,
.trabalho-parto2 .conteudo-trabalho {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.trabalho-parto1 img,
.trabalho-parto2 img {
  width: 360px;
  border-radius: 12px;
}

/* =====================================================
   DIFERENCIAIS / CARROSSEL

 /* Sessão / Hero */
.hero-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Wrapper */
.carousel-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Área do carrossel */
.carousel-3d {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Cards */
.card {
  position: absolute;
  width: 260px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estados visíveis */
.card.center,
.card.left,
.card.right {
  pointer-events: auto;
}

.card.center {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
}

.card.right {
  transform: translateX(260px) scale(0.85);
  z-index: 2;
  opacity: 0.6;
}

.card.left {
  transform: translateX(-260px) scale(0.85);
  z-index: 1;
  opacity: 0.6;
}

/* Estado oculto controlado */
.card.hidden {
  transform: translateX(0) scale(0.7);
  opacity: 0;
}

/* Bolinhas */
.carousel-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
}

.dot.active {
  background: #400c0f;
}

/* =====================================================
   ANIMAÇÕES SCROLL REVEAL
/* ================= SCROLL REVEAL PROGRESSIVO ================= */
/* ================= SCROLL ANIMATION ================= */

.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: transform, opacity;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Direções */
.fade-left {
  transform: translateX(-60px);
}

.fade-right {
  transform: translateX(60px);
}

/* Imagens */
.animate img {
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.animate.visible img {
  transform: scale(1);
}

.animate img:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Seções */
.animate-section {
  margin-bottom: 4rem;
}

footer {
  background: #4b1024;
  padding: 20px 0;
  text-align: center;
  color: white;
}

/* =====================================================
   ATÉ 1200px
===================================================== */
@media (max-width: 1200px) {
  .bloco-nathalia {
    gap: 32px;
    padding: 32px;
  }

  .lado-texto h2 {
    font-size: 2.2rem;
  }

  .card {
    width: 240px;
    height: 300px;
  }

  .card.right {
    transform: translateX(230px) scale(0.85);
  }

  .card.left {
    transform: translateX(-230px) scale(0.85);
  }
}

/* =====================================================
   ATÉ 1024px (TABLETS GRANDES)
===================================================== */
@media (max-width: 1024px) {
  .bloco-nathalia {
    flex-direction: column;
    text-align: center;
  }

  .lado-imagem {
    flex: none;
    width: 300px;
  }

  .conteudo-lateral,
  .trabalho-parto1 .conteudo-trabalho,
  .trabalho-parto2 .conteudo-trabalho {
    justify-content: center;
    text-align: center;
  }

  .carousel-3d {
    height: 320px;
  }
}

/* =====================================================
   ATÉ 992px (TABLETS)
===================================================== */
@media (max-width: 992px) {
  .lado-texto h2 {
    font-size: 2rem;
  }

  .sobre-mim p {
    font-size: 1rem;
  }

  .trabalho-parto1 img,
  .trabalho-parto2 img,
  .conteudo-lateral img {
    width: 300px;
  }

  .card {
    width: 220px;
    height: 280px;
  }

  .card.right {
    transform: translateX(210px) scale(0.85);
  }

  .card.left {
    transform: translateX(-210px) scale(0.85);
  }
}

/* =====================================================
   ATÉ 768px (TABLETS / MOBILE GRANDE)
===================================================== */
@media (max-width: 768px) {
  .btn-voltar-fixo {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .bloco-nathalia {
    padding: 24px;
  }

  .lado-imagem {
    width: 260px;
  }

  .carousel-3d {
    height: 300px;
  }

  .card {
    width: 200px;
    height: 260px;
  }

  .card.right {
    transform: translateX(180px) scale(0.8);
  }

  .card.left {
    transform: translateX(-180px) scale(0.8);
  }
}

/* =====================================================
   ATÉ 480px (RESPONSIVO MOBILE)
===================================================== */
@media (max-width: 480px) {

  /* RESET APENAS DE TEXTO (NÃO MUDA LAYOUT) */
  .bloco-nathalia p,
  .box-2 p,
  .trabalho-parto1 p,
  .trabalho-parto2 p,
  .conteudo-lateral p {
    margin: 0;
    padding: 0;
  }

  /* espaçamento geral */
  main {
    margin: 0;
    padding: 5rem 0;
  }

  /* container principal */
  .bloco-nathalia {
    width: 100%;
    padding: 1rem;
    margin: 0.1rem auto -0.9rem;
    border-radius: 14px;
  }

  /* containers secundários */
  .box-2,
  .trabalho-parto1,
  .trabalho-parto2 {
    width: 90%;
    padding: 1rem;
    margin: 2.5rem auto 1.2rem;
    border-radius: 14px;
  }

  /* sobre mim */
  .lado-imagem {
    flex: none;
    width: 100%;
  }

  .imagem-redonda {
    width: 90%;
    height: auto;
  }

  .lado-texto h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .sobre-mim p {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 700;
    text-align: justify;
  }

  /* alinhamento containers de conteúdo */
  .conteudo-lateral,
  .trabalho-parto1 .conteudo-trabalho,
  .trabalho-parto2 .conteudo-trabalho {
    flex-direction: column !important;
    gap: 1rem;
    align-items: center;
  }

  /* imagens internas */
  .box-2 .conteudo-lateral img,
  .trabalho-parto1 img,
  .trabalho-parto2 img {
    width: 250px;
    height: 200px;
    border-radius: 12px;
  }

  /* textos internos */
  .trabalho-parto1 p,
  .trabalho-parto2 p,
  .conteudo-lateral p {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 700;
    text-align: justify;
  }

  /* =====================================================
     CARROSSEL 3D MOBILE
  ====================================================== */
  .carousel-wrapper {
    width: 90%;
    margin-top: 2.4rem;
  }

  .carousel-3d {
    height: 220px;
  }

  .card {
    width: 220px;
    height: 200px;
  }

  .card.left,
  .card.right {
    opacity: 0;
    pointer-events: none;
  }

  .carousel-dots {
    margin-top: 10px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }
}
