/* ========================================================== */
/* ESTILOS GLOBAIS E ESPECÍFICOS DA PÁGINA INICIAL (INDEX.HTML) */
/* ========================================================== */

/* Definição de Cores e Fontes Globais */
:root {
  /* Cores Refinadas */
  --cor-fundo-principal: #0f0f1a; /* Azul Escuro Quase Preto */
  --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 */
  --cor-texto-claro: #f0f0f0; /* Branco Gelo (Alta Legibilidade) */
  --cor-texto-secundario: #a0a0a0; /* Cinza para textos de apoio */
  --cor-shadow: rgba(0, 0, 0, 0.6); /* Sombra intensa */

  /* Tipografia Refinada */
  --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");

/* ========================================= */
/* 1. RESET E ESTILOS GERAIS */
/* ========================================= */
* {
  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;
}

/* ========================================= */
/* 2. 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);
}

/* ========================================= */
/* 3. HERO SECTION (ESPECÍFICO INDEX.HTML) */
/* ========================================= */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cor-texto-claro);
  background: url("images/banner-davilla.png") no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  padding: 0; /* Removido padding para 90vh funcionar bem */
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.8rem;
  font-family: var(--fonte-titulos);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--cor-primaria);
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--cor-texto-claro);
}

/* ========================================= */
/* 4. PORTFÓLIO (ESPECÍFICO INDEX.HTML) */
/* ========================================= */
.portfolio {
  padding: 6rem 3rem;
  text-align: center;
}

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

.portfolio p {
  font-size: 1.2rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.projeto-card {
  background-color: var(--cor-fundo-secundario);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--cor-shadow);
}

.projeto-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.item-content {
  padding: 2rem;
  text-align: left;
}

.item-content h3 {
  font-family: var(--fonte-titulos);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--cor-primaria);
  line-height: 1.2;
}

.item-content p {
  font-size: 1rem;
  color: var(--cor-texto-claro);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ========================================= */
/* 5. TESTEMUNHOS (ESPECÍFICO INDEX.HTML) */
/* ========================================= */
.testemunhos {
  padding: 6rem 3rem;
  text-align: center;
  background-color: var(--cor-fundo-secundario);
}

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

.testemunhos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.depoimento-card {
  background-color: var(--cor-fundo-principal);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px var(--cor-shadow);
  text-align: left;
}

.depoimento-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cor-texto-claro);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.depoimento-card cite {
  display: block;
  font-size: 1rem;
  color: var(--cor-primaria);
  font-weight: 600;
  margin-top: 1rem;
}

/* ========================================= */
/* 6. CONTATO CTA (GLOBAL) */
/* ========================================= */
.contato-wpp {
  padding: 6rem 3rem;
  text-align: center;
  background-color: var(--cor-fundo-principal);
}

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

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

/* Estilos do Botão CTA (GLOBAL) */
.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);
}

/* ========================================= */
/* 7. FOOTER (GLOBAL) */
/* ========================================= */
.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);
}

/* ========================================= */
/* 8. MEDIA QUERIES (Aplica-se a todo o site) */
/* ========================================= */
@media (max-width: 1024px) {
  .header {
    padding: 1.5rem 2rem;
  }
  .hero-title {
    font-size: 3.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;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .testemunhos h2,
  .contato-wpp h2 {
    font-size: 2.2rem;
  }

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

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }
  .logo img {
    height: 2.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .testemunhos h2,
  .contato-wpp h2 {
    font-size: 1.8rem;
  }
}
