@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* --- Slate Developer Design System --- */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  /* Cores Corporativas Sóbrias e Profissionais */
  --primary-blue: #2563eb;
  --primary-blue-muted: rgba(37, 99, 235, 0.05);
  --primary-cyan: #0284c7;
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #0f172a;
  --text-title: #0f172a;
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(37, 99, 235, 0.3);
  
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESETS E ESTRUTURA GERAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

/* Efeito de grade sutil para portfólio de engenharia */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

li {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* --- TIPOGRAFIA & AUXILIARES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-blue);
  letter-spacing: -0.02em;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
  position: relative;
  border-top: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.8rem;
  color: var(--text-title);
  font-weight: 700;
}

.section-desc {
  max-width: 650px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* --- BOTÕES DISCRETOS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 500;
  font-family: var(--font-header);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

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

/* --- HEADER / NAVBAR MÍNIMA --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: var(--transition-fast);
}

.logo {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-title);
}

.logo-dot {
  width: 4px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 4px 0;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2px 6px;
  margin-left: 8px;
  height: 26px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 12px;
  transition: var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-white);
}

.lang-btn.active {
  color: #ffffff;
  background: var(--primary-blue);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

.lang-divider {
  color: var(--border-light);
  font-size: 0.65rem;
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- THEME TOGGLE BUTTON (SUN / MOON) --- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  z-index: 101;
}

.theme-toggle-btn:hover {
  background: var(--primary-blue-muted);
  transform: scale(1.08);
}

.theme-toggle-btn .icon-sun {
  display: none !important;
  color: #fbbf24 !important; /* Glowing warm gold sun */
}

.theme-toggle-btn .icon-moon {
  display: inline-block !important;
  color: #2563eb !important; /* Vivid royal blue moon in Light Mode */
}

html[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none !important;
}

html[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: inline-block !important;
  color: #fbbf24 !important; /* Glowing warm gold sun */
}

.nav-cta {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  max-width: 1000px;
  margin: 0 auto;
  gap: 48px;
  align-items: center;
}

.hero-title-name {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-subtitle-role {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-sectors {
  margin-bottom: 24px;
}

.hero-sectors h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-sector-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.hero-sector-tag:hover {
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.hero-tech-row {
  margin-bottom: 32px;
}

.hero-tech-row h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-main);
  background: var(--primary-blue-muted);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 3px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Área da Foto Profissional */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-placeholder-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.photo-placeholder-icon {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.photo-placeholder-container span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- DIFERENCIAL: "O QUE EU CONSTRUO" (NOVA PIPELINE) --- */
.pipeline-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
  position: relative;
}

/* Linha conectora em desktops */
.pipeline-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 8%;
  width: 84%;
  height: 1px;
  border-top: 1px dashed var(--border-light);
  z-index: 0;
}

.pipeline-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: var(--transition-fast);
}

.pipeline-step:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-blue);
  background: var(--bg-primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.pipeline-icon {
  color: var(--text-main);
  margin-bottom: 12px;
}

.pipeline-step h4 {
  font-size: 0.85rem;
  color: var(--text-white);
  margin-bottom: 4px;
  font-weight: 500;
}

.pipeline-step p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- EXPERIÊNCIA PROFISSIONAL --- */
.timeline {
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  width: 1px;
  height: 100%;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--primary-blue);
  z-index: 10;
}

.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 20px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.timeline-role {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-top: 1px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-bullet {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.timeline-tech .tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-cyan);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* --- CASOS DE SUCESSO (PROJETOS) --- */
.portfolio-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.tab-btn.active {
  background: var(--primary-blue-muted);
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.015);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.8);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--primary-blue-muted);
  border: 1px solid var(--border-light);
  padding: 1px 6px;
  border-radius: 2px;
}

.project-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text-white);
}

.project-case-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.case-part {
  font-size: 0.85rem;
  line-height: 1.4;
}

.case-part strong {
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 2px;
}

.case-part p {
  color: var(--text-muted);
}

.case-part.result p {
  color: var(--text-main);
  border-left: 2px solid var(--primary-blue);
  padding-left: 8px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-blue);
  transition: var(--transition-fast);
  width: fit-content;
}

.project-link:hover {
  color: #2563eb;
}

/* --- ÁREAS DE ATUAÇÃO (SUBSTITUINDO SERVIÇOS) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.015);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.8);
}

.service-icon {
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-white);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.service-feature-item {
  font-size: 0.75rem;
  line-height: 1.45;
}

.service-feature-item strong {
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1px;
}

.service-feature-item p {
  color: var(--text-muted);
}

.service-feature-item.highlight p {
  color: var(--primary-blue);
}

/* --- TECNOLOGIAS --- */
.tech-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.tech-badge-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: var(--transition-fast);
}

.tech-badge-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.tech-badge-icon-txt {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-blue);
}

.tech-badge-label {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

/* --- COMPETÊNCIAS / SKILLS --- */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skills-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 20px;
}

.skills-category-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  color: var(--text-white);
}

.skills-category-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary-blue);
}

.skills-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--primary-blue);
}

/* --- TRAJETÓRIA PROFISSIONAL --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-bullets-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bullet-item {
  display: flex;
  gap: 10px;
}

.about-bullet-check {
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-bullet-txt strong {
  color: var(--text-white);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1px;
}

.about-bullet-txt span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-title {
  font-size: 1.8rem;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-method-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--primary-blue-muted);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.contact-method-details h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-method-details p {
  font-size: 0.88rem;
  color: var(--text-white);
  font-weight: 500;
}

.contact-form-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-white);
  transition: var(--transition-fast);
}

select.form-input option {
  background-color: var(--bg-secondary);
  color: var(--text-white);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-blue);
}

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

.form-status {
  margin-top: 12px;
  padding: 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: block;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  padding: 24px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav-link {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-nav-link:hover {
  color: var(--text-white);
}

.copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.1);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
  .hero-title-name {
    font-size: 2.5rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-container::before {
    display: none; /* remove a linha conectora */
  }
}

/* --- MANUAL DARK THEME (data-theme="dark") --- */
html[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.92);
  
  --primary-blue: #3b82f6;
  --primary-blue-muted: rgba(59, 130, 246, 0.15);
  --primary-cyan: #38bdf8;
  
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --text-title: #ffffff;
  
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(56, 189, 248, 0.4);
}

html[data-theme="dark"] body::before {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] .header {
  background: rgba(17, 24, 39, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .hero-title-name,
html[data-theme="dark"] .contact-info-title,
html[data-theme="dark"] .logo,
html[data-theme="dark"] .logo span,
html[data-theme="dark"] .timeline-role,
html[data-theme="dark"] .project-title,
html[data-theme="dark"] .service-title,
html[data-theme="dark"] .skills-category-title,
html[data-theme="dark"] .about-bullets-card h4,
html[data-theme="dark"] .detail-subtitle,
html[data-theme="dark"] .drawer-content h3,
html[data-theme="dark"] .contact-method-details p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] .case-part strong,
html[data-theme="dark"] .service-feature-item strong {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .project-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .metric-item,
html[data-theme="dark"] .timeline-content,
html[data-theme="dark"] .skills-category,
html[data-theme="dark"] .about-bullets-card,
html[data-theme="dark"] .contact-form-container,
html[data-theme="dark"] .contact-method-card,
html[data-theme="dark"] .tech-badge-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] select.form-input {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] select.form-input option {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .pipeline-flow-container {
  background: rgba(17, 24, 39, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .pipeline-node {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* --- SYSTEM DARK MODE SUPPORT --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1e293b;
    --bg-glass: rgba(17, 24, 39, 0.9);
    
    --primary-blue: #3b82f6;
    --primary-blue-muted: rgba(59, 130, 246, 0.15);
    --primary-cyan: #38bdf8;
    
    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --text-title: #ffffff;
    
    --title-grad-start: #ffffff;
    --title-grad-end: #38bdf8;
    
    --border-light: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(56, 189, 248, 0.4);
  }

  /* Explicit solid bright white for all major titles */
  .section-title, .hero-title-name, .contact-info-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    font-weight: 700 !important;
  }

  .logo span {
    color: #ffffff !important;
  }

  .timeline-role, .project-title, .service-title, .skills-category-title, .about-bullets-card h4, .detail-subtitle, .drawer-content h3, .contact-method-details p {
    color: #ffffff !important;
  }

  .case-part strong, .service-feature-item strong {
    color: #38bdf8 !important;
  }

  body::before {
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  }

  .header {
    background: rgba(17, 24, 39, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .project-card, .service-card, .metric-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .project-card:hover, .service-card:hover, .metric-item:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--primary-cyan);
  }

  .case-part.result p {
    color: #f8fafc;
  }

  .form-input, .form-textarea, select.form-input {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
  }

  select.form-input option {
    background-color: #1e293b;
    color: #f8fafc;
  }

  .timeline-content, .skills-category, .about-bullets-card, .contact-form-container, .contact-method-card, .tech-badge-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .pipeline-flow-container {
    background: rgba(17, 24, 39, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  .pipeline-node {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  .portfolio-tabs .tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
  }

  .portfolio-tabs .tab-btn.active {
    background: var(--primary-blue-muted);
    color: #ffffff;
    border-color: var(--primary-cyan);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    box-sizing: border-box;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    padding: 20px 24px 28px 24px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-link {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-link:hover, .nav-link.active {
    color: #38bdf8 !important;
    border-bottom-color: #38bdf8;
  }
  .lang-switch {
    margin-left: 0;
    margin-top: 12px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    height: 36px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .lang-btn {
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 12px;
  }
  .lang-btn.active {
    color: #ffffff;
    background: var(--primary-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  }
  .lang-divider {
    color: rgba(255, 255, 255, 0.3);
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pipeline-container {
    grid-template-columns: 1fr;
  }
  .services-grid, .skills-wrapper {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .drawer-panel {
    right: -100%;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .drawer-content {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title-name {
    font-size: 2.1rem;
    word-break: break-word;
  }
  .hero-subtitle-role {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.45rem;
  }
  .container {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .timeline-date {
    margin-top: 2px;
  }
  .project-link {
    font-size: 0.8rem;
  }
  .portfolio-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --- SLIDE-OVER DRAWER --- */
.case-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-drawer.active {
  display: block;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: -600px;
  width: 100%;
  max-width: 580px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.case-drawer.active .drawer-panel {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 10;
}

.drawer-close:hover {
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.drawer-content {
  padding: 40px 30px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-content h3 {
  font-size: 1.4rem;
  color: var(--text-white);
  line-height: 1.3;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -12px;
}

/* Phone Mockup */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.phone-mockup {
  position: relative;
  width: 200px;
  height: 410px;
  border: 10px solid #222;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  background: #000;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 14px;
  background: #222;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 20;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Detail Case sections */
.case-detail-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
}

.detail-subtitle {
  font-family: var(--font-header);
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.case-detail-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-detail-section p strong {
  color: var(--text-white);
}

.code-block-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  margin-top: 8px;
}

.code-block-wrapper pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7f3d0; /* light green for code */
  line-height: 1.4;
  margin: 0;
}

.screenshot-thumbnail {
  transition: var(--transition-fast);
}

.screenshot-thumbnail:hover {
  transform: scale(1.05);
  border-color: var(--primary-blue) !important;
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* Amazon style dark semi-transparent */
  z-index: 10000; /* above everything else, drawer is z-index 2000 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-wrapper {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-wrapper {
  transform: scale(1);
}

.lightbox-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone Frame Mockup inside Lightbox */
.lightbox-phone-frame {
  position: relative;
  border: 12px solid #222;
  border-radius: 32px;
  background: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  
  /* phone dimensions for mobile screens */
  width: 290px;
  height: 600px;
  max-width: 90vw;
  max-height: 80vh;
}

/* Notch for speaker/camera in lightbox phone mockup */
.lightbox-phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  background: #222;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 20;
  transition: all 0.25s ease;
}

/* No-frame mode for horizontal screenshots (like code or DB schema) */
.lightbox-phone-frame.no-frame {
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-phone-frame.no-frame::before {
  display: none;
}

.lightbox-phone-frame.no-frame .lightbox-content {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Hide navigation arrows on small mobile devices to avoid overlap */
@media (max-width: 576px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* Glowing background blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: all 0.5s ease;
}

.blob-1 {
  top: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.blob-2 {
  top: 45%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.blob-3 {
  bottom: 5%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.02) 100%);
}

/* Pipeline de Dados Interativo (CSS) */
.hero-pipeline-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.pipeline-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-title);
  transition: all 0.2s ease;
}

.pipeline-node i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pipeline-node.database i { color: var(--primary-blue); }
.pipeline-node.python i { color: var(--primary-cyan); }
.pipeline-node.powerbi i { color: #f59e0b; }

.pipeline-node:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  border-color: var(--primary-blue);
}

.pipeline-flow-line {
  position: relative;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-light) 50%, var(--primary-blue-muted) 50%);
}

.flow-particle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: flowStream 1.8s infinite linear;
}

.line-1 .flow-particle {
  background: var(--primary-blue);
  box-shadow: 0 0 8px var(--primary-blue);
}

.line-2 .flow-particle {
  background: var(--primary-cyan);
  box-shadow: 0 0 8px var(--primary-cyan);
}

.flow-particle.p1 { animation-delay: 0s; }
.flow-particle.p2 { animation-delay: 0.9s; }
.flow-particle.p3 { animation-delay: 0.45s; }

@keyframes flowStream {
  0% {
    top: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Hide pipeline flow visual on small screens */
@media (max-width: 768px) {
  .hero-pipeline-visual {
    display: none;
  }
}

/* Strip de Métricas Operacionais */
.metrics-strip {
  padding: 40px 0 20px 0;
  position: relative;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.015);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.8);
}

.metric-number {
  font-family: var(--font-header);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
}

.metric-plus {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-cyan);
  line-height: 1;
  vertical-align: top;
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Scroll Reveal Animado */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip Customizado para Nós da Pipeline */
.pipeline-node {
  position: relative;
}

.pipeline-node::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.pipeline-node:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



