body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212; /* Fundo escuro */
  margin: 0;
  padding: 0;
  color: #f0f0f0; /* Texto principal */
}

header {
  background-color: #1f1f1f;
  color: white;
  padding: 40px 20px;
  text-align: center;
  position: relative; /* Para segurar elementos absolutos internamente, se necessário */
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header p {
  font-size: 1.2em;
  color: #cccccc;
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #1abc9c;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  background-color: #1a1a1a;
}

h2 {
  border-bottom: 2px solid #1abc9c;
  padding-bottom: 5px;
  color: #1abc9c;
}

section {
  padding: 30px 20px;
  margin-bottom: 20px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background-color: #1f1f1f;
  font-size: 0.9em;
  color: #aaa;
}

/* --- Botões e Toggles --- */
.idioma-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 42px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: #1f1f1f;
  border: 2px solid #1abc9c;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
  transition: background-color 0.3s;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.slider::before {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  height: 24px;
  width: 34px;
  background-color: #1abc9c;
  border-radius: 50px;
  transition: transform 0.3s ease;
}

.switch input:checked + .slider::before {
  transform: translateX(43px);
}

.cv-download {
  position: absolute;
  top: 20px;
  right: 20px;
}

.btn-cv {
  background-color: #1abc9c;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: inline-block;
}

.btn-cv:hover {
  background-color: #16a085;
  transform: scale(1.05);
}

/* --- Redes Sociais --- */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  margin: 0 10px;
  color: white;
  font-size: 1.5em;
  transition: transform 0.3s, color 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #1abc9c;
}

/* --- Competências --- */
.competencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  text-align: center;
  padding-top: 10px;
}

.competencia {
  position: relative;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.competencia:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.competencia .tooltip {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; 
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85em;
}

.competencia .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; 
  left: 50%;
  margin-left: -5px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.competencia:hover .tooltip {
  visibility: visible;
  opacity: 1;
} 

/* --- Projetos --- */
.projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

.card-projeto, .new-projeto {
  position: relative;
  height: 320px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: white;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s;
  text-decoration: none; /* Caso seja um link (tag <a>) */
}

.card-projeto:hover, .new-projeto:hover {
  transform: scale(1.05);
}

.card-projeto h3, .new-projeto h3 {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  margin: 0;
  padding: 15px 10px;
  font-size: 1.2em;
  border-radius: 0 0 12px 12px;
}

.card-projeto::before {
  content: "Em Breve";
  position: absolute;
  top: 15px;
  left: -50px;
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  padding: 5px 60px;
  transform: rotate(-45deg);
  font-size: 0.9em;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* --- Contato --- */
#contato {
  max-width: 700px;
  margin: auto;
  padding: 40px 20px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.form-contato {
  display: flex;
  flex-direction: column;
}

.form-contato label {
  margin-top: 15px;
  font-weight: bold;
  color: #ccc;
}

.form-contato input,
.form-contato textarea {
  margin-top: 5px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background-color: #2a2a2a;
  color: white;
  font-size: 1em;
  outline: none;
  font-family: inherit;
}

.form-contato input:hover,
.form-contato input:focus,
.form-contato textarea:hover,
.form-contato textarea:focus {
  outline: none;
  border: 1px solid #1abc9c;
}

.btn-enviar {
  margin-top: 20px;
  padding: 12px;
  border: none;
  background-color: #1abc9c;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-enviar:hover {
  background-color: #16a085;
}

/* Responsividade Básica para o Header */
@media (max-width: 600px) {
  .cv-download, .idioma-toggle {
    position: static;
    display: inline-block;
    margin: 10px;
  }
}