/* GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Paleta de cores escura (originalmente desejada) */
:root {
    --bg-main: #000000; /* Fundo principal preto */
    --bg-section: rgba(
        0,
        0,
        0,
        0.45
    ); /* Fundo para seções, transparente com preto */
    --text-light: #ffffff; /* Cor de texto branca */
    --text-mid: #e0e0e0; /* Cor de texto para parágrafos, um cinza claro */
    --accent-blue: #38e1ff; /* Azul vibrante existente */
    --shadow-dark: rgba(0, 0, 0, 0.7); /* Sombra escura */
    --shadow-light: rgba(56, 225, 255, 0.2); /* Sombra sutil para brilho */
    --card-bg-dark: #1a1a3a; /* Fundo dos cards (skills, projetos) */
    --card-hover-bg: #2b2b50; /* Fundo do card no hover */
    --border-subtle: rgba(56, 225, 255, 0.2); /* Borda sutil para elementos */
    --text-input-bg: #0f0f2f; /* Fundo dos inputs */
    --error-color: #ff6b6b; /* Cor para mensagens de erro */
}

body {
    background-image: url("/images/background.jpg"); /* Sua imagem de fundo */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-main);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: auto; /* Mantém o cursor padrão, pois o cursor customizado foi removido */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Overlay preto mais opaco */
    backdrop-filter: blur(4px); /* Blur para o fundo do body */
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
}

.flex {
    display: flex;
}

h2.titulo {
    color: var(--text-light);
    font-size: 3em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1.5px; /* Adicionado para um visual mais profissional */
}

h2.titulo::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 10px auto 0;
    border-radius: 5px;
}

h2.titulo span {
    color: var(--accent-blue);
}

button:hover,
form .btn-send input:hover {
    box-shadow: 0px 0px 18px var(--accent-blue); /* Levemente mais intenso */
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* BOTÕES GERAIS */
.btn-contato button,
.btn-curriculo button,
form .btn-send input {
    padding: 12px 35px;
    font-size: 1.1em;
    font-weight: 600;
    background-color: var(--accent-blue);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Aumentado o espaçamento para impacto */
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
    align-items: center;
    width: 100%;
}

.btn-curriculo {
    text-align: center;
    float: none; /* Redundante com flex, mas ok */
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* CABEÇALHO (HEADER) */
header {
    padding: 20px 4%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    box-shadow: 0 2px 10px var(--shadow-dark);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Container para ações do cabeçalho, incluindo seletor de idioma e botão de contato */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaço entre o seletor de idioma e o botão de contato */
    margin-left: auto; /* Empurra para a direita */
}

.btn-contato {
    display: block;
    align-self: center;
    flex-shrink: 0;
}

header .logo {
    flex-shrink: 0;
    margin-right: 20px;
}

header .logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

header nav.menu-desktop {
    flex-grow: 1;
    text-align: center;
}

header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav.menu-desktop ul li {
    display: inline-block;
    padding: 0 20px;
}

header a {
    color: var(--text-mid);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: 500;
    padding-bottom: 5px;
    white-space: nowrap;
}

header nav.menu-desktop a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
    padding-bottom: 5px;
}

/* Estilo para link de navegação ativo (Scroll Spy) - Corrigido para ser mais discreto */
header nav.menu-desktop ul li a.active {
    color: var(--accent-blue); /* Cor de destaque */
    font-weight: 700; /* Negrito */
    /* Removido border-bottom e padding-bottom para um efeito mais discreto */
    /* Adicionando um box-shadow sutil como alternativa para o destaque visual */
    text-shadow: 0 0 5px rgba(56, 225, 255, 0.7); /* Sombra de texto para brilho discreto */
    transform: translateY(0); /* Mantém a posição original, sem "salto" */
}

/* ESTILO SELETOR DE IDIOMA */
.lang-selector {
    position: relative;
    display: inline-block;
    z-index: 1001; /* Aumentado o z-index para garantir visibilidade máxima */
}

.lang-button {
    background-color: var(--card-bg-dark); /* Fundo escuro para o botão */
    color: var(--text-light);
    border: 1px solid var(--border-subtle);
    padding: 10px 15px; /* Manter padding para bom espaçamento */
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;

    /* CORREÇÃO DO BOTÃO "GORDO" / QUEBRA DE LINHA */
    min-width: 90px; /* Garante que o botão tenha largura suficiente para PT-BR */
    justify-content: center; /* Centraliza o ícone e o texto horizontalmente */
    white-space: nowrap; /* Impede que o texto "PT-BR" quebre a linha */
}

.lang-button:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 225, 255, 0.4);
}

.lang-button i {
    color: var(--accent-blue); /* Ícones com a cor de destaque */
}

.lang-dropdown-content {
    display: none; /* Oculto por padrão */
    position: absolute;
    background-color: var(--card-bg-dark);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.6);
    z-index: 1002; /* Maior que o lang-selector para garantir que esteja acima */
    border-radius: 8px;
    overflow: hidden;

    /* Alinhamento Centralizado */
    left: 50%; /* Move o ponto de referência para o centro do pai */
    transform: translateX(
        -50%
    ); /* Move o elemento de volta pela metade de sua largura */

    top: calc(
        100% + 10px
    ); /* Posiciona abaixo do botão com um pequeno espaço */
    border: 1px solid var(--border-subtle);
}

.lang-dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* Evita que o texto quebre a linha */
}

.lang-dropdown-content a:hover {
    background-color: var(--accent-blue);
    color: var(--bg-main);
    transform: none; /* Garante que links do dropdown não tenham o translateY */
}

.lang-selector.active .lang-dropdown-content {
    display: block !important; /* Força a exibição para debug do clique */
}

/* ESTILO MENU MOBILE */
.btn-open-menu {
    display: none;
}
.btn-open-menu i {
    color: var(--accent-blue);
    font-size: 35px;
    cursor: pointer;
}

.menu-mobile {
    background-color: var(--bg-main);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

.menu-mobile.op-menu {
    width: 70%;
}

.menu-mobile.op-menu ~ .overlay-menu {
    display: block;
    opacity: 1;
}

.menu-mobile .btn-close {
    padding: 20px 5%;
    text-align: right;
}

.menu-mobile .btn-close i {
    color: var(--accent-blue);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.menu-mobile .btn-close i:hover {
    transform: rotate(90deg);
}

.menu-mobile nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-top: 50px;
    margin: 0;
    padding-right: 8%;
}

.menu-mobile nav ul li {
    width: 100%;
    margin-bottom: 10px;
}

.menu-mobile nav ul li a {
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 300;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-mobile nav ul li:last-child a {
    border-bottom: none;
}

.menu-mobile nav ul li a:hover,
.menu-mobile nav ul li a.active {
    background-color: var(--accent-blue);
    color: var(--bg-main);
    padding-bottom: 10px;
}

.overlay-menu {
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* TOPO DO SITE (HERO SECTION) */
section.top-of-the-site {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding: 0;
    text-align: center;
    padding-top: 120px;
}

.overlay-hero {
    background-color: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-of-the-site .interface {
    position: relative;
    z-index: 2;
    padding: 40px 4%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-of-the-site .flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    max-width: 900px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.top-of-the-site .txt-top-site {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 0;
    text-align: center;
}

.top-of-the-site .txt-top-site h1 {
    font-size: 4.5em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 700; /* Made title bolder */
    letter-spacing: 2px; /* Increased letter spacing for impact */
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px); /* Initially moved down */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

.top-of-the-site .txt-top-site h1.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.top-of-the-site .txt-top-site h1 span {
    color: var(--accent-blue);
}

.top-of-the-site .txt-top-site p {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 20px auto 0;
    color: var(--text-mid);
    text-align: center;
    font-weight: 300; /* Lighter weight for paragraphs */
}

main section:first-of-type {
    margin-bottom: 80px;
    padding-bottom: 50px;
}

.top-of-the-site .img-top-site {
    display: none;
}

/* SKILLS */
section.skills {
    padding: 80px 4%;
    background-color: var(--bg-section);
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

section.skills .flex {
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.skills .skills-box {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    margin-top: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-dark);
    flex-basis: calc(33.33% - 20px);
    max-width: 380px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.skills .skills-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px var(--shadow-light),
        0 0 25px 5px rgba(56, 225, 255, 0.3); /* Enhanced hover glow */
    background-color: var(--card-hover-bg);
    border-color: var(--accent-blue);
}

.skills .flex .skills-box i {
    font-size: 4.5em;
    color: var(--accent-blue);
    margin-bottom: 20px;
    filter: drop-shadow(
        0 0 5px var(--accent-blue)
    ); /* Added subtle icon glow */
}

.rowicon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.rowicon i {
    font-size: 4.5em;
    margin-bottom: 0;
}

.skills .skills-box p {
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
    color: var(--text-mid);
}

/* NOVA SEÇÃO: EXPERIENCE */
section.experience {
    padding: 80px 4%;
    background-color: var(--bg-section);
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

.experience-grid {
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.experience-card {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-dark);
    flex-basis: calc(50% - 20px); /* 2 colunas em telas maiores */
    max-width: 580px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px var(--shadow-light),
        0 0 25px 5px rgba(56, 225, 255, 0.3); /* Enhanced hover glow */
    background-color: var(--card-hover-bg);
    border-color: var(--accent-blue);
}

.experience-icon {
    font-size: 4em;
    color: var(--accent-blue);
    margin-bottom: 15px;
    filter: drop-shadow(
        0 0 5px var(--accent-blue)
    ); /* Added subtle icon glow */
}

.experience-card h3 {
    font-size: 1.8em;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-light);
}

.experience-card .experience-company {
    font-size: 1em;
    color: var(--text-mid);
    margin-bottom: 5px;
}

.experience-card .experience-period,
.experience-card .experience-location {
    font-size: 0.85em;
    color: var(--text-mid);
    opacity: 0.8;
    margin-bottom: 5px;
}

.experience-card .experience-summary {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-mid);
    margin-top: 15px;
    margin-bottom: 15px;
}

.experience-card .experience-skills {
    font-size: 0.85em;
    color: var(--accent-blue);
    font-weight: 500;
    margin-top: 10px;
}

/* NOVA SEÇÃO: CERTIFICADOS */
section.certificates {
    padding: 80px 4%;
    background-color: var(--bg-section);
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

.certificates-grid {
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-intro-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--text-mid);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro-text .linkedin-cert-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.section-intro-text .linkedin-cert-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.certificate-card {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-dark);
    flex-basis: calc(33.33% - 20px);
    max-width: 380px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px var(--shadow-light),
        0 0 25px 5px rgba(56, 225, 255, 0.3); /* Enhanced hover glow */
    background-color: var(--card-hover-bg);
    border-color: var(--accent-blue);
}

.certificate-icon {
    font-size: 5em;
    color: var(--accent-blue);
    margin-bottom: 20px;
    filter: drop-shadow(
        0 0 5px var(--accent-blue)
    ); /* Added subtle icon glow */
}

.certificate-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.certificate-card p {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.btn-view-cert {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.9em;
    font-weight: 600;
    background-color: var(--accent-blue);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-view-cert:hover {
    box-shadow: 0px 0px 18px var(--accent-blue); /* Levemente mais intenso */
    transform: scale(1.05);
}

/* NOVA SEÇÃO: EDUCATION */
section.education {
    padding: 80px 4%;
    background-color: var(--bg-section);
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

.education-grid {
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.education-card {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-dark);
    flex-basis: calc(33.33% - 20px);
    max-width: 380px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px var(--shadow-light),
        0 0 25px 5px rgba(56, 225, 255, 0.3); /* Enhanced hover glow */
    background-color: var(--card-hover-bg);
    border-color: var(--accent-blue);
}

.education-icon {
    font-size: 5em;
    color: var(--accent-blue);
    margin-bottom: 20px;
    filter: drop-shadow(
        0 0 5px var(--accent-blue)
    ); /* Added subtle icon glow */
}

.education-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-card p {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.education-card .education-period,
.education-card .education-note {
    font-size: 0.85em;
    color: var(--text-mid);
    opacity: 0.8;
}

.education-card .education-description {
    font-style: italic;
    margin-top: 5px;
    color: var(--text-mid);
}

.education-card .education-skills {
    font-size: 0.85em;
    margin-top: 15px;
    color: var(--accent-blue);
}

/* PORTFÓLIO (PROJECTS) */
section.portfolio {
    padding: 80px 4%;
    background-color: var(--bg-section);
    margin-top: 50px;
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

section.portfolio .flex {
    display: none; /* Mantém oculto se não for usado para a grade */
}

/* Estilos do Swiper Container */
.swiper {
    width: 100%;
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: z-index 0s, transform 0.3s ease;
}

.swiper-slide:hover {
    z-index: 10;
}

.img-port {
    width: 320px;
    height: 420px;
    background-color: var(--card-bg-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Removido border-color */
    cursor: grab;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 0 0 transparent; /* Nenhuma borda ou sombra inicial */
    overflow: hidden; /* Mantido aqui para garantir que o wrapper da imagem respeite */
}

/* NOVO: Wrapper para a imagem real dentro do .img-port */
.img-port .project-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Mesma borda do pai */
    overflow: hidden; /* APLICADO AQUI para o scroll da imagem */
    position: relative;
    display: flex; /* Para centralizar a imagem verticalmente quando não rolar */
    align-items: center;
    justify-content: center;
}

.img-port .project-image-wrapper img {
    width: 100%;
    height: auto; /* Altura automática para manter proporção */
    min-height: 100%; /* Garante que a imagem preencha a altura do wrapper */
    display: block;
    object-fit: cover;
    object-position: top; /* Inicia a imagem no topo */
    transition: transform 3s linear; /* Transição mais rápida para a rolagem */
    will-change: transform;
}

.img-port:hover {
    transform: scale(1.03);
    /* Ajustado box-shadow para o efeito neon, sem borda "cortada" */
    box-shadow: 0 0 0 4px var(--accent-blue),
        /* Borda fina */ 0 0 25px 10px rgba(56, 225, 255, 0.5),
        /* Brilho interno */ 0 15px 40px var(--shadow-dark); /* Sombra para profundidade */
    /* Removido border-color e filter: none; pois o box-shadow já faz a borda */
}

/* NOVO: Estado de hover para a imagem dentro do wrapper */
.img-port:hover .project-image-wrapper img {
    transform: translateY(
        calc(100% - 100% / var(--image-scroll-factor))
    ); /* Calcula o quanto deve rolar com base na altura da imagem vs wrapper */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Para empilhar o título e os botões */
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.1s ease-in-out; /* Transição mais rápida */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    z-index: 6;
    gap: 15px; /* Espaço entre o título e os botões */
}

/* O overlay só aparece no hover do .img-port */
.img-port:hover .overlay {
    opacity: 1;
}

/* Estilos para os botões dentro do overlay */
.overlay .project-links {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* Espaçamento entre o título e os botões */
}

.overlay .project-links a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--accent-blue);
    color: var(--bg-main);
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap; /* Evita que o texto quebre */
}

.overlay .project-links a:hover {
    background-color: var(--card-hover-bg);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(56, 225, 255, 0.7);
}

/* Estilos para a Paginação (bolinhas) e Navegação (setas) do Swiper */
.swiper-pagination-bullet {
    background: var(--accent-blue);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Added transform transition */
}

.swiper-pagination-bullet-active {
    background: var(--accent-blue);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--accent-blue);
    background-color: transparent !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    filter: drop-shadow(0 0 0 transparent);
    box-shadow: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(56, 225, 255, 0.8))
        drop-shadow(0 0 20px rgba(56, 225, 255, 0.6));
    box-shadow: none;
}

/* SOBRE MIM (ABOUT) */
section.about {
    padding: 100px 4%;
    background-color: var(--bg-section);
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

section.about .flex {
    align-items: center;
    gap: 80px;
    justify-content: center;
}

.about .img-about {
    flex-shrink: 0;
    text-align: center;
}

.about .img-about img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-blue);
    box-shadow: 0px 0px 60px rgba(56, 225, 255, 0.5);
    transition: all 0.5s ease;
}
.about .img-about img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0px 0px 80px rgba(56, 225, 255, 0.7);
}

.about .txt-about {
    color: var(--text-light);
    max-width: 600px;
}

.about .txt-about h2 {
    font-size: 3em;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 700; /* Made title bolder */
}

.about .txt-about h2 span {
    color: var(--accent-blue);
    display: inline;
}

.about .txt-about p {
    margin: 15px 0;
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-mid);
    font-weight: 300; /* Lighter weight for paragraphs */
}

.btn-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social .social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    outline: none !important;
}

.btn-social .social-icon i {
    line-height: 1;
    vertical-align: middle;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.btn-social .social-icon:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(56, 225, 255, 0.5),
        0 0 20px 5px rgba(56, 225, 255, 0.4); /* Enhanced hover glow */
    border: none;
    text-decoration: none;
}

/* CONTATO */
section.contactme {
    padding: 80px 4%;
    background-color: var(--bg-section);
    margin-top: 50px;
    box-shadow: inset 0 0 20px var(--shadow-dark);
    border-radius: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-subtle); /* Added border to section */
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    padding: 25px;
    background-color: var(--card-bg-dark);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    border: 1px solid var(--border-subtle);
}

form input,
form textarea {
    width: 100%;
    background-color: var(--text-input-bg);
    border: 1px solid var(--accent-blue);
    outline: none;
    padding: 18px 20px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-mid);
    opacity: 0.7; /* Make placeholder text a bit lighter */
}

form input:focus,
form textarea:focus {
    border-color: var(--text-light);
    box-shadow: 0 0 10px rgba(56, 225, 255, 0.5);
}

form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

form .btn-send {
    margin-top: 25px;
    text-align: center;
}

form .btn-send input {
    width: 150px;
    background-color: var(--accent-blue);
    color: var(--bg-main);
    font-weight: 700;
    cursor: pointer;
    border: none;
}

/* Validation Error Style */
.validation-error {
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: -10px; /* Pull it closer to the input */
    margin-bottom: 5px;
    display: none; /* Hidden by default, shown by JS */
    text-align: left; /* Align error message to the left */
    padding-left: 5px; /* Small padding */
}
form input:invalid:not(:placeholder-shown) + .validation-error,
form textarea:invalid:not(:placeholder-shown) + .validation-error {
    display: block; /* Show error for invalid inputs (if not empty placeholder) */
}

/* RODAPÉ (FOOTER) */
footer {
    padding: 40px 4%;
    box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.08);
    background-color: var(--bg-section);
    border-radius: 15px;
    margin-top: 50px;
    border: 1px solid var(--border-subtle); /* Added border to footer */
}

footer .flex {
    justify-content: space-between;
    align-items: center;
}

footer .logo-footer img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Correção da cor dos ícones sociais do rodapé */
/* Removendo :visited e focando em !important */
.footer-social-icon i {
    color: var(
        --accent-blue
    ) !important; /* Força a cor azul para todos os ícones */
    font-size: 1em; /* Mantenha o tamanho do ícone */
    line-height: 1;
    vertical-align: middle;
}
/* Revertendo a cor do hover para os ícones, para que o background mude mas o ícone mantenha a cor ou inverta para black */
.footer-social-icon:hover i {
    color: var(
        --bg-main
    ) !important; /* Muda a cor do ícone para black no hover do botão */
}

.footer-social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-dark);
    border: 1px solid var(--border-subtle);
}

.footer-social-icon:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 225, 255, 0.4);
    border-color: var(--accent-blue);
}

.footer-email {
    color: var(--text-light);
    font-size: 1em;
}
.footer-email a {
    color: var(--text-light);
    text-decoration: none; /* Remove text-decoration */
    transition: color 0.2s ease, text-shadow 0.2s ease; /* Adiciona transição para text-shadow */
}
footer .line-footer p a:hover {
    color: var(--accent-blue); /* Cor no hover */
    text-shadow: 0 0 5px rgba(56, 225, 255, 0.7); /* Sombra discreta no hover */
}

footer .line-footer {
    padding: 15px 0%;
    text-align: center;
}

.borda {
    border-top: 1px solid var(--border-subtle);
    margin-top: 20px;
}

footer .line-footer p i {
    color: var(--accent-blue);
    font-size: 1.3em;
    margin-right: 8px;
}

footer .line-footer p .footer-text-normal {
    /* Estilo para o texto de direitos autorais */
    color: var(--text-light); /* Garante que a cor seja branca */
    text-decoration: none; /* Remove sublinhado */
    transition: none; /* Remove transições de hover */
}

/* CUSTOM CURSOR - REMOVED */
.custom-cursor {
    display: none !important; /* Forces the custom cursor to be hidden */
}

/* RESPONSIVIDADE */
@media screen and (max-width: 1020px) {
    .flex {
        flex-direction: column;
    }

    /* GERAIS */
    h2.titulo {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    h2.titulo::after {
        width: 50px;
    }

    /* CABEÇALHO */
    header nav.menu-desktop {
        display: none;
    }
    header .btn-contato {
        display: block;
        margin-left: auto;
    }
    header {
        padding: 15px 4%;
        justify-content: space-between;
    }
    .btn-open-menu {
        display: block;
        margin-left: auto;
    }
    header > .interface {
        justify-content: space-between;
    }

    /* Ajustes para o seletor de idioma em mobile */
    .header-actions {
        gap: 10px; /* Reduz o espaço entre elementos */
        margin-left: auto; /* Garante que fique à direita */
    }

    .lang-button {
        padding: 8px 12px; /* Reduz o padding do botão em telas menores */
        font-size: 0.9em;
        /* Manter min-width para acomodar PT-BR em mobile também */
        min-width: 80px;
    }
    .lang-button i {
        font-size: 0.9em;
    }

    .lang-dropdown-content {
        min-width: unset; /* Remove largura mínima em mobile */
        width: 150px; /* Define uma largura específica ou 'auto' */
        left: 50%; /* Tenta centralizar em mobile */
        transform: translateX(
            -50%
        ); /* Garante que o centro do dropdown esteja no centro do pai */
        top: calc(
            100% + 10px
        ); /* Posiciona abaixo do botão com um pequeno espaço */
    }

    .lang-dropdown-content a {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    /* Em telas menores, o botão de contato pode ser ocultado ou ajustado.
       Para este exemplo, vou manter ele visível, mas pode ser ajustado.
    .btn-contato {
        display: none;
    } */

    /* TOPO DO SITE */
    section.top-of-the-site {
        height: auto;
        min-height: 100vh;
        padding: 120px 4% 80px;
    }
    .top-of-the-site .flex {
        gap: 20px;
    }
    .top-of-the-site .txt-top-site h1 {
        font-size: 2.8em;
    }
    .top-of-the-site .txt-top-site p {
        font-size: 0.9em;
    }
    .top-of-the-site .btn-group {
        gap: 10px;
        margin-top: 15px;
    }
    .top-of-the-site .interface {
        padding: 0;
    }

    /* SKILLS */
    section.skills {
        padding: 60px 8%;
    }
    section.skills .flex {
        gap: 30px;
    }
    .skills .skills-box {
        flex-basis: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .skills .skills-box:not(:last-child) {
        margin-bottom: 20px;
    }

    /* SOBRE MIM */
    section.about {
        padding: 60px 8%;
    }
    section.about .flex {
        gap: 40px;
    }
    .about .img-about img {
        width: 250px;
        height: 250px;
        margin-bottom: 20px;
    }
    .about .txt-about h2 {
        font-size: 2.5em;
        text-align: center;
    }
    .about .txt-about p {
        text-align: center;
    }
    .btn-social button {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }

    /* EXPERIENCE */
    .experience-card {
        flex-basis: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .experience-card:not(:last-child) {
        margin-bottom: 20px;
    }
    .experience-card .experience-company,
    .experience-card .experience-period,
    .experience-card .experience-location,
    .experience-card .experience-summary,
    .experience-card .experience-skills {
        text-align: center;
    }
    .experience-card h3 {
        text-align: center;
        width: 100%;
    }
    .experience-icon {
        align-self: center; /* Center icon in mobile view */
    }

    /* CERTIFICADOS */
    section.certificates {
        padding: 60px 8%;
    }
    section.certificates .flex {
        gap: 30px;
    }
    .certificate-card {
        flex-basis: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .certificate-card:not(:last-child) {
        margin-bottom: 20px;
    }

    /* EDUCATION */
    section.education {
        padding: 60px 8%;
    }
    section.education .flex {
        gap: 30px;
    }
    .education-card {
        flex-basis: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .education-card:not(:last-child) {
        margin-bottom: 20px;
    }

    /* PORTFÓLIO */
    section.portfolio {
        padding: 60px 8%;
    }
    section.portfolio .flex {
        gap: 40px;
    }
    .img-port {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* CONTATO */
    section.contactme {
        padding: 60px 8%;
    }
    form {
        padding: 20px;
    }

    /* RODAPÉ */
    footer .flex {
        flex-direction: column;
        gap: 20px;
    }
    footer .line-footer {
        text-align: center;
    }
    footer .logo-footer {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    /* GERAIS */
    h2.titulo {
        font-size: 2em;
    }

    /* TOPO DO SITE */
    .top-of-the-site .txt-top-site h1 {
        font-size: 2.2em;
    }
    .top-of-the-site .txt-top-site p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    /* GERAIS */
    h2.titulo {
        font-size: 1.8em;
    }

    /* TOPO DO SITE */
    .top-of-the-site .txt-top-site h1 {
        font-size: 1.8em;
    }
    .top-of-the-site .btn-curriculo button {
        padding: 10px 25px;
        font-size: 0.95em;
    }

    /* SKILLS */
    .skills .skills-box {
        padding: 25px;
    }
    .skills .flex .skills-box i,
    .rowicon i {
        font-size: 3.5em;
    }
    .skills .skills-box h3 {
        font-size: 1.4em;
    }

    /* SOBRE MIM */
    .about .img-about img {
        width: 200px;
        height: 200px;
    }
    .about .txt-about h2 {
        font-size: 2em;
    }
    .about .txt-about p {
        font-size: 0.9em;
    }
    .btn-social button {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
}
