/* ==========================
   RESET E BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f3f6ff 0%, #e6f0ff 100%);
  color: #222;
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ==========================
   HEADER
========================== */
header {
  background: linear-gradient(135deg, #0077cc, #004a80);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: fadeDown 1s ease forwards;
}

header h1 {
  font-size: 2.4rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.foto-perfil {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.foto-perfil:hover {
  transform: scale(1.07) rotate(2deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* ==========================
   NAVEGAÇÃO
========================== */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #005fa3;
  padding: 1rem;
  gap: 0.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

nav a {
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: linear-gradient(135deg, #00aaff, #0077cc);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================
   CONTEÚDO PRINCIPAL
========================== */
main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  animation: fadeUp 1.2s ease forwards;
}

/* ==========================
   SEÇÕES
========================== */
section {
  margin-bottom: 2.5rem;
  background-color: white;
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: slideIn 1s ease forwards;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

h2 {
  color: #005fa3;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0077cc, #00aaff);
  margin-top: 6px;
  border-radius: 2px;
}

/* ==========================
   LISTAS E TEXTOS
========================== */
ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  margin: 0.6rem 0;
  font-size: 1.05rem;
  color: #444;
}

p, a {
  font-size: 1.05rem;
  color: #333;
}

a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #00aaff;
}

/* ==========================
   GRID DE HABILIDADES
========================== */
.grid-habilidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  margin-top: 1.5rem;
}

.grid-habilidades div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, #f0f7ff, #dfefff);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.grid-habilidades div:hover {
  transform: scale(1.08);
  background: linear-gradient(145deg, #dcecff, #ffffff);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.grid-habilidades img {
  width: 50px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.4s ease;
}

.grid-habilidades div:hover img {
  transform: rotate(8deg);
}

/* ==========================
   CONTATO
========================== */
#contato ul {
  list-style: none;
  padding: 0;
}

#contato li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

#contato img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

#contato li:hover img {
  transform: scale(1.2);
}

/* ==========================
   FOOTER
========================== */
footer {
  text-align: center;
  padding: 1.8rem;
  background: linear-gradient(135deg, #0077cc, #004a80);
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================
   ANIMAÇÕES
========================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 700px) {
  header h1 {
    font-size: 1.8rem;
  }

  .foto-perfil {
    width: 160px;
    height: 160px;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.3rem;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}
.icones-contato {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

.icones-contato a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.icones-contato a:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 119, 204, 0.4);
  background-color: #0077cc;
}

.icones-contato img {
  width: 30px;
  height: 30px;
  transition: filter 0.3s ease;
}

.icones-contato a:hover img {
  filter: brightness(100%) invert(1);
}

#contato h2 {
  color: #0077cc;
  text-align: center;
  margin-bottom: 10px;
}

#contato p {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
