/* Reset e Estilos Gerais */
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: #0f2936;
  line-height: 1.6;
}

/* Cabeçalho */
header {
  background: linear-gradient(to right,
    #05060a,   /* Azul muito escuro (quase preto) */
    #0d1b3d,   /* Azul profundo */
    #132d66,   /* Azul escuro intenso */
    #1e40af,   /* Azul médio forte */
    #3b82f6    /* Azul claro vibrante */
  );
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}


header h1 {
  font-size: 2.8rem;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
  opacity: 0.9;
}

header .highlight {
  color: #67e8f9;
  font-weight: 600;
}

header button {
  background: #14b8a6;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

header button:hover {
  background: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/*  =====  Sessão do Links na Barra de Navegação ===== */
nav {
  position: fixed;
  width: 100%;
  top: 20;
  left: 10;
  background-color: rgba(11, 48, 113, 0); /* transparente */
  transition: background-color 0.3s ease;
  z-index: 1000;
  /* sem sombra ou bordas brancas */
  box-shadow: none;
  border-bottom: none;
}
nav.scrolling {
  background-color: rgba(11, 48, 113, 0.2); /* fundo azul muito transparente */
  box-shadow: none; /* sem sombra */
}

/* Cor da fonte que está no topo */
.logo a {
  color: white;
  text-decoration: none;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 20px;
}


/* Estilo padrão */
#navbar {
  background-color: #0f2936;
  transition: background-color 0.3s ease;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  font-size: 26px;
  transition: color 0.3s ease;
}

/* Estilo após rolagem */
#navbar.scrolled {
  background-color: black;
}

#navbar.scrolled .nav-links a {
  color: black;
}

.nav-links a.active,
.nav-links a:hover {
  border-bottom: 2px solid white;
}


/* Fim da barra de links */

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.logo {
  height: 200px;
  max-width: 450px;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.header-text {
  text-align: left;
  flex: 1;
}


/* ==================== HEADER ==================== */
header {
  background: linear-gradient(to right,
    #05060a,   /* Azul muito escuro (quase preto) */
    #0d1b3d,   /* Azul profundo */
    #132d66,   /* Azul escuro intenso */
    #1e40af,   /* Azul médio forte */
    #3b82f6    /* Azul claro vibrante */
  );
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 2.8rem;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
  opacity: 0.9;
}

header .highlight {
  color: #67e8f9;
  font-weight: 600;
}

.header-container {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.header-text {
  text-align: center;
  flex: 1;
}




/* ==================== CONTEÚDO ==================== */
.portfolio-section {
  padding: 2rem 1rem;
}

.infra-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.infra-item2 {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* esta é a mudança-chave */
  height: 100%;
  min-height: 450px;
  gap: 1rem;
}

.infra-item2 img {
  width: 100%;
  height: auto;
  max-width: 300px; /* Limita para não ultrapassar */
  margin-top: auto;
  margin-bottom: 1rem;
  border-radius: 6px; /* opcional: cantos arredondados */
}

.infra-item2:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}


.infra-item2 h2 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.infra-item2 p {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #0f2936;
}

.infra-item2 a {
  background-color: #1e40af;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.infra-item2 a:hover {
  background-color: #3b82f6;
  .infra-item2 img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

}

.infra-item2.patente {
  border: 2px solid #1e40af;
  background-color: #f0f7ff;
}


/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #1e3a8a, #0f2936, #0e7490);
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 16px;
  margin-top: 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a img {
  width: 30px;
  height: 30px;
}

.social-links a:hover {
  transform: scale(1.2);
  background-color: #ddd;
}


/* ==================== CARROSSEL ==================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

.carousel-item .infra-item2 {
  max-width: 500px;
  margin: 0 auto;
}

.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background-color: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background-color: #1e40af;
}

main {
  padding-bottom: 4rem; /* ou mais, se quiser mais espaço */
}
