.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESET E BASE
============================== */

/* Reset padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f5f5;
}

/* ==============================
   NAVBAR
============================== */

nav {
  position: fixed;
  top: 03%;
  /* Mantido conforme original para não alterar visual */
  left: 50%;
  transform: translateX(-50%);
  background-color: #009F54;
  padding: 10px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: auto;
  display: flex;
  align-items: center;

}

nav ul {
  white-space: nowrap;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  background: transparent;
  display: inline-block;
  transition:
    background 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover com efeito de crescimento */
nav ul li a:hover {
  background: linear-gradient(to bottom, #006C39, #00D26F);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ==============================
   SEÇÃO INICIAL (.inicialFundo)
============================== */

.inicialFundo {
  position: relative;
  height: 100vh;
  /* Mantido para não alterar visual */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 25px;
  overflow: visible;
  background-image: url("../IMG/IFSC.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sobreposição escura */
.inicialFundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 44, 24, 0.555);
  /* Fundo escuro transparente */
  z-index: 1;
}

.inicialFundo>* {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

/* Título do projeto */
.inicialFundo h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
}

/* Descrição do projeto */
.inicialFundo p {
  font-size: 2.0rem;
  /* Mantido conforme original */
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

.default-img,
.hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.hover-img {
  opacity: 0;
}

.card_projetos:hover .hover-img {
  opacity: 1;
}

.card_projetos:hover .default-img {
  opacity: 0;
}

/* ==============================
   SEÇÃO SOBRE O SISTEMA
============================== */

.sobre-sistema {
  background: #ffffff;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-top: -40px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.sobre_container {
  max-width: 1100px;
  margin: 0 auto;
}

.sobre-sistema h2 {
  font-size: 2.2rem;
  color: #006C39;
  margin-bottom: 15px;
  font-weight: 700;
}

.sobre-sistema p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Ícones – layout geral */
.sobre_icones {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}

/* Cada box */
.icon_box {
  background: #C9E2EC;
  border-radius: 35px;
  width: 300px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover suave */
.icon_box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

/* Ícones */
.icon_box img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Título dos cards */
.icon_box h3 {
  font-size: 1.2rem;
  color: #006C39;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Texto */
.icon_box p {
  color: #1f1f1f;
  font-size: 0.95rem;
  line-height: 1.5;
}




/* ==============================
   SEÇÃO DE CARDS (PROJETOS)
============================== */

.cards {
  background-color: #C9E2EC;
  padding: 80px 40px;
  text-align: center;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  margin-top: -40px;
  /* overlap corrigido para eliminar faixa branca */
  position: relative;
  z-index: 4;
}

/* Header dos cards */
.cards_header h2 {
  font-size: 2.2rem;
  color: #006C39;
  margin-bottom: 15px;
}

.cards_header p {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 50px;
}

/* Container dos cards */
.cards_container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 50px;
}

/* Cada card */
.card_projetos {
  background-color: #fff;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 320px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover do card (mantido) */
.card_projetos:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Imagem do card */
.card_projetos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

/* Texto do card */
.card_projetos p {
  font-size: 15px;
  padding: 15px 20px;
  color: #222;
  line-height: 1.5;
}

/* Botão do card */
.card_projetos .botao {
  display: inline-block;
  margin-bottom: 25px;
  padding: 10px 25px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  background: linear-gradient(to bottom, #006C39, #00D26F);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card_projetos .botao:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* Container de Cards em 3 colunas no desktop */
.cards_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Garante que o efeito de Hover continue funcionando */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 200px;
}

.img-wrapper .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card_projetos:hover .hover-img {
    opacity: 1;
}

/* Tag de identificação nos cards */
.tag {
    display: inline-block;
    background-color: rgba(0, 159, 84, 0.1);
    color: #009F54;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Ajuste no card_info para alinhar texto e botão */
.card_info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px; /* Mantém altura padrão */
}
/* ==============================
   SEÇÃO EQUIPE (.grupo)
============================== */

.grupo {
  background-color: #fff;
  padding: 80px 40px;
  text-align: center;
  border-top-left-radius: 35px;
  border-top-right-radius: 35px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

/* Título e subtítulo */
.grupo_header h2 {
  font-size: 2.2rem;
  color: #006C39;
  margin-bottom: 15px;
}

.grupo_header p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Container dos membros */
.grupo_container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
}

/* Cada card de pessoa */
.membro {
  background-color: #C9E2EC;
  border-radius: 40px;
  width: 260px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover unificado (corrigido: antes havia duplicata) */
.membro:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Foto do membro */
.membro img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #009F54;
  margin-bottom: 25px;
}

/* Nome e função */
.membro h3 {
  font-size: 1.2rem;
  color: #006C39;
  margin-bottom: 5px;
}

.membro p {
  color: #333;
  font-size: 0.95rem;
  margin: 0;
}


/* ==============================
   FOOTER (.rodape)
============================== */

.rodape {
  background-color: #009F54;
  color: #fff;
  text-align: center;
  padding: 60px 40px 30px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  z-index: 10;
}

.rodape-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 20px;
}

/* Coluna esquerda */
.rodape-esquerda {
  flex: 1;
  min-width: 300px;
}

.logo-footer {
  height: 50px;
  margin-bottom: 10px;
}

/* Lista de e-mails */
.emails {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emails li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.emails img {
  width: 16px;
  height: 16px;
}

/* Linha divisória central */
.rodape-divisor {
  width: 2px;
  background-color: #7cf1bb;
  height: 140px;
  align-self: center;
}

/* Coluna direita */
.rodape-direita {
  flex: 1;
  min-width: 300px;
}

.titulo-projeto {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 25px;
}

/* Links (GitHub / API) */
.links-rodape {
  display: flex;
  align-items: center;
  gap: 40px;
}

.links-rodape a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.links-rodape a:hover {
  opacity: 0.8;
}

.links-rodape img {
  width: 40px;
  height: auto;
}

/* Linha final */
.linha-final {
  border: none;
  height: 2px;
  background-color: #7cf1bb;
  margin: 20px 0;
}

/* Copyright */
.copy {
  font-size: 0.9rem;
  color: #fff;
}

.if {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

/* ==============================
   RESPONSIVIDADE E AJUSTES MOBILE
============================== */

/* Geral: pequenas melhorias nas transições para telas menores sem alterar visual */
@media (max-width: 1200px) {
  nav {
    padding: 10px 22px;
  }

  nav ul {
    gap: 20px;
  }
}

/* Ajustes maiores para telas de tablet */
@media (max-width: 992px) {

  /* ============================
       INICIAL FUNDO + NAV + CARDS
     ============================ */

  .inicialFundo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    flex-direction: column;
    padding-bottom: 60px;
  }

  nav {
    width: auto;
    max-width: 100%;
    padding: 10px 16px;
  }

  nav ul {
    gap: 10px;
  }

  nav ul li a {
    padding: 8px 14px;
  }

  .cards {
    margin-top: -40px;
    padding: 60px 30px;
  }

  .cards_header p {
    margin-bottom: 35px;
  }


  /* ============================
       AJUSTES DO FOOTER (992px)
     ============================ */

  .rodape {
    padding: 50px 35px 30px;
    text-align: center;
  }

  /* Containers passam a ficar centralizados */
  .rodape-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  /* Coluna esquerda → centralizar */
  .rodape-esquerda {
    text-align: center;
  }

  .emails {
    align-items: center;
    text-align: center;
    margin-top: 20px;
    /* espaço extra */
  }

  .emails li {
    justify-content: center;
  }

  /* Coluna direita → centralizar */
  .rodape-direita {
    text-align: center;
  }

  .rodape-divisor {
    width: 100%;
    height: 2px;
    /* fica uma linha deitada */
    margin: 15px 0;
  }

  .links-rodape {
    justify-content: center;
    gap: 28px;
  }
}


/* Ajustes para mobile (smartphones) */
@media (max-width: 768px) {

  /* 1. Dá espaço para a navbar fixa não cobrir a imagem */
  .inicialFundo {
    padding-top: 120px;
    /* antes era 20px → aumenta para evitar colisão */
    height: auto;
  }

  /* 2. A imagem do título vira responsiva e não explode pra cima */
  .inicialFundo h1 img {
    max-width: 85vw;
    width: 100%;
    height: auto;
    margin-top: 20px;
    /* descola da navbar */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* 3. O texto fica abaixo da imagem, centrado e menor */
  .inicialFundo p {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-top: 15px;
    padding: 0 12px;
  }

  /* 4. A seção de cards não invade a imagem inicial */
  .cards {
    margin-top: -30px;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    padding-top: 60px;
  }

  .rodape-divisor {
    width: 100%;
    height: 2px;
    /* fica uma linha deitada */
    margin: 15px 0;
  }

  nav {
    padding: 8px 12px;
  }

  nav ul {
    gap: 6px;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .rodape {
    padding: 40px 20px;
  }

  .rodape-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .links-rodape {
    flex-direction: column;
    gap: 10px;
  }

  /* Cards: empilhar verticalmente e ajustar tamanhos */
  .cards_container {
    gap: 24px;
  }

  .card_projetos {
    width: 100%;
    max-width: 420px;
  }

  .icon_box {
    width: 100%;
    max-width: 400px;
  }

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

  .sobre-sistema {
    padding: 60px 25px;
    margin-top: -40px;
  }

  .icon_box {
    width: 260px;
  }

  /* Centralizar e-mails no mobile */
  .emails {
    align-items: center;
    text-align: center;
  }

  .emails li {
    justify-content: center;
  }

  .if {
    justify-content: center;
  }

}

/* Pequenas telas (4-5") */
@media (max-width: 480px) {
  .rodape-divisor {
    width: 100%;
    height: 2px;
    /* fica uma linha deitada */
    margin: 15px 0;
  }

  nav ul {
    gap: 4px;
  }

  nav ul li a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .cards_header h2 {
    font-size: 1.8rem;
  }

  .cards_header p {
    font-size: 0.95rem;
  }

  .copy {
    font-size: 0.78rem;
  }

  .card_projetos img {
    height: 160px;
  }

  .inicialFundo p {
    font-size: 1rem;
    /* reduz leitura em telas pequenas sem alterar visual geral */
  }

  .icon_box img {
    width: 60px;
    height: 60px;
  }

  .icon_box {
    padding: 25px 20px;
  }

  .emails {
    margin-top: 18px;
  }

  .emails li {
    font-size: 0.85rem;

  }

}

/* ==============================
   TRANSIÇÕES GLOBAIS E ACESSIBILIDADE
============================== */

/* Transição do overlay (mantida igual) */
#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: var(--transition-color, #009F54);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1s ease-in-out;
  z-index: 10000;
}