/* ==========================================================================
   PORTFÓLIO PROFISSIONAL - EWERTON SANTANA
   Engenheiro de Software | DevOps | Cibersegurança
   Design System Moderno, Glassmorphism, Dark & Light Mode e Responsivo
   ========================================================================== */

/* 1. DESIGN TOKENS & VARIÁVEIS */
:root {
  --bg-primary: #060b14;
  --bg-secondary: #0b1528;
  --bg-card: rgba(13, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 35, 64, 0.9);
  --border-color: rgba(56, 189, 248, 0.15);
  --border-focus: rgba(56, 189, 248, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-secondary: #6366f1;
  --accent-green: #10b981;
  --header-bg: rgba(6, 11, 20, 0.85);
  --terminal-bg: #090e17;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Modo Claro */
.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(148, 163, 184, 0.25);
  --border-focus: rgba(14, 111, 255, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --accent-secondary: #4f46e5;
  --accent-green: #059669;
  --header-bg: rgba(255, 255, 255, 0.9);
  --terminal-bg: #1e293b;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: 
    radial-gradient(at 10% 20%, rgba(56, 189, 248, 0.08) 0px, transparent 40%),
    radial-gradient(at 90% 80%, rgba(99, 102, 241, 0.06) 0px, transparent 40%);
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* 3. HEADER & NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo span {
  color: var(--accent);
}

.logo-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-left: 0.3rem;
}

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

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

.menu-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}

.menu-links a:hover,
.menu-links a.active {
  color: var(--accent);
}

.menu-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

.menu-links a:hover::after,
.menu-links a.active::after {
  width: 100%;
}

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

.lang-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.lang-select:hover {
  border-color: var(--accent);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* 4. HERO SECTION */
.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #060b14;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--accent-glow);
  filter: brightness(1.1);
}

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

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

.btn-terminal {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.btn-terminal:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: #a5b4fc;
  color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(11, 21, 40, 0.8) 100%);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.hero-photo-wrap:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 5. METRICS / KPI GRID */
.metrics-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 21, 40, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.metric-number {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 0.35rem;
  line-height: 1;
}

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

/* 6. DEVSECOPS CLI TERMINAL */
.terminal-wrapper {
  margin: 3.5rem auto 1rem;
  background: var(--terminal-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.terminal-wrapper.hidden {
  display: none;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

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

.terminal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.terminal-close:hover {
  color: #ef4444;
}

.terminal-body {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-welcome {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

.cli-line {
  margin-top: 0.4rem;
}

.cli-prompt {
  color: var(--accent-green);
  font-weight: 700;
}

.cli-user-cmd {
  color: var(--text-primary);
  font-weight: 600;
}

.cli-response {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.cli-highlight { color: #f59e0b; font-weight: 600; }
.cli-cmd { color: var(--accent); font-weight: 700; }
.cli-cyan { color: #38bdf8; font-weight: 600; }
.cli-green { color: #10b981; font-weight: 600; }
.cli-red { color: #ef4444; font-weight: 600; }
.cli-link { color: var(--accent); text-decoration: underline; }
.cli-json {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: #a5b4fc;
  font-size: 0.82rem;
  overflow-x: auto;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* 7. SEÇÕES COMUNS & TITLES */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.02rem;
}

/* 8. GRID DE TECNOLOGIAS */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
}

.tech-card img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tech-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

.tech-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* 9. PÁGINA DE PROJETOS & FILTROS */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #060b14;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.project-header {
  margin-bottom: 1rem;
}

.project-tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-metrics-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.project-actions {
  display: flex;
  gap: 0.8rem;
}

/* 10. DIAGRAMA DE ARQUITETURA INTERATIVO */
.arch-blueprint {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.arch-layer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  transition: var(--transition);
  position: relative;
}

.arch-layer:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.arch-layer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.arch-layer-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent);
  color: #060b14;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.arch-layer h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.arch-layer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 11. CONTATOS & FORMULÁRIO */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

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

.contact-info-text a,
.contact-info-text p {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.copy-email-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-color);
  color: var(--accent);
  cursor: pointer;
}

.copy-email-btn:hover {
  background: var(--accent);
  color: #060b14;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* Honeypot anti-spam (invisível para humanos) */
.honey-field {
  display: none !important;
  visibility: hidden;
}

/* 12. TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-color: var(--accent-green); }
.toast-error { border-color: #ef4444; }
.toast-info { border-color: var(--accent); }

.toast-icon {
  font-weight: bold;
}

.toast-success .toast-icon { color: var(--accent-green); }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: var(--accent); }

/* 13. FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4rem;
}

/* ==========================================================================
   14. RESPONSIVIDADE UNIFICADA (BREAKPOINTS LIMPOS & SEM CONFLITOS)
   ========================================================================== */

/* Telas Médias / Tablets (<= 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

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

  .hero-actions {
    justify-content: center;
  }

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

/* Tablets e Celulares (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1.25rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    border-left: 1px solid var(--border-color);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
  }

  .menu-links a {
    font-size: 1.15rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-photo-wrap {
    width: min(280px, 80vw);
  }

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

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* Celulares Menores (<= 480px) */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.8rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .metric-card {
    padding: 1rem 0.5rem;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.1rem;
  }
}