:root {
  --color-bg: #050914;
  --color-surface: rgba(18, 26, 47, 0.6);
  --color-surface-hover: rgba(25, 36, 65, 0.8);
  
  --color-primary: #0070F3;
  --color-secondary: #00D4AA;
  --color-accent: #6C63FF;
  
  --color-text: #FFFFFF;
  --color-text-muted: #8A99B5;
  --color-border: rgba(255, 255, 255, 0.08);

  --font-family-sans: 'Inter', system-ui, sans-serif;
  --font-family-heading: 'Outfit', 'Inter', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-primary: 0 0 20px rgba(0, 112, 243, 0.4);
  --glow-secondary: 0 0 20px rgba(0, 212, 170, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.relative { position: relative; }
.z-10 { z-index: 10; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-block-start: 0.5rem; }
.mt-4 { margin-block-start: 1rem; }
.mt-8 { margin-block-start: 2rem; }
.mt-12 { margin-block-start: 3rem; }
.mb-6 { margin-block-end: 1.5rem; }
.mb-8 { margin-block-end: 2rem; }
.pt-large { padding-block-start: var(--space-xl); }
.pb-large { padding-block-end: var(--space-xl); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.875rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-family-heading);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.glow-effect {
  box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(0, 112, 243, 0.4), 0 0 60px rgba(108, 99, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.glass-panel, .glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-md);
}

.glass-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(5, 9, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: padding 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 130px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img { 
  height: 180px; 
  transition: all 0.3s ease; 
  object-fit: contain;
  filter: brightness(3);
}

.footer-logo-img {
  height: 40px !important;
  margin-block-end: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link:hover, .nav-link:focus { color: var(--color-text); }

.nav-link:not(.btn-contact)::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background-color: var(--color-secondary);
  transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus::after { transform: translateX(-50%) scale(1); }

.btn-contact {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.btn-contact:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
  box-shadow: var(--glow-secondary);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  border-color: var(--color-primary);
  background: rgba(0, 112, 243, 0.1);
}

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; }
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-block-start: 80px;
}

#circuit-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-block-end: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-block-end: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-block-end: 3rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px; height: 6px;
  background: var(--color-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

.stats-section {
  position: relative;
  z-index: 20;
  margin-block-start: -50px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2.5rem;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 3rem;
  color: var(--color-text);
  margin-block-end: 0.25rem;
}

.stat-label {
  color: var(--color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.stat-divider {
  width: 1px; height: 60px;
  background: var(--color-border);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.section-description {
  max-width: 600px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.accent-line {
  display: block; width: 60px; height: 4px;
  background: var(--color-primary);
  border-radius: 2px; margin-block-end: 1.5rem;
}

.tech-circle-container {
  position: relative; width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}

.tech-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.outer-circle { width: 90%; height: 90%; animation: spin 40s linear infinite; }
.middle-circle { width: 65%; height: 65%; border-style: solid; border-color: rgba(0, 212, 170, 0.2); animation: spin-reverse 30s linear infinite; }
.inner-circle { 
  width: 35%; height: 35%; 
  background: rgba(0, 112, 243, 0.1); 
  border: 1px solid var(--color-primary); 
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: var(--glow-primary);
}

.floating-icon {
  position: absolute;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--color-text);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 15%; left: 15%; animation-delay: 0s; }
.icon-2 { bottom: 15%; right: 15%; animation-delay: 2s; }
.icon-3 { top: 40%; right: 5%; animation-delay: 4s; }

.glass-icon {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}
.bg-blob-1 { top: 10%; left: -10%; width: 500px; height: 500px; background: var(--color-primary); }
.bg-blob-2 { bottom: 0; right: -10%; width: 600px; height: 600px; background: var(--color-accent); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.expertise-card {
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.3);
}

.card-icon-wrapper {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.2), rgba(0, 212, 170, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--color-secondary);
  margin-block-end: 1.5rem;
}

.card-title { font-size: 1.5rem; margin-block-end: 1rem; }
.card-text { color: var(--color-text-muted); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tags span {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text);
}

.cta-wrapper { padding: 4rem 2rem; }

.footer { border-top: 1px solid var(--color-border); padding: 4rem 0 2rem; background: rgba(0,0,0,0.3); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 3rem; flex-wrap: wrap; gap: 2rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block-start: 2rem; border-top: 1px solid var(--color-border); }
.social-links a { color: var(--color-text-muted); font-size: 1.5rem; }
.social-links a:hover { color: var(--color-primary); }

.animate-on-scroll { 
  opacity: 0; 
  visibility: hidden; 
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  animation: fadeIn 1s forwards;
}

.animate-fade-in { animation: fadeIn 1s forwards; }
.animate-slide-up { animation: slideUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; opacity: 0; transform: translateY(40px); }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.is-visible.fade-in { animation: fadeIn 1s forwards; }
.is-visible.slide-right { animation: slideRight 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.is-visible.slide-left { animation: slideLeft 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.is-visible.scale-up { animation: scaleUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.is-visible.stagger-1 { animation: slideUp 0.8s forwards; animation-delay: 0s; }
.is-visible.stagger-2 { animation: slideUp 0.8s forwards; animation-delay: 0.15s; }
.is-visible.stagger-3 { animation: slideUp 0.8s forwards; animation-delay: 0.3s; }

@keyframes fadeIn { to { opacity: 1; visibility: visible; } }
@keyframes slideUp { to { opacity: 1; visibility: visible; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; visibility: visible; transform: translateX(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; visibility: visible; transform: translateX(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; visibility: visible; transform: scale(1); } }

html[lang="pt-BR"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="pt"] { display: none !important; }

@media (max-width: 992px) {
  .about-wrapper { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 2rem; padding: 2rem; }
  .stat-divider { width: 60px; height: 1px; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
    background: var(--color-bg); flex-direction: column; justify-content: center;
    transition: left 0.4s ease; z-index: 999;
  }
  .nav-links.active { left: 0; }
  .menu-toggle { display: block; position: relative; z-index: 1001; }
  .menu-toggle.active .hamburger { background: transparent; }
  .menu-toggle.active .hamburger::before { transform: rotate(45deg); }
  .menu-toggle.active .hamburger::after { transform: rotate(-45deg); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-content { flex-direction: column; }
}