@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #05060b;
  --card: rgba(255, 255, 255, 0.04);
  --panel: #0d0f16;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #a8b0c0;
  --text: #f7f9ff;
  --accent: #5cf4c7;
  --accent-2: #4bb0ff;
  --danger: #ff5c8a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 244, 199, 0.12), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(75, 176, 255, 0.1), transparent 20%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5, 6, 11, 0.75);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  overflow: visible;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 120ms ease;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 26px;
  align-items: center;
  margin: 36px 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("/img/imagembanner.webp")
    center/cover no-repeat;
  opacity: 0.12;
  filter: saturate(1.1);
  z-index: 0;
}

.hero-text h1 {
  font-size: 36px;
  margin: 8px 0 10px;
}

#typed {
  display: inline-block;
  min-height: 42px;
}

#typed::after {
  content: "|";
  margin-left: 6px;
  color: var(--accent);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.lead {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  transition: all 140ms ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(92, 244, 199, 0.15);
}

.hero-card {
  background: linear-gradient(145deg, rgba(92, 244, 199, 0.08), rgba(75, 176, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0d0f16;
  animation: float 6s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(92, 244, 199, 0.08), transparent);
  opacity: 0;
  animation: sheen 4s ease-in-out infinite;
}

@keyframes sheen {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 0.4; transform: translateX(0%); }
  100% { opacity: 0; transform: translateX(100%); }
}

.stat-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.stat-ribbon div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.stat-label { color: var(--muted); font-size: 13px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  padding: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(92, 244, 199, 0.05), transparent 40%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1118;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
}

.form textarea {
  resize: vertical;
  min-height: 180px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.about {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.about ul { margin: 8px 0 0 16px; color: var(--muted); line-height: 1.5; }

.stack h3 { margin: 0 0 6px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 244, 199, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.card-compact {
  max-width: 320px;
}

.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }

.card-body { display: flex; flex-direction: column; gap: 10px; }

.cover {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.detail-cover {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.cover-small { height: 180px; }

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.card a {
  color: var(--accent);
  font-weight: 600;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer {
  text-align: center;
  padding: 26px 12px 40px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 11, 0.9);
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.footer-links a {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 120ms ease;
}

.footer-links a:hover {
  border-color: var(--accent);
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 120ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041016;
  border: none;
  box-shadow: var(--shadow);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.muted { color: var(--muted); }
.muted.small { font-size: 13px; }

.status-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #161821;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.35s ease;
  font-size: 14px;
  border: 1px solid var(--border);
  z-index: 15;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.search-hero {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-width: 260px;
}

.search-hero:focus {
  outline: 1px solid var(--accent);
}

.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.detail-overlay.show {
  display: flex;
}

.detail-card {
  background: #0c0d12;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow);
}

.detail-content {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-content img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.hidden { display: none; }

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 12px 0 8px;
}

.detail-gallery img {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.02);
}

.detail-hero-cover {
  height: clamp(14rem, 50vw, 40rem);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 15, 0.85);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.detail-hero-logo {
  height: auto;
  width: auto;
  max-height: 8rem;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.24);
  object-fit: contain;
  object-position: center;
  padding: 8px;
  margin: 0 auto;
}

.detail-top-logo {
  width: auto;
  max-width: 320px;
  max-height: 190px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.24);
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.detail-gallery-img {
  height: 320px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 15, 0.8);
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.logo-gallery {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: block;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .logo-gallery {
    height: 180px;
  }
}

/* Remover qualquer fundo/borda na galeria de detalhes (serviços) */
#detailGallery .logo-gallery {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .about { grid-template-columns: 1fr; }
  .topbar { position: sticky; }

  .menu-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    background: rgba(5, 6, 11, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    gap: 10px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  }

  .nav.open { display: flex; }

  .nav a {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
  }

.nav a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

}

/* Moldura consistente para logos e capas em cards (home, serviços, trabalhos) */
.logo-frame {
  aspect-ratio: 16/9;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.logo-frame .logo-img {
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Escopo apenas para a lista de serviços: logos quadradas, centralizadas e iguais */
#servicesGrid .logo-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#servicesGrid .logo-frame .logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Experiências na home: mesmo tratamento, sem moldura */
#homeServicesGrid .logo-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#homeServicesGrid .logo-frame .logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Trabalhos: imagem ocupa todo o espaço disponível no card */
#worksGrid .logo-frame {
  width: 100%;
  height: 180px;
  margin: 0 0 8px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#worksGrid .logo-frame .logo-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
}
