:root {
  --primary: #0f172a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --warning: #f59e0b;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --bg-light: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  position: fixed; top: 0; width: 100%; padding: 0.8rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000; transition: var(--transition); background: transparent;
}
nav.scrolled {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 0.6rem 5%;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo { height: 50px; width: auto; display: block; transition: transform 0.3s; }
.logo:hover .nav-logo { transform: scale(1.05); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light); font-weight: 500;
  position: relative; transition: var(--transition); padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text); padding: 5px;
}

/* HERO */
#inicio {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white; padding: 0 5%; position: relative; overflow: hidden;
}
#inicio::before {
  content: ''; position: absolute; top: -20%; left: -20%; width: 140%; height: 140%;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 60%);
  animation: pulse 8s infinite alternate ease-in-out;
}
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-badge {
  display: inline-block; background: var(--warning); color: var(--primary);
  padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 1.5rem; box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  opacity: 0; animation: fadeUp 0.8s ease-out 0.2s forwards;
}
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; font-weight: 800; letter-spacing: -1px; opacity: 0; animation: fadeUp 0.8s ease-out 0.4s forwards; }
.tagline { font-size: 1.3rem; color: #cbd5e1; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.8s ease-out 0.6s forwards; }
.btn {
  display: inline-block; padding: 1rem 2.5rem; background: var(--accent); color: white;
  text-decoration: none; border-radius: 10px; font-weight: 600; transition: var(--transition);
  opacity: 0; animation: fadeUp 0.8s ease-out 0.8s forwards; box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow: 0 12px 25px rgba(59,130,246,0.4); }

/* SECTIONS */
section { padding: 6rem 5%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; color: var(--primary); font-weight: 700; }
.section-title span { color: var(--accent); }

/* SERVICES */
#servicos { background: #f1f5f9; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
  background: var(--bg-light); padding: 2rem; border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition);
  opacity: 0; transform: translateY(40px);
}
.service-card.visible { animation: fadeUp 0.6s ease-out forwards; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.service-card h3 { margin-bottom: 0.5rem; color: var(--primary); font-size: 1.25rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.about-card {
  padding: 2rem; border-left: 4px solid var(--accent); background: var(--bg-light);
  border-radius: 0 12px 12px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  opacity: 0; transform: translateX(-30px);
}
.about-card.visible { animation: fadeLeft 0.6s ease-out forwards; }
.about-card h3 { color: var(--primary); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.about-card p { color: var(--text-light); font-size: 0.95rem; }

/* CLIENTS SLIDER */
#clientes { background: #f8fafc; overflow: hidden; }
.slider-container {
  display: flex; align-items: center; justify-content: center;
  position: relative; max-width: 1200px; margin: 0 auto;
}
.clients-slider {
  width: 100%; overflow: hidden; padding: 20px 0;
}
.clients-track {
  display: flex; gap: 20px; transition: transform 0.5s ease-in-out;
}
.client-item {
  min-width: calc(20% - 16px); /* 5 items visible */
  flex-shrink: 0; /* Impede que os itens encolham */
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0;
  animation: popIn 0.5s ease-out forwards;
}
.client-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.client-item img {
  max-width: 100%; max-height: 100px; object-fit: contain;
  filter: grayscale(100%); opacity: 0.7; transition: 0.3s;
}
.client-item:hover img { filter: grayscale(0%); opacity: 1; }

.slider-btn {
  background: var(--bg-light); border: none; width: 45px; height: 45px;
  border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer; z-index: 10; font-size: 1.2rem; color: var(--primary);
  transition: var(--transition); flex-shrink: 0;
}
.slider-btn:hover { background: var(--accent); color: white; transform: scale(1.1); }
.prev-btn { margin-right: 15px; }
.next-btn { margin-left: 15px; }

/* CONTACT */
#contactos { background: var(--primary); color: white; text-align: center; }
#contactos .section-title { color: white; }
#contactos .section-title span { color: #60a5fa; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 2rem auto 0; }
.contact-item { padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.contact-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.contact-item h4 { color: #60a5fa; margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-item p { color: #cbd5e1; font-size: 0.95rem; margin: 0.2rem 0; }
.contact-item a { color: #93c5fd; text-decoration: none; transition: 0.2s; }
.contact-item a:hover { color: white; text-decoration: underline; }

/* FOOTER */
footer { background: #020617; color: #94a3b8; text-align: center; padding: 2rem 5%; border-top: 1px solid #1e293b; font-size: 0.9rem; }

/* ANIMATIONS */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.15); opacity: 0.8; } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .client-item { min-width: calc(33.33% - 14px); } /* 3 items on tablet */
}
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  .nav-links { 
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: var(--bg-light); flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem; transition: 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-links.active { right: 0; }
  .menu-toggle { display: block; z-index: 1001; }
  section { padding: 4rem 5%; }
  .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
  .client-item { min-width: calc(50% - 10px); } /* 2 items on mobile */
  .nav-logo { height: 40px; }
}
@media (max-width: 480px) {
  .client-item { min-width: calc(80% - 10px); } /* 1 item on very small screens */
}