/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #1e1e1e;
  color: #fff;
  background: url(img/MacBook\ Pro\ 14_\ -\ 5.png);
  background-size: cover;
}

/* Navbar */
header {
  padding: 20px 160px;
  display: flex;
  justify-content: flex-end;
}

  .logo {
  width: 28px;       /* Ajuste o tamanho da logo */
  height: auto;
  display: block;    /* Garante que seja tratada como bloco */
  position: absolute; /* Posiciona no canto superior esquerdo */
  top: 8px;         /* Distância do topo */
  left: 100px;        /* Distância da esquerda */    
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #888;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 100px;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: bold;
  line-height: 1.2;
}

.emoji {
  font-size: 52px;
}

.highlight {
  color: #fff;
}

.hero-text p {
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.6;
  color: #bbb;
}

/* Botão */
#btn-portfolio {
  margin-top: 30px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #fff;
  color: #000;
  transition: all 0.3s;
}

#btn-portfolio:hover {
  background-color: #ff6600;
  color: #fff;
}

/* Imagem */
.hero-img img {
  max-width: 425px;
  border-radius: 10px;
}

.sobre-section {
  display: flex;              /* Ativa o flexbox */
  flex-direction: column;     /* Deixa em coluna (h1 em cima, depois p) */
  justify-content: center;    /* Centraliza verticalmente */
  align-items: center;        /* Centraliza horizontalmente */
  height: 60vh;              /* Ocupa a altura inteira da tela */
  text-align: center;         /* Centraliza o texto */
  font-size: 1.3rem;          /* Aumenta o tamanho da fonte */
  padding: 0 6cm;
}

.sobre-section h1 {
  font-size: 80px;          /* Deixa o título maior */
  margin-bottom: 120px;        /* Espaçamento entre o título e os parágrafos */
}

.projetos-section {
  padding: 120px 10%;
}

.projetos-section h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.card {
  display: flex;
  background: #2a2a2a;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.card img {
  width: 300px;
  object-fit: cover;
}

.card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-info h2 {
  margin: 10px 0;
  color: #fff;
}

.card-info p {
  line-height: 1.5;
  font-size: 0.95rem;
  color: #ccc;
}

.categoria {
  font-size: 0.9rem;
  font-weight: bold;
}

.banco { color: #e63946; }
.programacao { color: #06d6a0; }
.design { color: #ffd166; }

/* Responsividade */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card img {
    width: 100%;
  }
}

/* Seção Contato */
.contato-section {
  padding: 160px 10%;
  text-align: center;
  background: #222;
  color: #ddd;
}

.contato-section h1 {
  font-size: 2.3rem;
  color: #fff;
  margin-bottom: 20px;
}

.contato-section .intro {
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #aaa;
  font-size: 1rem;
}

.contatos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
}

.contato-item img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s, filter 0.2s;
}

.contato-item:hover {
  transform: translateX(5px);
  color: #06d6a0; /* muda cor do texto no hover */
}

.contato-item:hover img {
  transform: scale(1.15);      /* aumenta um pouco o ícone */
  filter: brightness(1.3);     /* deixa mais claro */
}

.footer-text {
  font-size: 0.9rem;
  color: #888;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Responsividade para telas menores */
@media (max-width: 1200px) {
  .contato-section {
    padding: 160px 5%; /* Reduz o padding para telas médias */
  }
}

@media (max-width: 768px) {
  .contato-section {
    padding: 120px 5%; /* Menos padding para dispositivos menores */
  }
}

@media (max-width: 480px) {
  .contato-section {
    padding: 40px 3%; /* Padding ainda menor para telas pequenas */
  }
}
/* Responsivo */
@media (max-width: 768px) {
  .contatos {
    align-items: center;
  }

  .contato-item {
    justify-content: center;
  }
}

footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #333;
}

footer p {
  margin: 0;
}
