/* Reset básico para margens e padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo e fonte */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* Cabeçalho */
header {
  background: #0A66C2; /* fallback */
  background: -webkit-linear-gradient(135deg, #0A66C2, #004182);
  background: linear-gradient(135deg, #0A66C2, #004182);
  color: white;
  text-align: center;
  padding: 40px 20px;
  /* Para fixar no topo:
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  */
}

header h1 {
  margin-bottom: 10px;
  font-size: 32px;
}

header p {
  opacity: 0.9;
}

/* Navegação */
nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 600;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

nav a:hover,
nav a:focus {
  opacity: 0.7;
  outline: none;
}

/* Container centralizado */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 50px 20px;
}

/* Botões */
.btn {
  display: inline-block;
  margin-top: 20px;
  background: #0A66C2;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #004182;
  outline: none;
}

/* Skills com barras de progresso */
.skill {
  margin-bottom: 20px;
}

.skill span {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* Barra cinza de fundo */
.bar {
  background: #ddd;
  border-radius: 20px;
  height: 14px;
  margin-top: 5px;
  overflow: hidden;
}

/* Barra de progresso azul */
.progress {
  background: #0A66C2;
  height: 14px;
  border-radius: 20px;
  width: 0;
  -webkit-transition: width 0.6s ease;
  transition: width 0.6s ease;
}

/* Lista de skills estilizada */
.skills {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.skills li {
  background: #0A66C2;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.skills li:hover,
.skills li:focus {
  background: #004182;
  outline: none;
}

/* Cartões de experiência */
.carddiv {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.carddiv.show {
  opacity: 1;
  transform: translateY(0);
}

/* Ícones das tecnologias */
.tech-icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 48px;
  margin-top: 30px;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tech-icons i {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  cursor: default;
}

.tech-icons i:hover,
.tech-icons i:focus {
  outline: none;
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

/* Rodapé */
footer {
  text-align: center;
  padding: 25px;
  background: #222;
  color: #aaa;
  margin-top: 40px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 26px;
  }
  nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .container {
    padding: 30px 20px;
  }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #ddd;
  }
  .carddiv {
    background: #1e1e1e;
  }
  .skills li {
    background: #0A66C2;
  }
  footer {
    background: #000;
  }
}