/* Estilos Otimizados */

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

/* Configurações gerais */
body {
    overflow: visible;
    margin: 0px;
    padding: 0px;
    font-family: 'Open Sans', 'Lato', 'Roboto', 'Arial', 'Helvetica','sans-serif';
    color: #fff;
    background-color: #000;
    scroll-behavior: smooth;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;

    /* Impedir seleção de texto (avaliar se deseja manter global) */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

h1, h2, h3, h4, h5, p {
    margin: 0;
}

/* Estilo personalizado para a seção de boas-vindas */
.welcome-title {
    font-size: 1.5em;
}

.welcome-subtitle {
    font-size: 2em;
    line-height: 1;
    margin-bottom: 1px;
}

.welcome-description {
    font-size: 0.01em;
    margin-bottom: 0px;
}

button, .button {
    background-color: transparent;
    border: 3px solid #fff;
    color: #fff;
    padding: 15px 30px;
    cursor: pointer;
    transition: border-color 0.3s;
    text-decoration: none;
}

button:hover, .button:hover {
    border-color: #FE027A;
}

/* Garantir que o container principal ajuste-se corretamente */
#main-container {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#welcome-section {
    text-align: center;
    position: relative;
    min-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: opacity 1s ease-out;
    z-index: 1;
    margin-top: 0px;
    margin-bottom: 0px;
}

#welcome-section .destaque {
    color: #FE027A;
    margin-bottom: 0px;
    font-size: 2em;
}

#welcome-section h2 {
    margin-bottom: 40px;
    font-size: 3em;
}

#welcome-section p {
    margin-bottom: 40px;
    font-size: 1.3em;
}

#content-wrapper {
    border-radius: 0;
    opacity: 99%;
    background-color: #fff;
    color: #000;
    width: 100%;
    padding: 0px;
    transition: opacity 1s ease-in, transform 1s ease-in;
    margin-top: 0px;
    z-index: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
}

#about-section {
    text-align: center;
    width: 100%;
}

#about-section h2 {
    color: #FE027A;
    text-align: center;
    font-size: 1.5em;
    margin-top: 40px; /* Ajusta a posição de "Sobre" */
}

/*  Título quem sou */
#about-section h3 {
    margin: 24px 0;
    text-align: center;
    font-size: 1.5em;
    margin-top: 5px;
    margin-bottom: 24px; /* espaço extra entre título e texto */
    text-align: center;
    font-size: 1.5em;
}

#about-section .about-image {
    flex: 0 0 150px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about-section .about-image img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* TEXTO CENTRAL  */
#about-section p {
    font-family: 'Helvetica', sans-serif;
    line-height: 1.7;
    text-align: justify;
    font-size: 1.4em; /* fonte mais confortável no desktop */
    width: 100%;
}

/* =========================
   Projetos - Grid Responsivo Moderno (centralizado)
   ========================= */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* largura mínima 300px */
    gap: 24px;
    width: 100%;
    justify-content: center; /* centraliza os cards quando sobra espaço */
}
.posts ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.posts article {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
    margin: 2px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 0;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.posts article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 600px) {
    .posts {
        grid-template-columns: 1fr; /* força 1 coluna */
        justify-items: center; /* centraliza o conteúdo da coluna */
    }

    .posts article {
        max-width: 80%; /* ocupa 90% da largura da tela no mobile */
    }
}

.posts h2 {
    color: #333;
    margin: 0;
    padding: 16px 16px 8px 16px;
    font-size: 1.25rem;
}

.posts .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    background-color: transparent;
    box-sizing: border-box;
}

.posts .image-container img {
    max-width: 100%;
    max-height: 160px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}


.posts .actions.special {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 16px 16px 16px;
}

.posts .button {
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    display: inline-block;
    width: auto;
}

.posts .button:hover {
    border-color: #FE027A;
    color: #FE027A;
}

/* Responsividade dos projetos */
@media (max-width: 600px) {
    .posts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .posts article {
        width: 100%; /* Corrige 100vw que forçava overflow */
        box-sizing: border-box;
    }
}

/* Centraliza a seção de contato */
.contact-section {
    text-align: center;
    padding: 50px 5px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    color: #FE027A;
    font-size: 1em;
    margin-bottom: 0px;
    line-height: 0;
}

.contact-section h3 {
    padding: 25px;
    color: #fff;
    font-size: 1.6em;
    margin-bottom: 18px;
}

.contact-section p {
    color: #edebeb;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-section .email-button {
    background-color: #FE027A;
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    margin-top: 20px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.contact-section .email-button:hover {
    background-color: #b00050;
}

/* Estilo do rodapé */
.footer {
    text-align: center;
    font-family: 'Helvetica', sans-serif;
    padding: 1px 0;
    font-size: .90em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.footer p {
    margin: 0;
    color: #6b6969;
}

.footer .designer a {
    color: #fff;
    text-decoration: none;
}

.footer .designer a:hover {
    color: #FE027A;
}

.footer a.linkedin-link-footer {
    color: #0077B5;
    font-size: 1.3em;
    text-decoration: none;
    margin-left: 5px;
}

.footer a.linkedin-link-footer:hover {
    color: #005582;
}

/* Ajustar o layout dos ícones */
#icon-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

/* apresenta currículo no rodapé */
.cv-icon {
  position: relative;
  display: inline-block;
}

.curriculo-box {
  display: inline-block !important;
  padding: 5px 10px;
  font-size: 12px !important;
  color: #000 !important;
  background-color: #fff !important;
  border: 1px solid #fff;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  line-height: normal !important;
  vertical-align: middle;
  white-space: nowrap;
}

.curriculo-box:hover {
  background-color: #FE027A !important;
  color: #fff !important;
  border-color: #FE027A;
}

.cv-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 100;
}

/* MOSTRAR pt/en AO PASSAR O MOUSE */
.cv-icon:hover .cv-options {
  display: block;
}

.cv-link {
  font-size: 20px !important;
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
}

.cv-link:hover {
  color: #FE027A;
}
/* Ajuste para mobile */
@media screen and (max-width: 600px) {
  .curriculo-box {
    font-size: 13px !important;
    padding: 3px 6px;
    width: auto;
  }

#about-section .about-content {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5px;
}

#about-section .about-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

#about-section .about-image img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#about-section .about-text {
    flex: 1;
    text-align: justify;
}

/* (Consolidado) Impedir seleção de texto em todos os elementos da página */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ajuste para mover a palavra "Sobre" mais para baixo */
#about-section h2 {
    margin-top: 30px;
}


/* Ajustes para dispositivos móveis */
@media screen and (max-width: 600px) {
    .curriculo-box {
        font-size: 13px !important;
        padding: 3px 6px;
        width: auto;
    }
}

/* Estilo dos links "pt" e "en" */
.cv-link {
    font-size: 20px !important;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

.cv-link:hover {
    color: #FE027A;
}

.download-link-footer {
    display: inline-block !important;
    padding: 5px 10px;
    font-size: 12px !important;
    color: #ffffff !important;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    line-height: normal !important;
    height: auto !important;
    vertical-align: middle;
    white-space: nowrap;
}

.download-link-footer:hover {
    background-color: #FE027A !important;
    color: #fff !important;
    border-color: #FE027A;
}

.download-link-footer i {
    background-color: #FE027A;
    color: #fff;
}

/* Estilo do menu drop-down para Baixar PDF (corrigida sintaxe) */
.cv-options {
    display: none;
    position: absolute;
    top: 10px; /* Alinha abaixo do botão */
    background-color: #333;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 100;
}

/* Mobile - ajuste para texto "Quem sou" */
@media (max-width: 600px) {
    .about-text {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

body, * {
  user-select : none !important ;
  -webkit-user-select : none !important ;
  -moz-user-select : none !important ;
  -ms-user-select : none !important ;
  -webkit-touch-callout : none !important ;
}
