/* CONFIGURAÇÕES DE CORES & FONTES */
:root {
    --bg-site: #f4f5f7; 
    --container-bg: #ffffff;
    --text-main: #2d3748; /* Cinza grafite escuro (Excelente contraste) */
    --text-muted: #718096;
    --text-color: #1a1e26;
    --text-secondary: #5e6675;
    --accent-color: #0056b3; 
    --accent-hover: #2b6cb0;
    --border-color: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.25s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-site);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* CABEÇALHO COMPLETO */
.main-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Barra superior de idiomas */
.languages-top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 20px;
    text-align: right;
    font-size: 0.85rem;
    color: #ccc;
}

.lang-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lang-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    transition: var(--transition-speed);
}

.lang-link:hover, .lang-link.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Barra Principal do Cabeçalho */
.header-main-bar {
    padding: 15px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-speed);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-color);
    border-bottom-color: var(--accent-color);
}

/* CONTEÚDO PRINCIPAL (INÍCIO) */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-box {
  background-color: var(--container-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.home-intro-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

/* Foto Sem Fundo Cinza (Transparente) e Maior */
.photo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    background: transparent; /* Removido o fundo cinza e a borda */
    padding: 0;
    display: inline-block;
    max-width: 100%;
}

.profile-img {
    max-width: 380px; /* Foto consideravelmente maior */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Removido arredondamento desnecessário para imagens PNG transparentes */
}

/* PROJETOS */
.projetos-section,
.projetos-categorias,
.projetos-detalhe {
  padding: 0;
  background-color: transparent;
}

.projetos-section {
  border-bottom: 1px solid var(--border-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.projetos-intro,
.projetos-texto {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
}

.projetos-texto.destaque {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-top: 30px;
}

.projetos-titulo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: center;
}

.projetos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.projetos-lista li {
  background-color: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.projetos-detalhe .projeto-item {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.projetos-detalhe .projeto-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.projetos-detalhe h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.projetos-detalhe p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 12px;
}

/* Responsividade */
@media (max-width: 768px) {
  .projetos-titulo {
    font-size: 1.6rem;
  }

  .projetos-lista {
    grid-template-columns: 1fr;
  }

  .projetos-detalhe h3 {
    font-size: 1.3rem;
  }

  .projetos-intro,
  .projetos-texto,
  .projetos-detalhe p {
    font-size: 1rem;
  }
}

/* PARCERIAS */
.parcerias-section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.parcerias-titulo {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
}

.parcerias-bloco {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.parcerias-bloco:last-child {
  border-bottom: none;
}

.parcerias-subtitulo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.parcerias-texto {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 15px;
}

.parcerias-cta {
  padding-top: 30px;
  text-align: center;
}

.parcerias-cta-texto {
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .parcerias-titulo {
    font-size: 1.8rem;
  }

  .parcerias-subtitulo {
    font-size: 1.4rem;
  }

  .parcerias-cta-texto {
    font-size: 1.1rem;
  }
}

.header-img {
    max-width: 100px; /* Foto consideravelmente maior */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Removido arredondamento desnecessário para imagens PNG transparentes */
}

/* Coluna de Textos */
.text-column {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-roles {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
}

/* CONTATOS */

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
  width: 20px;
  text-align: center;
}

.input-with-icon input,
.input-with-icon textarea {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-speed);
}

.input-with-icon textarea {
  resize: vertical;
  min-height: 120px;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.input-with-icon input:focus + .input-icon,
.input-with-icon textarea:focus + .input-icon {
  color: var(--accent-color);
}

/* Ícone do textarea - posição fixa no topo */
.input-with-icon textarea ~ .input-icon,
.input-with-icon textarea + .input-icon {
  top: 15px !important;
  transform: none !important;
}

/* Para textarea, força o ícone para o topo */
textarea.input-with-icon .input-icon,
.input-with-icon:has(textarea) .input-icon {
  top: 15px !important;
  transform: none !important;
}

.contatos-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contatos-form-col {
  max-width: 500px;
}

.contatos-titulo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 25px;
}

.contatos-form .form-group {
  margin-bottom: 20px;
}

.contatos-form input,
.contatos-form textarea {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-speed);
}

.contatos-form input:focus,
.contatos-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.contatos-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  background-color: var(--accent-color);
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-speed);
}

.btn-enviar:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* REDES SOCIAIS */
.contatos-social-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.social-category {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.social-category:last-child {
  border-bottom: none;
}

.social-cat-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.social-cat-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-style: italic;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-speed);
}

.social-link:hover .social-name {
  font-weight: 700;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--container-bg);
  transition: var(--transition-speed);
}

.social-icon i {
  font-size: 18px;
  color: inherit;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover .social-icon {
  background-color: #ccc;
}

.social-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.social-separator {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Cores das redes sociais */
.social-icon.facebook { color: #1877F2; }
.social-icon.instagram { color: #E4405F; }
.social-icon.tiktok { color: #000000; }
.social-icon.youtube { color: #FF0000; }
.social-icon.threads { color: #000000; }
.social-icon.x { color: #000000; }
.social-icon.pinterest { color: #E60023; }
.social-icon.spotify { color: #1DB954; }
.social-icon.linkedin { color: #0A66C2; }
.social-icon.teams { color: #6264A7; }
.social-icon.zoom { color: #2D8CFF; }
.social-icon.github { color: #333; }
.social-icon.whatsapp { color: #25D366; }
.social-icon.messenger { color: #0084FF; }
.social-icon.telegram { color: #0088CC; }
.social-icon.signal { color: #3A76F0; }
.social-icon.blogger { color: #F57D00; }
.social-icon.quora { color: #B92B27; }
.social-icon.bluesky { color: #007AFF; }
.social-icon.mastodon { color: #6364FF; }
.social-icon.reddit { color: #FF4500; }
.social-icon.discord { color: #5865F2; }
.social-icon.snapchat svg {
  width: 16px;
  height: 16px;
  fill: #FFFC00;
  stroke: #000;
  stroke-width: 2;
}

.social-link:hover .social-icon.snapchat {
  background-color: #ccc;
}

/* QR Code Modal */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.qr-modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  position: relative;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
}

.qr-image {
  max-width: 250px;
  height: auto;
  margin: 20px 0;
}

.qr-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* MAPA */
.contatos-mapa {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
}

/* Responsividade */
@media (max-width: 768px) {
  .contatos-container {
    grid-template-columns: 1fr;
  }

  .contatos-form-col {
    max-width: 100%;
  }

  .social-icons {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-separator {
    display: none;
  }
}

.welcome-text-container {
    background-color: #fcfcfc;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 24px;
}

/* Textos na cor padrão neutra para excelente leitura e elegância */
.welcome-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.welcome-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.welcome-footer {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* RODAPÉ */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 25px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--container-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- MODAL (Janela flutuante para políticas/termos) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-muted);
}

/* BOTÃO DE MENU MOBILE (HAMBÚRGUER) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition-speed);
}

/* RESPONSIVIDADE EM MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid #eaeaea;
    }

    .nav-menu.open {
        display: flex;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .profile-roles {
        border-left: none;
        padding-left: 0;
    }

    .languages-top-bar {
        text-align: center;
    }
    
    .profile-img {
        max-width: 280px; /* Reduz ligeiramente apenas em ecrãs pequenos para caber harmoniosamente */
    }
}