/* =============================================================
   H!LOGS — GLOBAL STYLESHEET
   Centraliza todos os estilos compartilhados entre páginas.
   Importado em todas as páginas via: <link rel="stylesheet" href="css/hilogs.css">
   ============================================================= */

/* ── FONTS (carregadas no HTML via Google Fonts) ────────────── */

/* ── RESET & BASE ───────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #0F0020;
  color: #F0EBFF;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .35;
}

/* ── CSS CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --color-bg:        #0F0020;
  --color-bg-mid:    #12002A;
  --color-bg-dark:   #1A0035;
  --color-bg-deep:   #08001A;
  --color-purple:    #6B21A8;
  --color-vivid:     #8B3FD4;
  --color-teal:      #00C9A7;
  --color-teal-dim:  #00A88C;
  --color-light:     #F0EBFF;
  --color-gray:      #1F1F2E;
  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar { transition: background .4s, box-shadow .4s; }
#navbar.scrolled {
  background: rgba(15, 0, 32, .97) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.nav-link {
  color: rgba(240, 235, 255, .75);
  transition: color .2s;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active { color: var(--color-teal); }

#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #6B21A8, #8B3FD4);
  color: #fff;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(107, 33, 168, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107, 33, 168, .5);
}

.btn-outline {
  border: 1.5px solid rgba(240, 235, 255, .3);
  color: #F0EBFF;
  border-radius: 8px;
  padding: 13px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* ── TEAL ACCENT LINE ───────────────────────────────────────── */
.teal-line {
  width: 48px; height: 3px;
  background: var(--color-teal);
  border-radius: 2px;
}

/* ── SECTION BACKGROUNDS ────────────────────────────────────── */
.section-dark  { background: #0F0020; }
.section-mid   { background: #12002A; }
.section-card  {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ── SCROLL FADE ANIMATION ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE HERO (interior pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0F0020 0%, #1A0035 60%, #0F0020 100%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(107, 33, 168, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 33, 168, .06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 50%, rgba(107, 33, 168, .22) 0%, transparent 70%);
}

/* ── SERVICE CARDS (shared: index + portfolio) ──────────────── */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.serv-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #12002A;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .4s cubic-bezier(.22, .68, 0, 1.2), box-shadow .4s, border-color .3s;
}
.serv-card:hover {
  transform: translateY(-8px);
  border-color: var(--c, rgba(0, 201, 167, .35));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.serv-mock {
  height: 160px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.serv-mock-bg {
  position: absolute; inset: 0;
  background: var(--bg, rgba(0, 201, 167, .08));
  transition: opacity .4s;
}
.serv-card:hover .serv-mock-bg { opacity: 1.4; }
.serv-mock::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(0, 201, 167, .3)) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: opacity .4s, transform .4s;
  opacity: .6;
}
.serv-card:hover .serv-mock::after { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }

.serv-accent { height: 2px; background: var(--accent, #00C9A7); }
.serv-card:hover .serv-accent { height: 3px; }

.serv-body { padding: 20px 22px 24px; }
.serv-tag {
  display: inline-flex;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(255, 255, 255, .06); color: rgba(240, 235, 255, .5);
  border: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 10px;
}
.serv-headline { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; line-height: 1.25; margin-bottom: 4px; }
.serv-hook     { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--accent, #00C9A7); margin-bottom: 10px; }
.serv-desc     { font-size: 12.5px; color: rgba(240, 235, 255, .5); line-height: 1.65; font-family: var(--font-body); }
.serv-divider  { height: 1px; background: rgba(255, 255, 255, .06); margin: 14px 0; }
.serv-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .03em;
  color: var(--accent, #00C9A7);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.serv-card:hover .serv-cta { opacity: 1; transform: translateY(0); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer a:hover { color: var(--color-teal); }

/* ── WHATSAPP FLOAT BUTTON ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2.5px solid rgba(37, 211, 102, .55);
  animation: wa-pulse 2s ease-out infinite;
}
.wa-float::after {
  content: '';
  position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .25);
  animation: wa-pulse 2s ease-out infinite .65s;
}
@keyframes wa-pulse {
  0%   { transform: scale(.82); opacity: .85; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* ── TESTIMONIAL CAROUSEL ───────────────────────────────────── */
.testi-slide         { display: none; }
.testi-slide.active  { display: block; }

/* ── CLIENT LOGOS ───────────────────────────────────────────── */
.client-logo {
  filter: brightness(0) invert(1);
  opacity: .35;
  max-height: 44px;
  object-fit: contain;
  transition: opacity .3s;
}
.client-logo:hover { opacity: .8; }

/* ── STAT COUNTERS ──────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: #fff;
}
.stat-num span   { color: var(--color-teal); font-size: .75em; vertical-align: baseline; }
.stat-label      { font-size: 12px; color: rgba(240, 235, 255, .4); margin-top: 3px; font-family: var(--font-body); }

/* ── WORD ENTRANCE ANIMATION (hero index) ───────────────────── */
.word-anim {
  opacity: 0;
  animation: wordIn .65s cubic-bezier(.22, .68, 0, 1.2) forwards;
}
@keyframes wordIn { to { opacity: 1; } }
.word-teal { color: var(--color-teal); }

/* ── HERO CANVAS (index particle network) ───────────────────── */
#hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: .5; }

/* ── HEARTBEAT VISUAL (index right column) ──────────────────── */
.hero-visual { position: relative; z-index: 5; }
@keyframes hb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes hring    { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── PORTFOLIO: PRODUCT CARDS ───────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.prod-card {
  position: relative; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: #12002A;
  transition: transform .35s cubic-bezier(.22, .68, 0, 1.2), box-shadow .35s ease;
  border: 1px solid rgba(255, 255, 255, .07);
}
.prod-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(0, 0, 0, .65);
  border-color: transparent;
}
.prod-card.hidden { display: none; }

.prod-mock {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prod-mock-glow     { position: absolute; inset: 0; z-index: 0; }
.prod-mock svg.prod-mock-anim { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.prod-mock-logo {
  position: relative; z-index: 2;
  width: 72%; max-width: 260px;
  mix-blend-mode: screen;
  transition: transform .45s cubic-bezier(.22, .68, 0, 1.2), filter .4s ease;
  filter: drop-shadow(0 0 0px transparent);
}
.prod-card:hover .prod-mock-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px var(--prod-glow-color, rgba(255, 255, 255, .4)));
}

.prod-body     { padding: 24px; }
.prod-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 12px;
}
.prod-name    { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.prod-tagline { font-size: 13px; color: rgba(240, 235, 255, .5); font-family: var(--font-body); line-height: 1.5; margin-bottom: 18px; }
.prod-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.prod-chip {
  font-size: 11px; font-family: var(--font-display); font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: rgba(240, 235, 255, .65);
  border: 1px solid rgba(255, 255, 255, .1);
  letter-spacing: .02em;
}
.prod-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .03em;
  transition: gap .2s;
}
.prod-card:hover .prod-cta { gap: 10px; }

/* Portfolio filter tabs */
.filter-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 8px 22px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .12);
  color: rgba(240, 235, 255, .55);
  cursor: pointer; transition: all .22s; background: transparent; text-transform: uppercase;
}
.filter-btn:hover  { border-color: rgba(0, 201, 167, .4); color: var(--color-teal); }
.filter-btn.active { background: var(--color-teal); border-color: var(--color-teal); color: #0F0020; }

/* ── PORTFOLIO: SERVICE CARDS (portfolio page) ──────────────── */
.serv-card-port {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; overflow: hidden; transition: all .3s;
}
.serv-card-port:hover { border-color: rgba(107, 33, 168, .35); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.serv-card-port img  { width: 100%; height: 170px; object-fit: cover; display: block; }
.serv-card-port-body { padding: 20px; }

/* ── PORTFOLIO: MODAL ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 0, 15, .85);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: #1A0035;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto;
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.22, .68, 0, 1.2);
  position: relative;
}
.modal-backdrop.open .modal-box { transform: scale(1) translateY(0); }
.modal-img    { width: 100%; height: 260px; object-fit: cover; border-radius: 20px 20px 0 0; }
.modal-body   { padding: 32px; }
.modal-close  {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(240, 235, 255, .7); font-size: 18px;
  transition: all .2s; z-index: 10;
}
.modal-close:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.modal-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.modal-step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  flex-shrink: 0; color: #0F0020;
}

/* Modal scrollbar */
.modal-box::-webkit-scrollbar         { width: 4px; }
.modal-box::-webkit-scrollbar-track   { background: transparent; }
.modal-box::-webkit-scrollbar-thumb   { background: rgba(255, 255, 255, .15); border-radius: 4px; }

/* ── SOBRE NÓS: TIMELINE ────────────────────────────────────── */
.timeline-line {
  position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #6B21A8, #00C9A7);
  opacity: .4;
}
@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-50%); }
}
.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-teal);
  border: 3px solid #0F0020;
  box-shadow: 0 0 0 3px rgba(0, 201, 167, .3);
  flex-shrink: 0;
}

/* Value cards */
.value-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 28px; transition: all .3s;
  position: relative; overflow: hidden;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00C9A7, transparent);
  opacity: 0; transition: opacity .3s;
}
.value-card:hover { border-color: rgba(0, 201, 167, .3); transform: translateY(-4px); }
.value-card:hover::before { opacity: 1; }

/* ── PRODUTOS & SERVIÇOS: CARDS ─────────────────────────────── */
.prod-card-ps {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; overflow: hidden; transition: all .3s;
}
.prod-card-ps:hover { border-color: rgba(107, 33, 168, .4); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }

.prod-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.badge-software { background: rgba(107, 33, 168, .25); color: #c084fc; border: 1px solid rgba(107, 33, 168, .3); }
.badge-infra    { background: rgba(0, 201, 167, .15);  color: #00C9A7;  border: 1px solid rgba(0, 201, 167, .25); }
.badge-dev      { background: rgba(59, 130, 246, .15); color: #93c5fd;  border: 1px solid rgba(59, 130, 246, .2); }
.badge-consult  { background: rgba(251, 146, 60, .15); color: #fdba74;  border: 1px solid rgba(251, 146, 60, .2); }

.serv-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.serv-row:last-child { border-bottom: none; }
.serv-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(107, 33, 168, .2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}

/* ── TESTEMUNHOS: CARDS ─────────────────────────────────────── */
.testi-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 32px; transition: border-color .3s;
}
.testi-card:hover { border-color: rgba(107, 33, 168, .35); }
.quote-icon { color: #6B21A8; opacity: .5; font-size: 40px; line-height: 1; font-family: Georgia, serif; margin-bottom: 16px; display: block; }

/* ── CONTATO: CARDS ─────────────────────────────────────────── */
.contact-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 32px; transition: all .3s;
}
.contact-card:hover { border-color: rgba(0, 201, 167, .3); transform: translateY(-3px); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.trust-item:last-child { border-bottom: none; }

/* ── INDEX: PRODUCT SHOWCASE MINI CARDS ─────────────────────── */
.prod-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prod-mini {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07); background: #0e0020;
  transition: all .35s cubic-bezier(.22, .68, 0, 1.2); cursor: pointer;
}
.prod-mini:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--pm-c, rgba(255, 255, 255, .2));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .6);
}
.prod-mini-mock  { height: 140px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prod-mini-logo  { position: relative; z-index: 2; width: 65%; max-width: 200px; mix-blend-mode: screen; transition: transform .4s ease; }
.prod-mini:hover .prod-mini-logo { transform: scale(1.1); }
.prod-mini-glow  { position: absolute; inset: 0; z-index: 0; }
.prod-mini-body  { padding: 16px 18px 20px; }
.prod-mini-name  { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 4px; }
.prod-mini-desc  { font-size: 12px; color: rgba(240, 235, 255, .45); font-family: var(--font-body); line-height: 1.5; }

/* ── SVG ANIMATION KEYFRAMES (portfolio service mockups) ─────── */
@keyframes pulse-node  { 0%, 100% { r: 3; } 50% { r: 5; } }
@keyframes flow-line   { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }
@keyframes blink-led   { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes spin-ring   { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes drift-up    { 0% { transform: translateY(0); opacity: .7; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes ping-ring   { 0% { r: 12; opacity: .8; } 100% { r: 28; opacity: 0; } }
