* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans MT', sans-serif;
}

body {
    background: #fff;
    color: #333;
}

/* HEADER */
header {
    padding: 20px 60px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: #555;
}

.logo {
    font-size: 24px;
}

/* HOME */
.home {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 80px 60px;
}

.perfil-img {
  display: block; /* garante que o elemento se comporte como bloco */
  width: auto;    /* mantém tamanho original */
  height: auto;   /* mantém altura original */
  animation: flutuar 3s ease-in-out infinite alternate;
}

/* Keyframes para flutuação vertical */ somente isso
@keyframes flutuar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* ajuste conforme desejar */
  }
  100% {
    transform: translateY(0);
  }
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.perfil-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* espaço após o menu fixo */
  margin-bottom: 30px;
}

.home-texto p {
    font-size: 20px;
    margin-bottom: 12px;
    text-decoration-color: aqua;
}

.home-texto h2 {
    font-size: 42px;
    margin: 24px 0;
}

.botoes {
    margin: 30px 0;
}

.btn {
    padding: 10px 20px;
    background: #555;
    color: #fff;
    text-decoration: none;
    margin-right: 24px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #555;
    color: #555;
}

.redes a {
    margin-right: 15px;
    font-size: 35px;
    color: #555;
}

/* SOBRE */
#sobre {
    padding: 80px 60px;
    text-align: center;
    font-size: 30px;
}

.sobre-boxes {
    display: flex;
    gap: 20px;
    margin: 50px 0;
    font-size: 20px;
}

.sobre-boxes i{
    font-size: 40px;
    color: #555;
    margin-bottom: 20px;

}

.sobre-boxes h3 {
    margin-bottom: 24px;
}

sobre-boxes p {
    line-height: 38px;
}
.box {
    padding: 30px;
    border: 1px solid #ddd;
    flex: 1;
    transition: transform 0.3s;
}

.box:hover {
    transform: scale(1.05);
}
.sobre-texto {
    font-size: 20px;
    line-height: 30px;
    text-align: justify;
}
/* PROJETOS */
.projetos-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap; /* para mobile */
  margin-top: 40px;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 40px; /* tamanho do h2 */
  font-weight: 600; /* negrito médio */
  line-height: 1.3; /* espaçamento entre linhas */
  color: #333; /* cor consistente */
}

.projeto-box {
  flex: 1 1 300px; /* largura mínima e flexível */
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.projeto-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.projeto-img {
  width: 100%;
  height: 160px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.projeto-img img:hover {
  transform: scale(1.05);
}

.projeto-box h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.projeto-box .descricao {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #555;
}

.projeto-box a.btn-outline {
  margin-top: 8px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #666;
  color: #666;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.projeto-box a.btn-outline:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .projetos-container {
    flex-direction: column;
    gap: 20px;
  }
}

.projeto-box {
  background: #fff;
  border: 1px solid #dcdcdc;   /* borda cinzenta suave */
  border-radius: 20px;        /* cantos arredondados */
  padding: 20px;
  text-align: center;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
/* PUBLICAÇÕES */
.publicacoes {
    display: flex;
    gap: 20px;
    padding: 40px 60px;
}

.pub-box {
    flex: 1;
    border: 1px solid #ddd;
    padding: 30px;
}

/* CONTACTO */
#contacto {
    padding: 60px;
    text-align: center;
    font-size: 18px;
}

.contactos a {
    display: block;
    margin: 10px 0;
    color: #555;
}

/* FOOTER */
footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-menu a {
    margin: 0 10px;
    color: #555;
    text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .home {
        flex-direction: column;
        text-align: center;
    }

    .sobre-boxes,
    .publicacoes {
        flex-direction: column;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    header {
        padding: 15px 30px;
    }

    .home {
        padding: 40px 30px;
    }

    #sobre,
    #projetos,
    #contacto {
        padding: 40px 30px;
    }
}

:root {
  --bg: #ffffff;
  --text: #333;
}

.dark {
  --bg: #121212;
  --text: #eee;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

.btn {
  padding: 12px 26px;
  border-radius: 14px;
  background: var(--accent, #555);
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;

  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;

  will-change: transform;
}

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent, #555);
  color: var(--accent, #555);
}

.btn-outline:hover {
  background: var(--accent, #555);
  color: #fff;
}

.box,
.pub-box,
.projeto {
  border-radius: 16px;
  overflow: hidden;

  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;

  will-change: transform;
}

.box:hover,
.pub-box:hover,
.projeto:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.menu a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;

  transition:
    transform 0.25s ease,
    background 0.25s ease;

  will-change: transform;
}

.menu a:hover {
  background: rgba(0,0,0,0.05);
  transform: scale(1.08);
}

.sidebar a {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 18px;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.sidebar a:hover {
  background: rgba(0,0,0,0.08);
  transform: scale(1.05);
}

footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  background: var(--bg);
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-menu a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;

  will-change: transform;
}

.footer-menu a:hover {
  transform: scale(1.08);
  background: rgba(0,0,0,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

footer p {
  font-size: 14px;
  color: #777;
}

@media (max-width: 600px) {
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .menu a {
    font-size: 16px;
    padding: 6px 10px;
  }

  .footer-menu a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

