/* ================== THEME ================== */
:root {
  --primary: #1d2e4f;
  /* Azul base */
  --secondary: #0a1730;
  --primary-2: #47A6FF;
  /* Azul claro para gradiente */
  --ink: #0A1A2F;
  /* Título */
  --ink-600: #1a2c4c;
  /* Texto */
  --muted: #5C6A85;
  /* Texto fraco */
  --bg: #FFFFFF;
  /* Fundo */
  --line: #E7ECF2;
  /* Linha/Y */
  --chip: #F7FAFF;
  /* Chip claro */
  --shadow: 0 18px 40px rgb(10 23 48 / 37%), 0 2px 14px rgba(10, 26, 47, .08);
  --radius: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

i {
  font-size: 20px;
  color: #000000;
  margin-right: 8px;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ================ GLOBAL DECOR ================ */
.grid-bg {
  position: fixed;
  inset: -1px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #f4f7fb 1px, transparent 1px),
    linear-gradient(to bottom, #f4f7fb 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1.9;
}

.section {
  padding: 86px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--primary);
  background: linear-gradient(90deg, #eaf2ff, transparent);
  padding: 6px 10px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 10px 0 12px;
}

p.lead {
  font-size: 1.14rem;
  color: var(--ink-600);
  max-width: 820px;
  margin: 0 auto;
}

/* ================= HEADER ================= */

.card-two.hero-card {
  position: absolute;
  top: 88%;
  left: -336%;
  transform: translateY(-50%) rotate(42deg);
  border-radius: 36px;
  z-index: -1;
}


.card-container {
  position: relative;
  z-index: -2;
}

.section,
.hero,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  backdrop-filter: saturate(140%) blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  height: 72px;
}

.card-one {
  top: -72px;
  right: -51px;
  width: 260px;
  height: 460px;
  background: linear-gradient(180deg, #47A6FF 0%, #47A6FF 100%);
  border-radius: 35px;
  transform: rotate(-20deg);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.45);
  position: absolute;
  z-index: -1;
  overflow: hidden;
}

.card-two {
  top: -125px;
  right: -612px;
  width: 854px;
  height: 720px;
  background: linear-gradient(134deg, rgb(39, 59, 97) 9%, rgb(10, 23, 48) 45%);
  transform: rotate(22deg);
  box-shadow: rgba(0, 0, 0, 0.55) 0px 40px 65px;
  position: absolute;
  z-index: -1;
  overflow: hidden;
}

.logo {
  width: 100%;
  height: 30%;
}

.logo-img {
  width: 20%;
}

.ti-linux,
.ti-microsoft-alt,
.ti-github {
  font-size: 30px;
  margin-right: 18px;
}

.ti-android {
  font-size: 30px;
  margin-right: 10px;
}

.container-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.container-contact svg {
  width: 19px;
  margin-right: 8px;
}

.menu {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.menu a {
  color: var(--ink-600);
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.cta:hover {
  transform: translateY(-1px);
}

.hamb {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
}

.menuOverlay {
  display: none;
}

/* ================= HERO ================= */
.hero {
  padding: 110px 0 66px;
  position: relative;
  overflow: visible;
}

.hero-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--line);
}

.btn:hover {
  background: var(--primary-2);
}

.btn.primary:hover {
  background: var(--secondary);
}

.btn.ghost:hover {
  background: #e7e7e7;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: #fff;
}

.hero-media {
  position: relative;
  perspective: 1000px;
}

.device {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform .6s ease;
  position: relative;
  top: -50px;
  right: -9%;
}

.hero-media:hover .device {
  transform: rotateY(0) rotateX(0);
}

/* ============== GRID & CARDS ============== */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.card[data-tilt] {
  transform-style: preserve-3d;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef5ff, #fff);
  border: 1px solid var(--line);
}

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 900;
  padding: 6px 8px;
  border-radius: 8px;
  background: #ECF3FF;
  color: var(--primary);
}

.meta {
  display: flex;
  gap: 8px;
}

.meta i {
  margin-right: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 80%;
  background: linear-gradient(135deg, #E9F2FF, #F7FAFF);
  border-radius: 14px;
  padding: 5px;
}

/* ============== SERVIÇOS ============== */
.section.services .container {
  background: #f4f7fb;
  border-radius: 20px;
  padding: 32px 24px 40px;
  max-width: 95%;
}

.section.services .grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.section.services .grid img {
  width: clamp(240px, 25vw, 320px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}

.section.services .grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.overlay-title {
  position: absolute;
  top: 15px;
  left: 0px;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
}

.overlay-subtitle {
  position: absolute;
  top: 50px;
  left: 0;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
}

.overlay-description {
  position: absolute;
  top: 88px;
  left: 0;
  color: white;
  font-size: 1.0rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
}

/* ============== PORTFÓLIO ============== */
.portfolio {
  background: linear-gradient(180deg, #fff, #f6faff);
}

.thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E9F2FF, #F7FAFF);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.card:hover .thumb img {
  transform: scale(1.08);
}

/* ============== MARQUEE (Tech) ============== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

svg {
  width: 5%;
  height: 34px;
}

.marquee-track {
  display: inline-block;
  animation: scroll 26s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}

.footer-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-display label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.footer-display a {
  color: var(--primary);
  text-decoration: none;
}

.footer-display a:hover {
  text-decoration: underline;
}

.footer hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.zap-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.zap-overlay {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 16px;
}

/* ============== FOOTER CERTIFICADOS ============== */
.footer-certs {
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer-certs .cert-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-certs .cert-item img {
  height: 123px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-certs .cert-item img:hover {
  opacity: 0.8;
}

/* ============== MODAL CERTIFICADOS ============== */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.cert-modal.active {
  display: flex;
}

.cert-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  background: white;
  border-radius: 5%;
}

.section-cta {
  padding: 60px 0 80px;
}

.section-cta .cta-card {
  background: #0b234b;
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.section-cta .cta-card .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  letter-spacing: .14em;
  font-size: 0.7rem;
}

.section-cta .cta-card h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 12px;
}

.section-cta .cta-card .lead {
  color: #d9e4ff;
  max-width: 520px;
  margin: 0 auto 28px auto;
  font-size: 1rem;
}

.section-cta .send-button {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #0b234b;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.section-cta .send-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  background: #f4f6ff;
}

/* ============== CLIENTES SECTION ============== */
    .clients-grid {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 60px;
      padding: 40px 0;
    }

    .client-logo-wrapper {
      width: 260px;
      height: 120px;
      padding: 20px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .client-logo-wrapper::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }

    .client-logo-wrapper:hover {
      transform: translateY(-4px);
    }

    .client-logo-wrapper:hover::before {
      opacity: 1;
      border-radius: 6px;
    }

    .client-logo-wrapper img {
      object-fit: contain;
      position: relative;
      z-index: 1;
      transition: all 0.3s ease;
    }

    .client-logo-wrapper:hover img {
      filter: grayscale(0%);
      opacity: 1;
    }


.client-logo-wrapper::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #181414;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.client-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 11%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.client-logo-wrapper:hover img {
  filter: blur(4px);
}

.client-logo-wrapper:hover::before {
  opacity: 1;
}

.client-logo-wrapper:hover::after {
  opacity: 1;
}
