/* ========================================
   Custom Fonts
   ======================================== */
@font-face {
  font-family: 'Helvetica Neue';
  src: url('/assets/fonts/HelveticaNeueThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/assets/fonts/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/assets/fonts/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/assets/fonts/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/assets/fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Accessibility & Utility Classes
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
:root {
  /* Brand Colors */
  --primary-color: #00AEEF;
  --secondary-color: #120309;
  
  /* Gray Scale */
  --gray-1: #fcfcfc;
  --gray-2: #f9f9f9;
  --gray-3: #f0f0f0;
  --gray-4: #e8e8e8;
  --gray-5: #e1e1e1;
  --gray-6: #d9d9d9;
  --gray-7: #cecece;
  --gray-8: #bbb;
  --gray-9: #8c8c8c;
  --gray-10: #818181;
  --gray-11: #636363;
  --gray-12: #120309;
  --gray-a1: #00000003;
  --gray-a2: #00000006;
  --gray-a3: #0000000f;
  --gray-a4: #00000017;
  --gray-a5: #0000001e;
  --gray-a6: #00000026;
  --gray-a7: #00000031;
  --gray-a8: #00000044;
  --gray-a9: #00000073;
  --gray-a10: #0000007e;
  --gray-a11: #0000009c;
  --gray-a12: #000000e0;
  --gray-contrast: #FFFFFF;
  --gray-surface: #ffffffcc;
  --gray-indicator: #8c8c8c;
  --gray-track: #8c8c8c;
  
  /* Semantic Colors (mapped to gray scale) */
  --text-color: var(--gray-12);
  --text-light: var(--gray-11);
  --text-color-inverse: #ffffff;
  --bg-color: #ffffff;
  --bg-light: var(--gray-2);
  --border-color: var(--gray-6);
  --header-color: #000000;
  
  /* Effects */
  --shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  --shadow-lg: 0 10px 15px -3px var(--gray-a4), 0 4px 6px -2px var(--gray-a3);
  --transition: all 0.3s ease;

  /* Styles */
  --border-radius: .75rem;

  
  /* Fluid Scale - Valores usados no cálculo de clamp() */
  --fluid-scale-h: 2vw; /* Escala para títulos (mais agressiva) */
  
  /* Container Padding - Valores para padding fluido do container */
  --padding-min: 1rem;       /* Mínimo de 16px para mobile */
  --padding-max: 3rem;       /* Máximo de 48px para desktop grande */
  --padding-fluid-scale: 2vw; /* Escala de viewport para fluido */
  --fluid-scale-p: 0.5vw; /* Escala para parágrafos (mais suave) */

  /* Tokens de Padding do Botão (Base 16px) */
  --btn-padding-y-min: 0.625rem; /* 10px */
  --btn-padding-y-max: 1rem;      /* 16px */
  --btn-padding-x-min: 1.5rem;    /* 24px */
  --btn-padding-x-max: 2rem;      /* 32px */
  --btn-fluid-scale: 1vw;         /* Taxa de escala para padding fluido */

  /* Escala para parágrafos (mais suave) */
  --fluid-scale-p: 0.5vw;

  /* Escala geral para espaçamento fluido vertical */
  --spacing-v-fluid-scale: 0.5vw; 
  --spacing-v-min: 1.5rem; 
  --spacing-v-max: 2rem;
}

/* ========================================
   Buttons Styles
   ======================================== 
   
   Sistema de Botões - Guia de Uso
   ================================
   
   Classe Base:
   ------------
   .btn - Classe base com estilos comuns (display, padding, transitions, etc)
   
   Modificadores de Estilo:
   -------------------------
   .btn-primary      - Botão sólido com cor primária (CTA principal)
   .btn-secondary    - Botão sólido com cor secundária
   .btn-outline      - Botão com borda e fundo transparente
   .btn-ghost        - Botão transparente com hover sutil
   .btn-default      - Botão transparente padrão
   .btn-highlight    - Alias para .btn-primary (compatibilidade)
   
   Tamanhos:
   ---------
   .btn-sm           - Botão pequeno
   .btn (padrão)     - Tamanho médio
   .btn-lg           - Botão grande
   
   Utilitários:
   ------------
   .btn-block        - Largura total (width: 100%)
   .btn-icon         - Botão apenas com ícone (sem texto)
   .disabled         - Estado desabilitado
   .loading          - Estado de carregamento (com spinner)
   
   Variações Contextuais:
   ----------------------
   .btn-view-project - Variação específica para botões de projetos
   
   Exemplos de Uso:
   ----------------
   
   Botão primário padrão:
   <a href="#" class="btn btn-primary">Clique aqui</a>
   
   Botão outline pequeno:
   <button class="btn btn-outline btn-sm">Cancelar</button>
   
   Botão com ícone:
   <a href="#" class="btn btn-primary">
     <i class="fas fa-envelope"></i>
     <span>Enviar email</span>
   </a>
   
   Botão apenas ícone:
   <button class="btn btn-icon btn-primary">
     <i class="fas fa-search"></i>
   </button>
   
   Botão full width:
   <a href="#" class="btn btn-primary btn-block">Inscrever-se</a>
   
   ======================================== */

/* Base Button Class - Estilos comuns a todos os botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* padding: 0.75rem 1.25rem; */
  border-radius: var(--border-radius);
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;

  /* Implementação do Padding Vertical Fluido (Y) */
  padding-top: clamp(
    var(--btn-padding-y-min), 
    calc(var(--btn-padding-y-min) + 0.5vw), /* Escala suave */
    var(--btn-padding-y-max)
  );
  padding-bottom: clamp(
    var(--btn-padding-y-min), 
    calc(var(--btn-padding-y-min) + 0.5vw),
    var(--btn-padding-y-max)
  );

  /* Implementação do Padding Horizontal Fluido (X) */
  padding-left: clamp(
    var(--btn-padding-x-min), 
    calc(var(--btn-padding-x-min) + var(--btn-fluid-scale)), /* Escala mais agressiva */
    var(--btn-padding-x-max)
  );
  padding-right: clamp(
    var(--btn-padding-x-min), 
    calc(var(--btn-padding-x-min) + var(--btn-fluid-scale)),
    var(--btn-padding-x-max)
  );
}

/* Hover Effect Base */
.btn:hover {
  transform: translateY(-2px);
}

/* Active Effect Base */
.btn:active {
  transform: translateY(0);
}

/* Ícones dentro dos botões */
.btn i,
.btn .icon {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn .icon {
  fill: currentColor;
}

/* Hover effect nos ícones */
.btn:hover i,
.btn:hover .icon {
  transform: scale(1.1);
}

/* ========================================
   Button Modifiers
   ======================================== */

/* Primary Button - CTA Principal (Solid) */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-inverse);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.btn-primary i,
.btn-primary .icon {
  color: var(--text-color-inverse);
  fill: var(--text-color-inverse);
}

/* Highlight Button - Alias para Primary (mantido para compatibilidade) */
.btn-highlight {
  background-color: var(--primary-color);
  color: var(--text-color-inverse);
  border-color: var(--primary-color);
}

.btn-highlight:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.btn-highlight i,
.btn-highlight .icon {
  color: var(--text-color-inverse);
  fill: var(--text-color-inverse);
}

/* Outline Button - Botão com borda */
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-color-inverse);
  border-color: var(--primary-color);
}

.btn-outline i,
.btn-outline .icon {
  color: var(--primary-color);
  fill: var(--primary-color);
}

.btn-outline:hover i,
.btn-outline:hover .icon {
  color: var(--text-color-inverse);
  fill: var(--text-color-inverse);
}

/* Ghost Button - Botão transparente com hover sutil */
.btn-ghost {
  background-color: transparent;
  color: #120309;
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(18, 3, 9, 0.05);
  border-color: rgba(18, 3, 9, 0.1);
}

.btn-ghost i,
.btn-ghost .icon {
  color: #00AEEF;
  fill: #00AEEF;
}

/* ========================================
   Button Sizes
   ======================================== */

/* Small Button */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-sm i,
.btn-sm .icon {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}

/* Large Button */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-lg i,
.btn-lg .icon {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

/* ========================================
   Button States & Utilities
   ======================================== */

/* Full Width Button */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* Icon Only Button */
.btn-icon {
  padding: 0.75rem;
  gap: 0;
}

.btn-icon.btn-sm {
  padding: 0.5rem;
}

.btn-icon.btn-lg {
  padding: 1rem;
}

/* ========================================
   Legacy Classes (Compatibilidade)
   ======================================== */

/* Legacy class mantida para compatibilidade */
.btn-hilght {
  background-color: var(--primary-color);
  color: var(--text-color-inverse);
  border: 1px solid var(--primary-color);
  border-radius: .25rem;
  padding: 0.75rem 1.25rem;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --gray-1: oklch(99.2% 0 none);
      --gray-2: oklch(98.1% 0 none);
      --gray-3: oklch(95.5% 0 none);
      --gray-4: oklch(93.1% 0 none);
      --gray-5: oklch(90.9% 0 none);
      --gray-6: oklch(88.5% 0 none);
      --gray-7: oklch(85.1% 0 none);
      --gray-8: oklch(79.2% 0 none);
      --gray-9: oklch(63.9% 0 none);
      --gray-10: oklch(60.5% 0 none);
      --gray-11: oklch(50.1% 0 none);
      --gray-12: oklch(24% 0 none);
      --gray-a1: color(display-p3 0 0 0 / 0.0118);
      --gray-a2: color(display-p3 0 0 0 / 0.0235);
      --gray-a3: color(display-p3 0 0 0 / 0.0588);
      --gray-a4: color(display-p3 0 0 0 / 0.0902);
      --gray-a5: color(display-p3 0 0 0 / 0.1176);
      --gray-a6: color(display-p3 0 0 0 / 0.149);
      --gray-a7: color(display-p3 0 0 0 / 0.1922);
      --gray-a8: color(display-p3 0 0 0 / 0.2667);
      --gray-a9: color(display-p3 0 0 0 / 0.451);
      --gray-a10: color(display-p3 0 0 0 / 0.4941);
      --gray-a11: color(display-p3 0 0 0 / 0.6118);
      --gray-a12: color(display-p3 0 0 0 / 0.8784);
      --gray-contrast: #FFFFFF;
      --gray-surface: color(display-p3 1 1 1 / 80%);
      --gray-indicator: oklch(63.9% 0 none);
      --gray-track: oklch(63.9% 0 none);
    }
  }
}

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

html,
body {
  height: 100%;
  margin: 0;
}

html {
  /* Ativa o Scroll Snapping no eixo Y */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: clamp(1rem, calc(1rem + var(--fluid-scale-p)), 1.25rem);
  font-weight: 300; /* Light - peso padrão */
  line-height: 1.6;
  color: #120309;
  background-color: #ffffff;
}

.container {
  /* Novo max-width para desktop grande (1440px = 90rem) */
  max-width: 90rem;
  margin: 0 auto;
  
  /* Padding Fluido: clamp(Mínimo, Valor Preferido (Fluido), Máximo) */
  /* Garante que o padding nunca será menor que 1rem nem maior que 3rem */
  padding-left: clamp(var(--padding-min), var(--padding-fluid-scale), var(--padding-max));
  padding-right: clamp(var(--padding-min), var(--padding-fluid-scale), var(--padding-max));
  /* No mobile, 2vw se comporta como ~1rem (16px), e em desktop, como 3rem (48px) */
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--header-color);
}

/* ========================================
   Typography - Fluid Scale
   ======================================== */
h1:not(.hero-title) { 
  font-size: clamp(2.5rem, calc(2.5rem + var(--fluid-scale-h)), 3.5rem);
  font-weight: 700; 
  line-height: 1.2;
}

h2 { 
  font-size: clamp(2rem, calc(2rem + var(--fluid-scale-h)), 3rem);
  font-weight: 700; 
  line-height: 1.2;
}

h3 { 
  font-size: clamp(1.5rem, calc(1.5rem + var(--fluid-scale-h)), 2rem);
  font-weight: 700; 
  line-height: 1.2;
}

h4 { 
  font-size: clamp(1.25rem, calc(1.25rem + var(--fluid-scale-p)), 1.5rem);
  font-weight: 700; 
  line-height: 1.4;
}

h5 { 
  font-size: clamp(1.125rem, calc(1.125rem + 0.5vw), 1.25rem);
  font-weight: 400; 
  line-height: 1.4;
}

h6 { 
  font-size: clamp(1rem, calc(1rem + 0.25vw), 1.125rem);
  font-weight: 500; 
  line-height: 1.4;
}

p {
  /* Tipografia Fluida: clamp(Mínimo: 16px, Fluido, Máximo: 20px) */
  font-size: clamp(
    .875rem,                      /* Valor Mínimo (16px) */
    calc(1rem + var(--fluid-scale-p)), /* Valor Fluido (Escala suave) */
    1.25rem                    /* Valor Máximo (20px) */
  );
  
  font-weight: 300;
  line-height: 1.75; /* Mantido o line-height original */
  margin-bottom: 1rem; /* Mantido o espaçamento original */
}

b,
strong {
  font-weight: 500;
}

small {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

.border-bottom {
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Font Weight Utilities */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

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

a:hover {
  color: var(--secondary-color);
}

.text-color-inverse {
  color: var(--text-color-inverse);
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none; /* Remove sombra inicial - só aparece ao rolar */
  transition: height 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar {
  height: 5rem; /* 80px - altura inicial */
  display: flex;
  align-items: center;
  transition: height 0.3s ease-in-out;
}

/* Estado da navbar quando há scroll */
.site-header.scrolled .navbar {
  height: 3.5rem; /* 56px - altura reduzida */
}

.site-header.scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave ao rolar */
}

.navbar .container {
  display: flex;
  justify-content: space-between; /* Nome à esquerda, links à direita */
  align-items: center; /* Alinhamento vertical centralizado */
  width: 100%;
  padding: 0 1.5rem;
}

.logo h1 {
  font-size: 1.25rem; /* 20px */
  margin: 0;
  color: var(--primary-color);
  transition: font-size 0.3s ease-in-out;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  align-items: center;
}

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

.nav-menu a {
  color: var(--text-color);
  font-weight: 300; /* Light - conforme solicitado */
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex; /* inline-flex para melhor alinhamento */
  align-items: center;
  gap: 0.25rem; /* Espaçamento sutil entre texto e ícone */
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.75rem; /* 12px */
  transition: var(--transition);
}

.dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-color);
  transition: var(--transition);
  font-weight: 400;
  width: 100%;
  border-radius: .5rem;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 174, 239, 0.1);;
  /* color: var(--primary-color); */
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu i,
.dropdown-menu .menu-icon {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.dropdown-menu .menu-icon {
  height: 20px;
  fill: var(--primary-color);
}

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher-wrapper {
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Espaçamento entre os códigos de idioma */
}

.lang-item {
  text-decoration: none;
  font-weight: 500; /* Medium, para dar destaque */
  color: var(--text-color);
  padding-bottom: 0.2rem; /* Espaço para a borda */
  transition: all 0.3s ease;
  font-size: 0.875rem; /* 14px - levemente menor que o texto normal */
}

.lang-item:hover {
  color: var(--primary-color);
}

.lang-item.is-active {
  color: var(--primary-color); /* Realça a cor do idioma ativo */
  border-bottom: 0.125rem solid var(--primary-color); /* 2px - indicador visual */
}

/* Remove o sublinhado animado padrão dos links da navbar */
.lang-item::after {
  display: none;
}

.lang-separator {
  color: var(--text-color);
  opacity: 0.5;
  font-weight: 300;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* ========================================
   Main Content
   ======================================== */
.site-content {
  min-height: calc(100vh - 300px);
  padding: 0;
}

.home-page {
  padding: 0;
  margin: 0;
}

/* ========================================
   Hero Section - Fullscreen
   ======================================== */
.hero-fullscreen {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFF;
  margin: 0;
  padding: 0;
  /* Scroll Snapping */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-content-center {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero-title {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-profession {
  display: block;
  color: #FFF;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, calc(1rem + var(--fluid-scale-p)), 1.5rem);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0 0 1rem 0;
}

.hero-name {
  display: block;
  background: linear-gradient(180deg, #00AEEF 0%, #006489 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  font-size: clamp(5rem, 6.5vw, 8.5rem);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0 0 1.5rem 0;
}

.hero-nav {
  color: #FFF;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.hero-nav a {
  color: #FFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-nav a:hover {
  color: #00AEEF;
}

.hero-nav .nav-separator {
  margin: 0 0.75rem;
  color: #00AEEF;
  font-weight: 300;
}

/* ========================================
   Contact Popover
   ======================================== */
.contact-popover {
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: rgba(18, 3, 9, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.2);
  z-index: 1000;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, left 0.1s ease;
}

.contact-popover.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.popover-arrow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 174, 239, 0.3);
}

.popover-arrow::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(18, 3, 9, 0.95);
}

.contact-popover .contact-buttons {
  margin: 0;
  gap: 1rem;
  flex-direction: column;
}

.contact-popover .contact-buttons .btn,
.contact-popover .contact-buttons .btn-default {
  width: 100%;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-popover .contact-buttons .btn i,
.contact-popover .contact-buttons .btn .icon,
.contact-popover .contact-buttons .btn-default i,
.contact-popover .contact-buttons .btn-default .icon {
  color: #00AEEF;
  fill: #00AEEF;
}

.contact-popover .contact-buttons .btn:hover,
.contact-popover .contact-buttons .btn-default:hover {
  background-color: rgba(0, 174, 239, 0.1);
  border-color: #00AEEF;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

/* Legacy Hero Styles (para outras páginas se necessário) */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--gray-1) 0%, var(--gray-3) 100%);
  margin: -3rem -20px 3rem -20px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem; /* 56px */
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem; /* 24px */
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem; /* 18px */
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn,
.hero-cta .btn-default {
  min-width: 160px;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-section {
  padding: 4rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #120309;
  color: #FFF;
}

.projects-section .section-header h2 {
  color: #FFF;
}

.projects-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: var(--text-light);
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.2);
  border-color: #00AEEF;
  background: rgba(255, 255, 255, 0.08);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--gray-3);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  margin: 0;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem; /* 24px */
  color: #FFF;
}

.project-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem; /* 15px */
  margin-bottom: 1rem;
  font-style: italic;
}

.project-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

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

.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 174, 239, 0.1);
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 20px;
  font-size: 0.875rem; /* 14px */
  color: #00AEEF;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00AEEF;
  font-weight: 600;
  transition: var(--transition);
  align-self: flex-start;
  text-decoration: none;
}

.project-link:hover {
  gap: 0.75rem;
  color: #FFF;
}

.project-link i {
  font-size: 0.875rem;
}

/* ========================================
   Project Featured Section (Home)
   ======================================== */
.project-featured-section {
  /* 1. Ocupar toda a largura e altura da Viewport */
  width: 100vw;
  min-height: 100vh;
  height: 100vh; /* Fixo em 100vh para scroll snapping */
  
  /* 2. Propriedades da Imagem de Fundo Responsiva */
  /* Garante que a imagem cubra todo o elemento */
  background-size: cover; 
  /* Centraliza a imagem na seção, independentemente do resize */
  background-position: center; 
  /* Evita repetição da imagem */
  background-repeat: no-repeat;
  
  /* 3. Ajustes de Conteúdo */
  /* Remove Flexbox para permitir altura estendida */
  display: block;
  
  /* Necessário para conteúdo sticky e z-index */
  position: relative;
  z-index: 1; /* Garante que a section está visível */
  
  /* Remove padding anterior */
  padding: 0;
  
  /* Scroll Snapping */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-featured-section .container {
  height: 100%;
  max-width: 100%;

  padding-top: 0;
  padding-bottom: 0;

  /* Implementação do Padding Top Fluido */
  padding-top: clamp(
    var(--spacing-v-min), 
    calc(var(--spacing-v-min) + var(--spacing-v-fluid-scale)), 
    var(--spacing-v-max)
  );

  /* Implementação do Padding Bottom Fluido */
  padding-bottom: clamp(
    var(--spacing-v-min), 
    calc(var(--spacing-v-min) + var(--spacing-v-fluid-scale)), 
    var(--spacing-v-max)
  );
}

/* O wrapper precisa ser alto o suficiente para permitir a rolagem e o efeito */
.content-sticky-wrapper {
  /* Altura ajustada para o efeito ideal */
  height: 100vh;
  /* Garante que o texto grudará dentro deste wrapper */
  position: relative;
  /* Evita barras de rolagem desnecessárias */
  overflow: hidden;
  /* Centraliza o conteúdo */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.content-fixed {
  /* O texto se gruda no topo da viewport quando visível */
  position: fixed;
  top: 50%; /* Centraliza verticalmente */
  transform: translateY(-50%);
  
  /* ESTADO INICIAL: Totalmente transparente */
  opacity: 0;
  transition: opacity 0.05s ease-out; /* Transição suave para aplicação do JS */
  
  /* Garante que o texto seja visível no fundo escuro */
  color: white;
  
  /* Z-index alto para ficar acima de outros elementos */
  z-index: 10;
  
  /* Largura controlada */
  width: 100%;
  max-width: 600px;
}

.scroll-trigger-spacer {
  /* Elemento invisível que força o scroll - pode ser usado para ajustes finos */
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  height: 100%;
}

.project-featured-image-column img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-featured-content-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.project-featured-content-column header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-featured-content-column .project-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

.project-featured-content-column .project-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.project-featured-content-column .project-impact h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.project-featured-content-column .impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-featured-content-column .impact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.project-featured-content-column .impact-item h4 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
}

.project-featured-content-column .impact-item p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #120309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-featured-content-column .project-cta {
  margin-top: 1rem;
}

.project-featured-content-column .project-cta p {
  margin-bottom: 1rem;
}

/* ========================================
   Project Featured - Text Color Inverse
   ======================================== */
.project-featured-section.text-color-inverse h1,
.project-featured-section.text-color-inverse h2,
.project-featured-section.text-color-inverse h3,
.project-featured-section.text-color-inverse h4,
.project-featured-section.text-color-inverse h5,
.project-featured-section.text-color-inverse h6,
.project-featured-section.text-color-inverse p,
.project-featured-section.text-color-inverse a,
.project-featured-section.text-color-inverse .project-subtitle,
.project-featured-section.text-color-inverse .project-description,
.project-featured-section.text-color-inverse .impact-item h4,
.project-featured-section.text-color-inverse .impact-item p {
  color: var(--text-color-inverse);
}

/* Borda do header IMPACTO em branco */
.project-featured-section.text-color-inverse .project-impact h3 {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Links e botões com hover adaptado */
.project-featured-section.text-color-inverse a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Ícones em branco */
.project-featured-section.text-color-inverse .btn i,
.project-featured-section.text-color-inverse .btn .icon,
.project-featured-section.text-color-inverse .btn-default i,
.project-featured-section.text-color-inverse .btn-default .icon {
  color: var(--text-color-inverse);
  fill: var(--text-color-inverse);
}

/* Botão com fundo semi-transparente branco */
.project-featured-section.text-color-inverse .btn,
.project-featured-section.text-color-inverse .btn-default {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color-inverse);
}

.project-featured-section.text-color-inverse .btn:hover,
.project-featured-section.text-color-inverse .btn-default:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Projects Fullscreen Section
   ======================================== */
.projects-fullscreen {
  margin: 0;
  padding: 0;
}

/* Background específico para #trabalhos (Home) */
#trabalhos {
  background-image: url('/assets/images/portfolio/firjan-sesi-cidadania-contra-fome/splash-screen-cover.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Background específico para #plataforma-site-blindado */
#plataforma-site-blindado {
  background-image: url('/assets/images/portfolio/plataforma-site-blindado/splash-screen-cover.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.project-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  background-color: #FFFFFF !important;
}

.project-wrapper {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Layout padrão: imagem à esquerda */
.project-container.layout-default .project-wrapper {
  grid-template-columns: 1fr 1fr;
}

/* Layout reverso: imagem à direita */
.project-container.layout-reverse .project-wrapper {
  grid-template-columns: 1fr 1fr;
}

.project-container.layout-reverse .project-visual {
  order: 2;
}

.project-container.layout-reverse .project-content {
  order: 1;
}

/* Visual do projeto */
.project-visual,
figure.project-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.project-featured-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 4rem;
}

/* Conteúdo do projeto */
.project-content {
  color: #120309;
  padding: 2rem 0;
}

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

.project-title {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #000000;
}

.project-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin: 0 0 2rem 0;
  color: #120309;
}

.project-description-full {
  font-size: clamp(1rem, calc(1rem + var(--fluid-scale-p)), 1.25rem);
  font-weight: 300;
  line-height: 28px;
  margin: 0 0 2rem 0;
  color: #120309;
}

.project-description-full p {
  margin: 0 0 1rem 0;
}

/* Seção de Impacto do Projeto */
.project-impact {
 margin: 0;
}

section.project-impact {
  margin: 3rem 0 2.5rem 0;
}

.impact-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.impact-header h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-bottom: 0;
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.impact-item h4 {
  margin: 0;
}

.impact-item p {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Legacy Stats (manter para compatibilidade) */
.project-stats,
section.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item strong {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.stat-item span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #120309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Call to action */
.project-cta,
footer.project-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.project-cta h6 {
  margin: 0 0 1.5rem 0;
  align-self: flex-start;
}

/* View Project Button - Herda de .btn */
.btn-view-project {
  padding: 1rem 2rem;
  background-color: rgba(18, 3, 9, 0.05);
  border-color: rgba(18, 3, 9, 0.2);
  border-radius: 8px;
  color: #120309;
}

.btn-view-project:hover {
  background-color: rgba(0, 174, 239, 0.1);
  border-color: #00AEEF;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

.btn-view-project i,
.btn-view-project .icon {
  color: #00AEEF;
  fill: #00AEEF;
}

/* ========================================
   Page & Post Styles
   ======================================== */
.page-header,
.post-header,
.portfolio-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.post-content,
.page-content,
.portfolio-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content img,
.page-content img,
.portfolio-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tag {
  display: inline-block;
  background-color: var(--gray-3);
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* ========================================
   Post Navigation & Sharing
   ======================================== */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-share h3 {
  margin: 0;
  font-size: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.share-button.twitter { background-color: #1da1f2; }
.share-button.linkedin { background-color: #0077b5; }
.share-button.facebook { background-color: #1877f2; }

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.prev-post,
.next-post {
  display: flex;
  flex-direction: column;
}

.next-post {
  text-align: right;
}

.post-navigation span {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.post-navigation a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ========================================
   Portfolio
   ======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background-color: var(--gray-2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.portfolio-item img {
  width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}

.tech-stack {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 1rem 0;
}

.tech-stack h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tech-stack ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack li {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--gray-3);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-color);
}

.portfolio-links {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* ========================================
   Portfolio Item Detail - Two Column Layout
   ======================================== */
.portfolio-item-detail {
  padding: 3rem 0;
}

.portfolio-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 8rem);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-image-column {
  position: sticky;
  top: 100px;
}

.portfolio-image {
  width: 100%;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.portfolio-content-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.portfolio-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.portfolio-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

.portfolio-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* ========================================
   Portfolio Carousel (optional block)
   ======================================== */
.portfolio-carousel {
  margin: clamp(2rem, 5vw, 4rem) 0;
  width: 100%;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;               /* esconde overflow mas permite peek via padding */
  width: 100%;
  padding-left: 8vw;              /* 8% peek da próxima imagem (lado esquerdo) */
  padding-right: 8vw;             /* 8% peek da anterior (lado direito) */
}

.carousel-track {
  display: flex;
  gap: 3rem;                      /* espaçamento de 3rem entre imagens */
  will-change: transform;
  width: fit-content;             /* ajusta largura ao conteúdo */
  /* Sem transition - animação via JS com requestAnimationFrame para suavidade */
}

.carousel-slide {
  flex: 0 0 auto;
  width: min(calc(100vw - 16vw), 1200px); /* 100vw - padding lateral (8% cada lado) = largura visível */
  max-width: 1200px;
  aspect-ratio: 3 / 2;            /* 1200x800 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .carousel-viewport {
    padding-left: 6vw;            /* peeks um pouco menores em mobile */
    padding-right: 6vw;
  }
  .carousel-track {
    gap: 2rem;
  }
  .carousel-slide {
    width: min(calc(100vw - 12vw), 100%); /* mobile com 6% peek cada lado */
  }
}

/* Gallery images - clickable */
.gallery-image {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Wide hero image for specific portfolio variants */
.portfolio-hero-wide {
  width: 100%;
  margin: 1.5rem 0 2.5rem 0;
}

.portfolio-hero-wide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Flexible two-column section (gallery left, content right) */
.portfolio-flex-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-flex-left,
.portfolio-flex-right {
  width: 100%;
}

.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.portfolio-gallery-item {
  margin: 0;
}

.portfolio-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .portfolio-flex-two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portfolio-hero-wide {
    margin: 1rem 0 1.5rem 0;
  }
}

ul {
 margin-bottom: 1rem;
}

.portfolio-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Estilos de listas */
.portfolio-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.portfolio-content ul li::marker {
  color: var(--primary-color); /* Bullets na cor primária */
}

.portfolio-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.portfolio-content ol li::marker {
  color: var(--primary-color); /* Números na cor primária */
}

/* Imagem spread que ocupa 2 colunas */
.portfolio-image-spread {
  position: relative;
  width: calc(200% + clamp(2rem, 5vw, 4rem));
  margin-left: calc(-100% - clamp(2rem, 5vw, 4rem));
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
}

.portfolio-image-spread img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .portfolio-image-spread {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

.portfolio-info {
  margin-top: 1rem;
}

.back-to-portfolio {
  margin-top: 0;
  padding-top: 0;
}

.back-to-portfolio a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.back-to-portfolio a:hover {
  gap: 0.75rem;
  color: var(--secondary-color);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  padding: 4rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #120309;
  color: #FFF;
}

.contact-section .section-header h2 {
  color: #FFF;
}

.contact-section .section-header p {
  color: #FFF;
}

/* ========================================
   Button Modifiers (Continuação)
   ======================================== */

/* Default Button - Botão padrão transparente */
.btn-default {
  color: #120309;
}

.btn-default i,
.btn-default .icon {
  color: #00AEEF;
  fill: #00AEEF;
}

.btn-default:hover {
  background-color: rgba(0, 174, 239, 0.1);
  border-color: rgba(0, 174, 239, 0.2);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--text-light);
  color: var(--text-color);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: white;
  border-color: var(--text-color);
}

/* ========================================
   Forms
   ======================================== */
form {
  max-width: 600px;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #FFF;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background-color: #00AEEF;
  color: white;
  transform: translateY(-3px);
  border-color: #00AEEF;
}

/* ========================================
   About Page
   ======================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.about-content {
  max-width: 65ch;
}

.about-content ul li::marker {
  color: #00AEEF;
}

/* .about-page p usa os estilos globais de parágrafo */

.about-image {
  position: sticky;
  top: 120px;
}

.about-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
}

.about-footer-button-bar {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}


.about-footer-button-bar .separator {
  width: 1px;
  height: 24px;
  background-color: #00AEEF;
  opacity: 0.3;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tech-grid h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.tech-grid ul {
  list-style: none;
  padding: 0;
}

.tech-grid li {
  padding: 0.5rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1.5rem;
}

.tech-grid li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.contact-cta {
  background: linear-gradient(135deg, var(--gray-1) 0%, var(--gray-3) 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
}

.contact-cta h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.contact-buttons span {
  display: flex;
  align-items: center;
  position: relative;
  top: .20rem;
}

.social-links-about {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.social-links-about a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
}

.social-links-about a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.social-links-about i {
  font-size: 1.25rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  /* Tipografia fluida com clamp() já cuida dos tamanhos responsivos */
  
  .hero-fullscreen {
    height: 100vh;
  }
  
  .hero-title {
    gap: 0;
  }
  
  .hero-profession {
    font-size: 14px;
  }
  
  .hero-name {
    font-size: 32px;
  }
  
  .hero-nav {
    font-size: 14px;
  }
  
  .hero-nav .nav-separator {
    margin: 0 0.5rem;
  }
  
  .contact-popover {
    min-width: 280px;
    max-width: calc(100vw - 2rem); /* Evita corte nas laterais */
    padding: 1rem;
    /* Em mobile, remove o transform negativo para evitar cortes */
  }
  
  .contact-popover .contact-buttons .btn {
    font-size: 14px;
    padding: 0.875rem 1.5rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
    margin: -3rem -15px 2rem -15px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn,
  .hero-cta .btn-default {
    width: 100%;
  }
  
  /* .section-header h2 usa os estilos globais de h2 mobile */
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* Projects Fullscreen - Mobile */
  .project-container {
    min-height: auto;
    padding: 3rem 1.5rem;
  }
  
  .project-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .project-container.layout-reverse .project-visual {
    order: 1;
  }
  
  .project-container.layout-reverse .project-content {
    order: 2;
  }
  
  .project-visual {
    border-radius: 12px;
  }
  
  .project-featured-image {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  .project-content {
    padding: 0;
  }
  
  .project-title {
    font-size: 32px;
    line-height: 36px;
    margin: 0 0 1rem 0;
  }
  
  .project-lead {
    font-size: 18px;
    line-height: 26px;
    margin: 0 0 1.5rem 0;
  }
  
  .project-description-full {
    line-height: 24px;
    margin: 0 0 1.5rem 0;
  }
  
  
  .impact-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }
  
  .impact-header h3 {
    letter-spacing: 0.75px;
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .impact-item p {
    letter-spacing: 0.25px;
  }
  
  .project-cta {
    align-items: stretch;
  }
  
  .project-cta .btn,
  .project-cta .btn-default {
    align-self: flex-end;
  }
  
  /* Legacy Stats - Mobile */
  .project-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }
  
  .stat-item strong {
    font-size: 1.5rem;
  }
  
  .stat-item span {
    font-size: 0.75rem;
  }
  
  .project-cta {
    margin-top: 2rem;
  }
  
  .project-cta h6 {
    margin: 0 0 1rem 0;
  }
  
  .btn-view-project {
    font-size: 14px;
    padding: 0.875rem 1.5rem;
  }
  
  .btn-view-project i {
    font-size: 1.125rem;
  }
  
  /* ========================================
     Mobile Header & Navigation
     ======================================== */
  
  /* 1. Altura da Navbar Mobile - 3.5rem (56px) */
  .navbar {
    height: 3.5rem; /* Altura reduzida para mobile */
  }
  
  /* Navbar sempre com altura fixa em mobile (sem variação no scroll) */
  .site-header.scrolled .navbar {
    height: 3.5rem;
  }
  
  /* 2. Alinhamento do Header: Nome e Hamburguer */
  .navbar .container {
    display: flex;
    justify-content: space-between; /* Nome à esquerda, hamburguer à direita */
    align-items: center; /* Alinhamento vertical centralizado */
  }
  
  .menu-toggle {
    display: flex;
    align-items: center; /* Alinhamento vertical do ícone */
  }
  
  /* 3. Menu Overlay (Menu Aberto) */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    gap: 0;
    padding: 0; /* Remove padding inicial */
    padding-top: 1rem; /* Espaçamento do topo */
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    max-height: 500px; /* Altura aumentada para acomodar dropdown */
  }
  
  /* 4. Itens do Menu - Alinhados à Esquerda */
  .nav-menu li {
    padding: 0;
    margin: 0;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem; /* Padding generoso para toque */
    text-align: left; /* Alinhamento à esquerda */
  }
  
  .nav-menu > li > a {
    margin-bottom: 0.5rem; /* Espaçamento entre itens principais */
  }
  
  /* 5. Dropdown 'Contato' - Comportamento Mobile (Lista Expansível) */
  .dropdown-menu {
    position: static; /* Remove posicionamento absoluto */
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: var(--bg-light); /* Fundo diferenciado */
    max-height: 0; /* Colapsado por padrão */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 200px; /* Expandido quando ativo */
    padding: 0.5rem 0;
  }
  
  /* 6. Sub-itens do Dropdown - Hierarquia Visual */
  .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem; /* Padding vertical/horizontal */
    padding-left: 3rem; /* Indentação para hierarquia visual (1.5rem base + 1.5rem extra) */
    text-align: left; /* Alinhamento à esquerda */
    font-size: 0.9375rem; /* Fonte levemente menor */
  }
  
  .dropdown-menu a:hover {
    background-color: rgba(0, 174, 239, 0.08);
  }
  
  /* Remove sublinhado animado do dropdown em mobile */
  .dropdown-menu a::after {
    display: none;
  }
  
  /* 6. Language Switcher Mobile */
  .lang-switcher-wrapper {
    padding: 1rem 1.5rem; /* Mesmo padding dos outros itens */
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Separador visual */
  }
  
  .lang-switcher {
    justify-content: center; /* Centralizado em mobile */
    gap: 1rem; /* Maior espaçamento em mobile para facilitar o toque */
  }
  
  .lang-item {
    font-size: 1rem; /* Tamanho maior em mobile para facilitar o toque */
    padding: 0.5rem 0.75rem; /* Área de toque maior */
  }
  
  .lang-separator {
    font-size: 1rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    position: static;
    text-align: center;
    order: -1;
  }
  
  .about-image img {
    max-width: 300px;
  }
  
  .about-footer-button-bar {
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  .about-footer-button-bar .separator {
    display: none;
  }
  
  /* Button Styles - Mobile */
  .btn {
    font-size: 0.9375rem;
    padding: 0.675rem 1.125rem;
  }
  
  .btn i,
  .btn .icon {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .btn-sm i,
  .btn-sm .icon {
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-lg i,
  .btn-lg .icon {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .next-post {
    text-align: left;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  /* Portfolio Item Detail - Mobile */
  .portfolio-two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .portfolio-image-column {
    position: static;
  }
  
  .portfolio-image {
    margin-bottom: 1rem;
  }
  
  /* Project Featured Section - Mobile */
  .project-featured-section {
    height: auto;
    min-height: 100vh;
  }
  
  .project-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-sticky-wrapper {
    height: auto; /* Remove altura estendida em mobile */
    min-height: auto;
  }
  
  .content-fixed {
    position: relative; /* Remove sticky em mobile */
    top: auto;
    transform: none;
    opacity: 1 !important; /* Sempre visível em mobile */
    max-width: 100%;
  }
  
  .project-featured-content-column {
    gap: 1rem;
  }
  
  .project-featured-content-column .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .project-featured-content-column .project-cta {
    margin-top: 0rem;
  }
}

@media (max-width: 480px) {
  /* Padding do .container removido - agora usa clamp() fluido */
  
  .site-content {
    padding: 2rem 0;
  }
}

/* ========================================
   Ripple Effect on Click
   ======================================== */

/* Ripple effect on click */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.4) 0%, rgba(0, 174, 239, 0.2) 40%, transparent 70%);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ========================================
   Gallery Modal
   ======================================== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.gallery-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}

.gallery-modal-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: galleryFadeIn 0.4s ease;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close,
.gallery-modal-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-modal-close:hover,
.gallery-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.gallery-modal-close:active,
.gallery-modal-nav:active {
  transform: scale(0.95);
}

.gallery-modal-close {
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
}

.gallery-modal-close svg {
  width: 24px;
  height: 24px;
}

.gallery-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.gallery-modal-prev {
  left: 2rem;
}

.gallery-modal-next {
  right: 2rem;
}

.gallery-modal-nav svg {
  width: 28px;
  height: 28px;
}

.gallery-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-modal-info {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .gallery-modal-container {
    padding: 1rem;
  }

  .gallery-modal-image {
    max-height: 85vh;
  }

  .gallery-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .gallery-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .gallery-modal-nav {
    width: 44px;
    height: 44px;
  }

  .gallery-modal-prev {
    left: 0.5rem;
  }

  .gallery-modal-next {
    right: 0.5rem;
  }

  .gallery-modal-nav svg {
    width: 24px;
    height: 24px;
  }

  .gallery-modal-info {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Ensure ripple works on buttons and links */
a, button, .btn {
  position: relative;
  overflow: hidden;
}

