/* ==========================================================================
   FALCTEC - CORE DESIGN SYSTEM & INDUSTRIAL CYBER THEME
   Paleta: Preto Fosco, Grafite, Aço Escovado, Verde FinOps (#00ff88), Azul (#0077ff)
   ========================================================================== */

:root {
  --bg-dark: #07090d;
  --bg-card: #0d1117;
  --bg-card-hover: #131822;
  --bg-glass: rgba(13, 17, 23, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 255, 136, 0.4);
  --border-steel: #1e2532;

  --accent-green: #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.25);
  --accent-blue: #0088ff;
  --accent-blue-glow: rgba(0, 136, 255, 0.25);
  --accent-cyan: #00f0ff;
  --accent-amber: #ffaa00;
  --accent-red: #ff3355;

  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #546278;

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-hud: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--accent-green-glow);
}

/* Modo Claro Corporativo (Light Theme) */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(5, 150, 105, 0.5);
  --border-steel: #e2e8f0;

  --accent-green: #059669;
  --accent-green-glow: rgba(5, 150, 105, 0.2);
  --accent-blue: #0284c7;
  --accent-blue-glow: rgba(2, 132, 199, 0.2);
  --accent-cyan: #0891b2;
  --accent-amber: #d97706;
  --accent-red: #e11d48;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-hud: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

body.light-theme .logo-title,
body.light-theme .hero-title,
body.light-theme .stat-val,
body.light-theme .exec-card-title,
body.light-theme .hero-profile-name,
body.light-theme .section-title,
body.light-theme .cv-header-info h2 {
  color: #0f172a;
}

body.light-theme .hero-profile-card,
body.light-theme .stat-card,
body.light-theme .exec-card,
body.light-theme .titan-card,
body.light-theme .cv-modal-window,
body.light-theme .tech-table-container,
body.light-theme .glossary-card,
body.light-theme .arch-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .exec-highlight-box,
body.light-theme .cv-highlight-card,
body.light-theme .stat-bar-group,
body.light-theme .f-metric-card,
body.light-theme .fighter-side {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .mode-switcher,
body.light-theme .search-input,
body.light-theme .cv-tabs,
body.light-theme .cv-modal-header,
body.light-theme .cv-modal-footer,
body.light-theme .site-footer {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.light-theme .search-input {
  background: #ffffff;
  color: #0f172a;
}

body.light-theme .tech-table th {
  background: #f1f5f9;
  color: #0891b2;
  border-bottom-color: #cbd5e1;
}

body.light-theme .tech-table td {
  color: #334155;
  border-bottom-color: #f1f5f9;
}

body.light-theme .tech-table tr:hover td {
  background: #f8fafc;
  color: #0f172a;
}

body.light-theme .hero-title .gradient-text {
  background: linear-gradient(90deg, #0f172a, #059669, #0284c7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 136, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 255, 136, 0.04) 0%, transparent 45%),
    var(--bg-dark);
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* Linhas sutis de grid cibernético */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  font-family: var(--font-mono);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--accent-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

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

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-steel);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.btn-cv-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-cv-trigger:hover {
  background: var(--accent-green);
  color: #07090d;
  box-shadow: 0 0 20px var(--accent-green-glow);
  transform: translateY(-1px);
}

.btn-cv-trigger .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 2s infinite;
}

.btn-cv-trigger:hover .pulse-dot {
  background: #07090d;
  box-shadow: none;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   HERO / BANNER DE APRESENTAÇÃO
   ========================================================================== */

.hero-split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-main-content {
  flex: 1;
}

.hero-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.1);
  min-width: 250px;
  position: relative;
}

.hero-profile-avatar-frame {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent-green);
  box-shadow: 0 0 24px var(--accent-green-glow);
  margin-bottom: 16px;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-status-led {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: var(--accent-green);
  border: 3px solid #07090d;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.hero-profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.hero-profile-role {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.hero-profile-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid var(--accent-blue);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  letter-spacing: 1px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #ffffff, var(--accent-green), var(--accent-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 36px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-left: 3px solid var(--accent-green);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-green);
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ==========================================================================
   BARRA DE CONTROLE: 3 MODOS + BUSCA UNIVERSAL
   ========================================================================== */

.control-bar-wrapper {
  position: sticky;
  top: 69px;
  z-index: 90;
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-steel);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mode-switcher {
  display: flex;
  background: #05070a;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-steel);
  gap: 4px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: var(--border-steel);
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.mode-btn.active[data-mode="executive"] {
  border-bottom: 2px solid var(--accent-green);
  color: #fff;
}

.mode-btn.active[data-mode="battle"] {
  border-bottom: 2px solid var(--accent-amber);
  color: #fff;
}

.mode-btn.active[data-mode="technical"] {
  border-bottom: 2px solid var(--accent-cyan);
  color: #fff;
}

.mode-rpg-chip {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff3355, #ffaa00);
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(255, 51, 85, 0.5);
  display: inline-block;
  margin-left: 2px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 240px;
}

.search-input {
  width: 100%;
  background: #05070a;
  border: 1px solid var(--border-steel);
  color: #fff;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ==========================================================================
   VIEW CONTAINER & TRANSIÇÃO
   ========================================================================== */

#view-root {
  padding: 40px 0 80px;
  min-height: 500px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-steel);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-tech {
  color: var(--text-muted);
}

.footer-tech span {
  color: var(--accent-green);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 860px) {
  .hero-split-layout {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .control-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .search-box {
    max-width: 100%;
  }
  .mode-switcher {
    overflow-x: auto;
    width: 100%;
  }
  .mode-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .btn-cv-trigger {
    padding: 8px 10px;
    font-size: 0.76rem;
    flex: 1;
    justify-content: center;
  }
  .btn-theme-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .hero-profile-card {
    padding: 20px 16px;
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .hero-tag {
    font-size: 0.68rem;
  }
  .stat-card {
    padding: 16px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

