* {
  max-width: 100%;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #cfe2f3;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25%
    ),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
  background-size: 20px 20px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
  padding: 20px 0;
  animation: fadeIn 0.6s ease-in-out;
}

/* HEADER */

.container-div-helper-img {
  float: right;
  justify-content: end;
  position: relative;
  z-index: 9999;
}

.help-img {
  width: 1.5em;
  position: relative;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.help-img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.header-pmsjc {
  background: linear-gradient(180deg, #003366 0%, #cfe2f3 100%);
  color: #fff;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between; /* VOLTA para space-between */
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease forwards;
}

.header-pmsjc::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-25deg);
  animation: shine 2s forwards;
  pointer-events: none;
}

.header-pmsjc .header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centraliza o texto */
  gap: 10px;
  text-align: center; /* Centraliza o texto */
  flex: 1; /* ADICIONE: faz o texto ocupar o espaço do meio */
}

.header-pmsjc h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  color: #fff;
}

.header-pmsjc p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Container dos botões */
.buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5em;
  gap: 20px;
}

/* Grupo de botões à esquerda */
.buttons-left {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Ajuste no dropdown para remover margin extra */
.dropdown {
  margin: 0;
}

/* Ajuste no botão sobre */
.btn-sobre {
  margin: 0;
}

/* Responsividade */
@media (max-width: 992px) {
  .buttons-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .buttons-left {
    flex-direction: column;
  }
  
  .dropdown,
  .btn-sobre {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .buttons-left {
    gap: 10px;
  }
}

/* SECTIONS */
main section {
  background-color: #fff;
  padding: 30px;
  margin: 20px auto;
  border-radius: 15px;
  max-width: 900px;
  transition: all 0.3s ease;
}

main section:hover {
  transform: translateY(-5px);
}

/* PROGRESS BARS */
.progress {
  height: 28px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: #ddd;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.6s ease, color 0.3s ease;
  white-space: nowrap;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, #002766, #004d9d, #b9dbff);
  background-size: 200% 100%;
  animation: gradientBar 3s linear infinite;
}

.progress-bar.short {
  color: #fff;
}

@keyframes gradientBar {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.progress:hover {
  transform: scale(1.02);
  transition: transform 0.3s;
}

/* === CARDS RESPONSIVOS === */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  justify-content: center;
  align-items: stretch;
  padding: 0 20px;
  margin: 10px auto 0;
  max-width: 1400px;
}

.card-stat {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 220px;
  background-color: #fff;
  text-align: center;
  color: #222;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.card-stat:nth-child(1) {
  animation-delay: 0s;
}
.card-stat:nth-child(2) {
  animation-delay: 0.1s;
}
.card-stat:nth-child(3) {
  animation-delay: 0.2s;
}

.card-stat:hover {
  transform: translateY(-5px) scale(1.05);
}

.card-stat h4 {
  font-size: 1.6rem;
  color: #004d9d;
  margin: 0 0 5px 0;
}

@media (max-width: 992px) {
  .card-stat {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .stats-cards {
    flex-direction: column;
    align-items: center;
  }

  .card-stat {
    flex: 1 1 100%;
    width: 90%;
    max-width: 380px;
    min-width: unset;
    margin: 0 auto;
  }
}

/* Botões sociais dentro dos cards */
.card-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-social:hover {
  transform: translateY(-3px) scale(1.1);
}

.btn-linkedin {
  background: linear-gradient(135deg, #0077b5, #005582);
}

.btn-linkedin:hover {
  background: linear-gradient(135deg, #005582, #003d5c);
}

.btn-github {
  background: linear-gradient(135deg, #333, #24292e);
}

.btn-github:hover {
  background: linear-gradient(135deg, #24292e, #1a1d21);
}

/* Botão portfólio retangular */
.btn-portfolio {
  width: auto;
  height: auto;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg,  #2d9bd6, #036fa8);
  gap: 6px;
  color: #fffbfb;
}

/* === FIM DOS CARDS === */

.graphic-container {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  max-width: 88%;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  border: 1px solid rgba(0, 77, 157, 0.2);
  background: linear-gradient(135deg, #e3f2fb 0%, #ffffff 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
}

.graphic-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  opacity: 0.08;
  pointer-events: none;
  border-radius: 25px;
  transition: opacity 0.3s ease, background 0.5s ease;
}

.graphic-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-25deg);
  transition: left 0.5s;
}

.graphic-container:hover::after {
  left: 150%;
}

.graphic-container:hover::before {
  opacity: 0.15;
}

#grafico-iframe {
  border-radius: 15px;
  overflow: hidden;
  background: transparent;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* TOOLTIP */
.tooltip-custom {
  position: fixed;
  background: linear-gradient(135deg, #004d9d, #b9dbff);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  transform: translateY(0);
}

/* MENU DROPDOWN ESTILIZADO */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 0 0 1em 1.2em;
  z-index: 1000;
}

/* Botão principal */
.dropdown button {
  background: linear-gradient(90deg, #004d9d, #0066cc);
  color: #fff;
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown button:hover {
  background: linear-gradient(90deg, #005bb5, #004d9d);
}

.dropdown button::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  transition: transform 0.3s ease;
}

.dropdown:hover button::after {
  transform: rotate(180deg);
}

.dropdown .content {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeInDropdown 0.3s ease forwards;
  z-index: 1000;
}

/* Mostra o dropdown ao passar o mouse OU quando tem a classe active */
.dropdown:hover .content {
  display: block;
}

.dropdown .content a {
  display: block;
  padding: 0.9em 1.2em;
  color: #004d9d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.dropdown .content a:hover {
  background: linear-gradient(90deg, #e3f2fb, #b9dbff);
  color: #002b66;
  padding-left: 1.6em;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 💫 ANIMAÇÕES DOS ÍCONES */
.icon-animated {
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.icon-animated:hover {
  transform: scale(1.15);
  color: #007bff;
  text-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* 🫧 PULSE SUTIL PARA ÍCONES IMPORTANTES */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2.5s infinite;
}

/* EFEITO FLUTUANTE MAIS LENTO */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* BOTÃO VOLTAR AO TOPO */
.btn-voltar-topo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: linear-gradient(90deg, #004d9d, #0066cc);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-voltar-topo:hover {
  background: linear-gradient(90deg, #005bb5, #004d9d);
  transform: translateY(-2px) scale(1.05);
}

.btn-voltar-topo:active {
  transform: translateY(0);
}

.btn-voltar-topo::before {
  content: "";
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #fff;
}

.voltar-container {
  text-align: right;
  margin-right: 30px;
}

/* FOOTER */
.footer-pmsjc {
  background: linear-gradient(180deg, #cfe2f3 1%, #003366);
  color: #fff;
  padding: 18px 0;
  margin-top: 1.5em;
  font-weight: 600;
  animation: fadeIn 1s ease forwards;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* <-- garante espaçamento entre ícone e texto */
  font-size: 1rem;
}

/* Link e ícone com comportamento uniforme */
.footer-link,
.footer-pmsjc i {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
}

/* Hover com a mesma cor e comportamento */
.footer-link:hover,
.footer-pmsjc i:hover {
  color: #0b1e33; /* azul escuro do hover dos ícones */
  transform: translateY(-2px) scale(1.05);
  text-decoration: none;
}

/* Divisor bonito */
.divider {
  opacity: 0.6;
  margin: 0 8px;
  user-select: none;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

@keyframes fadeInTooltip {
  to {
    opacity: 1;
  }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .header-pmsjc {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .header-pmsjc img.logo {
    margin-bottom: 15px;
    height: 60px;
  }

  #bandeira {
    margin-top: 10px;
  }

  .header-pmsjc h1 {
    font-size: 1.5rem;
  }
  .header-pmsjc p {
    font-size: 1rem;
  }
  .header-pmsjc .header-text {
    align-items: center;
    gap: 5px;
  }

   main section {
    padding: 15px 10px;
    margin: 15px;
  }
  .progress {
    height: 22px;
  }

  .btn-voltar-topo {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  .footer-pmsjc {
    flex-direction: column;
    font-size: 0.85rem;
    gap: 5px;
  }
}

.btn-sobre {
  padding: 10px 18px;
  background: linear-gradient(90deg, #004d9d, #0066cc);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-sobre:hover {
  background: linear-gradient(135deg, #0d4d7f, #0a60a8);
  transform: translateY(-2px);
}

.btn-sobre i {
  margin-right: 6px;
}

/* === PADRÃO FINAL DOS CARDS DO SOBRE === */
.card-stat {
  overflow: hidden; /* garante corte limpo */
}

.card-stat img {
  display: block;
  margin: 0 auto 10px auto;
  width: 120px;
  height: 120px
  object-fit: cover;
  object-position: center;
}

/* === AJUSTES ESPECÍFICOS PARA PÁGINA SOBRE NÓS === */
/* IMPORTANTE: Adicione class="page-sobre-nos" na tag <body> do sobre.html */

/* Aplica regras APENAS quando body tem a classe page-sobre-nos */
body.page-sobre-nos {
  overflow: hidden; /* Remove TODOS os scrolls */
  height: 100vh;
}

body.page-sobre-nos .page-wrapper {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* HEADER - Mantém tamanho original */
body.page-sobre-nos .header-pmsjc {
  padding: 30px 40px; /* VOLTA AO ORIGINAL */
}

body.page-sobre-nos .header-pmsjc img {
  width: 80px; /* VOLTA AO ORIGINAL */
  height: auto;
}

body.page-sobre-nos .header-pmsjc h1 {
  font-size: 2rem; /* VOLTA AO ORIGINAL */
  margin: 0;
}

body.page-sobre-nos .header-pmsjc p {
  font-size: 1.1rem; /* VOLTA AO ORIGINAL */
  margin: 0;
}

/* Main com posicionamento especial */
body.page-sobre-nos main {
  flex: 1;
  padding: 0;
  overflow: hidden;
  animation: fadeIn 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  margin: -40px 40px 0;
  position: relative;
  z-index: 10;
}

/* FOOTER COMPACTO */
body.page-sobre-nos .footer-pmsjc {
  padding: 12px 0;
  font-size: 0.9rem;
  margin-top: 0;
}

/* Botão voltar - posicionamento absoluto */
body.page-sobre-nos .voltar-container {
  position: absolute;
  top: -50px; /* POSICIONA NO HEADER */
  right: 30px;
  margin: 0;
  z-index: 20;
}

body.page-sobre-nos .btn-sobre {
  padding: 10px 18px;
  font-size: 1rem;
}

/* Container da seção "Sobre o Projeto" - GRID COM 2 COLUNAS */
body.page-sobre-nos main section {
  background-color: #fff;
  padding: 5px 20px;
  margin: 20px 10px 10px 5px;
  border-radius: 15px;
  max-width: 1100px;
  transition: all 0.3s ease;
  
  /* Grid com 2 colunas */
  display: grid;
  grid-template-columns: auto 1fr; /* Coluna 1 ajusta ao conteúdo, Coluna 2 ocupa o resto */
  gap: 30px;
  align-items: center;
}

body.page-sobre-nos main section:hover {
  transform: none;
}

/* Título "Sobre o Projeto" - COLUNA 1 (ESQUERDA) */
body.page-sobre-nos .text-pmsjc {
  color: #004d9d;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap; /* Mantém em linha única ou quebra naturalmente */
}

/* === CARDS DOS INTEGRANTES - ALINHADOS E RESPONSIVOS === */
body.page-sobre-nos .stats-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 colunas fixas */
  gap: 18px;
  justify-content: center;
  align-items: start;
  margin-top: -15px;
  padding: 0 20px;
  text-align: center;
  max-width: 1400px;
  flex: 1;
}

body.page-sobre-nos .card-stat {
  background-color: #fff;
  text-align: center;
  color: #222;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.page-sobre-nos .card-stat:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Imagens dos cards - padronizadas */
body.page-sobre-nos .card-stat img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  margin-bottom: 10px;
}

body.page-sobre-nos .card-stat h4 {
  font-size: 1.1rem;
  color: #004d9d;
  margin: 8px 0 4px 0;
  font-weight: 700;
  line-height: 1.3;
}

/* === CARD SIMPLES E FUNCIONAL === */
.card-stat {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center; /* CENTRALIZA TUDO */
}

/* Imagem */
.card-stat img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Nome */
.card-stat h4 {
  margin: 8px 0 4px;
  font-size: 1.1rem;
  color: #004d9d;
}

/* Cargo */
.card-stat p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* Botões sociais */
body.page-sobre-nos .card-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

body.page-sobre-nos .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

body.page-sobre-nos .btn-social:hover {
  transform: translateY(-3px) scale(1.1);
}

body.page-sobre-nos .btn-linkedin {
  background: linear-gradient(135deg, #0077b5, #005582);
}

body.page-sobre-nos .btn-linkedin:hover {
  background: linear-gradient(135deg, #005582, #003d5c);
}

body.page-sobre-nos .btn-github {
  background: linear-gradient(135deg, #333, #24292e);
}

body.page-sobre-nos .btn-github:hover {
  background: linear-gradient(135deg, #24292e, #1a1d21);
}

body.page-sobre-nos .btn-portfolio {
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2d9bd6, #036fa8);
  color: #fff;
}

body.page-sobre-nos .btn-portfolio:hover {
  background: linear-gradient(135deg, #036fa8, #025278);
}

/* === RESPONSIVIDADE === */
@media (max-width: 1400px) {
  body.page-sobre-nos .stats-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1200px) {
  body.page-sobre-nos .stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  body.page-sobre-nos .stats-cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  body.page-sobre-nos .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body.page-sobre-nos .card-stat img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  body.page-sobre-nos .stats-cards {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 20px auto;
  }
  
  body.page-sobre-nos main section {
    margin: 15px;
    padding: 15px;
  }
}

/* Remove qualquer resquício de container branco ou sombra */
.page-sobre-nos section.stats-cards,
.page-sobre-nos .stats-container {
  background: transparent;   /* remove fundo */
  box-shadow: none;          /* remove sombra */
}

/* Wrapper do bloco e botão */
.sobre-projeto-wrapper {
  display: flex;
  align-items: flex-start;  /* Alinha topo do bloco e botão */
  gap: 20px;                /* Espaçamento entre bloco e botão */
  margin-left: 20px;        /* Mesma margem do primeiro card */
  margin-bottom: 20px;
}

/* Mantém o bloco branco */
.sobre-projeto-wrapper section {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  max-width: 700px; /* Ajuste conforme o conteúdo */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Botão voltar fora do fundo branco */
.btn-voltar {
  position: relative;
  top: 40px; /* move 5px para baixo */
}

