:root {
  --azul-escuro: #0d1117;
  --preto: #010409;
  --azul-claro: #58a6ff;
  --cinza-claro: #c9d1d9;
  --verde: #2ea043;
  --cinza-card: #21262d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--azul-escuro);
  color: var(--cinza-claro);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
header {
  background: var(--preto);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--cinza-claro);
  text-decoration: none;
  transition: 0.3s ease;
}

.nav-links li a:hover {
  color: var(--azul-claro);
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#projetos,
#sobre,
#localizacao,
#contato,
#fale-comigo {
  scroll-margin-top: 80px;
}

.lang-btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--azul-claro);
  color: var(--preto);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(88, 166, 255, 0.5);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: max-content;
}

.lang-btn:hover {
  background-color: #4095e5;
  transform: scale(1.05);
  box-shadow: 0 3px 8px var(--verde);
}

.lang-btn:focus {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.logo {
  font-size: 1.8rem;
  color: var(--azul-claro);
  font-weight: bold;
}

.logo-img {
  height: 50px; /* ajuste conforme seu logo */
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* deixa branco em modo dark */
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
}

.projeto-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.projeto-img:hover {
  transform: scale(1.03);
}

/* ===== HERO ===== */
.hero {
  background: var(--preto);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content > div:nth-child(2) {
  padding-left: 2rem; /* espaço entre imagem e texto */
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  background: transparent;
  transition: none;
  box-shadow: none;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px var(--azul-claro);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 30px var(--azul-claro);
}

.hero-content h1 {
  font-size: 2rem;
  color: var(--azul-claro);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.8;
  color: var(--cinza-claro);
}

/* ===== PROJETOS ===== */
.projects-section {
  padding: 4rem 2rem;
  background: var(--azul-escuro);
  text-align: center;
}

.projects-section h2 {
  color: var(--azul-claro);
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--cinza-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--azul-claro);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--azul-claro);
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card a {
  text-decoration: none;
  color: var(--verde);
  font-weight: bold;
  transition: 0.3s;
}

.project-card a:hover {
  text-decoration: underline;
}

/* ===== GRID SECTIONS (Localização, Contato) ===== */
.grid-section {
  padding: 4rem 2rem;
  background: var(--preto);
  text-align: center;
}

.grid-section h2 {
  color: var(--azul-claro);
  margin-bottom: 2rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  background: var(--cinza-card);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  min-width: 220px;
  transition: 0.3s;
}

.card:hover {
  background: #2b313a;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

form input, form textarea {
  background: var(--cinza-card);
  color: var(--cinza-claro);
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  resize: vertical;
}

form button {
  padding: 0.8rem;
  background: var(--verde);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #3fb950;
}

/* ===== FOOTER ===== */
footer {
  background: var(--preto);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cinza-claro);
}

/* ===== ANIMAÇÕES ===== */
.fade-in {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MAPA ===== */
#map.map-dark {
  height: 300px;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  z-index: 1;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none;
    background: var(--preto);
    position: absolute;
    top: 60px;
    right: 1rem;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}