/* Estilos globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER FIXO */
header {
  width: 100%;
  height: 80px;
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 999;
}

/* NAVBAR DENTRO DO HEADER */
.navbar {
  padding: 0 20px;
  background-color: #f5eeec;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  color: #5e1224;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  height: 100%;
}

/* LOGO NA NAVBAR */
.containerlogo img {
  width: auto;
  height: 60px;
}

/* MENU HAMBURGUER BASE - SEMPRE PRESENTE */
.menu-toggle {
  display: none; /* Esconde no desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #5e1224;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* MENU DE NAVEGAÇÃO PRINCIPAL (DESKTOP) */
.containerbotao {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
}

.button {
  text-decoration: none;
  color: #5e1224;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
}

.button:hover {
  transition: 0.4s;
  background-color: #dfc8c2;
  outline: none;
}

/* ÍCONE DE HAMBÚRGUER (ESCONDIDO POR PADRÃO em desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #5e1224;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* SEÇÃO UM (HOME) */
#sectionUm {
  height: 100vh;
  width: 100%;
  background-color: #b48e7b;
  position: relative;
  flex-grow: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.contentSectionUm {
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* CANTOS DECORATIVOS */
.contentcanto {
  position: absolute;
  z-index: 1;
  bottom: 0px;
  left: 0;
}

.contentcanto1 {
  position: absolute;
  z-index: 1;
  top: 80px;
  right: 5px;
}

.wrapper-curriculo-btn {
  padding: 20px 0;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
}

.btn-primary-curriculo {
  padding: 8px 16px;
  color: #5e1224;
  font-weight: 500;
  border: 1px solid #5e1224;
  outline: none;
  border-radius: 7px;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-curriculo:hover {
  transition: 0.4s;
  background-color: #dfc8c2; /* Alinhado com o hover dos botões da navbar */
}

.btn-primary-curriculo img {
  width: 30px;
  height: 30px;
}

/* MODAL - Currículo e Projetos (Ajustado para Visibilidade) */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex; /* Mantenha sempre flex para centralização */
  justify-content: center;
  align-items: center;
  /* Remova padding-top: 50px; daqui para não interferir na centralização */

  visibility: hidden; /* Oculta o modal por padrão */
  opacity: 0; /* Torna o modal transparente por padrão */
  transition: visibility 0.4s, opacity 0.4s; /* Transição suave */
}
/* Classes para controlar a visibilidade do modal via JS */
.modal.show {
  visibility: visible; /* Torna o modal visível */
  opacity: 1; /* Torna o modal opaco */
  /* A animação fadeIn que você já tem deve continuar funcionando */
}
.modal-content {
  /* Usado para o modal de currículo */
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border-radius: 15px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  animation: fadeIn 0.5s;
}

/* Modais de Projetos (novas regras de tamanho e conteúdo) */
.conteudo-modal {
  /* Usado para modais de projeto */
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%; /* Ajustado para 90% em telas menores, limitado por max-width */
  max-width: 600px; /* Reduzido de 800px para 600px */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center; /* Centraliza a imagem e outros elementos */
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* No seu .close-btn e .fechar */
.close-btn {
  color: #aaa;
  /* float: right; <--- REMOVA ESTA LINHA */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1;
}

.fechar {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: #000;
}

/* Nova classe para o botão de fechar dos modais de projeto (usando .fechar no HTML) */
.fechar:hover,
.fechar:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #5e1224;
  color: #f5f5dc;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.download-btn:hover {
  background-color: #7e1a32;
}

/* Estilos para o conteúdo interno do modal de projeto (novo div) */
.modal-conteudo-interno {
  text-align: left; /* Alinha o texto à esquerda dentro do modal */
  color: #000; /* Cor padrão preta para todo o texto dentro deste div */
  padding: 10px; /* Um pouco de padding para o conteúdo interno */
}

/* Estilos para o título h3 dentro do modal */
.modal-conteudo-interno h3 {
  font-size: 1.8rem; /* Ajuste o tamanho da fonte se necessário */
  color: #000; /* Cor preta para o título h3 */
  margin-bottom: 15px; /* Espaço abaixo do título */
  text-align: center; /* Centraliza o título */
}

/* Estilos para a imagem dentro do modal de projeto */
.modal-conteudo-interno .img-modal-projeto {
  max-width: 100%; /* Garante que a imagem não ultrapasse a largura do container */
  height: auto; /* Mantém a proporção da imagem */
  display: block; /* Remove espaços extras abaixo da imagem */
  margin: 15px auto; /* Centraliza a imagem e adiciona margem superior/inferior */
  border-radius: 8px; /* Mantém o arredondamento */
}

/* Estilos para os parágrafos dentro do modal */
.modal-conteudo-interno p {
  font-size: 1rem; /* Ajuste o tamanho da fonte se necessário */
  color: #000; /* Cor preta para os parágrafos */
  line-height: 1.6; /* Espaçamento entre linhas para melhor leitura */
  margin-bottom: 10px; /* Espaço entre parágrafos */
  text-align: justify; /* Justifica o texto para um visual mais limpo */
}

/* Estilo para a tag strong dentro dos parágrafos, para as tecnologias */
.modal-conteudo-interno p strong {
  color: #000; /* Garante que o negrito também seja preto */
}

/* ==================================== */
/* SEÇÃO SOBRE MIM (#sectionDois)     */
/* ==================================== */
.secao-sobre-mim {
  padding: 40px;
  background-color: #f5f5dc;
  color: #f5f5dc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.conteudo-secao-sobre-mim {
  max-width: 1400px;
  width: 100%;
  text-align: center;
  padding-bottom: 20px;
}

.conteudo-secao-sobre-mim h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #874e3c;
  position: relative;
  display: inline-block;
}

.conteudo-secao-sobre-mim h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #874e3c;
  margin: 10px auto 0;
  border-radius: 2px;
}

.detalhes-sobre-mim {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 50px;
  width: 100%;
  margin-top: 20px;
}

.imagem-sobre-mim {
  flex: 1;
  padding: 20px;
  background-color: #874e3c;
  border: 2px solid #f5f5dc;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

.imagem-sobre-mim img {
  width: 100%;
  height: auto;
  max-width: 350px;
  max-height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f5f5dc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.texto-sobre-mim {
  flex: 1;
  padding: 30px;
  background-color: #874e3c;
  border: 2px solid #f5f5dc;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: justify;
}

.texto-sobre-mim p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.frase-impacto {
  text-align: center;
  margin-top: 20px;
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: #f5f5dc;
}

/* ==================================== */
/* SEÇÃO HABILIDADES (#sectionTres)     */
/* ==================================== */
.secao-habilidades {
  padding: 60px 40px;
  background-color: #f5f5dc;
  color: #5e1224;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.conteudo-secao-habilidades {
  max-width: 1400px;
  width: 100%;
  text-align: center;
}

.conteudo-secao-habilidades h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #5e1224;
  position: relative;
  display: inline-block;
}

.conteudo-secao-habilidades h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #5e1224;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* CONTAINER DOS CARDS DE HABILIDADE */
.cards-habilidades-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

/* ESTILO DE CADA CARD DE HABILIDADE */
.card-habilidade {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: 480px; /* Altura fixa conforme você definiu */
  padding: 30px;
  background-color: #b48e7b;
  color: #5e1224;
  border: 3px solid #5e1224;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* EFEITO AO PASSAR O MOUSE (HOVER) */
.card-habilidade:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.card-habilidade h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #5e1224;
  position: relative;
  padding-bottom: 10px;
}

.card-habilidade h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #5e1224;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* CONTAINER DOS ÍCONES DENTRO DO CARD - AGORA COM FLEXBOX */
.icones-habilidade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding-top: 10px;
}

/* ITEM INDIVIDUAL DO ÍCONE */
.icone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 90px;
  max-width: 120px;
  margin-bottom: 10px;
}

.icone-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.icone-item span {
  font-size: 0.9rem;
  color: #5e1224;
  text-align: center;
}

/* --- Seção de Projetos (#sectionQuatro) --- */
#sectionProjetosDesktop {
  padding: 2rem 2rem;
  background-color: #f5f5dc;
  color: #5e1224;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  height: auto;
}

.conteudo-secao-sobre-mim h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #874e3c;
  position: relative;
  display: inline-block;
}

.titulo-secao {
  font-size: 2.8rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  margin-bottom: 10px; /* Espaço entre título e linha */
  color: #5e1224;
}

.titulo-secao::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #5e1224;
  margin: 10px auto 0; /* Espaço entre título e linha */
  border-radius: 2px;
}

/* --- Layout dos Cards --- */
.container-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem; /* Espaço entre os cards */
  margin-top: 2rem; /* Espaço entre a linha e os cards */
  max-width: 1400px;
  width: 100%;
}

/* --- Estilo do Cartão --- */
.cartao {
  width: 320px;
  height: 380px;
  border-radius: 20px;
  background: rgba(223, 200, 194, 0.7); /* Fundo do card com transparência */
  position: relative;
  padding: 1.5rem;
  border: 3px solid #b48e7b;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  /* Removido overflow: hidden; para o botão ficar sobreposto */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.cartao:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border-color: #5e1224;
}

/* --- Conteúdo Interno do Cartão --- */
.detalhes-cartao {
  color: #5e1224;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
  line-height: 1.6;
  text-align: center;
}

.titulo-texto {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 0.2em; /* Espaço entre o título do semestre e o título do projeto */
}

.corpo-texto {
  color: #5e1224; /* Cor do texto padrão do card */
  font-size: 1rem;
}

/* --- Botão do Cartão --- */
.botao-cartao {
  position: absolute;
  left: 50%;
  bottom: -60px; /* Posição inicial: escondido abaixo do card */
  transform: translateX(-50%);
  width: 85%;
  border-radius: 1rem;
  border: none;
  background-color: #5e1224;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  opacity: 0; /* Começa escondido */
  transition: bottom 0.3s ease, opacity 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Efeito de hover para o PRÓPRIO BOTÃO */
.botao-cartao:hover {
  background-color: #7b372e; /* Uma cor um pouco diferente no hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra mais forte no hover */
}

/* Regra para o botão aparecer quando o MOUSE PASSA SOBRE O CARD */
.cartao:hover .botao-cartao {
  bottom: 0; /* Posição final na linha da borda inferior do card */
  opacity: 1; /* Torna o botão visível */
  transform: translate(
    -50%,
    50%
  ); /* Mantém o posicionamento centralizado e "meio para fora" */
}

/* --- Seção de Projetos Swiper (#sectionCinco) --- */
#sectionCinco {
  display: none;
}
.containerbotao a[href="#sectionCinco"] {
  display: none;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5eeec;
  padding: 10px 40px;
  color: #5e1224;
  font-size: 1rem;
  text-align: center;
}

.footer-right img {
  filter: drop-shadow(8px 8px 12px rgba(94, 18, 36, 1));
}

.footer-left img,
.footer-right img {
  height: 40px;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-center p {
  margin: 0;
}

/* ===================== */
/* CSS BASE (sem media queries) */
/* ===================== */

/* Navbar */
.navbar {
  padding: 0 20px;
  background-color: #f5eeec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5e1224;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Logo na navbar */
.containerlogo img {
  width: auto;
  height: 60px;
}

/* Menu hambúrguer - escondido por padrão */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #5e1224;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Links do menu */
.containerbotao {
  display: flex;
  gap: 20px;
}

/* LOGO NA NAVBAR */
.containerlogo img {
  width: auto;
  height: 50px;
}

/* Sobre mim */
.detalhes-sobre-mim {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.imagem-sobre-mim,
.texto-sobre-mim {
  border: 2px solid #5e1224;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.imagem-sobre-mim img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Habilidades */
.cards-habilidades-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-habilidade {
  border: 2px solid #5e1224;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Swiper base - desktop (sem scroll) */
.swiper-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 1rem;
  padding-bottom: 70px;
  box-sizing: border-box;
}

.container-cards.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap; /* Cards ficam na mesma linha, sem quebrar */
  overflow-x: auto; /* Habilita scroll horizontal */
  scroll-snap-type: x mandatory; /* Ativa snap para cards */
  padding: 0 20px; /* Espaçamento lateral */
  gap: 20px;
  -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
  scrollbar-width: none; /* Esconde scrollbar no Firefox */
  -ms-overflow-style: none; /* Esconde scrollbar no IE/Edge */
}

.container-cards.swiper-wrapper::-webkit-scrollbar {
  display: none; /* Esconde scrollbar no Chrome, Safari, Opera */
}

.cartao.swiper-slide {
  flex: 0 0 280px; /* Largura fixa para cada card */
  scroll-snap-align: start; /* Snap no começo do card */
  margin: 0; /* Margem 0 porque já tem gap */
  min-height: 320px;
  background: rgba(223, 200, 194, 0.7);
  border: 3px solid #b48e7b;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  max-width: 280px; /* Limite de largura para garantir responsividade */
}

.cartao.swiper-slide:hover {
  box-shadow: none;
  border-color: #b48e7b;
  transform: none;
}

.detalhes-cartao {
  color: #5e1224;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.titulo-texto {
  margin-top: 0;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 0.2em;
}

.corpo-texto {
  color: #5e1224;
  font-size: 1rem;
}

.botao-cartao {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 95%;
  border-radius: 1rem;
  border: none;
  background-color: #5e1224;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  padding: 1rem 2rem;
  opacity: 0;
  transition: bottom 0.3s ease, opacity 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.botao-cartao:hover {
  background-color: #7b372e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cartao:hover .botao-cartao {
  margin-top: auto;
  align-self: center;
}

/* Botões de navegação */
.swiper-button-prev,
.swiper-button-next {
  position: fixed; /* ou absolute dentro de um container relativo */
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background-color: rgba(94, 18, 36, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Paginação */
.swiper-pagination {
  display: none; /* Oculto por padrão no desktop */
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 10px 0;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(94, 18, 36, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #5e1224;
  transform: scale(1.2);
}

/* ===================== */
/* MEDIA QUERY (max-width: 900px) */
/* ===================== */
@media (max-width: 900px) {
  /* Aqui ficam suas regras originais do @media 900 */

  /* Exemplo para seções 1, 2 e 3 */
  #sectionUm,
  #sectionDois,
  #sectionTres {
    min-height: 600px;
    padding: 40px 20px;
  }

  /* Ocultar cantos decorativos */
  .contentcanto,
  .contentcanto1 {
    display: none;
  }

  /* Ocultar #sectionCinco e link para ele */
  #sectionCinco {
    display: none;
  }
  .containerbotao a[href="#sectionCinco"] {
    display: none;
  }
}

/* ===================== */
/* MEDIA QUERY (max-width: 780px) */
/* ===================== */
@media (max-width: 780px) {
  /* Menu hambúrguer - aparece */
  .menu-toggle {
    display: flex;
  }

  /* Menu links no hamburger - inicialmente escondido */
  .containerbotao {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #f5eeec;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
    padding: 1rem 0;
    z-index: 1000;
  }

  /* Menu aberto */
  .containerbotao.is-active {
    display: flex;
  }

  /* Animação do botão hamburguer */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Link para sectionCinco aparece no menu hamburger */
  .containerbotao a[href="#sectionCinco"] {
    display: inline-flex;
  }

  /* Link para sectionProjetosDesktop no menu (desktop) fica visível para 780 */
  .containerbotao a[href="#sectionProjetosDesktop"] {
    display: inline-flex;
  }

  /* Ajustes nas seções para mobile até 780 */
  #sectionUm,
  #sectionDois,
  #sectionTres,
  #sectionProjetosDesktop /* sectionQuatro */ {
    min-height: 600px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* SectionCinco permanece escondido no 780 */
  #sectionCinco {
    display: none;
  }

  /* Ajustes Sobre Mim */
  .detalhes-sobre-mim {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .imagem-sobre-mim,
  .texto-sobre-mim {
    width: 90%;
  }

  /* Ajustes Habilidades */
  .cards-habilidades-container {
    flex-direction: column;
    align-items: center;
  }
  .card-habilidade {
    width: 90%;
  }

  /* Footer ajustes para 780 */
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ========================== */
/* MEDIA QUERY (max-width: 480px) */
/* ========================== */
@media (max-width: 480px) {
  /* Regras do Menu Hambúrguer */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
    margin-right: 30px;
  }

  .menu-toggle span,
  .menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #5e1224;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-toggle.is-active span:nth-child(1),
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.is-active span:nth-child(2),
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(3),
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Regras dos Links do Menu Mobile */
  .containerbotao {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #f5eeec;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
    padding: 1rem 0;
    z-index: 1000;
  }

  .containerbotao.is-active {
    display: flex;
  }

  /* Regras de Visibilidade das Seções de Projeto */
  #sectionProjetosDesktop {
    display: none; /* Esconde a seção de projetos em grade no mobile */
  }

  .containerbotao a[href="#sectionProjetosDesktop"] {
    display: none; /* Esconde o link para a seção desktop no menu mobile */
  }

  #sectionCinco {
    display: flex; /* Mostra a seção de projetos com carrossel no mobile */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  /* Ajustes para Títulos de Seção no Mobile */
  .titulo-secao {
    padding-top: 2rem;
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  /* Ajustes para as Primeiras Seções */
  #sectionUm,
  #sectionDois,
  #sectionTres {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #sectionUm img {
    max-width: 100%;
    height: auto;
  }

  /* Regras do Contêiner do Swiper */
  .swiper-container {
    position: relative;
    width: 100%;
    max-width: 320px; /* Opcional: para limitar o tamanho máximo do carrossel */
    overflow: hidden;
    margin-top: 1rem;
    padding-bottom: 70px;
    box-sizing: border-box;
  }

  /* Regras do Wrapper dos Cards (no Swiper) */
  .container-cards.swiper-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    scroll-behavior: smooth;
    align-items: center;
  }

  .container-cards.swiper-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Regras de Cada Cartão (Slide do Swiper) */
  .cartao.swiper-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 320px;
    padding: 1.5rem;
    background: rgba(223, 200, 194, 0.7);
    border: 3px solid #b48e7b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
  }

  .cartao.swiper-slide:hover {
    box-shadow: none;
    border-color: #b48e7b;
    transform: none;
  }

  /* Regras de Conteúdo do Card */
  .detalhes-cartao {
    color: #5e1224;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
  }

  .titulo-texto {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 0.2em;
  }

  .corpo-texto {
    color: #5e1224;
    font-size: 1rem;
  }

  /* Regras do Botão do Card (no Swiper) */
  .botao-cartao {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 95%;
    border-radius: 1rem;
    border: none;
    background-color: #5e1224;
    color: #fff;
    font-size: 1rem;
    padding: 1rem 2rem;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .botao-cartao:hover {
    background-color: #7b372e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .cartao:hover .botao-cartao {
    opacity: 1;
    bottom: 20px;
  }

  /* Regras dos Botões de Navegação do Swiper (Mobile) */
  .swiper-button-prev,
  .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(94, 18, 36, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background-color: rgba(94, 18, 36, 0.9);
  }

  .swiper-button-prev {
    left: 5px;
  }

  .swiper-button-next {
    right: 5px;
  }

  /* Paginação do Swiper */
  .swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 10px 0;
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(94, 18, 36, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .swiper-pagination-bullet-active {
    background-color: #5e1224;
    transform: scale(1.2);
  }

  /* Ajustes Finais de Seções no 480px */
  #sectionUm,
  #sectionDois,
  #sectionTres {
    min-height: 500px; /* Mantido do seu código, ajustado para evitar 100vh em todos os lugares se não for necessário */
    padding: 20px 10px;
  }
  /* Remover a duplicação para #sectionProjetosDesktop, já está acima */

  /* Footer para mobile 480px */
  .footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
