/* ====== ESTILOS GERAIS ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0d0d0d;
  color: #f2f2f2;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ====== HEADER ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  background: #111;
  position: sticky;
  z-index: 1000; 
  top: 0;
}

.logo-container {
  display: flex;
  align-items: center; 
  gap: 10px;
}

.logo {
  width: 60px;
  height: 60px;
  vertical-align: middle;
}

header h1 {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

nav a {
  color: #f2f2f2;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

nav a:hover {
  color: #0a66c2;
}

.highlight {
  color: #0a66c2; 
}
/* ====== SEÇÕES ====== */

.section {
  padding: 80px 10%;
  scroll-margin-top: 100px; /* evita que âncoras fiquem escondidas */
}

.section.intro {
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 80px; 
  padding: 30px 10%;
  flex-wrap: wrap; 
  text-align: left;
}

.texto {
  max-width: 500px;
}

.texto h2 {
  font-size: 2.5rem;
  margin-bottom: 0px;
  opacity: 0; 
  animation: fadeIn 1.5s ease-in forwards; 
}


.texto p {
  font-size: 1.2rem;
  color: #ccc;
  text-align: left;
   opacity: 0; 
  animation: fadeIn 1.5s ease-in forwards; 
}


.foto-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.foto-direita {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0a66c2;
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.4);
  transition: transform 0.3s ease;
  opacity: 0; 
  animation: fadeIn 1.5s ease-in forwards; 
}

.foto-direita:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.botao-download {
  margin-top: 30px;
  display: inline-block;
  background-color: #0a66c2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease;
  opacity: 0; 
  animation: fadeIn 1.5s ease-in forwards; 
}

.botao-download:hover {
  transform: scale(1.08);
  background-color: #0056b3;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.tech-icons {
  margin-top: 30px;
}

.tech-icons i {
  font-size: 2.2rem;
  margin-right: 10px;
  transition: transform 0.2s ease, opacity 0.3s ease;
  cursor: default;
  animation: bounceIn 1.5s ease forwards;
}

/* Pequeno atraso para cada ícone (efeito em sequência) */
.tech-icons i:nth-child(1) { animation-delay: 0.1s; }
.tech-icons i:nth-child(2) { animation-delay: 0.2s; }
.tech-icons i:nth-child(3) { animation-delay: 0.3s; }
.tech-icons i:nth-child(4) { animation-delay: 0.4s; }
.tech-icons i:nth-child(5) { animation-delay: 0.5s; }
.tech-icons i:nth-child(6) { animation-delay: 0.6s; }


.fa-php {
  color: #787cb5;
}

.fa-js {
  color: #f7df1e; 
}

.fa-html5 {
  color: #e34f26; 
}

.fa-css3-alt {
  color: #264de4; 
}

.fa-database {
  color: #00618a;
}

.fa-bootstrap {
  color: #7952b3; 
}

.fa-docker {
  color: #0000FF; 
}



/* Efeito ao passar o mouse */
.tech-icons i:hover {
  transform: scale(1.2);
  opacity: 0.8;
    animation: slowSpin 2s linear infinite;

}

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

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
   text-align: left;
  color: #f2f2f2; 
}

/* ====== PROJETOS ====== */
#projetos {
  padding: 150px 10%;
  background: #0d0d0d;
}

#projetos h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  text-align: center;
  color: #f2f2f2;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  max-width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.5);
}

.card h3 {
  margin-bottom: 12px;
  color: #fff;
}

.card p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card a {
  display: inline-block;
  color: #0a66c2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.card a:hover {
  color: #62a9ff;
  text-decoration: underline;
}

/* ====== FOOTER ====== */
.social-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: #111;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon.github:hover {
  background: #000;
  color: #fff;
}

.icon.linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    margin-bottom: 0; 
  }

  nav {
    margin-top: 10px;
  }

  .section.intro {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 20px 5% 50px 5%; 
    margin-top: 0; 
  }

  .foto-direita {
    width: 180px;
    height: 180px;
    margin-top: 15px; 
  }
}


