/* ================================================== */
/* CSS DOS PROJETOS (geral para todas as páginas)     */
/* ================================================== */

/* deixar o link Projetos maior */
.navbar-projeto a {
  color: #d8dbdc;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.8rem; /* antes 1.5rem */
}
.navbar-projeto a:hover {
  color: #81d4fa;
}

/* container principal */
.projeto-detalhe {
  max-width: 900px;
  margin: 6rem auto 4rem auto;
  padding: 1rem 2rem; 
  background: rgba(20, 20, 30, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.projeto-detalhe h1 {
  margin-bottom: 1rem;
}

.projeto-detalhe h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* botão especial */
.btn-download {
  display: inline-block;
  padding: 10px 16px;
  background: #0288d1;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}
.btn-download:hover {
  background: #03a9f4;
  box-shadow: 0 0 12px rgba(3,169,244,0.6);
}

/* intro em duas colunas */
.projeto-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.projeto-intro .intro-texto { flex: 1; }
.projeto-intro .intro-imagem { flex: 1; text-align: center; }
.projeto-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .projeto-intro { flex-direction: column; text-align: center; }
}

/* vídeos */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* link fallback */
.video-link {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}
.video-link a {
  color: #ff1744; /* vermelho */
  font-weight: 700;
  text-decoration: underline;
}
.video-link a:hover { color: #d50000; }

/* ================================================== */
/* CSS AEROGERADOR                                    */
/* ================================================== */

/* fundo com animação suave de vento */
body.aerogerador-bg {
  background: linear-gradient(120deg, #0a0f1f, #0f2027, #203a43, #2c5364);
  background-size: 400% 400%;
  animation: vento 20s ease infinite;
  color: #e0e0e0;
}
@keyframes vento {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body.aerogerador-bg .projeto-detalhe h1 {
  color: #4fc3f7;
  text-shadow: 0 0 8px rgba(79,195,247,0.5);
}
body.aerogerador-bg .projeto-detalhe h2 {
  color: #81d4fa;
}

/* ================================================== */
/* CSS PAC-MAN                                        */
/* ================================================== */

/* fundo pacman */
body.pacman-bg {
  background: #000;
  color: #e0e0e0;
  position: relative;
  /* overflow: hidden; */
}

/* camada de "leds" */
body.pacman-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  animation: ledsMove 10s linear infinite;
  opacity: 0.5;
}

/* animação mais lenta e suave */
@keyframes ledsMove {
  0%   { filter: hue-rotate(0deg); }
  25%  { filter: hue-rotate(90deg); }
  50%  { filter: hue-rotate(180deg); }
  75%  { filter: hue-rotate(270deg); }
  100% { filter: hue-rotate(360deg); }
}

/* título amarelo para combinar */
body.pacman-bg .projeto-detalhe h1 {
  color: #ffeb3b;
  text-shadow: 0 0 12px rgba(255,235,59,0.7);
}


/* ================================================== */
/* CSS SUDOKU                                         */
/* ================================================== */

body.sudoku-bg {
  background-color: #10141d;
}

/* Estilo para o botão de acesso ao jogo */
.btn-acessar {
  display: inline-block;
  padding: 12px 24px;
  background: #28a745; /* Um verde chamativo */
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1.5rem;
}

.btn-acessar:hover {
  background: #218838;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
}

/* Ajustes para a imagem de destaque */
.projeto-intro.full-width {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
  display: block; /* Garante que ocupe a largura total */
}
.projeto-intro.full-width img {
    max-width: 80%; /* Para não estourar em telas pequenas */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Ajuste para o texto principal do projeto para o fundo escuro */
body.sudoku-bg .projeto-detalhe h1 {
  color: #81d4fa; /* Um azul claro */
  text-shadow: 0 0 8px rgba(129, 212, 250, 0.5);
}
body.sudoku-bg .projeto-detalhe h2 {
  color: #a7e6ff; /* Um azul ainda mais claro */
}
body.sudoku-bg .projeto-detalhe p {
  color: #dbeafe;
}

#sudoku-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  filter: blur(0.5px);
  opacity: 0.8;
}