/* Variáveis CSS para cores e fontes */
:root {
    --primary-color: #00E0FF; /* Ciano/Turquesa vibrante - similar ao do exemplo */
    --secondary-color: #55E6C1; /* Verde-água complementar */
    --dark-bg-primary: #1A1A1A; /* Fundo principal escuro, quase preto */
    --dark-bg-secondary: #222222; /* Fundo secundário para cards/blocos */
    --text-color-light: #E0E0E0; /* Cor do texto claro para fundos escuros */
    --text-color-muted: #AAAAAA; /* Cor do texto mais suave, para detalhes */
    --heading-color: #E0E0E0; /* Cor dos títulos padrão (claros) */
    --shadow-color: rgba(0, 0, 0, 0.4); /* Sombra mais escura e visível */
    --gradient-border-start: #00E0FF; /* Início do gradiente para bordas */
    --gradient-border-end: #55E6C1; /* Fim do gradiente para bordas */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Evita barra de rolagem horizontal */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--dark-bg-primary);
    padding-top: 80px; /* CORRIGIDO: Espaço para o header fixo (aprox. 80px de altura) */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 20px;
}

/* Header e Navegação */
.main-header {
    background: var(--dark-bg-primary);
    color: var(--text-color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback (se o gradiente não funcionar, fica invisível) */
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
}
.logo a:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color-light);
    padding: 5px 0;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Estilo para o link ATIVO (página atual) */
.nav-links a.active {
    color: var(--primary-color);
}

/* Estilo para o HOVER dos links (independentemente de estarem ativos ou não) */
.nav-links a:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Botão Hambúrguer (Escondido por padrão para desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Seções Gerais */
section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
    padding: 100px 20px;
    /* REMOVIDO: max-width: 1200px; e margin: 0 auto; para permitir que o fundo da seção ocupe 100% da tela */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Cores de fundo alternadas para as seções (se desejar) */
section:nth-of-type(even) {
    background-color: var(--dark-bg-secondary);
}

/* Títulos das Seções com Gradiente */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 40px; /* CORRIGIDO: Espaçamento para o texto abaixo */
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
}

/* Botões */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin: 10px;
    cursor: pointer;
    /* Adicionado para garantir que o botão ocupe 100% da largura em mobile */
    max-width: 320px; /* Limite máximo para botões empilhados em mobile */
    width: 100%; /* Garante que ocupe a largura total disponível em mobile */
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg-primary);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg-primary);
    transform: translateY(-3px);
}

/* Seção Hero (Início) */
.hero-section {
    background: linear-gradient(to right, #0a0a0a, #2a2a2a);
    color: var(--text-color-light);
    padding: 80px 20px; /* CORRIGIDO: Padding unificado e sintaxe correta */
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column; /* Para centralizar o wrapper */
    justify-content: center;
    align-items: center; /* Centraliza o wrapper horizontalmente */
    text-align: left; /* O wrapper de texto interno terá seu próprio alinhamento */
}

.hero-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Limita o conteúdo para não ser muito largo */
    margin: 0 auto;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
}

.hero-text-content {
    flex: 1;
    padding-right: 40px;
    text-align: left; /* Alinha o texto à esquerda dentro da coluna */
}

/* Estilo para o nome principal */
.hero-text-content .main-name {
    font-size: 3.5rem;
    font-weight: 550;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--text-color-light);
    text-align: left;
}
/* Estilo para a parte destacada do nome */
.hero-text-content .main-name .highlighted-name {
    color: var(--primary-color);
}

/* Estilo para a tagline principal */
.hero-text-content .tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-color-light);
    margin-bottom: 25px;
    max-width: 600px;
    text-align: left;
}

/* Estilo para a sub-tagline (onde ocorre o efeito de digitação) */
.hero-text-content .sub-tagline {
    font-size: 1.0rem;
    font-weight: 300;
    color: var(--text-color-muted);
    margin-bottom: 40px;
    text-align: left;
}

.typing-effect {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-image-container {
    flex: 1;
    max-width: 500px;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.carousel-prev-btn,
.carousel-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color-light);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-prev-btn:hover,
.carousel-next-btn:hover {
    opacity: 1;
}

.carousel-prev-btn {
    left: 10px;
}

.carousel-next-btn {
    right: 10px;
}

.hero-social-links {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-social-links a {
    color: var(--text-color-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.hero-social-links a:hover {
    color: var(--primary-color);
}
/* Seção Sobre Mim */
.about-section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
    text-align: left;
    padding-bottom: 100px;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin-top: 30px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 5px solid;
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.about-text {
    flex: 2;
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-color-light);
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: none;
}

/* Estilo para as novas subseções dentro de "Sobre Mim" */
.about-subsection {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0; /* Centraliza a subseção e dá espaço superior */
    text-align: center;
}

.about-subsection h3 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.about-subsection h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

/* --- Formação Acadêmica --- */
.education-timeline {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.education-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid var(--dark-bg-secondary);
}

.education-details {
    flex-grow: 1;
    text-align: left;
    background-color: var(--dark-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.education-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.education-details h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.education-details p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 5px;
}

.education-details .degree, .education-details .period {
    color: var(--text-color-muted);
}
.education-details .gpa, .education-details .focus {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}


/* --- Idiomas --- */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.language-item {
    background-color: var(--dark-bg-secondary);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px; /* Altura mínima para cards mais uniformes */
    justify-content: space-between; /* Distribui o conteúdo uniformemente */
}
.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.language-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.language-item h4 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.language-item .level {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 0.8s ease-out;
}

/* --- Tecnologias & Ferramentas --- */
.tech-tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.tech-tag {
    background-color: var(--dark-bg-secondary);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: default;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.4);
}


/* --- Meus Valores --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.value-item {
    background-color: var(--dark-bg-secondary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.value-item .value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h4 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 0;
    max-width: none;
}

/* Seção Carreira */
.career-section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: auto;
}

.career-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    text-align: center;
    color: var(--text-color-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 10px;
    transform: translateX(0);
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid var(--dark-bg-primary);
    top: 5px;
    left: 10px;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 5px var(--dark-bg-primary);
}

.timeline-content {
    background-color: var(--dark-bg-secondary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    width: 100%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-image 0.3s ease;
    border: 2px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.job-meta {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.job-meta span {
    display: flex;
    align-items: center;
}
.job-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--text-color-light);
    margin-bottom: 5px;
    line-height: 1.2;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.timeline-content h4 i {
    margin-left: 8px;
    color: var(--text-color-muted);
}

.timeline-content > p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
    max-width: none;
}

.timeline-content h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
}
.timeline-content ul li {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}
.timeline-content ul li::before {
    content: '\2022';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.tech-tags {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-tags span {
    background-color: var(--primary-color);
    color: var(--dark-bg-primary);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}
/* Seção Habilidades */
.skills-section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
    max-width: 1000px;
}

.skill-item {
    background-color: var(--dark-bg-secondary); /* Fundo do card de habilidade */
    color: var(--text-color-light); /* Texto do card de habilidade */
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid transparent; /* Para borda gradiente no hover */
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.skill-item .skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color); /* Ícone com cor de destaque */
    margin-bottom: 20px;
}

.skill-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--heading-color); /* Título da habilidade claro */
}

.skill-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: none;
    color: var(--text-color-muted); /* Descrição da habilidade mais suave */
}

/* Seção Portfólio */
.portfolio-section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
    padding-top: 100px; /* Mantém o padding superior */
    padding-bottom: 100px; /* Garante espaço após as subseções */
    min-height: auto; /* Deixa a altura ser definida pelo conteúdo */
    /* text-align: center; REMOVIDO para permitir alinhamento left para o conteúdo */
}

/* Estilo para as subseseções dentro do portfólio (Projetos em Destaque, Certificações) */
.portfolio-subsection {
    width: 100%;
    max-width: 900px; /* Largura máxima para o conteúdo das subseções */
    margin-top: 80px; /* Espaço entre as subseções */
    text-align: center; /* Centraliza o título e o grid */
}

.portfolio-subsection:first-of-type {
    margin-top: 40px; /* Menos margem para a primeira subseção após o section-title principal */
}

.subsection-heading {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    display: flex; /* Para alinhar o ícone com o texto */
    align-items: center;
    justify-content: center; /* Centraliza o título com o ícone */
    gap: 15px; /* Espaço entre o ícone e o texto */
}

.subsection-heading::after { /* Linha de destaque sob os subtítulos */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.subsection-heading .featured-icon,
.subsection-heading .certification-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* --- Projetos em Destaque (Featured Projects) --- */
.featured-project-card {
    background-color: var(--dark-bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden; /* Garante que a imagem se ajuste */
    max-width: 900px; /* Largura máxima do card de destaque */
    margin: 0 auto; /* Centraliza o card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    text-align: left; /* Alinha o conteúdo interno à esquerda */
}

.featured-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.project-banner {
    width: 100%;
    height: 300px; /* Altura fixa para a imagem de banner */
    object-fit: cover; /* Cobre o espaço mantendo proporção */
    display: block; /* Remove espaço extra abaixo da imagem */
}

.card-content {
    padding: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinha estatísticas ao final */
    margin-bottom: 15px;
    flex-wrap: wrap; /* Permite quebrar linha em mobile */
    gap: 10px; /* Espaço entre título e stats em mobile */
}

.project-title {
    font-size: 2.5rem;
    color: var(--text-color-light);
    margin-bottom: 0; /* Remove margem padrão do h4 */
    line-height: 1.2;
}

.project-stats {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-color-muted);
    white-space: nowrap; /* Evita quebras de linha nas estatísticas */
}
.project-stats i {
    margin-right: 5px;
    color: var(--primary-color); /* Ícones de estatísticas com destaque */
}

.project-description {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espaçamento entre as tags */
    margin-bottom: 30px;
}

.tech-tag-highlight {
    background-color: var(--primary-color); /* Cor de fundo da tag */
    color: var(--dark-bg-primary); /* Cor do texto da tag */
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap; /* Evita que a tag quebre linha */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.project-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Para quebrar linha em mobile */
}

/* Botões de Demo e Código */
.btn-outline-demo,
.btn-outline-code {
    display: inline-flex; /* Para alinhar ícone e texto */
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid; /* A borda será definida pela cor */
    background-color: transparent; /* Fundo transparente */
}

.btn-outline-demo {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-demo:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.4);
}

.btn-outline-code {
    color: var(--text-color-light); /* Cor clara para o botão de código */
    border-color: var(--text-color-muted); /* Borda mais suave */
}
.btn-outline-code:hover {
    background-color: var(--dark-bg-secondary);
    color: var(--primary-color); /* Muda para cor de destaque no hover */
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}


/* --- Certificações --- */
.certifications-section {
    margin-top: 80px; /* Garante espaço após a seção de projetos em destaque */
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 250px para cards menores */
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.certification-item {
    background-color: var(--dark-bg-secondary);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    text-align: left; /* Conteúdo alinhado à esquerda */
    min-height: 180px; /* Altura mínima para cards mais uniformes */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espaço entre topo e base */
    width: 100%; /* Garante que o card ocupe toda a largura disponível */
    margin: 0 auto; /* Centraliza o card dentro do grid */
}
.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-image: linear-gradient(to bottom right, var(--gradient-border-start), var(--gradient-border-end)) 1;
}

.cert-title {
    font-size: 1.3rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 5px;
}

.cert-date {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.cert-link { /* Para o botão "Ver Credencial" se você adicionar */
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.cert-link:hover {
    text-decoration: underline;
}

/* Seção Contato */
.contact-section {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
}

.contact-content {
    max-width: 700px;
    width: 100%;
    margin-top: 40px;
    text-align: center;
}

.contact-content p {
    color: var(--text-color-light); /* Texto do parágrafo claro */
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--dark-bg-secondary); /* Fundo dos inputs ligeiramente mais claro */
    color: var(--text-color-light); /* Cor do texto digitado */
    border: 1px solid var(--text-color-muted); /* Borda suave */
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color-muted); /* Placeholder com cor mais suave */
}

.contact-form button {
    align-self: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* Regras gerais para ícones sociais */
.social-links a {
    font-size: 2.5rem;
    color: var(--text-color-light); /* Cor padrão dos ícones sociais */
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    transform: translateY(-3px); /* Efeito de elevação no hover */
}
/* Hover específico para cada ícone social */
.social-links a:hover .fa-linkedin-in {
    color: #0077b5; /* Cor LinkedIn */
}
.social-links a:hover .fa-github {
    color: #fff; /* Cor GitHub */
}
.social-links a:hover .fa-instagram {
    color: #C13584 /* Cor Instagram */
}

/* Rodapé */
.main-footer {
    background-color: var(--dark-bg-primary);
    color: var(--text-color-light);
    padding: 60px 20px 30px; /* Mais padding superior para o conteúdo */
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinha o topo das colunas */
    max-width: 1200px;
    margin: 0 auto 40px; /* Centraliza o conteúdo e adiciona margem antes do bottom */
    flex-wrap: wrap; /* Para quebrar linha em telas pequenas */
    gap: 40px; /* Espaço entre as colunas em mobile */
}

.footer-column {
    flex: 1; /* Permite que as colunas cresçam */
    min-width: 250px; /* Largura mínima para evitar quebras muito cedo */
    padding: 0 10px;
    text-align: left; /* Alinha o texto das colunas à esquerda */
}

.footer-column h4 {
    font-size: 1.3rem;
    color: var(--heading-color); /* Títulos das colunas claros */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px; /* Para a linha decorativa */
}
.footer-column h4::before { /* Linha decorativa ACIMA do título */
    content: '';
    position: absolute;
    left: 0;
    top: 0; /* Alinha no topo do h4 */
    width: 40px; /* Largura da linha */
    height: 2px; /* Espessura da linha */
    background-color: var(--primary-color); /* Usa sua cor de destaque */
    border-radius: 1px;
}

.footer-email {
    font-size: 0.95rem;
    color: var(--text-color-muted); /* Cor padrão do email (texto ao redor do link) */
    margin-top: 10px;
}

.footer-email a { /* Estilo do link de email */
    color: var(--text-color-muted); /* Cor padrão do link de email */
    text-decoration: none; /* Remove o sublinhado padrão do link */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Transição suave */
}

.footer-email a:hover { /* Estilo do link de email no hover */
    color: var(--primary-color); /* Muda para a cor de destaque (ciano/turquesa) */
    text-decoration: none; /* Remove o sublinhado no hover */
}
/* Nova linha separadora que ocupa toda a tela */
.footer-full-width-divider {
    height: 1px; /* Espessura da linha */
    background-color: rgba(255, 255, 255, 0.1); /* Cor da linha, um pouco mais clara */
    margin-top: 40px; /* Espaço acima da linha */
    margin-bottom: 40px; /* Espaço abaixo da linha */

    /* Truque para ocupar 100% da largura da viewport, ignorando o padding do pai */
    width: 100vw; /* 100% da largura da viewport (tela visível) */
    position: relative; /* Essencial para o left/transform */
    left: 50%; /* Move o centro do elemento para o centro da tela */
    transform: translateX(-50%); /* Puxa o elemento de volta em metade da sua própria largura */
}
/* Coluna "Sobre" (seu logo e descrição) */
.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 20px;
    position: relative;
    padding-top: 15px;
}
.footer-about .footer-logo::before { /* Linha decorativa ACIMA do logo */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}
.footer-about .footer-logo .footer-logo-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: none;
}

/* Coluna "Links Rápidos" */
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li:last-child {
    margin-bottom: 0;
}
.footer-links ul li a {
    color: var(--text-color-muted); /* Links mais suaves */
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-decoration: none; /* Remove o sublinhado padrão */
}
.footer-links ul li a:hover {
    color: var(--primary-color); /* Destaque ao hover */
    text-decoration: none;
}

/* Coluna "Conecte-se" */
.social-icons-footer {
    display: flex;
    gap: 20px; /* Espaço entre os ícones */
    margin-bottom: 20px;
}
.social-icons-footer a {
    font-size: 1.8rem; /* Tamanho dos ícones sociais */
    color: var(--text-color-muted); /* Cor padrão mais suave */
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons-footer a:hover {
    transform: translateY(-3px); /* Efeito de levantar */
}
/* Cores específicas no hover para os ícones sociais do rodapé */
.social-icons-footer a:hover .fab.fa-github {
    color: #fff; /* Branco para GitHub */
}
.social-icons-footer a:hover .fab.fa-linkedin-in {
    color: #0077b5; /* Azul LinkedIn */
}
.social-icons-footer a:hover .fas.fa-envelope {
    color: var(--primary-color); /* Sua primary-color para Email */
}

.footer-email {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-top: 10px; /* Espaço após os ícones sociais */
}

/* Parte Inferior do Rodapé (Copyright) */
.footer-bottom {
    margin-top: 5px; /* Espaço entre o conteúdo e a parte de copyright */
    padding-top: 5px; /* Padding acima da linha divisória */
    text-align: center;
}
.footer-divider{
    border: rgba(255, 255, 255, 0.1); /* Cor da linha divisória */
}
.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-top: 5px; /* Espaço abaixo da linha */
    max-width: none;
}

/* --- Responsividade Geral --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }
    .nav-links {
        font-size: 0.9rem; /* Ajusta o tamanho da fonte dos links de navegação */
    }
    .logo a {
        font-size: 1.5rem; /* Ajusta o tamanho da fonte do logo */
    }
    /* Hero Section */
    .hero-content-wrapper {
        flex-direction: column; /* Coloca os elementos um abaixo do outro */
        gap: 40px;
        text-align: center; /* Centraliza o texto dentro do wrapper em mobile */
    }

    .hero-text-content {
        padding-right: 0;
        text-align: center; /* Centraliza todo o conteúdo de texto da coluna */
        /* width: 100%; Adicionar se necessário para ocupe toda largura disponível */
    }

    .hero-text-content .main-name,
    .hero-text-content .tagline,
    .hero-text-content .sub-tagline {
        text-align: center; /* Garante que o texto individual também seja centralizado */
    }

    .hero-buttons {
        justify-content: center; /* Centraliza os botões */
        flex-direction: column; /* Empilha os botões */
        align-items: center; /* Centraliza os itens empilhados (os próprios botões) */
    }

    .hero-social-links {
        justify-content: center; /* Centraliza os links sociais */
    }

    .hero-image-container {
        height: 400px; /* Ajusta a altura da imagem para telas menores */
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-image {
        min-width: unset; /* Remove a largura mínima para flexibilidade */
        width: 80%; /* Ajusta a largura da imagem */
        max-width: 300px; /* Garante que a imagem não seja muito grande */
    }

    .about-text {
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .education-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .education-details {
        text-align: center;
        width: 100%; /* Ocupa a largura total */
    }

    /* Career Section */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        text-align: center;
    }

    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
        top: -10px; /* Ajusta a posição do dot para mobile */
    }

    .timeline-content {
        width: 90%; /* Ajusta a largura do conteúdo da timeline */
        margin: 0 auto;
        text-align: center;
    }

    .job-meta {
        justify-content: center;
    }

    .timeline-content ul {
        text-align: left; /* Mantém as listas alinhadas à esquerda dentro do card */
    }

    /* Portfolio Section */
    .featured-project-card {
        padding: 0; /* Remove padding extra para ocupar mais espaço */
    }

    .card-content {
        padding: 20px; /* Ajusta o padding interno do card */
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Ajusta padding para header menor */
    }

    .main-header {
        padding: 0.8rem 0;
    }

    .navbar {
        padding: 0 15px;
    }

    .logo a {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none; /* Esconde a navegação padrão em mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Abaixo do header */
        left: 0;
        width: 100%;
        background-color: var(--dark-bg-secondary);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Mostra a navegação quando o menu hambúrguer está ativo */
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hamburger-menu {
        display: block; /* Mostra o botão hambúrguer */
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section (continuação dos ajustes mobile) */
    .hero-section {
        padding: 60px 15px;
        min-height: auto; /* Deixa o conteúdo definir a altura */
    }

    .hero-content-wrapper {
        gap: 30px;
    }

    .hero-text-content .main-name {
        font-size: 2.8rem;
    }
    .hero-text-content .tagline {
        font-size: 1rem;
    }
    .hero-text-content .sub-tagline {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column; /* Botões um abaixo do outro */
        gap: 15px;
        justify-content: center; /* Centraliza os botões */
        align-items: center; /* Centraliza os itens empilhados (os próprios botões) */
    }
    .hero-buttons .btn {
        width: 100%; /* Botões ocupam a largura total */
        max-width: 320px; /* Limite a largura para não ficarem muito grandes */
    }
    .hero-social-links {
        justify-content: center; /* Centraliza os links sociais */
    }
    .hero-image-container {
        height: 300px; /* Altura menor para o carrossel em mobile */
        max-width: 100%; /* Ocupa a largura total disponível */
    }
    .carousel-prev-btn,
    .carousel-next-btn {
        padding: 10px; /* Reduz o padding dos botões do carrossel */
        font-size: 1.2rem;
    }

    /* About Section */
    .about-subsection h3 {
        font-size: 1.8rem;
    }
    .values-grid,
    .skills-grid {
        grid-template-columns: 1fr; /* Uma coluna por padrão */
    }
    .languages-grid{
        grid-template-columns: 1fr; /* Uma coluna por padrão */
        max-width: 350px; /* Limita a largura dos itens */
        margin: 0 auto; /* Centraliza */
    }
    .language-item{
        width: 100%; /* Ocupa toda a largura disponível */
        margin: 0 auto; /* Centraliza */
    }
    .language-item,
    .value-item,
    .skill-item,
    .certification-item {
        max-width: 350px; /* Limita a largura dos itens */
        margin: 0 auto; /* Centraliza */
    }
    .tech-tools-grid {
        justify-content: center; /* Garante que as tags continuem centralizadas */
    }

    /* Career Section */
    .timeline-content {
        padding: 20px; /* Reduz padding do conteúdo da timeline */
    }
    .timeline-content h3 {
        font-size: 1.8rem;
    }
    .timeline-content h4 {
        font-size: 1.1rem;
    }

    /* Portfolio Section */
    .subsection-heading {
        font-size: 1.8rem;
        gap: 10px;
    }
    .project-title {
        font-size: 1.8rem;
    }
    .project-description {
        font-size: 0.9rem;
    }
    .project-banner {
        height: 200px; /* Altura menor para o banner do projeto */
    }
    .btn-outline-demo,
    .btn-outline-code {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-content p {
        font-size: 1rem;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    .social-links {
        gap: 20px;
    }
    .social-links a {
        font-size: 2rem;
    }

    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: 1fr; /* Força uma única coluna em mobile */
        max-width: 350px; /* Limite a largura da grade para não ficar muito larga */
        margin: 0 auto; /* Centraliza a grade */
    }

    .certification-item {
        /* Se precisar de uma altura mais precisa para mobile, pode ajustar aqui */
        min-height: 180px; /* Mantenha ou ajuste se necessário para mobile */
    }
    /* Footer */
    .footer-content {
        gap: 30px;
    }
    .footer-column {
        padding: 0; /* Remove padding horizontal para colunas empilhadas */
    }
    .footer-column h4 {
        margin-bottom: 15px;
    }
    .footer-about .footer-logo {
        font-size: 1.3rem;
    }
    .footer-about .footer-logo .footer-logo-icon {
        font-size: 1.5rem;
    }
}

/* Ajustes para telas MUITO pequenas (ex: 320px de largura) */
@media (max-width: 390px) { /* Específico para 390px ou menor */
    body {
        padding-top: 55px; /* Ajuste fino para header */
    }
    .main-header {
        padding: 0.6rem 0;
    }
    .navbar {
        padding: 0 10px;
    }
    .logo a {
        font-size: 1.1rem; /* Logo ainda menor */
    }

    .hero-text-content .main-name {
        font-size: 2.2rem; /* Reduz ainda mais o título principal */
    }
    .hero-text-content .tagline {
        font-size: 0.9rem;
    }
    .hero-text-content .sub-tagline {
        font-size: 0.85rem;
    }
    .hero-buttons {
        justify-content: center; /* Centraliza os botões */
        align-items: center; /* Centraliza os itens empilhados (os próprios botões) */
    }
    .hero-buttons .btn {
        max-width: 280px; /* Limite a largura para telas muito pequenas */
    }
    .hero-image-container {
        height: 250px; /* Altura mínima para o carrossel */
    }
    .hero-social-links {
        justify-content: center; /* Centraliza os links sociais */
    }
    .carousel-prev-btn,
    .carousel-next-btn {
        padding: 8px; /* Botões ainda menores */
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text h3,
    .timeline-content h3,
    .subsection-heading {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .btn-outline-demo,
    .btn-outline-code {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .social-links a {
        font-size: 1.8rem;
    }
    .footer-column h4 {
        font-size: 1.1rem;
    }
    .footer-about .footer-logo {
        font-size: 1.1rem;
    }
    .footer-about .footer-logo .footer-logo-icon {
        font-size: 1.3rem;
    }
    .footer-links ul li a {
        font-size: 0.85rem;
    }
    .social-icons-footer a {
        font-size: 1.5rem;
    }
    .languages-grid {
        max-width: 300px; /* Limita a largura dos itens */
        margin: 0 auto; /* Centraliza */
    }
    /* Certifications Section */
    .certifications-grid {
        max-width: 300px; /* Ajuste a largura máxima da grade para telas menores ainda */
        margin: 0 auto;
    }

    .certification-item {
        min-height: 180px; /* Mantenha ou ajuste se necessário para mobile muito pequeno */
        padding: 20px; /* Um pouco menos de padding para telas muito pequenas */
    }

}
