/* RESET E CONFIGURAÇÕES GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0d3b66, #1446a0, #0077b6);
  color: #ffffff;
  line-height: 1.6;
  animation: fadeIn 1s ease-in;
}

/* HEADER */
header {
  background-color: rgba(0, 0, 50, 0.4);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 2rem;
  color: #90e0ef;
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 10px;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 100%;
}

nav a {
  color: #caf0f8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}

nav a:hover {
  color: #00b4d8;
  background-color: rgba(0, 180, 216, 0.2);
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  animation: slideUp 1s ease-in-out;
  color: #ade8f4;
}

.hero p {
  margin: 20px 0;
  font-size: 1.2rem;
  color: #dbe9f4;
}

.botao {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0096c7;
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px 10px 0 10px;
  transition: transform 0.3s;
}

.botao:hover {
  transform: scale(1.05);
  background-color: #0077b6;
}

/* TABELAS */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: center;
}

th {
  background-color: rgb(0, 15, 65);
  color: white;
}

.titulotabela {
  text-align: center;
  font-size: 1.5rem;
  margin: 20px 0;
  color: #90e0ef;
}

/* CONTEÚDO GERAL */
.conteudo {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 1s ease;
  color: #e0f7ff;
}

/* PROJETOS - NOVO LAYOUT EM COLUNAS */
.projeto-coluna.horizontal {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.descricao {
  flex: 1;
  min-width: 250px;
}

.carousel-vertical {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 10px;
  scroll-behavior: smooth;
}

.carousel-vertical::-webkit-scrollbar {
  width: 8px;
}

.carousel-vertical::-webkit-scrollbar-thumb {
  background-color: #0096c7;
  border-radius: 5px;
}

.carousel-vertical img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.carousel-vertical img:hover {
  transform: scale(1.03);
}

/* GALERIA ANTIGA */
.galeria-container {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.galeria {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  height: 230px;
  scrollbar-width: none;
}

.galeria::-webkit-scrollbar {
  display: none;
}

.projeto {
  min-width: 220px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.projeto:hover {
  transform: translateY(-5px);
}

.projeto img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* Botões de scroll da galeria */
.btn-scroll {
  background-color: #0096c7;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.btn-scroll:hover {
  background-color: #0077b6;
}

/* SKILLS */
.skills {
  margin-top: 40px;
  text-align: center;
  border-radius: 45px;
  margin-left: 15px;
  margin-right: 15px;
  background-color: rgba(0, 0, 50, 0.4);
}

.skills h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.skill {
  display: inline-block;
  margin: 20px;
  text-align: center;
}

.skill img {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  margin-bottom: 10px;
  transition: transform 0.3s;
  border: none;
  border: 2px solid #5a5a5a;
}

.skill img:hover {
  transform: scale(1.1);
}

.skill p {
  font-size: 1.1em;
  color: #ffffff;
}

.barra {
  width: 200px;
  height: 15px;
  background-color: #ddd;
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  display: inline-block;
}

.progresso {
  height: 100%;
  background-color: #929292;
  transition: width 0.5s ease;
}

.linha-skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* TIMELINE */
.timeline {
  padding: 40px 20px;
  color: #f0e9ff;
  text-align: center;
}

.timeline h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ade8f4;
}

.timeline ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.timeline li {
  margin: 15px 0;
  border-left: 3px solid #040035;
  padding-left: 15px;
  position: relative;
  text-align: left;
}

.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #003979;
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 8px;
}

/* CONTATO */
.contato {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  animation: fadeIn 1s ease;
  color: #e0f7ff;
  text-align: center;
}

.contato h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #ade8f4;
}

.contato p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contatos {
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.contatos a img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.contatos a img:hover {
  transform: scale(1.1);
}

.conteudo {
  display: flex;
  margin-top: 12px;
  gap: 20px;
  padding: 20px;
  border-radius: 45px;
  background-color: rgba(0, 0, 50, 0.4);
  flex-wrap: wrap;
}

.perfil {
  width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.conteudo p {
  max-width: 800px;
  text-align: justify;
}

.perfil-texto {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* FOOTER */
footer {
  background-color: rgba(20, 42, 63, 0.95);
  padding: 20px;
  text-align: center;
  margin-top: 50px;
}

footer p, footer a {
  color: #ffffff;
  font-size: 0.95em;
}

footer a {
  color: #4b2e83;
  text-decoration: none;
  margin: 0 12px;
}

.footer-icons a {
  margin: 0 10px;
  font-size: 1.2em;
  color: #6b59d3;
}

.footer-icons a:hover {
  color: #270022;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 30px auto 0;
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="submit"] {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

input[type="submit"] {
  background-color: #356acc;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background-color: #072c7a;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .projeto-coluna.horizontal {
    flex-direction: column;
    gap: 30px;
  }

  .carousel-vertical {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  nav {
    justify-content: center;
    gap: 10px;
  }

  nav a {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .hero {
    padding: 60px 15px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .botao {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 8px 5px 0 5px;
  }

  .conteudo {
    padding: 20px 15px;
  }

  .carousel-vertical {
    max-height: 300px;
  }

  .timeline ul {
    max-width: 90%;
    padding: 0 10px;
  }

  .timeline li {
    padding-left: 10px;
  }

  .skills {
    margin-left: 5px;
    margin-right: 5px;
  }

  .contatos {
    flex-direction: column;
    align-items: center;
  }

  .contatos a img {
    width: 70px;
    height: 70px;
  }

  .perfil {
    width: 100%;
    max-width: 300px;
  }

  .conteudo p {
    max-width: 100%;
  }

  form {
    width: 90%;
  }

  input[type="text"],
  input[type="submit"] {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 5px 8px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .botao {
    width: 100%;
    box-sizing: border-box;
  }

  .timeline li {
    padding-left: 8px;
  }

  form {
    width: 90%;
  }

  input[type="text"],
  input[type="submit"] {
    font-size: 1rem;
  }
}


