/* Fontes carregadas via <link> no <head> (não-bloqueante, font-display:swap) */

:root {
  /* Colors - Black, Gray, Blue */
  --bg-dark: #0f0f14;
  --bg-surface: #18181f;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(0, 123, 255, 0.5);
  
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  
  --accent-blue: #00509E;
  --accent-blue-light: #007BFF;
  --accent-blue-glow: rgba(0, 123, 255, 0.4);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-display);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  /* High-tech grid background */
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  background-position: center center;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Single Blue Radial Glow for ambiance */
body::before {
  content: '';
  position: fixed;
  top: -20%; left: -10%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: var(--accent-blue-glow);
  filter: blur(150px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

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

/* Acessibilidade: rótulos só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Using real color logo */
.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  left: 0;
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.btn-header {
  border: 1px solid var(--accent-blue-light);
  background: transparent;
  color: var(--accent-blue-light);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-header:hover {
  background: var(--accent-blue-light);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-blue-glow);
}

/* Hero Section with REAL IMAGE */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  /* Premium Dark Port Cargo Photo */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 50, 0.8) 100%), 
              url('assets/img/hero.webp') center/cover fixed;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 80, 158, 0.1));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--accent-blue-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue-light);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent-blue-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue-light);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.2));
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-cta {
  font-family: var(--font-mono) !important;
  font-size: 0.95rem !important;
  color: var(--accent-blue-light) !important;
  margin-bottom: 2.5rem !important;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-glow {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: var(--accent-blue-light);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 4px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-blue-glow);
}

.btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255,255,255,0.1);
}

/* Advanced Services / "Modules" */
.modules {
  padding: 8rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent, var(--bg-surface));
}

.section-header {
  margin-bottom: 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 1.1rem;
}

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

/* Cards with real photos */
.module-card {
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Real Image Backgrounds with heavy dark overlay */
.module-card.img-ocean {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/ocean.webp');
}
.module-card.img-air {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/air.webp');
}
.module-card.img-road {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/road.webp');
}
.module-card.img-customs {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/customs.webp');
}
.module-card.img-warehouse {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/warehouse.webp');
}
.module-card.img-consulting {
  background-image: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%), url('assets/img/consulting.webp');
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent-blue-light);
  opacity: 0;
  transition: opacity 0.4s;
}

.module-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
/* Reduce overlay darkness slightly on hover to reveal image */
.module-card:hover {
  background-blend-mode: overlay;
  background-color: rgba(0, 80, 158, 0.3);
}

.module-card:hover::before {
  opacity: 1;
}

.module-content {
  position: relative;
  z-index: 2;
}

.module-id {
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.module-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.module-card p {
  color: #CCCCCC;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}
.module-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue-light);
  letter-spacing: 0.5px;
  transition: transform 0.3s;
}
.module-link:hover { transform: translateX(4px); }

/* Sobre / Diferenciais */
.about {
  padding: 8rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 1rem 0 1.5rem;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.about-tag {
  font-family: var(--font-mono);
  color: var(--accent-blue-light) !important;
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: all 0.3s;
}
.stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.stat-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.stat-num span {
  color: var(--accent-blue-light);
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Como funciona / Processo */
.process {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-dark));
  border-top: 1px solid var(--border-color);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 1.8rem;
  transition: all 0.3s;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  opacity: 0.35;
  display: block;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.diferenciais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}
.dif h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
}
.dif h4::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-blue-light);
}
.dif p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ */
.faq {
  padding: 8rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}
.faq-list {
  max-width: 850px;
}
.faq details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bg-surface);
  transition: border-color 0.3s;
}
.faq details[open] {
  border-color: var(--border-hover);
}
.faq summary {
  padding: 1.4rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
  font-size: 1.6rem;
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.8rem 1.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.faq details p strong { color: var(--text-main); }

/* Terminal Contact Section */
.terminal-contact {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.terminal-box {
  background: #080808;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.15), 0 20px 60px rgba(0,0,0,0.9);
}

.terminal-header {
  background: #111;
  padding: 1rem 2rem;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-header span {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #333;
}
.terminal-header span:nth-child(1) { background: #ff5f56; }
.terminal-header span:nth-child(2) { background: #ffbd2e; }
.terminal-header span:nth-child(3) { background: #27c93f; }

.terminal-header .title {
  margin-left: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.terminal-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.terminal-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  color: var(--text-main);
  padding: 1.2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue-light);
  background: #151515;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.btn-terminal {
  width: 100%;
  padding: 1.2rem;
  background: var(--text-main);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-display);
}

.btn-terminal:hover {
  background: var(--accent-blue-light);
  color: #fff;
}

/* ===== Páginas de serviço (Tier 2) ===== */
.service-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 4rem;
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent-blue-light); }
.service-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 900px;
  margin-bottom: 1.2rem;
}
.service-hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  font-weight: 300;
}

.prose {
  padding: 6rem 0;
  max-width: 820px;
}
.prose h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.5px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.prose strong { color: var(--text-main); }
.prose h3 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 0.8rem; }
.prose ul, .prose ol { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; margin: 0 0 1.5rem 1.5rem; }
.prose li { margin-bottom: 0.6rem; }
.prose a { color: var(--accent-blue-light); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.prose a:hover { border-color: var(--accent-blue-light); }
.prose .toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
}
.prose .toc strong { display: block; margin-bottom: 0.8rem; font-family: var(--font-mono); color: var(--accent-blue-light); }
.prose .toc ol { margin: 0 0 0 1.2rem; font-size: 1rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.98rem;
}
.prose th, .prose td {
  border: 1px solid var(--border-color);
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--text-muted);
}
.prose th { background: var(--bg-surface); color: var(--text-main); font-family: var(--font-mono); font-size: 0.85rem; }
.prose blockquote {
  border-left: 3px solid var(--accent-blue-light);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.8rem;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}
.feature h3::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-blue-light);
}
.feature p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.related {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.related h2 { font-size: 1.8rem; margin-bottom: 2rem; font-weight: 600; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-grid a {
  display: block;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s;
}
.related-grid a:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-3px);
}

.cta-band {
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.cta-band h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.cta-band p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; }

@media (max-width: 900px) {
  .service-hero h1 { font-size: 2.2rem; }
  .service-hero { padding-top: 130px; }
}

/* Cookie banner (LGPD) — card compacto no canto */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: min(360px, calc(100vw - 3rem));
  background: rgba(20, 20, 26, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.4rem;
  z-index: 1000;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  animation: cc-up 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cc-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.cookie-banner p::before {
  content: '🍪';
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.cookie-banner a { color: var(--accent-blue-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions button {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
}
.cc-reject {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}
.cc-reject:hover { color: var(--text-main); border-color: rgba(255, 255, 255, 0.3); }
.cc-accept { background: var(--accent-blue-light); color: #fff; }
.cc-accept:hover { background: #0090ff; box-shadow: 0 4px 18px var(--accent-blue-glow); transform: translateY(-1px); }
@media (max-width: 600px) {
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.05) 0%, #020202 100%);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Cards fora da tela não custam render */
.module-card {
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .hero { background-attachment: scroll; }
  .terminal-body { grid-template-columns: 1fr; padding: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-text h2 { font-size: 2.2rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}
