/* --- Reset Básico para começar do zero --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Variáveis CSS: pra facilitar a vida! --- */
:root {
    --primary-color: #007bff; /* Azul profissional e moderno (ainda como acento) */
    --secondary-color: #f8f9fa; /* Branco/cinza claro para textos e elementos principais */
    --text-color-light: #e0e0e0; /* Texto claro para fundos escuros */
    --text-color-dark-accent: #adb5bd; /* Cinza mais escuro para detalhes e subtítulos */
    --bg-color-dark: #212529; /* Fundo escuro principal (quase preto) */
    --bg-color-medium-dark: #2c313a; /* Fundo ligeiramente mais claro para cards/seções */
    --border-color-dark: #495057; /* Borda suave para elementos escuros */
    --shadow-color-dark: rgba(0, 0, 0, 0.4); /* Sombra mais escura para contraste */

    /* Glassmorphism para tema Dark */
    --glass-bg-dark: rgba(44, 49, 58, 0.6); /* Fundo escuro translúcido */
    --glass-border-dark: rgba(73, 80, 87, 0.8); /* Borda mais definida */
    --glass-shadow-dark: rgba(0, 0, 0, 0.3); /* Sombra suave para o glass no dark */

    --font-primary: 'Inter', sans-serif; /* Fonte moderna e legível */
    --font-display: 'Montserrat', sans-serif; /* Fonte para títulos com personalidade */
}

/* Importação das novas fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Montserrat:wght@500;700&display=swap');


/* --- Estilos Gerais do Corpo --- */
body {
    background-color: var(--bg-color-dark); /* Fundo escuro principal */
    color: var(--text-color-light); /* Texto principal claro */
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Imagem de fundo opcional para um toque extra, mas sutil */
    /* background-image: url('img/dark-abstract-bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center center; */
    /* background-attachment: fixed; */
}

/* Container para centralizar o conteúdo */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Efeito Glassmorphism em seções e elementos */
.glass-effect {
    background: var(--glass-bg-dark); /* Fundo escuro translúcido */
    backdrop-filter: blur(10px); /* Desfoque um pouco mais forte para o dark */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-dark); /* Borda sutil */
    box-shadow: 0 6px 20px var(--glass-shadow-dark); /* Sombra discreta */
    border-radius: 12px;
    margin-bottom: 40px;
    padding: 50px;
}

/* --- Header (Cabeçalho) --- */
header {
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(33, 37, 41, 0.95); /* Fundo quase opaco para o header dark */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Sombra mais visível no fundo escuro */
    border-bottom: 1px solid var(--border-color-dark); /* Linha sutil */
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 55px;
    height: auto;
    filter: invert(100%) brightness(180%) hue-rotate(180deg); /* Faz o ícone ficar branco/claro */
    transition: transform 0.3s ease, filter 0.3s ease;
}

header .logo:hover img {
    transform: scale(1.05);
    filter: invert(100%) brightness(200%) hue-rotate(180deg) drop-shadow(0 0 5px var(--primary-color)); /* Um leve brilho azul no hover */
}

/* Navegação do Header */
header nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

header nav ul li a {
    color: var(--text-color-light); /* Links claros */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color); /* Cor de acento no hover */
    border-bottom: 2px solid var(--primary-color);
}

header nav ul li a::after {
    display: none;
}

/* Botão de menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color-light); /* Ícone claro */
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* --- Seções em Geral --- */
section {
    padding: 90px 25px;
    text-align: center;
}

section h2 {
    font-family: var(--font-display);
    font-size: 2.8em;
    color: var(--primary-color); /* Títulos com a cor de acento */
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3); /* Leve brilho na cor de acento */
}

/* --- Seção Sobre Mim (#Sobre) --- */
#Sobre.hero-section {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: var(--bg-color-dark); /* Fundo escuro principal */
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

#Sobre .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 70px;
    justify-content: center;
    text-align: left;
}

#Sobre .heading {
    flex: 1;
    min-width: 350px;
    text-align: left;
}

.intro-text {
    font-size: 1.2em;
    color: var(--primary-color); /* Cor de acento */
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: none;
}

#Sobre .heading h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--secondary-color); /* Título principal em branco/claro */
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 700;
}

#Sobre .destaque-texto {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color-light); /* Texto claro */
    font-weight: 400;
}

.lista-conhecimentos {
    list-style: none;
    padding-left: 0;
    margin-top: 35px;
}

.lista-conhecimentos li {
    background: var(--bg-color-medium-dark); /* Fundo do item de lista */
    border-left: 4px solid var(--primary-color);
    padding: 15px 25px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1em;
    position: relative;
    text-align: left;
    color: var(--text-color-light);
}

.lista-conhecimentos li::before {
    content: '✓';
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.lista-conhecimentos li strong {
    color: var(--secondary-color); /* Destaca com a cor clara */
    font-weight: 700;
    display: inline;
    margin-left: 20px;
}

.lista-conhecimentos li:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: var(--bg-color-medium-dark);
}

.image-container {
    flex-shrink: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#Sobre .image-container img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 8px 25px rgba(0, 0, 0, 0.4); /* Sombra para o dark */
    transition: all 0.4s ease;
}

#Sobre .image-container img:hover {
    border-color: var(--secondary-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Links Sociais Abaixo da Imagem */
.social-links {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-color-light); /* Ícones claros */
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color); /* Cor de acento no hover */
    transform: translateY(-3px) scale(1.08);
}

/* Botão de Chamada para Ação na Seção Sobre */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    margin-top: 45px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-to-action-hero {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.call-to-action-hero:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.call-to-action-hero i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.call-to-action-hero:hover i {
    transform: translateX(5px);
}

/* --- Seção Habilidades (#Habilidades) --- */
#Habilidades {
    background-color: var(--bg-color-medium-dark); /* Fundo ligeiramente mais claro para contraste sutil */
    color: var(--text-color-light);
}

#Habilidades h2 {
    color: var(--primary-color);
}

#Habilidades .habilidades-lista {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

#Habilidades .habilidade {
    background: var(--bg-color-dark); /* Fundo do card de habilidade */
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    width: 200px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#Habilidades .habilidade:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px var(--primary-color);
    border-color: var(--primary-color);
    background: var(--bg-color-dark);
}

#Habilidades .habilidade img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    filter: brightness(180%); /* Torna ícones claros */
    transition: filter 0.3s ease;
}

#Habilidades .habilidade:hover img {
    filter: brightness(100%) drop-shadow(0 0 5px var(--primary-color)); /* Remove brilho e adiciona sombra da cor de acento */
    transform: scale(1.05);
}

#Habilidades .habilidade p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color); /* Texto claro da habilidade */
}

/* --- Seção Projetos (#Projetos) --- */
#Projetos {
    background-color: var(--bg-color-dark); /* Fundo escuro */
}

#Projetos h2 {
    color: var(--primary-color);
}

#Projetos .projeto {
    display: block;
    background: var(--glass-bg-dark); /* Fundo do card de projeto (glassmorphism dark) */
    border: 1px solid var(--glass-border-dark);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    text-decoration: none;
    color: var(--text-color-light); /* Texto claro dentro do projeto */
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--glass-shadow-dark);
    position: relative;
    text-align: left;
    overflow: hidden;
}

#Projetos .projeto:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--primary-color);
    border-color: var(--primary-color);
}

#Projetos .projeto h3 {
    color: var(--secondary-color); /* Título do projeto em branco/claro */
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-weight: 700;
}

.link-icon {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 8px;
    color: var(--text-color-dark-accent); /* Cor de detalhes */
    transition: color 0.3s ease;
}

.projeto:hover .link-icon {
    color: var(--primary-color); /* Ícone muda para cor de acento no hover */
}

.tagline {
    font-size: 1.1em;
    color: var(--text-color-dark-accent); /* Subtítulo em cinza mais escuro */
    margin-bottom: 25px;
    font-weight: 300;
}

.projeto-content {
    line-height: 1.7;
    margin-bottom: 25px;
}

.projeto-content p {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: var(--text-color-light);
}

.projeto-content strong {
    color: var(--primary-color); /* Destaca com a cor de acento */
    font-weight: 700;
}

.tech-stack, .key-features {
    background: rgba(0, 0, 0, 0.2); /* Fundo mais escuro */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color-dark);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

.tech-stack h4, .key-features h4 {
    color: var(--primary-color); /* Títulos com a cor de acento */
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.tech-stack ul, .key-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack ul li, .key-features ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
    color: var(--text-color-light);
}

.tech-stack ul li::before, .key-features ul li::before {
    content: '→';
    color: var(--text-color-dark-accent); /* Marcador com cor de detalhes */
    position: absolute;
    left: 0;
    font-size: 1.1em;
    top: 0px;
    font-weight: normal;
}

.call-to-action-project {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    margin-top: 35px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
}

.call-to-action-project:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.call-to-action-project i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.call-to-action-project:hover i {
    transform: translateX(5px);
}

/* --- Rodapé (Footer) --- */
.footer {
    background: var(--bg-color-medium-dark); /* Fundo ligeiramente mais claro que o main bg */
    padding: 30px 0;
    text-align: center;
    color: var(--text-color-dark-accent); /* Texto do rodapé em cinza mais escuro */
    font-size: 0.9em;
    border-top: 1px solid var(--border-color-dark);
}

.footer p {
    margin: 0;
}

.footer-social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social-links a {
    color: var(--text-color-dark-accent);
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* --- Responsividade (Media Queries) --- */
@media (max-width: 992px) {
    .glass-effect {
        padding: 40px;
    }

    section h2 {
        font-size: 2.5em;
    }

    #Sobre .about-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    #Sobre .heading {
        min-width: unset;
        width: 100%;
    }

    #Sobre .heading h1 {
        font-size: 3.2rem;
    }

    #Sobre .image-container img {
        width: 250px;
        height: 250px;
    }

    #Habilidades .habilidades-lista {
        justify-content: center;
    }

    #Habilidades .habilidade {
        width: 48%;
        max-width: 200px;
        padding: 20px 10px;
    }

    #Projetos .projeto {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        background: rgba(33, 37, 41, 0.98); /* Fundo quase opaco para o menu dark */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid var(--border-color-dark);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        text-align: center;
        margin-bottom: 10px;
    }

    header nav ul li a {
        font-size: 1.1rem;
        padding: 8px 0;
    }

    header .menu-toggle {
        display: block;
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 15px;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    #Sobre.hero-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #Sobre .heading h1 {
        font-size: 2.8rem;
    }

    #Sobre .destaque-texto {
        font-size: 1em;
    }

    .lista-conhecimentos li {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    #Sobre .image-container img {
        width: 200px;
        height: 200px;
        border-width: 3px;
    }

    .social-links a {
        font-size: 1.8rem;
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    #Habilidades .habilidade {
        width: 100%;
        max-width: 180px;
        padding: 15px 10px;
    }
    #Habilidades .habilidade img {
        width: 60px;
        height: 60px;
    }
    #Habilidades .habilidade p {
        font-size: 1.1rem;
    }

    #Projetos .projeto {
        padding: 25px;
    }

    #Projetos .projeto h3 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.9em;
    }

    .tech-stack h4, .key-features h4 {
        font-size: 1em;
    }

    .tech-stack ul li, .key-features ul li {
        font-size: 0.9em;
    }

    .call-to-action-project {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .glass-effect {
        padding: 20px;
    }

    header .logo img {
        width: 40px;
    }

    header nav ul {
        top: 60px;
    }

    section h2 {
        font-size: 1.6em;
    }

    #Sobre .heading h1 {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 1em;
    }

    .destaque-texto {
        font-size: 0.9em;
    }

    .lista-conhecimentos li {
        font-size: 0.85em;
    }

    #Sobre .image-container img {
        width: 180px;
        height: 180px;
        border-width: 2px;
    }

    .social-links a {
        font-size: 1.5rem;
        gap: 10px;
    }

    #Habilidades .habilidade {
        max-width: 160px;
    }
    #Habilidades .habilidade img {
        width: 50px;
        height: 50px;
    }
    #Habilidades .habilidade p {
        font-size: 1rem;
    }

    #Projetos .projeto h3 {
        font-size: 1.3em;
    }

    .call-to-action-hero, .call-to-action-project {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}