/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0B132B;
  color: #ffffff;
  line-height: 1.6;
  transition: 0.4s ease;
}

/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  padding: 22px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #8B5CF6;
}

.nav {
  display: flex;
  gap: 35px;
}

.nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: #8B5CF6;
  transition: 0.3s ease;
}

.nav a:hover {
  color: #8B5CF6;
}

.nav a:hover::after {
  width: 100%;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 500px;
  opacity: 0.85;
}

.hero-image img {
  width: 380px;
  max-width: 100%;
}

/* =========================
   PORTFÓLIO
========================= */

.portfolio-section {
  padding: 140px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}

.portfolio-text {
  flex: 1;
}

.portfolio-text h2 {
  font-size: 3rem;
  color: #8B5CF6;
  margin-bottom: 20px;
}

.portfolio-text p {
  max-width: 500px;
  opacity: 0.85;
}

.grid-original {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.top img,
.bottom img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: 0.4s ease;
}

.top img {
  aspect-ratio: 1/1;
}

.bottom img {
  aspect-ratio: 16/9;
}

.top img:hover,
.bottom img:hover {
  transform: scale(1.05);
}

/* =========================
   IMPACTO
========================= */

.impacto-section {
  padding: 140px 10%;
}

.impacto-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  flex-wrap: wrap;
}

.impacto-text {
  flex: 1;
}

.impacto-text h2 {
  font-size: 3rem;
  color: #8B5CF6;
  margin-bottom: 20px;
}

.impacto-text p {
  max-width: 500px;
  opacity: 0.85;
}

.impacto-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.impacto-image img {
  width: 330px;
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(139,92,246,0.2);
  transition: 0.4s ease;
}

.impacto-image img:hover {
  transform: translateY(-6px);
}

/* =========================
   PROJETOS
========================= */

.projetos-destaque {
  padding: 140px 10%;
}

.destaque-header {
  margin-bottom: 90px; /* aumenta o espaço entre texto e cards */
}

.destaque-header h2 {
  margin-bottom: 20px;
}

.destaque-header p {
  opacity: 0.85;
}

.destaque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 50px;
}

.projeto-card {
  background: #111a3a;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.4s ease;
}

.projeto-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(139,92,246,0.25);
}

.projeto-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: 0.4s ease;
}

.projeto-card:hover img {
  transform: scale(1.05);
}

.projeto-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projeto-info p {
  flex-grow: 1;
  opacity: 0.8;
  margin-bottom: 30px;
}

.btn-projeto {
  align-self: flex-start;
  padding: 13px 26px;
  background: linear-gradient(135deg, #8B5CF6, #6D3DF0);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: 0.3s ease;
}

.btn-projeto:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(139,92,246,0.4);
}



/* =========================
   CONTATO
========================= */

.contato {
  padding: 160px 10%;
  text-align: center;
  position: relative;
}

/* fundo com glow suave */
.contato::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.contato h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.contato p {
  opacity: 0.85;
  margin-bottom: 35px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.contato .btn-projeto {
  font-size: 1.05rem;
  padding: 15px 34px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 40px 10%;
  background: #0f172a;
  opacity: 0.7;
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  font-size: 1.5rem;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {

  .hero-content,
  .portfolio-section,
  .impacto-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .btn-projeto {
    align-self: center;
  }
}