/**
 * ==============================================================================
 * PROJETO: Portfólio & Soluções Digitais (ES Assistec)
 * ARQUIVO: style.css
 * PALETA DE CORES: White & Blue / Deep Navy
 * ==============================================================================
 */

/* ==============================================================================
   1. DESIGN TOKENS & VARIÁVEIS CSS
   ============================================================================== */
:root {
  --color-brand-blue: #2563eb;
  --color-brand-blue-hover: #1d4ed8;
  --color-brand-blue-light: #eff6ff;
  --color-brand-blue-border: #bfdbfe;
  --color-brand-cyan: #06b6d4;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-dark: #091225;
  --bg-header: rgba(255, 255, 255, 0.9);

  --text-heading: #091e42;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-dark: #1e293b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   2. RESET & REGRAS GERAIS
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-white1 { color: #ffffff !important; }
.text-slate-300 { color: #cbd5e1; }
.text-brand-blue { color: var(--color-brand-blue); }
.text-cyan-400 { color: var(--color-brand-cyan); }
.text-blue-400 { color: #60a5fa; }

.icon-sm { width: 1.125rem; height: 1.125rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }

/* ==============================================================================
   3. ANIMAÇÃO DE ABERTURA COM A LOGO (INTRO SPLASH)
   ============================================================================== */
.intro-splash-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-splash-overlay.is-finished {
  opacity: 0;
  visibility: hidden;
}

.intro-splash-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(28px);
  animation: introGlowPulse 1.2s ease-out forwards;
}

.intro-splash-logo {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introLogoEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-logo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: contain !important;
  display: block;
}

@keyframes introLogoEntrance {
  0% { opacity: 0; transform: scale(0.6) translateY(12px); filter: blur(6px); }
  50% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes introGlowPulse {
  0% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* ==============================================================================
   4. CABEÇALHO & NAVBAR (DESKTOP + MOBILE)
   ============================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1002;
}

.nav-logo-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  overflow: hidden;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08);
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-blue);
}

/* Botão Hambúrguer Mobile */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1002;
}

.mobile-menu-toggle:hover {
  background-color: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue-border);
}

/* Fundo Escuro para Menu Mobile */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* ==============================================================================
   5. BOTÕES & CHIPS
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.btn-primary {
  background-color: var(--color-brand-blue);
  color: #ffffff;
  box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -4px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background-color: var(--color-brand-blue-light);
  border: 1px solid var(--color-brand-blue-border);
  color: var(--color-brand-blue-hover);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ==============================================================================
   6. HERO SECTION
   ============================================================================== */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 110px;
  background: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}
/* Configuração da Logo Transparente na Lateral Direita */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  right: -5%; /* Puxa para a direita (valores negativos cortam um pedaço da logo, dando um efeito moderno) */
  transform: translateY(-50%); /* Mantém centralizado apenas na vertical */
  width: 90%;
  max-width: 750px; /* Aumentado um pouco para preencher melhor a lateral do PC */
  opacity: 0.04; 
  z-index: 1; 
  pointer-events: none; 
  user-select: none; 
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==============================================================================
   7. SEÇÃO DE PROJETOS & MOCKUPS
   ============================================================================== */
.projects-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative; /* Mantém o canvas preso dentro desta seção */
  overflow: hidden;   /* Impede que a animação vaze para as seções vizinhas */
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.75rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-blue);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 0.25rem;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 420px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 1.75rem;
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 3.5rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-blue-border);
}

.project-card-reverse { flex-direction: row-reverse; }

.project-card-dark {
  background: linear-gradient(145deg, #091225 0%, #030814 100%);
  border-color: #1e293b;
  box-shadow: 0 25px 35px -10px rgba(2, 6, 23, 0.6);
}

.project-info { flex: 1; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #f1f5f9;
  color: var(--text-muted);
}

.tag-blue {
  background-color: var(--color-brand-blue-light);
  color: var(--color-brand-blue-hover);
  border: 1px solid var(--color-brand-blue-border);
}

.tag-cyan {
  background-color: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-dark { background-color: #1e293b; color: #94a3b8; }

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.project-description {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.project-action-area { margin-top: 1.75rem; }

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-brand-blue);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-external:hover {
  gap: 0.65rem;
  color: var(--color-brand-blue-hover);
}

.internal-software-badge {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background-color: rgba(30, 41, 59, 0.7);
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.project-showcase {
  flex: 1.15;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.showcase-full-desktop { flex: 1.25; }

/* Mockups */
.laptop-device {
  width: 88%;
  background-color: #0f172a;
  border: 6px solid #1e293b;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 25px 35px -12px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.laptop-dark { border-color: #334155; }

.laptop-top-bar {
  height: 24px;
  background-color: #090e17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
}

.bar-dark { background-color: #040812; }

.window-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.browser-address {
  font-size: 0.65rem;
  color: #64748b;
  font-family: monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laptop-screen {
  height: 240px;
  background-color: #020617;
  overflow: hidden;
}

.laptop-screen .preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.laptop-chassis {
  height: 10px;
  background-color: #334155;
  border-radius: 0 0 14px 14px;
  position: relative;
}

.laptop-chassis::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 3px;
  background-color: #64748b;
  border-radius: 0 0 4px 4px;
}

.chassis-dark { background-color: #475569; }

.mobile-device {
  width: 120px;
  border: 5px solid #1e293b;
  border-radius: 20px;
  background-color: #0f172a;
  position: absolute;
  bottom: -15px;
  right: -5px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 10;
}

.mobile-notch {
  width: 40px;
  height: 8px;
  background-color: #1e293b;
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.mobile-screen {
  height: 210px;
  background-color: #020617;
}

.mobile-screen .preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-floating { animation: floatMobile 4s infinite ease-in-out; }
.mobile-floating-alt { left: -5px; right: auto; animation-delay: 2s; }

/* ==============================================================================
   8. SEÇÃO DE DIFERENCIAIS
   ============================================================================== */
.features-section {
  padding: 6rem 0;
  background-color: #050a15;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 1px solid #0f172a;
}

.section-center-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-title-large {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle-dark {
  margin-top: 1rem;
  font-size: 1rem;
  color: #94a3b8;
}

.features-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-dark-card {
  background-color: #081022;
  border: 1px solid #14203a;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-dark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
}

.feature-dark-icon {
  width: 48px;
  height: 48px;
  background-color: #0d1933;
  border: 1px solid #1a2a4f;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.feature-dark-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.feature-dark-text {
  font-size: 0.8875rem;
  color: #8fa0be;
  line-height: 1.6;
}

/* ==============================================================================
   9. SEÇÃO CONTATO (HUB DE ATENDIMENTO)
   ============================================================================== */
.contact-section {
  padding: 6rem 0;
  background-color: #ffffff;
  border-top: 1px solid #0f172a;
}

.section-tag-cyan {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-info-card {
  background-color: #070d1e;
  border: 1px solid #13203c;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.contact-info-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: #0d152a;
  border: 1px solid #1a2a4f;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.quick-response-card {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #070d1e 0%, #0a1738 100%);
  border: 1px solid #1d3363;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.quick-response-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.quick-response-header > div {
  min-width: 0;
}

.quick-response-icon {
  width: 48px;
  height: 48px;
  background-color: #0f234d;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.quick-response-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.quick-response-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.btn-quick-wa {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* ==============================================================================
   10. RODAPÉ (CLEAN LIGHT & ALINHAMENTO DAS EXTREMIDADES)
   ============================================================================== */
.site-footer-light {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  color: var(--text-body);
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand-block {
  max-width: 480px;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-logo-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue-border);
  transform: translateY(-2px);
}

/* Divisor e Alinhamento: Copyright à esquerda | Política à direita */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
  font-size: 0.875rem;
  width: 100%;
}

.footer-copyright {
  color: var(--text-muted);
  margin: 0;
}

.footer-privacy-link {
  color: var(--color-brand-blue);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-privacy-link:hover {
  color: var(--color-brand-blue-hover);
  text-decoration: underline;
}

/* ==============================================================================
   11. MODAL DE FORMULÁRIO (DARK THEME)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background-color: #070d1e;
  border: 1px solid #14203a;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 2.25rem;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.is-active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0d152a;
  border: 1px solid #1a2a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #1a2a4f;
}

.dark-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label-dark {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-input-dark,
.form-textarea-dark {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #ffffff;
  background-color: #0d152a;
  border: 1px solid #1a2a4f;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input-dark::placeholder,
.form-textarea-dark::placeholder {
  color: #4b5d7d;
}

.form-input-dark:focus,
.form-textarea-dark:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn-submit-full {
  width: 100%;
  padding: 0.95rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
}

/* ==============================================================================
   12. SCROLL REVEAL & ANIMAÇÕES
   ============================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ============================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: 24px;
  right: max(24px, env(safe-area-inset-right));
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 99998;
  text-decoration: none;
  animation: whatsappFloat 3s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.whatsapp-float i {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  z-index: -1;
  animation: whatsappPulse 2.2s ease-out infinite;
}

@keyframes whatsappFloat {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-8px) translateZ(0); }
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float i {
    font-size: 26px;
  }
}

@keyframes floatMobile {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ==============================================================================
   13. RESPONSIVIDADE & NAVBAR MOBILE (GAVETA FUNCIONAL)
   ============================================================================== */
@media (max-width: 1024px) {
  .features-dark-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-hub-grid {
    grid-template-columns: 1fr;
  }

  .quick-response-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card, .project-card-reverse {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.25rem;
  }

  .project-showcase {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Ativa o botão hambúrguer */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Gaveta do Menu Mobile */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.75rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .site-header.scrolled .nav-menu {
    top: 70px;
  }

  /* Estado Aberto da Gaveta */
  .nav-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex !important;
  }

  .nav-link {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-cta-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem;
    font-size: 1rem;
  }

  .features-dark-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .hero-section {
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .laptop-device { width: 95%; }
  .laptop-screen { height: 180px; }
  .mobile-device { width: 95px; right: 0px; }
  .mobile-floating-alt { left: 0px; }
  .mobile-screen { height: 160px; }
}

/* ==============================================================================
   14. THREE.JS - MALHA ONDULANTE ATRÁS DOS PROJETOS (NOVO)
   ============================================================================== */
#projetos-wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Fica atrás do container que tem z-index: 2 */
  pointer-events: none; /* Não interfere no clique ou seleção de texto */
  opacity: 0.8; /* Ajustado para aparecer bem no celular */
  display: block; /* Evita bordas/margens fantasmas no canvas */
  transform: translateZ(0); /* Força o uso da Placa de Vídeo em dispositivos móveis */
}

/* ==============================================================================
   15. REFINO PARA CELULARES PEQUENOS (≤480px)
   ============================================================================== */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-lg {
    padding: 0.8rem 1.25rem;
  }

  .project-card, .project-card-reverse {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .laptop-device { width: 100%; }
  .laptop-screen { height: 150px; }
  .mobile-device { width: 78px; }
  .mobile-screen { height: 130px; }

  .feature-dark-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-info-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .quick-response-card {
    padding: 1.5rem;
  }

  .btn-quick-wa {
    width: 100%;
  }

  .modal-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}