
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

header {
  background: #111827;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header img {
  height: 60px;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e40af;
}

#projetos {
  background: linear-gradient(140deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 14px;
}

#projetos .section-title {
  color: #fff;
}

.projects-banner {
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: projectsSlide 28s linear infinite;
}

.project-banner-card {
  width: 320px;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
  backdrop-filter: blur(3px);
  animation: cardFloat 4.8s ease-in-out infinite;
}

.project-banner-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.55rem;
}

.project-banner-card h4 {
  font-size: 1.02rem;
}

.project-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.project-banner-card:nth-child(2n) {
  animation-delay: 0.6s;
}

@keyframes projectsSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.contact-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.2rem;
}

.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

#contato {
  text-align: center;
}

.whatsapp-btn:hover {
  background: #1ebf59;
  transform: translateY(-1px);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  z-index: 1000;
  transition: 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebf59;
  transform: translateY(-2px);
}

footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }

  nav a {
    margin: 0 0.5rem;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .project-banner-card {
    width: 280px;
    min-height: 210px;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 520px) {
  .projects-track {
    animation-duration: 36s;
  }

  .project-banner-card {
    width: 240px;
    min-height: 190px;
  }
}
