html {
  scroll-behavior: smooth;
}

h2,
h3 {
  font-size: 2rem; /* maior que parágrafo */
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-align: center;
}

p {
  font-size: 1rem; /* legível */
  line-height: 1.6;
  max-width: 700px; /* evita linhas muito longas */
  margin: 0 auto 1.5rem auto; /* centralizado horizontalmente */
  text-align: center; /* mantém alinhamento minimalista */
}

.portfolio-instruction {
  font-size: 1.1rem;
  font-weight: 300; /* leve e elegante */
  letter-spacing: 0.5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* -------------------------- ANIMAÇÕES ---------------------------  */

@keyframes slideLeft {
  to {
    left: 0; /* move para a posição superior 0 (dentro do contêiner) */
  }
}

@keyframes sliderBlur {
  to {
    filter: blur(0); /* move para a posição superior 0 (dentro do contêiner) */
  }
}

@keyframes downUp {
  0% {
    transform: translateY(
      0
    ); /* move para a posição superior 0 (dentro do contêiner) */
  }
  100% {
    transform: translateY(30px);
  }
}

/* ---------------------------------- CLASSES DE ANIMAÇÕES  --------------------------------*/

.slider-left {
  opacity: 0;
  filter: blur(15px);
  transition: all 1s;
  transform: translateX(-20px);
}

.slider-right {
  opacity: 0;
  filter: blur(15px);
  transition: all 1s;
  transform: translateX(-20px);
}

.show {
  opacity: 1;
  transition: all 2s;
  filter: blur(0);
  transform: translateX(0);
}

body {
  background-color: #000;
  height: 100%;
  max-width: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}
/*------------------------------------- TITULO PRINCIMPAL DA PRIMEIRA SESSÃO  -----------------------------------*/

.text-white h1 {
  font-size: 3rem; /* grande e chamativo */
  font-weight: 700; /* forte, impacto */
  letter-spacing: 2px; /* “respira” visualmente */
  text-transform: uppercase; /* destaque moderno */
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* profundidade */
}

.text-white h4 {
  font-size: 1.5rem;
  font-weight: 300; /* mais leve que o h1 */
  letter-spacing: 1px;
  text-align: center;
  font-style: italic; /* contraste elegante */
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9); /* leve contraste */
}

/* ----------------------------------------- AREA VOLTADA PARA FICHA TECNICA  -------------------------------------*/

.segunda-pagina {
  height: 80vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  margin-top: 40px;
}

.segunda-pagina > h3 {
  color: #f8f8f8;
  font-size: 3rem;
  text-align: center;
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  margin-bottom: 30px;
}

.segunda-pagina p {
  font-size: 1rem;
  color: #c5c2c2;
  text-align: center;
}

.segunda-pagina p span {
  font-weight: bold;
  font-size: 1rem;
  color: #f9f9f9;
}

/* ------------------------------------- AREA VOLTADA PARA APRESENTÇÃO DA ORDEM */

.carousel-caption {
  background: rgba(0, 0, 0, 0.4); /* preto com transparência */
  padding: 30px;
  margin-top: 30px;
  border-radius: 10px;
}

#galeria {
  padding-top: 100px;
}

/* --------------------------------------------------AREA VOLTADA PARA O PORTIFOLIO  ----------------------------------------------*/
/* Título */
.titulo-portfolio {
  text-align: center;
  margin-bottom: 60px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #f9f9f9;
}

/* Card do portfólio */
.card-portfolio {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-portfolio img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: 0.4s;
}

/* Overlay - Agora visível por padrão */
.overlay {
  position: absolute;
  inset: 0;
  /* Fundo levemente escurecido para dar leitura ao texto */
  background: rgba(0, 0, 0, 0.4);
  opacity: 1; /* Texto e fundo aparecem sempre */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.4s;
  padding: 20px;
  color: #f9f9f9;
  z-index: 2;
}

.overlay h5 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
  transition: 0.4s; /* Suaviza o movimento do texto no hover */
}

/* Efeito ao passar o mouse */
.card-portfolio:hover img {
  transform: scale(1.1); /* Aumenta um pouco mais a foto */
  filter: brightness(0.7); /* Escurece a foto no fundo ao focar */
}

.card-portfolio:hover .overlay {
  background: rgba(
    0,
    0,
    0,
    0.6
  ); /* Escurece o overlay no hover para destacar o texto */
}

.card-portfolio:hover h5 {
  transform: scale(1.1); /* O texto dá um leve pulo para frente */
  color: #fff;
}

/* --------------------------------------------------- TUDO QUE ENVOLVE A TAG DETAILS E SUMMARY  */

.indicador-scroll {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 40px;
  animation: bounce 2s infinite;
  display: none;
}

.indicador-scroll h4 {
  font-size: 1.3rem;
  color: #c5c2c2;
}

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

/* -------------------------------------------------------------------AREA DOS TERMOS DE USO --------------------  */

/* ------------------------------------------------ AJUSTES PARA O RESPONSIVO */

@media (min-width: 600px) and (max-width: 800px) {
  /* Ajusta o menu colapsado */
  .navbar-collapse.show {
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1100;
  }

  /* Alinhar os links centralizados */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link:hover {
    color: #ffcc00;
  }

  .navbar-nav .nav-link.active {
    color: white !important;
  }

  /* Corrigir o z-index do menu */
  .navbar-collapse {
    position: relative;
    z-index: 1050;
    padding: 0;
    margin: 0;
  }

  /* Adicionar um background para o menu dropdown */
  .navbar-collapse {
    background-color: white;
  }

  .nav-link {
    text-align: center;
  }

  .cards {
    display: block !important;
    flex-direction: column !important;
    margin: 0 auto;
  }

  .cards-item {
    margin: 0 auto;
  }

  .width-img {
    width: 100% !important;
  }

  footer {
    height: 350px;
  }
}

@media (max-width: 600px) {
  /* AJUSTANDO OS BUTÕES DE MARCAÇÃO DO CAROUSEL PARA MOBILE */
  .carousel-indicators {
    bottom: -40px; /* mais afastado da imagem */
  }

  /* Ajusta o menu colapsado */
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1100;
  }

  /* Alinhar os links centralizados */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    color: white;
  }

  .navbar-nav .nav-link:hover {
    color: #ffcc00;
  }

  .navbar-nav .nav-link.active {
    color: white !important;
  }

  /* Corrigir o z-index do menu */
  .navbar-collapse {
    position: relative;
    z-index: 1050;
    padding: 0;
    margin: 0;
  }

  /* Adicionar um background para o menu dropdown */
  .navbar-collapse {
    background-color: white;
  }

  /* Garantir alinhamento correto do menu */
  .nav-link {
    text-align: center;
  }

  .cards {
    display: block !important;
    flex-direction: column !important;
    margin: 0 auto;
  }

  .cards-item {
    margin: 0 auto;
  }

  .width-img {
    width: 100% !important;
  }

  .descktop {
    display: none;
  }

  .primeira-pagina .mobile {
    display: block;
    margin-top: 0;
    padding-top: 50px;
  }

  #galeria {
    padding-top: 80px;
  }

  #primeira-sessao {
    padding-top: 80px;
  }

  #segunda-sessao {
    padding-top: 80px;
  }

  .realizadores p {
    font-size: 0.8rem;
  }

  .segunda-pagina {
    margin-bottom: 100px;
  }

  .segunda-pagina p {
    font-size: 1.1rem;
  }

  .segunda-pagina p span {
    font-size: 1.1rem;
  }

  .sequencia p {
    font-size: 0.9rem;
  }

  footer {
    height: 300px;
  }

  footer .logos {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  footer .logos .logocia img {
    width: 60px;
    border-radius: 0;
  }

  .logocia {
    text-align: center;
    margin-bottom: 20px;
  }

  footer .logos .midias a {
    font-size: 1.5rem;
    margin-inline: 10px;
  }

  hr {
    margin-top: 15px;
  }

  footer .logos .midias {
    display: flex;
    width: 300px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }

  footer .logos .realizadores {
    margin-top: 0px;
    width: 200px;
  }

  footer .logos .realizadores img {
    width: 80px;
    margin-top: 0px;
  }

  hr {
    margin-bottom: 0px;
  }

  footer p {
    font-size: 0.7rem;
    margin-top: 15px;
  }

  footer p a {
    color: #f9f9f9;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8rem;
    transition: ease-in-out 1s;
  }

  footer p a:hover {
    text-decoration: underline;
  }
}

/* ----------------------------------------- RESPONSIVIDADE PARA DISPOSITIVOS COM LARGURA DE 300PX E ALTURA DE 568PX  */

@media (min-width: 300px) and (max-width: 568px) {
  /* Corrigir o z-index do menu */
  /* Estilo do menu quando expande */
  .navbar-collapse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  /* Certificando-se que o botão de hambúrguer funcione */
  .navbar-toggler {
    z-index: 1060;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    color: white;
  }

  .navbar-nav .nav-link:hover {
    color: #ffcc00;
  }

  .navbar-nav .nav-link.active {
    color: white !important;
  }

  /* Garantir alinhamento correto do menu */
  .nav-link {
    text-align: center;
  }

  .mobile-bg {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center;
    height: 100vh;
  }

  .cards {
    display: block !important;
    flex-direction: column !important;
    margin: 0 auto;
  }

  .cards-item {
    margin: 0 auto;
  }

  .width-img {
    width: 100% !important;
  }

  .segunda-pagina {
    height: 80vh;
  }

  .segunda-pagina > h3 {
    font-size: 2rem;
  }

  .segunda-pagina p {
    font-size: 0.9rem;
    color: #c5c2c2;
  }

  .segunda-pagina p span {
    font-size: 0.9rem;
  }

  .sequencia p {
    font-size: 0.9rem;
  }

  .indicador-scroll {
    display: block;
  }
}
