/* ==========================================================================
   Novum Tecnologia — Identidade Visual Tecnológica: Dark Navy, Royal Blue & Cyan
   Visual inspirado na arquitetura gráfica de Novum Security
   ========================================================================== */

:root {
  --tech-bg-deep: #07080c;
  --tech-bg-base: #0b0d13;
  --tech-bg-surface: #12151f;
  --tech-bg-card: #161a26;
  --tech-blue: #0066ff;
  --tech-blue-dark: #0052cc;
  --tech-cyan: #00d4ff;
  --tech-cyan-dark: #00a8ff;
  --tech-sky: #38bdf8;
  --tech-border: rgba(255, 255, 255, 0.08);
  --tech-border-glow: rgba(0, 212, 255, 0.32);
  --novum-favicon-dark: url('../assets/images/favicon-dark.png');
  --novum-favicon-light: url('../assets/images/favicon-light.png');
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background-color: var(--tech-bg-deep);
}

/* Custom Scrollbar - Blue to Cyan Gradient */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08090d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0066ff 0%, #00d4ff 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00e1ff;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00d4ff !important;
  outline-offset: 2px;
}

/* Tactical Technical Grid Background */
.bg-tactical-grid,
.bg-tech-grid {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
}

.bg-tech-dots {
  background-image: radial-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Tech Glassmorphism Card Surface */
.tech-card,
.tech-surface {
  background: linear-gradient(165deg, rgba(20, 25, 38, 0.92) 0%, rgba(12, 15, 23, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.tech-card:hover,
.tech-surface:hover {
  border-color: rgba(0, 212, 255, 0.42);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 102, 255, 0.18);
  transform: translateY(-3px);
}

/* WhatsApp Floating Pulse */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.pulse-whatsapp {
  animation: pulse-green 2.2s infinite;
}

/* Signal Flow Line Animation */
@keyframes signal-flow {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animate-signal {
  stroke-dasharray: 6 6;
  animation: signal-flow 1.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-signal,
  .pulse-whatsapp,
  .clients-marquee-track {
    animation: none !important;
  }
}

/* ==========================================================================
   INFINITE CLIENT MARQUEE CAROUSEL (Dark Tactical Edition)
   ========================================================================== */

@keyframes clients-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.clients-marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-marquee-track {
  display: flex;
  width: max-content;
  animation: clients-marquee 42s linear infinite;
  will-change: transform;
}

.clients-marquee-viewport:hover .clients-marquee-track {
  animation-play-state: paused;
}

.client-logo-card {
  width: 250px;
  margin-right: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(165deg, rgba(22, 28, 42, 0.95) 0%, rgba(13, 16, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 102, 255, 0.2);
}

.client-logo-card .client-logo-box {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.85rem;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: transform 0.3s ease;
}

.client-logo-card:hover .client-logo-box {
  transform: scale(1.03);
}

.client-logo-card img {
  max-height: 60px;
  max-width: 165px;
  object-contain: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}
