/* ==========================================================================
   PORTFÓLIO JOÃO PAULO MONTEIRO — DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Tema: Modern Cyber-Tech & Enterprise Security (Dark / Light Mode)
   ========================================================================== */

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

/* --- VARIÁVEIS DO SISTEMA DE DESIGN (CSS CUSTOM PROPERTIES) --- */
:root {
  /* Paleta Base - Dark Mode (Padrão) */
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 34, 62, 0.85);
  --bg-card-elevated: #111c35;
  --bg-input: #09101f;

  /* Bordas e Divisores */
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-card: rgba(56, 189, 248, 0.2);
  --border-glow: rgba(6, 182, 212, 0.5);

  /* Tipografia */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Cores de Acento & Cibersegurança */
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradientes de Destaque */
  --gradient-cyber: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #10b981 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.08), transparent 40%);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.18), transparent 70%);

  /* Sombras e Efeitos Neon */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(56, 189, 248, 0.15);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);

  /* Fontes */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Transições & Medidas */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --nav-height: 76px;
}

/* --- TEMA CLARO (LIGHT MODE) --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-elevated: #ffffff;
  --bg-input: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(14, 165, 233, 0.25);
  --border-glow: rgba(14, 165, 233, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-blue: #2563eb;
  --accent-violet: #7c3aed;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(2, 132, 199, 0.06), transparent 40%);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.12), transparent 70%);

  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(14, 165, 233, 0.2);
  --shadow-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.2);
  --shadow-glow-emerald: 0 0 25px rgba(5, 150, 105, 0.2);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  min-height: 100vh;
}

/* Canvas de Fundo Interativo */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Grid Cibernética de Fundo */
.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Glow decorativo de fundo */
.ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: var(--gradient-hero);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Containers e Utilitários de Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Texto Gradiente */
.gradient-text {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* --- HEADER & NAVEGAÇÃO --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-normal);
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.82);
}

.navbar.scrolled {
  box-shadow: var(--shadow-card);
  border-bottom-color: var(--border-card);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-badge {
  transform: rotate(-6deg) scale(1.05);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.03em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- BOTÕES DO SISTEMA --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #070b14;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.55);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #042416;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-status-pill .pulse-live {
  width: 9px;
  height: 9px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.typewriter-wrapper {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  min-height: 32px;
}

.typewriter-cursor {
  display: inline-block;
  width: 9px;
  height: 1.2em;
  background-color: var(--accent-cyan);
  margin-left: 4px;
  animation: blink-cursor 1s infinite;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-tech-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.tech-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Hero Visual: Developer Profile & Engineering Workstation */
.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.hero-visual-card {
  position: relative;
}

.dev-profile-window {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dev-profile-window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.dev-window-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 700;
}

.dev-profile-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dev-quick-intro {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dev-mini-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
  flex-shrink: 0;
}

.dev-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.dev-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 3px;
}

.dev-location {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.dev-code-snippet {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-comment {
  color: #64748b;
  font-style: italic;
  display: block;
  margin-bottom: 4px;
}

.code-key {
  color: #f43f5e;
  font-weight: 600;
}

.code-var {
  color: #38bdf8;
  font-weight: 600;
}

.code-prop {
  color: #93c5fd;
}

.code-str {
  color: #34d399;
}

.code-keyword {
  color: #fbbf24;
  font-weight: 600;
}

.dev-profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.dev-highlight-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dev-highlight-badge:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.dev-badge-icon {
  font-size: 1.1rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dots .dot-red {
  background: #ef4444;
}

.terminal-dots .dot-yellow {
  background: #f59e0b;
}

.terminal-dots .dot-green {
  background: #10b981;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- BARRA DE IMPACTO & STATS --- */
.stats-banner {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 21, 39, 0.4);
  backdrop-filter: blur(8px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--accent-cyan);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- SEÇÃO SOBRE MIM --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-card-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.profile-avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem auto;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.profile-online-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-emerald);
}

.about-profile-info {
  text-align: center;
}

.about-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.about-role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.about-social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.hero-social-quicklinks {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-quick-specs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: left;
}

.spec-line {
  display: flex;
  justify-content: space-between;
}

.spec-line .label {
  color: var(--text-muted);
}

.spec-line .val {
  color: var(--text-primary);
  font-weight: 600;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-paragraph strong {
  color: var(--text-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- SEÇÃO HABILIDADES TÉCNICAS (STACK) --- */
.skills-nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.skill-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cat-frontend .skill-cat-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.cat-backend .skill-cat-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.cat-devops .skill-cat-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
}

.cat-security .skill-cat-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.skill-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-cat-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skill-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.skill-item-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-cyber);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SEÇÃO PROJETO EM DESTAQUE: CYBER PROTECT --- */
.featured-project-section {
  position: relative;
  padding: 5.5rem 0 5.5rem;
  scroll-margin-top: 90px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(13, 21, 39, 0.6) 50%, rgba(7, 11, 20, 0) 100%);
}

.featured-project-section .container,
.container-wide {
  width: 95%;
  max-width: 1400px;
}

#projetos,
#cyber-protect {
  scroll-margin-top: 95px;
}

.project-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--accent-cyan);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  backdrop-filter: blur(16px);
  position: relative;
}

.showcase-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.25rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
  gap: 1rem;
}

.showcase-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #06b6d4, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070b14;
  font-weight: 800;
  font-size: 1.2rem;
}

.project-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.project-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.showcase-meta-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.meta-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.showcase-body-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  padding: 2.25rem;
  align-items: start;
}

.showcase-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.project-description-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-lead-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.project-lead-desc strong {
  color: var(--text-primary);
}

.project-highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.35rem 0;
}

.project-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(9, 16, 31, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  transition: all var(--transition-fast);
}

.project-highlight-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(13, 21, 39, 0.9);
  transform: translateX(3px);
}

.highlight-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.project-highlight-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-highlight-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.project-tech-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.tech-stack-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tech-tag-lg {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid var(--border-card);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tech-tag-lg:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.project-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* Coluna Visual: Mockup Grande do Cockpit */
.showcase-visual-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: start;
  width: 100%;
}

.dashboard-preview-frame {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 12px 35px -8px rgba(6, 182, 212, 0.3), 0 0 25px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  background: #090f1d;
}

.dashboard-preview-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px -8px rgba(6, 182, 212, 0.45), 0 0 30px rgba(0, 0, 0, 0.85);
}

.mockup-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots .dot-red {
  background: #ef4444;
}

.mockup-dots .dot-yellow {
  background: #f59e0b;
}

.mockup-dots .dot-green {
  background: #10b981;
}

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mockup-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--border-card);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dashboard-preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Aviso de Dados Simulados e Métricas do Projeto */
.simulation-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.project-metrics-wrapper {
  margin-top: 0;
  padding: 1.75rem 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 14, 28, 0.45);
}

.project-metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-metrics-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-metrics-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.project-metric-card {
  background: rgba(13, 22, 42, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(10px);
  position: relative;
  min-height: 145px;
}

.project-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 8px 24px -6px rgba(6, 182, 212, 0.28);
  background: rgba(16, 28, 54, 0.88);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.metric-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.metric-chip-emerald {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.metric-chip-blue {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.metric-icon {
  color: var(--accent-cyan);
  opacity: 0.85;
  flex-shrink: 0;
}

.metric-icon-emerald {
  color: var(--accent-emerald);
}

.metric-icon-blue {
  color: #38bdf8;
}

.metric-num {
  font-size: clamp(1.85rem, 2.2vw, 2.35rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
}

/* SIMULADOR INTERATIVO AO VIVO */
.interactive-simulator-box {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-filter-buttons {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.sim-btn-filter {
  padding: 0.25rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-btn-filter.active {
  background: var(--accent-cyan);
  color: #070b14;
  font-weight: 700;
}

.sim-metrics-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sim-metric-card {
  background: var(--bg-input);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.sim-metric-card.gauge-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.08));
  border-color: var(--border-card);
}

.sim-metric-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.sim-metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--text-primary);
}

.sim-metric-val.cyan {
  color: var(--accent-cyan);
}

.sim-metric-val.emerald {
  color: var(--accent-emerald);
}

.sim-alerts-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.alert-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.chip-crit {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chip-high {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chip-med {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.chip-low {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-actions-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* --- SEÇÃO ARQUITETURA & PIPELINE --- */
.project-architecture-wrapper {
  scroll-margin-top: calc(var(--nav-height) + 2.5rem);
  margin-top: 2.5rem;
  padding: 3.25rem 2.25rem 120px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  background: rgba(6, 11, 24, 0.3);
}

.project-arch-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.25rem auto;
}

.project-arch-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.project-arch-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pipeline Tracker Visual (01 ➔ 02 ➔ 03 ➔ 04 ➔ 05) */
.arch-pipeline-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 auto 2.5rem auto;
  padding: 0.65rem 1.4rem;
  background: rgba(13, 22, 42, 0.75);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  max-width: fit-content;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(10px);
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stepper-step.active {
  color: var(--text-primary);
}

.stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
}

.stepper-arrow {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0.15rem;
  opacity: 0.8;
}

/* 5 colunas perfeitamente alinhadas para Desktop (01 ➔ 02 ➔ 03 ➔ 04 ➔ 05) */
.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  position: relative;
  margin-bottom: 3.5rem;
}

.arch-step-card {
  grid-column: span 1;
  background: rgba(13, 22, 42, 0.75);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(12px);
  min-height: 330px;
  height: 100%;
}

.arch-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.35);
  background: rgba(16, 28, 54, 0.92);
}

.arch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.arch-step-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.arch-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.arch-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.arch-badge-finish {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.arch-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.arch-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.arch-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  min-height: 2.8rem;
  display: flex;
  align-items: flex-start;
}

.arch-step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  min-height: 4.8rem;
}

.arch-card-bottom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Conectores Visuais e Setas de Fluxo (01 ➔ 02 ➔ 03 ➔ 04 ➔ 05 ✔️) */
.arch-flow-connector {
  position: absolute;
  right: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
  z-index: 5;
  pointer-events: none;
}

.arch-connector-finish {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* Terminal de Auditoria Interativo & Navegação Rápida SecOps */
.terminal-quicknav-section {
  padding: 2.5rem 0 1.5rem 0;
  position: relative;
  z-index: 2;
}

.interactive-terminal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 35px rgba(6, 182, 212, 0.2);
  transition: box-shadow var(--transition-normal);
}

.interactive-terminal-section:focus-within {
  box-shadow: var(--shadow-card), 0 0 45px rgba(6, 182, 212, 0.35);
}

.terminal-header-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.secops-cli-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: #050811;
  color: #38bdf8;
  min-height: 230px;
}

.cli-output {
  margin-bottom: 1rem;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
}

.cli-output .cmd-resp {
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.cli-input-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.cli-prompt {
  color: var(--accent-emerald);
  font-weight: 700;
  user-select: none;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #f8fafc;
}

.terminal-quicknav-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  align-items: center;
}

.terminal-shortcut-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-shortcut-pill:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* --- SEÇÃO DE CONTATO --- */
.contact-section {
  padding: 6.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card-method {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.contact-card-method:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method-detail {
  display: flex;
  flex-direction: column;
}

.contact-method-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.contact-method-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Formulário de Contato */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

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

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- MODAL DE POLÍTICAS DE SEGURANÇA & TOAST --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card-elevated);
  z-index: 2;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-body {
  padding: 2rem;
}

.policies-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.policy-item-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.policy-badge-status {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  background: #0f172a;
  border: 1px solid var(--accent-cyan);
  color: #f8fafc;
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

/* Botão Flutuante Voltar ao Topo */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- ANIMAÇÕES KEYFRAMES --- */
@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- MEDIA QUERIES (DESIGN RESPONSIVO) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-body-layout {
    grid-template-columns: 1fr;
  }

  .arch-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .arch-step-card {
    grid-column: span 1 !important;
  }

  .arch-step-card:nth-child(5) {
    grid-column: 1 / -1 !important;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .arch-flow-connector {
    display: none;
  }

  .stats-grid,
  .project-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .btn-mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .showcase-header-bar,
  .showcase-body-layout,
  .project-metrics-wrapper,
  .project-architecture-wrapper {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .project-architecture-wrapper {
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
    margin-top: 0;
    padding-top: 2rem;
  }

  .arch-flow-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .arch-step-card,
  .arch-step-card:nth-child(4),
  .arch-step-card:nth-child(5) {
    grid-column: span 1 !important;
    max-width: 100%;
    min-height: auto;
  }

  .arch-pipeline-stepper {
    font-size: 0.72rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
  }

  .sim-metrics-row {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .project-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animação Spin para envio & estados assíncronos */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 0.9s linear infinite;
  display: inline-block;
}

/* Feedback e Alertas do Formulário de Contato */
.form-status-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

.form-status-box.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.form-status-box.status-fallback {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.form-status-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}