/* ===== CONFIGURAÇÕES GERAIS ===== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 180px;  
  background-color: #b3dee5; /* COR DO FUNDO */
}

/* ===== HEADER (NOME NO TOPO) ===== */
header {
  position: relative; /* NÃO fixed */
  background-color: #ffffff;
  text-align: center;
  padding: 0.5rem 0;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #000000; /*COR DO NOME*/
  margin: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px #000000;
}

/* Animação do header */

header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0.6rem;
  color: #ffa101;
}

#sobre {
  margin-top: 30px;          /* espaço VISUAL */
  scroll-margin-top: 100px;  /* espaço quando clica no menu */
}
#habilidades {
  margin-top: 30px;          /* espaço VISUAL */
  scroll-margin-top: 100px;  /* espaço quando clica no menu */
}
#certificados {
  margin-top: 30px;          /* espaço VISUAL */
  scroll-margin-top: 100px;  /* espaço quando clica no menu */
}
#contato {
  margin-top: 30px;          /* espaço VISUAL */
  scroll-margin-top: 100px;  /* espaço quando clica no menu */
}


@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MENU ===== */
nav {
  position: sticky;
  top: 0; /* cola no topo APÓS passar o header */
  background-color: #000000;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

nav a {
  margin: 0 1.5rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffa101;
}

/* ===== CONTEÚDO ===== */
h2 {
  color: #000;
  font-size: 1.8rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.topo-fixo {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.site-header {
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  height:90px;
  background: #b3dee5; /* COR FUNDO TOPO */;
  z-index: 1000;
  text-align: center;
  padding: 10px 0 0;

  padding-top: 20px;
  display: flex;
  align-items: center;
}

.header-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centraliza vertical */
  align-items: flex-start; /* mantém à esquerda */
  padding-left: 100px;
}

.header-info p {
  color: #ffa101; /* ANALISTA DE INFRAESTRUTURA */
}

/* ESTILOS DO MENU */
.menu {
  position: static;	
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  background: #ffffff; /*COR DO MENU*/
  text-align: center;
  padding: 6px 0 10px;
}

.textoprincipal {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  background-color: #ffffff;
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  max-width: 1000px;
  margin: 1rem auto 2rem;
}

.textoprincipal h2 {
  position: relative;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: #1e1e2f;
}

.textoprincipal h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background-color: #ffa101; /* COR DA LINHA QUE PASSA NOS MENUS */
  margin-top: -5px;
  border-radius: 2px;
}

.textoprincipal p {
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #444;
}

.textoprincipal p strong {
  color: #1e1e2f;
  font-weight: 600;
}

/* ===== CONTATO ===== */
.contato-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 1rem;
}

.contato-card {
  flex: 1;
  min-width: 100px;
  background: rgb(193, 233, 241);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.055);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contato-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px 4px rgba(239,183,48,0.06);
}

.contato-card img {
  width: 40px;
}

section {
  scroll-margin-top: 140px;
}

/* ===== RODAPÉ ===== */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  color: #000000;
  margin-top: 2rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {

  /* HEADER */
  .site-header {
    padding: 6px 12px 0; /* remove espaço embaixo */
    justify-content: flex-start; /* alinha conteúdo à esquerda */
  }

  .header-info {
    margin-bottom: 0;
    align-items: flex-start;
    padding-left: 12px; /* distância do canto */
  }

  .header-info h1 {
    font-size: 0.9rem;
    margin: 0;
  }

  .header-info p {
    font-size: 0.7rem;
    margin: 0; /* 👈 ESSENCIAL */
  }

  /* MENU 2x2 COLADO */
  .menu {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 4px 16px;
    margin: 0;          /* 👈 remove espaço externo */
    padding: 4px 0 0;   /* pequeno respiro controlado */
  }

  .menu a {
    font-size: 0.75rem;
    margin: 0;
  }

  /* BODY */
  body {
    padding-top: 88px;
  }
}
