:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --text: #475569;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*====== Transação global =========*/
a,
button {
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

/*============================*/

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/*========== Animações  ===============*/

[data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.3s ease;
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-animate].active:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}


/*======== Container ================*/
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

/*=========== HEADER + MENU =============*/


.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  height: 50px;
  width: auto;
}

.brand span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 1000;
  padding: 0.5rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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


.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none; 
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/*=========== HERO SECTION ================*/
#hero {
  background: var(--light);
  padding: 4rem 0;
  margin-top: 30px;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-actions a {
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

.hero-image {
  position: relative;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0)
  );
  pointer-events: none;
}

.hero-actions a:first-child {
  background: var(--primary);
  color: var(--white);
}

.hero-actions a:last-child {
  border: 2px solid var(--primary);
  color: var(--primary);
}

/*============  SERVIÇOS (CARDS)  ===============*/
#servicos {
  padding: 4rem 0;
}

#servicos h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
}

.servicos-lista {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.servicos-lista article {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  width: 240px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.servicos-lista h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/*=========== PROJETOS  ================*/
#projetos {
  background: var(--light);
  padding: 4rem 0;
}

#projetos h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
}

.projetos-lista {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.projetos-lista article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 480px;
  border: 1px solid #e5e7eb;
}

.projetos-lista h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.projetos-lista ul {
  padding-left: 1rem;
}

.project-actions {
  margin-top: 1.2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}


/*===========  SOBRE ================*/
#sobre {
  padding: 4rem 0;
}

#sobre h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

#sobre p {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

/*===========  CTA FINAL ================*/
#contato {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

#contato h2 {
  margin-bottom: 1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-actions a {
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

/*==========  FOOTER =================*/
footer {
  background: #020617;
  color: #cbd5f5;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/*=========== Menu Underline animado ===============*/
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/*============  Botoes efeito elevação ==============*/
.hero-actions a,
.cta-actions a {
  position: relative;
}

.hero-actions a:hover,
.cta-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/*========== CARDS DE SERVIÇOS (hover 3D leve) ================*/
.servicos-lista article {
  cursor: pointer;
}

.servicos-lista article:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
/*=============  PROJETOS (destaque visual) ==================*/
.projetos-lista article {
  position: relative;
  overflow: hidden;
}

.projetos-lista article::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.projetos-lista article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(37,99,235,0.08),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.projetos-lista article::before,
.projetos-lista article::after {
  pointer-events: none;
}

.projetos-lista article:hover::before {
  opacity: 1;
}

.projetos-lista article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.projetos-lista article.active:hover::after {
  opacity: 1;
}

/*============ SOBRE (fade + slide)  ===================*/
#sobre {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*============  CTA FINAL (pulse sutil)  ===================*/
.cta-actions a {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37,99,235,0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37,99,235,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37,99,235,0);
  }
}

/*==========  MICRO DETALHE PROFISSIONAL (scroll suave)  ====================*/
html {
  scroll-behavior: smooth;
}


/*========= Fading de esquerda ==============*/
[data-animate="left"] {
  transform: translateX(-40px);
}

/*=======  Fading de direita ===============*/
[data-animate="right"] {
  transform: translateX(40px);
}

/*========= Zoom suave ==============*/
[data-animate="zoom"] {
  transform: scale(0.95);
}

/*========= Delay escalonado (cards) ==============*/
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }

/* ================= TEXTOS DE APOIO  ================= */
.section-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.section-intro strong {
  color: var(--dark);
  font-weight: 500;
}

/*==========================*/
.mockup {
  margin-bottom: 1.2rem;
}

.mockup img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

article.active:hover .mockup img {
  transform: scale(1.04);
}


/*========  MOBILE (performance-friendly) ===============*/


/*=========== Acessibilidade =============*/
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/*=========== RESPONSIVO ================*/
@media (max-width: 768px) {

  .hero-image::after {
    display: none;
  }

  #hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .servicos-lista,
  .projetos-lista,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .projetos-lista article {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

   .nav-menu {
    position: fixed;
    top: 65px; /* abaixo do header */
    left: 0;
    width: 100%;
    background: #fff;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 3000;
  }

  .brand{
    margin-top: 5px;
    z-index: 9000;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-menu.active {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 1.2rem;
  }
}

/*===========================*/


/*===========================*/


/*===========================*/


/*===========================*/


/*===========================*/


/*===========================*/


/*===========================*/


/*===========================*/



/*===========================*/



