:root {
  --bg: #020617;
  --bg-light: #0f172a;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text: #f8fafc;
  --muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, 0.08);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* HEADER GLASSMORPISM */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; cursor: default; }
.logo span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; }

.nav-menu a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover { color: var(--primary); }

.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 60px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text h2 span { color: var(--primary); }

.hero-text p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; }

button {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  border: none;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* BLOB LÍQUIDO */
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.img-wrapper {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
  position: relative;
  transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-radius;
}

.img-wrapper i {
  color: white;
  width: 100px;
  height: 100px;
  z-index: 10;
  pointer-events: none;
}

/* SERVIÇOS CARDS */
section { padding: 100px 2rem; }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; }
.section-title span { color: var(--primary); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: 0.4s;
  text-align: center;
}

.card i { color: var(--primary); margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--muted); }
.card:hover { border-color: var(--primary); transform: translateY(-10px); background: rgba(59, 130, 246, 0.05); }

/* PROJETOS */
.projetos-container {
  display: grid;
  /* Alterado de auto-fit para repeat(2, 1fr) para garantir 2 colunas */
  grid-template-columns: repeat(2, 1fr); 
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Adicionando responsividade para celulares */
@media (max-width: 768px) {
  .projetos-container {
    grid-template-columns: 1fr; /* Em telas pequenas, volta a ser 1 coluna */
  }
}

.projeto-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.4s;
}

/* O restante do seu código permanece igual */
.img-container { position: relative; height: 250px; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }

.overlay {
  position: absolute; inset: 0; background: rgba(2, 6, 23, 0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: 0.4s; backdrop-filter: blur(4px);
}

.projeto-card:hover .overlay { opacity: 1; }
.projeto-card:hover img { transform: scale(1.1); }
.projeto-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.overlay a {
  color: white; text-decoration: none; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--primary); border-radius: 8px;
}

.projeto-info { padding: 1.5rem; }
.tecnologias { display: flex; gap: 0.5rem; margin-top: 1rem; }
.tecnologias span {
  font-size: 0.7rem; background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px; border-radius: 6px; color: var(--primary);
  font-weight: 600;
}

/* CONTATO */
.contato-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--bg-light), #1e293b);
  padding: 5rem 2rem;
  border-radius: 40px;
  text-align: center;
  border: 1px solid var(--border);
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #22c55e;
  color: white;
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  border-radius: 15px;
  margin-top: 2rem;
  font-weight: 700;
  transition: 0.3s;
}
.wa-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3); }

/* FOOTER */
footer { text-align: center; padding: 4rem; color: var(--muted); border-top: 1px solid var(--border); }

/* MOBILE */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.bar { width: 28px; height: 3px; background: white; transition: 0.3s; border-radius: 2px; }

@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-img { order: -1; }
  .hero-text p { margin: 1.5rem auto 2.5rem; }
  .hero-btns { justify-content: center; }
  
  .menu-toggle { display: flex; }
  
  .nav-menu {
    position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
    background: var(--bg); flex-direction: column; align-items: center;
    padding-top: 3rem; transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 999;
  }
  
  .nav-menu.active { left: 0; }
  .nav-menu a { margin: 1.5rem 0; font-size: 1.3rem; }
}
