/* ==========================================================================
   ANALYTICS HUB — GILLIARD FERNANDES
   Design System: Modern Corporate Analytics (Light Theme Default + Dark Mode)
   Responsive & Mobile-First Precision
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Color Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Mode: Light (Primary / Default) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F8FAFC;
  --bg-modal-backdrop: rgba(15, 23, 42, 0.65);

  --border-subtle: #E2E8F0;
  --border-default: #CBD5E1;
  --border-hover: #94A3B8;
  --border-accent: #0078D4;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverted: #FFFFFF;

  /* Accents & Technology Brand Colors */
  --azure-primary: #0078D4;
  --azure-hover: #106EBE;
  --azure-pressed: #005A9E;
  --azure-subtle: rgba(0, 120, 212, 0.08);
  --azure-border: rgba(0, 120, 212, 0.25);

  /* Technology Identity Tokens (Light Theme) */
  --tech-pbi-color: #B45309;
  --tech-pbi-bg: #FEF3C7;
  --tech-pbi-border: #FCD34D;
  --tech-pbi-icon: #D97706;

  --tech-databricks-color: #BE123C;
  --tech-databricks-bg: #FFE4E6;
  --tech-databricks-border: #FDA4AF;
  --tech-databricks-icon: #FF3621;

  --tech-webapps-color: #047857;
  --tech-webapps-bg: #D1FAE5;
  --tech-webapps-border: #6EE7B7;
  --tech-webapps-icon: #059669;

  --tech-auto-color: #0369A1;
  --tech-auto-bg: #E0F2FE;
  --tech-auto-border: #7DD3FC;
  --tech-auto-icon: #017CEE;

  --tech-ai-color: #6D28D9;
  --tech-ai-bg: #EDE9FE;
  --tech-ai-border: #C4B5FD;
  --tech-ai-icon: #8B5CF6;

  --accent-gold: #D97706;
  --accent-gold-subtle: rgba(217, 119, 6, 0.1);
  --accent-teal: #0D9488;
  --accent-teal-subtle: rgba(13, 148, 136, 0.1);
  --accent-cyan: #0284C7;
  --accent-cyan-subtle: rgba(2, 132, 199, 0.1);
  --accent-purple: #8B5CF6;
  --accent-purple-subtle: rgba(139, 92, 246, 0.1);
  --accent-indigo: #4F46E5;
  --accent-indigo-subtle: rgba(79, 70, 229, 0.1);
  --accent-success: #16A34A;
  --accent-success-subtle: rgba(22, 163, 74, 0.1);
  --accent-warning: #D97706;
  --accent-warning-subtle: rgba(217, 119, 6, 0.1);
  --accent-error: #DC2626;
  --accent-error-subtle: rgba(220, 38, 38, 0.1);

  /* Corner Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Typography & Layout */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --container-max: 1240px;
  
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-modal: 0 12px 32px rgba(15, 23, 42, 0.18);
}

/* Dark Theme Variables (Activated via data-theme="dark") */
html[data-theme="dark"],
html.dark {
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1E293B;
  --bg-surface: #131D31;
  --bg-surface-hover: #1E2B45;
  --bg-modal-backdrop: rgba(3, 7, 18, 0.8);

  --border-subtle: #1F2937;
  --border-default: #334155;
  --border-hover: #475569;
  --border-accent: #0078D4;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverted: #0F172A;

  --azure-primary: #0078D4;
  --azure-hover: #106EBE;
  --azure-pressed: #005A9E;
  --azure-subtle: rgba(0, 120, 212, 0.15);
  --azure-border: rgba(0, 120, 212, 0.35);

  /* Technology Identity Tokens (Dark Theme) */
  --tech-pbi-color: #FBBF24;
  --tech-pbi-bg: rgba(245, 158, 11, 0.16);
  --tech-pbi-border: rgba(245, 158, 11, 0.35);
  --tech-pbi-icon: #F59E0B;

  --tech-databricks-color: #FDA4AF;
  --tech-databricks-bg: rgba(255, 54, 33, 0.16);
  --tech-databricks-border: rgba(255, 54, 33, 0.35);
  --tech-databricks-icon: #FF4A38;

  --tech-webapps-color: #6EE7B7;
  --tech-webapps-bg: rgba(5, 150, 105, 0.16);
  --tech-webapps-border: rgba(5, 150, 105, 0.35);
  --tech-webapps-icon: #10B981;

  --tech-auto-color: #7DD3FC;
  --tech-auto-bg: rgba(1, 124, 238, 0.16);
  --tech-auto-border: rgba(1, 124, 238, 0.35);
  --tech-auto-icon: #38BDF8;

  --tech-ai-color: #C4B5FD;
  --tech-ai-bg: rgba(139, 92, 246, 0.16);
  --tech-ai-border: rgba(139, 92, 246, 0.35);
  --tech-ai-icon: #A78BFA;

  --accent-gold: #F59E0B;
  --accent-gold-subtle: rgba(245, 158, 11, 0.15);
  --accent-teal: #009688;
  --accent-teal-subtle: rgba(0, 150, 136, 0.15);
  --accent-purple: #9C27B0;
  --accent-purple-subtle: rgba(156, 39, 176, 0.15);
  --accent-indigo: #6366F1;
  --accent-indigo-subtle: rgba(99, 102, 241, 0.15);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  padding-top: 68px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

button {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Buttons & Component Controls
   -------------------------------------------------------------------------- */
.btn-primary-azure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--azure-primary);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--azure-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 40px;
  text-decoration: none;
}

.btn-primary-azure:hover {
  background-color: var(--azure-hover);
  border-color: var(--azure-hover);
  color: #FFFFFF !important;
}

.btn-primary-azure:active {
  background-color: var(--azure-pressed);
}

.btn-secondary-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 40px;
  text-decoration: none;
}

.btn-secondary-surface:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-large {
  padding: 12px 24px;
  font-size: 14.5px;
  min-height: 46px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12.5px;
  min-height: 34px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background-color: var(--azure-primary);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-brand {
  width: 20px;
  height: 20px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  min-height: 38px;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--azure-primary);
  background-color: var(--azure-subtle);
  font-weight: 600;
}

.nav-link.active .nav-icon {
  color: var(--azure-primary);
}

.nav-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Toggle Button (PT-BR | EN) */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-opt.active {
  background-color: var(--azure-primary);
  color: #fff;
}

.lang-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-default);
}

.theme-icon {
  width: 17px;
  height: 17px;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}
html[data-theme="dark"] .icon-moon {
  display: none;
}
html[data-theme="light"] .icon-sun {
  display: none;
}
html[data-theme="light"] .icon-moon {
  display: block;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 56px 0 44px 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 900px;
  margin-bottom: 16px;
}

.highlight-azure {
  color: var(--azure-primary);
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.authority-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.metric-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-card);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.metric-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--azure-subtle);
  color: var(--azure-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon {
  width: 18px;
  height: 18px;
}

.metric-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. Sections Common Structure
   -------------------------------------------------------------------------- */
.section-container,
#projects-section,
#pillars-carousel-section,
#matrix-section,
#about-section {
  scroll-margin-top: 84px;
}

.section-container {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-surface);
}

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

.center-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-header .section-subtitle {
  text-align: center !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--azure-primary);
  background-color: var(--azure-subtle);
  border: 1px solid var(--azure-border);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.badge-icon {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   7. Projects Showcase & Horizontal Cards Track
   -------------------------------------------------------------------------- */
.filter-tabs-container {
  margin-bottom: 24px;
}

.filter-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-tab {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-icon {
  width: 15px;
  height: 15px;
}

.tab-counter-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background-color: var(--azure-subtle);
  color: var(--azure-primary);
}

.filter-tab.active .tab-counter-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.filter-tab:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.filter-tab.active {
  background-color: var(--azure-primary);
  color: #FFFFFF;
  border-color: var(--azure-primary);
  font-weight: 600;
}

/* Timer progress bar for 7-second auto rotation */
.topic-timer-bar-container {
  width: 100%;
  height: 3px;
  background-color: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.topic-timer-bar {
  height: 100%;
  width: 0%;
  background-color: var(--azure-primary);
  border-radius: 2px;
}

.projects-horizontal-viewport {
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  align-content: start;
}

.project-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-subtle);
  height: 100%;
}

.project-card:hover {
  border-color: var(--azure-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.project-category {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-status-icon {
  width: 12px;
  height: 12px;
}

.badge-status-demo {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-status-showcase {
  background-color: var(--azure-subtle);
  color: var(--azure-primary);
  border: 1px solid var(--azure-border);
}

.project-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.project-highlights {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.highlights-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.highlight-icon {
  width: 14px;
  height: 14px;
  color: var(--azure-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

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

.tag-pill {
  font-size: 11.5px;
  font-family: var(--font-mono);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-card-action,
.btn-card-secondary {
  flex: 1 1 0;
  width: 50%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-card-action {
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 8px;
  background-color: var(--bg-surface);
  color: var(--azure-primary);
  border: 1px solid var(--azure-border);
}

.btn-card-action:hover {
  background-color: var(--azure-primary);
  color: #FFFFFF;
  border-color: var(--azure-primary);
}

.btn-card-secondary {
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 8px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-card-secondary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* --------------------------------------------------------------------------
   8. Carousel de Pilares & Serviços
   -------------------------------------------------------------------------- */
.carousel-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.carousel-toolbar-clean {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge */
  padding: 6px 2px 12px 2px;
  margin-bottom: 22px;
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  user-select: none;
  align-items: stretch;
}

.carousel-card-slide {
  flex: 0 0 340px;
  width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.pillar-card-inner {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  min-height: 290px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card-inner:hover {
  border-color: var(--azure-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pillar-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--azure-primary);
  background-color: var(--azure-subtle);
  border: 1px solid var(--azure-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pillar-icon-box {
  width: 32px;
  height: 32px;
  background-color: var(--azure-subtle);
  border: 1px solid var(--azure-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-primary);
  transition: all 0.2s ease;
}

/* Pillar Specific Technology Identities */
#pillar-powerbi .pillar-badge {
  color: var(--tech-pbi-color);
  background-color: var(--tech-pbi-bg);
  border-color: var(--tech-pbi-border);
}
#pillar-powerbi .pillar-icon-box {
  color: var(--tech-pbi-icon);
  background-color: var(--tech-pbi-bg);
  border-color: var(--tech-pbi-border);
}
#pillar-powerbi .pillar-card-inner:hover {
  border-color: var(--tech-pbi-border);
}

#pillar-databricks .pillar-badge {
  color: var(--tech-databricks-color);
  background-color: var(--tech-databricks-bg);
  border-color: var(--tech-databricks-border);
}
#pillar-databricks .pillar-icon-box {
  color: var(--tech-databricks-icon);
  background-color: var(--tech-databricks-bg);
  border-color: var(--tech-databricks-border);
}
#pillar-databricks .pillar-card-inner:hover {
  border-color: var(--tech-databricks-border);
}

#pillar-apps .pillar-badge {
  color: var(--tech-webapps-color);
  background-color: var(--tech-webapps-bg);
  border-color: var(--tech-webapps-border);
}
#pillar-apps .pillar-icon-box {
  color: var(--tech-webapps-icon);
  background-color: var(--tech-webapps-bg);
  border-color: var(--tech-webapps-border);
}
#pillar-apps .pillar-card-inner:hover {
  border-color: var(--tech-webapps-border);
}

#pillar-orchestration .pillar-badge {
  color: var(--tech-auto-color);
  background-color: var(--tech-auto-bg);
  border-color: var(--tech-auto-border);
}
#pillar-orchestration .pillar-icon-box {
  color: var(--tech-auto-icon);
  background-color: var(--tech-auto-bg);
  border-color: var(--tech-auto-border);
}
#pillar-orchestration .pillar-card-inner:hover {
  border-color: var(--tech-auto-border);
}

#pillar-ai-ml .pillar-badge {
  color: var(--tech-ai-color);
  background-color: var(--tech-ai-bg);
  border-color: var(--tech-ai-border);
}
#pillar-ai-ml .pillar-icon-box {
  color: var(--tech-ai-icon);
  background-color: var(--tech-ai-bg);
  border-color: var(--tech-ai-border);
}
#pillar-ai-ml .pillar-card-inner:hover {
  border-color: var(--tech-ai-border);
}

.pillar-icon {
  width: 16px;
  height: 16px;
}

.pillar-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pillar-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pillar-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

/* Indicadores de Tópicos (Círculos limpos para seleção individual) */
.carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  padding: 6px 0;
  position: relative;
  z-index: 5;
}

.carousel-dot {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  border-radius: 50%;
  background-color: var(--border-default);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dot:hover {
  background-color: var(--azure-hover);
  transform: scale(1.2);
}

.carousel-dot.active {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--azure-primary);
  box-shadow: 0 0 0 3px var(--azure-subtle);
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   9. Direct & Fluid Matrix Grid (No horizontal scrollbar)
   -------------------------------------------------------------------------- */
.matrix-table-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.matrix-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
  flex-wrap: wrap;
  gap: 10px;
}

.table-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-icon {
  width: 18px;
  height: 18px;
  color: var(--azure-primary);
}

.table-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.table-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.matrix-fluid-grid {
  width: 100%;
}

.matrix-fluid-header {
  display: grid;
  grid-template-columns: 1.8fr 2.4fr 1.5fr 1.6fr 1.5fr 1.2fr;
  padding: 12px 20px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.matrix-fluid-row {
  display: grid;
  grid-template-columns: 1.8fr 2.4fr 1.5fr 1.6fr 1.5fr 1.2fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.matrix-fluid-row:hover {
  background-color: var(--bg-tertiary);
}

.matrix-fluid-row:last-child {
  border-bottom: none;
}

.col-cell {
  font-size: 13px;
  color: var(--text-secondary);
}

.pillar-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.pillar-subcat {
  font-size: 11.5px;
  color: var(--text-muted);
}

.metric-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: inline-block;
}

.stakeholder-tag {
  font-size: 12px;
  color: var(--text-secondary);
}

.matrix-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-azure {
  background-color: var(--azure-subtle);
  color: var(--azure-primary);
  border: 1px solid var(--azure-border);
}

.badge-gold {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-teal {
  background-color: var(--accent-teal-subtle);
  color: var(--accent-teal);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.badge-blue {
  background-color: rgba(66, 133, 244, 0.12);
  color: #2563EB;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.badge-purple {
  background-color: var(--accent-purple-subtle);
  color: var(--accent-purple);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* --------------------------------------------------------------------------
   10. About Gilliard Fernandes Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.about-bio-column {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--azure-primary);
  margin-bottom: 16px;
}

.about-paragraph {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.methodology-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 16px 0 24px 0;
}

.methodology-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.methodology-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-success);
}

.methodology-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.methodology-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.methodology-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.methodology-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--azure-primary);
  font-weight: bold;
}

.contact-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.contact-pill:hover {
  background-color: var(--azure-subtle);
  border-color: var(--azure-primary);
  color: var(--azure-primary);
}

.contact-icon {
  width: 15px;
  height: 15px;
}

.about-stack-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stack-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stack-box-icon {
  width: 18px;
  height: 18px;
}

.text-gold { color: var(--accent-gold); }
.text-azure { color: var(--azure-primary); }
.text-blue { color: #2563EB; }
.text-purple { color: var(--accent-purple); }

.stack-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.skill-tag-ms {
  background-color: var(--azure-subtle);
  color: var(--text-primary);
  border-color: var(--azure-border);
}

.skill-tag-azure {
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--text-primary);
  border-color: rgba(2, 132, 199, 0.3);
}

.skill-tag-modern {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.skill-tag-ai {
  background-color: var(--accent-purple-subtle);
  color: var(--text-primary);
  border-color: rgba(147, 51, 234, 0.3);
}

.partnership-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--azure-subtle) 100%);
  border: 1px solid var(--azure-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partnership-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.partnership-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Modal Dialog (Project Details & Direct Contact)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-modal-backdrop);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-window {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  animation: scaleUp 0.15s ease-out;
}

@keyframes scaleUp {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  width: 36px;
  height: 36px;
  background-color: var(--azure-subtle);
  border: 1px solid var(--azure-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-primary);
  flex-shrink: 0;
}

.icon-modal-shield {
  width: 20px;
  height: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.icon-close {
  width: 20px;
  height: 20px;
}

.modal-tabs {
  flex-shrink: 0;
  display: flex;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 22px;
}

.modal-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab:hover {
  color: var(--text-primary);
}

.modal-tab.active {
  color: var(--azure-primary);
  border-bottom-color: var(--azure-primary);
  font-weight: 600;
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.modal-alert-box {
  margin: 16px 22px 0 22px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--accent-success-subtle);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: var(--text-primary);
}

.modal-alert-box.alert-error {
  background-color: var(--accent-error-subtle);
  border-color: rgba(220, 38, 38, 0.35);
}

.alert-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-success);
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-alert-box.alert-error .alert-icon {
  color: var(--accent-error);
}

.modal-tab-pane {
  padding: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.project-modal-view {
  display: flex;
  flex-direction: column;
}

.modal-project-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-category {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-proj-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Architecture Selection Bar inside Modal (Visão da Solução) */
.modal-arch-selection-bar {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-selector-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arch-selector-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-select-icon {
  width: 17px;
  height: 17px;
}

.arch-selector-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.arch-selector-controls {
  width: 100%;
}

.modal-arch-dropdown {
  width: 100%;
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-arch-dropdown:focus {
  border-color: var(--azure-primary);
  box-shadow: 0 0 0 2px var(--azure-subtle);
}

.arch-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.arch-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.arch-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
}

.arch-pill.active {
  background-color: var(--azure-primary);
  color: #ffffff;
  border-color: var(--azure-primary);
}

.modal-proj-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Architecture Flow & Layers Box inside Modal */
.modal-arch-flow-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.arch-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.arch-flow-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.flow-icon {
  width: 17px;
  height: 17px;
}

.arch-pattern-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--azure-primary);
  background-color: var(--azure-subtle);
  border: 1px solid var(--azure-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}

.flow-stage-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
  height: 100%;
}

.flow-stage-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-stage-step {
  font-size: 10px;
  font-weight: 800;
  color: var(--azure-primary);
  background-color: var(--azure-subtle);
  border-radius: 4px;
  padding: 1px 5px;
}

.flow-stage-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.flow-stage-content {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.flow-stage-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .arch-flow-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .flow-stage-arrow {
    transform: rotate(90deg);
  }
}

.modal-proj-highlights-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.highlights-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.box-icon {
  width: 16px;
  height: 16px;
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-highlights-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.modal-highlights-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--azure-primary);
  font-weight: bold;
}

.modal-proj-tags-section {
  margin-bottom: 24px;
}

.tags-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.quick-pill:hover {
  background-color: var(--azure-subtle);
  border-color: var(--azure-primary);
  color: var(--azure-primary);
}

.pill-icon,
.quick-pill i,
.quick-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.form-info-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notice-icon {
  width: 16px;
  height: 16px;
  color: var(--azure-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.required {
  color: var(--accent-error);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--azure-primary);
  box-shadow: 0 0 0 2px var(--azure-subtle);
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.modal-actions-row button,
.modal-actions-row .btn-secondary-surface,
.modal-actions-row .btn-primary-azure {
  flex: 1 1 0;
  width: 50%;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Footer Enterprise
   -------------------------------------------------------------------------- */
.footer-enterprise {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px 0;
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 36px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.footer-social-pill:hover {
  background-color: var(--azure-subtle);
  border-color: var(--azure-primary);
  color: var(--azure-primary);
}

.footer-social-pill i,
.footer-social-pill svg,
.footer-social-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--azure-primary);
}

.footer-text-item {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-subtext {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin-bottom: 24px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.footer-copyright-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints & Mobile Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .authority-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  /* Hide desktop multi-column table header so it never stretches the screen */
  .matrix-fluid-header {
    display: none !important;
  }

  /* Fluid Matrix mobile card layout */
  .matrix-fluid-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background-color: var(--bg-secondary);
  }

  .matrix-mobile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 6px;
    display: inline-block;
    min-width: 90px;
    flex-shrink: 0;
  }

  .col-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .col-cell-pillar {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 4px;
  }
}

/* Tablet Navigation (768px to 1024px): Navigation links are active and compact */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-menu {
    display: flex !important;
    gap: 4px;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 12.5px;
    gap: 5px;
  }
  .nav-link .nav-icon {
    width: 15px;
    height: 15px;
  }
  .nav-label-ext {
    display: none; /* Shows compact "Soluções", "Pilares", "Matriz", "Sobre" on tablet */
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 62px;
  }
  html {
    scroll-padding-top: 70px;
  }

  /* Navigation on mobile: users scroll naturally, no auxiliadores needed in header */
  .nav-menu {
    display: none !important;
  }

  .navbar-container {
    height: 62px;
    gap: 8px;
  }
  .brand-icon-box {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 13.5px;
  }
  
  .hero-section {
    padding: 36px 0 28px 0;
  }
  .hero-headline {
    font-size: 26px;
    line-height: 1.3;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-cta-group .btn-large {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  
  .authority-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-detail {
    font-size: 11px;
  }
  
  .section-container {
    padding: 36px 0;
    scroll-margin-top: 72px;
  }
  .section-title {
    font-size: 22px;
  }
  .section-subtitle {
    font-size: 14px;
  }
  
  .filter-tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs-row::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12.5px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .project-card {
    padding: 16px;
    width: 100%;
  }
  
  .carousel-container {
    padding: 14px 10px;
  }
  .carousel-card-slide {
    flex: 0 0 82vw;
    max-width: 310px;
  }
  .pillar-card-inner {
    padding: 16px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-social-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .footer-social-pill {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 58px;
  }
  html {
    scroll-padding-top: 64px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .navbar-container {
    height: 58px;
    gap: 6px;
  }
  .brand-icon-box {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 12.5px;
  }
  .navbar-actions {
    gap: 4px;
  }
  .lang-toggle-btn {
    padding: 2px;
  }
  .lang-opt {
    padding: 3px 5px;
    font-size: 10.5px;
  }
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }
  .theme-icon {
    width: 15px;
    height: 15px;
  }
  #nav-btn-contact {
    padding: 6px 9px;
    font-size: 11.5px;
    min-height: 32px;
  }
  
  .hero-headline {
    font-size: 22px;
  }
  .authority-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .project-card-footer {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-card-action,
  .btn-card-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .modal-backdrop {
    padding: 8px 6px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-window {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    margin: auto 0;
    border-radius: 12px;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-title-group {
    gap: 8px;
  }

  .modal-icon-badge {
    width: 30px;
    height: 30px;
  }

  .modal-title {
    font-size: 14px;
    line-height: 1.25;
  }

  .modal-subtitle {
    font-size: 10.5px;
  }

  .modal-close-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .modal-tabs {
    padding: 0 10px;
  }

  .modal-tab {
    padding: 9px 6px;
    font-size: 12px;
    gap: 5px;
    min-height: 40px;
  }

  .tab-icon {
    width: 14px;
    height: 14px;
  }

  .modal-tab-pane {
    padding: 14px 12px;
  }

  /* Architecture Selection Bar on Mobile */
  .modal-arch-selection-bar {
    padding: 10px 12px;
    margin-bottom: 12px;
    gap: 8px;
  }

  .arch-selector-title {
    font-size: 12px;
    gap: 6px;
  }

  .arch-select-icon {
    width: 15px;
    height: 15px;
  }

  .arch-selector-hint {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .modal-arch-dropdown {
    font-size: 13px !important;
    padding: 8px 10px;
    min-height: 38px;
    border-radius: var(--radius-sm);
  }

  /* Sleek horizontal swipe for category pills on mobile */
  .arch-pills-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    margin-top: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .arch-pills-row::-webkit-scrollbar {
    display: none;
  }

  .arch-pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 9px;
    white-space: nowrap;
  }

  .modal-project-badge-row {
    margin-bottom: 8px;
    gap: 6px;
  }

  .badge-category {
    font-size: 10.5px;
  }

  .modal-proj-title {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .modal-proj-desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  /* Architecture Flow Box on Mobile */
  .modal-arch-flow-box {
    padding: 12px 10px;
    margin-bottom: 12px;
  }

  .arch-flow-header {
    margin-bottom: 10px;
    gap: 6px;
  }

  .arch-flow-title {
    font-size: 11.5px;
  }

  .arch-pattern-badge {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .flow-stage-card {
    padding: 8px 10px;
    min-height: auto;
    gap: 4px;
  }

  .flow-stage-header span {
    font-size: 9.5px;
  }

  .flow-stage-header strong {
    font-size: 11.5px;
  }

  .flow-stage-desc {
    font-size: 11px;
    line-height: 1.4;
  }

  .modal-proj-highlights-box {
    padding: 12px 10px;
    margin-bottom: 12px;
  }

  .highlights-box-title {
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .modal-highlights-list li {
    font-size: 12px;
    line-height: 1.45;
    padding-left: 14px;
  }

  .modal-tags-section {
    margin-bottom: 14px;
  }

  .tags-title {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .modal-tags-list .tag-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .modal-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .modal-actions-row button,
  .modal-actions-row .btn-secondary-surface,
  .modal-actions-row .btn-primary-azure {
    width: 100%;
    min-height: 42px;
    font-size: 12.5px;
    padding: 10px 12px;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 11.5px;
  }
  .nav-contact-text {
    display: none;
  }
  #nav-btn-contact {
    padding: 6px 8px;
    min-width: 32px;
  }
  #nav-btn-contact .btn-icon {
    margin: 0;
  }
}
