:root {
  --bg-dark: #000000;
  --surface-light: #f9f9fa;
}
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}
.font-google-sans-flex {
  font-family: 'Google Sans Flex', sans-serif !important;
}
/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 40s linear infinite;
  width: max-content;
}
.companies-marquee {
  animation: marquee 25s linear infinite;
}
/* Custom Input Resets */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* Hover Transitions */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-0.25rem);
  border-color: #FFFFFF;
}
::selection {
  background-color: #FFFFFF;
  color: var(--bg-dark);
}
/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Custom SVG Animations */
.perspective-1000 {
  perspective: 1000px;
}
.svg-draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
/* Testimonials Scroll Animations */
@keyframes scrollUpTestimonial {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes scrollDownTestimonial {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
.animate-scroll-up {
  animation: scrollUpTestimonial 35s linear infinite;
}
.animate-scroll-down {
  animation: scrollDownTestimonial 35s linear infinite;
}

/* Parallax 3D Layer Styles (Custom Tech-Mountain concept) */
.parallax-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.sky-layer {
  z-index: 10;
  position: absolute;
  inset: 0;
  will-change: transform;
}
.midground-layer {
  z-index: 20;
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -4%;
  will-change: transform;
}
.foreground-layer {
  z-index: 40;
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -6%;
  will-change: transform;
}

/* Typewriter Cursor Blinking */
@keyframes blink-cursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #ffffff; } /* white */
}
.animate-blink {
  animation: blink-cursor 1s step-end infinite;
}

/* Staged Loading Intro Animations (Aura Build Concept) */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bgZoomOut {
  0% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-bg-intro {
  animation: bgZoomOut 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-header-intro {
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.6s forwards;
}
.animate-title-intro {
  opacity: 0;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.animate-subtitle-intro {
  opacity: 0;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.animate-btn-intro {
  opacity: 0;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.animate-socials-intro {
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.8s forwards;
}

/* Floating Glass Gems Animations */
@keyframes floatGemsLeft {
  0%, 100% { transform: translateY(0) rotate(12deg) scale(1); }
  50% { transform: translateY(-16px) rotate(14deg) scale(1.02); }
}
@keyframes floatGemsRight {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50% { transform: translateY(16px) rotate(-10deg) scale(0.98); }
}
.animate-float-left {
  animation: floatGemsLeft 6s ease-in-out infinite;
}
.animate-float-right {
  animation: floatGemsRight 7s ease-in-out infinite;
}

/* Floating Volumetric Mist/Fog Animation */
@keyframes floatMist {
  0%, 100% { transform: translateX(-2%) translateY(1%) scale(1); opacity: 0.12; }
  50% { transform: translateX(2%) translateY(-1%) scale(1.06); opacity: 0.22; }
}
.animate-float-mist {
  animation: floatMist 14s ease-in-out infinite;
}
/* Drift Animations for Glowing Orbs */
@keyframes driftLeft {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, -6%) scale(1.1); }
}
@keyframes driftRight {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-6%, 8%) scale(0.95); }
}
.animate-drift {
  animation: driftLeft 15s ease-in-out infinite alternate;
}
.animate-drift-alt {
  animation: driftRight 18s ease-in-out infinite alternate;
}

/* WebGL Particle Scene Component Styles (Google Antigravity style) */
.main-particles-component-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.main-particles-component-section .main-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main-particles-component-section .main-particles-container canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.n8n-demo-shell {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  border: 1px dashed rgba(63, 63, 70, 0.9);
  border-radius: 0;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  position: relative;
}

.n8n-demo-shell n8n-demo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: absolute;
  inset: 0;
  color-scheme: dark;
  --n8n-demo-border-color: rgba(63, 63, 70, 0.75);
  --n8n-demo-frame-background: #050505;
  --n8n-demo-background: #050505;
}

@media (max-width: 767px) {
  .n8n-demo-shell {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* ==========================================
   SISTEMA DE BOTÕES CODEDGAR MONOCROMÁTICO
   ========================================== */
:root {
  --motion-fast: 0.16s;
  --motion-medium: 0.24s;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0, 0, 0.2, 1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans Flex', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.75rem; /* text-xs */
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 1.15rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}

/* Botão Primário (Fundo Branco com Slide Preto no Hover) */
.btn--primary {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.btn--primary:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #09090b; /* Zinc-950 / Black */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-standard);
  z-index: -1;
}

.btn--primary:hover {
  color: #FFFFFF;
  border-color: #3f3f46; /* Zinc-700 */
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn--primary:hover:before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botão Secundário (Transparente com Slide Branco Sólido no Hover - Inversão Completa) */
.btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  border-style: dashed;
}

.btn--secondary:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 50%, transparent 50%, transparent 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.4s var(--ease-standard);
  z-index: -1;
  opacity: 0;
}

.btn--secondary:hover {
  border-color: #FFFFFF;
  border-style: solid;
  color: #000000;
}

.btn--secondary:hover:before {
  background-position: 0 0;
  opacity: 1; /* Slide sólido branco para inversão de cor com o texto */
}

/* Botão Pequeno (Abas e Filtros) */
.btn--sm {
  padding: 0.8rem 1.4rem;
  font-size: 0.7rem;
}

/* Botão Grande (Hero e formulários) */
.btn--large {
  padding: 1.25rem 2.25rem;
  font-size: 0.75rem;
}

/* Utilitário para Botão com Largura Total */
.btn--full {
  width: 100%;
}

/* ==========================================
   CODEDGAR GLITCH SCRAMBLE & LIGHT THEME OVERRIDES
   ========================================== */
.hero__name {
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.hero__char {
  display: inline-block;
  transition: color 0.15s ease;
}

/* ==========================================
   ESTILOS DE SUBSEÇÕES DE PROJETOS EM GRID
   ========================================== */
.project-subsection {
  margin-top: 4rem;
  margin-bottom: 2rem;
  border-top: 1px dashed rgba(63, 63, 70, 0.4); /* zinc-800/40 */
  padding-top: 3rem;
}

.project-subsection:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.project-subsection-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; /* text-xs */
  color: #a1a1aa; /* zinc-400 */
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.5rem;
}
