/* ========================================================== */
/* 1. DEFINIÇÃO DE CORES E FONTES GLOBAIS (Variáveis) */
/* ========================================================== */
:root {
  /* Cores Refinadas */
  --cor-fundo-principal: #0f0f1a; /* Azul Escuro Quase Preto (Mais profissional) */
  --cor-fundo-secundario: #1a1a2e; /* Azul Escuro para Contraste */
  --cor-primaria: #00bcd4; /* Verde Água (Ciano) - Vibrante e Tecnológico */
  --cor-secundaria: #3f51b5; /* Azul Davilla - Para Hover ou Destaques Secundários */
  --cor-texto-claro: #f0f0f0; /* Branco Gelo (Alta Legibilidade) */
  --cor-texto-secundario: #a0a0a0; /* Cinza para textos de apoio (Melhor Contraste) */
  --cor-shadow: rgba(0, 0, 0, 0.6); /* Sombra mais intensa */

  /* Tipografia Refinada (Usando as suas fontes) */
  --fonte-titulos: "Montserrat", sans-serif;
  --fonte-corpo: "Open Sans", sans-serif;
}

/* Importação de Fontes do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap");

/* ========================================================== */
/* 2. RESET E ESTILOS GERAIS (Global) */
/* ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  background-color: var(--cor-fundo-principal);
  color: var(--cor-texto-claro);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--cor-primaria);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cor-secundaria);
}

h1,
h2,
h3 {
  font-family: var(--fonte-titulos);
  color: var(--cor-texto-claro);
}

section {
  padding: 6rem 3rem;
}

/* ========================================================== */
/* 3. HEADER E NAVEGAÇÃO */
/* ========================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: var(--cor-fundo-principal);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--cor-shadow);
}

.logo img {
  height: 3rem;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--cor-texto-claro);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--cor-primaria);
  transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--cor-primaria);
  margin: 5px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================================== */
/* 4. SEÇÕES DE CTA E BOTÕES */
/* (Estilos universais que precisam funcionar tanto no index quanto na página de detalhes) */
/* ========================================================== */

.contato-cta {
  padding: 6rem 3rem;
  text-align: center;
  background-color: var(--cor-fundo-principal);
}

.contato-cta h2 {
  font-size: 2.8rem;
  font-family: var(--fonte-titulos);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.contato-cta p {
  font-size: 1.3rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--cor-primaria);
  color: var(--cor-primaria);
  background-color: transparent;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--cor-primaria);
  color: var(--cor-fundo-principal);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* ========================================================== */
/* 5. FOOTER */
/* ========================================================== */
.footer {
  background-color: var(--cor-fundo-secundario);
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
}

.footer p {
  font-size: 0.9rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--cor-texto-secundario);
  font-size: 1.8rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--cor-primaria);
  transform: translateY(-3px);
  text-shadow: 0 0 10px var(--cor-primaria);
}

/* ========================================================== */
/* 6. ESTILOS ESPECÍFICOS PARA PÁGINAS DE DETALHES DE PROJETOS */
/* ========================================================== */

.project-detail {
  max-width: 1200px;
  margin: 4rem auto 2rem auto;
  padding: 0 3rem;
  color: var(--cor-texto-claro);
}

.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-detail h2 {
  /* Estilo para os subtítulos (Detalhes do Produto, Painel de Administração, etc.) */
  font-size: 2.2rem;
  font-family: var(--fonte-titulos);
  font-weight: 700;
  margin-top: 4rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--cor-texto-claro);
}

.project-detail h1 {
  /* H1 Principal da Página */
  font-size: 3rem;
}

/* --- LAYOUT DE IMAGENS COM CSS GRID --- */
.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.detail-small-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-detail .project-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px var(--cor-shadow);
  margin-bottom: 0;
}

/* --- ESTILO PREMIUM DOS CARDS DE CONTEÚDO --- */
.project-sections {
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.section-card {
  background-color: var(--cor-fundo-secundario);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--cor-shadow);
  border: 1px solid rgba(0, 188, 212, 0.2);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.25);
}

.section-card h3 {
  color: var(--cor-primaria);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 188, 212, 0.5);
  padding-bottom: 0.5rem;
}

.section-card p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: justify;
}

.section-card strong {
  color: var(--cor-primaria);
  font-weight: 800;
}

.section-card ul {
  list-style: none;
  padding-left: 0;
}

.section-card li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.section-card li::before {
  content: "\2022";
  color: var(--cor-primaria);
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-list span {
  background-color: var(--cor-fundo-secundario);
  border: 1px solid var(--cor-primaria);
  color: var(--cor-primaria);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-list span:hover {
  background-color: var(--cor-primaria);
  color: var(--cor-fundo-principal);
}

/* ========================================================== */
/* 7. MEDIA QUERIES E RESPONSIVIDADE (Ajustadas para o novo arquivo) */
/* ========================================================== */

@media (max-width: 1024px) {
  .header {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--cor-fundo-secundario);
    padding-top: 6rem;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-menu a {
    font-size: 1.5rem;
  }

  .project-detail {
    padding: 0 1.5rem;
  }

  .project-detail h2 {
    font-size: 1.8rem;
  }
  .section-card {
    padding: 1.5rem;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }
  .logo img {
    height: 2.5rem;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .project-detail h1 {
    font-size: 2.2rem;
  }

  .contato-cta h2 {
    font-size: 1.8rem;
  }
}
