/* 1. VARIÁVEIS DE COR E CONFIGURAÇÕES GLOBAIS */
:root {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --primary-color: #007bff;
    --card-bg-color: #ffffff;
    --header-bg-color: rgba(255, 255, 255, 0.8);
    --border-color: #ddd;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f4f4f9;
    --primary-color: #4dabf7;
    --card-bg-color: #1e1e1e;
    --header-bg-color: rgba(30, 30, 30, 0.8);
    --border-color: #444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* 2. HEADER E NAVEGAÇÃO */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s, border-bottom 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.theme-btn:hover {
    color: var(--primary-color);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


/* 3. SEÇÕES E CONTEÚDO PRINCIPAL */
main {
    padding-top: 80px; /* Espaço para o header fixo */
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.section-container h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

#sobre p {
    text-align: left;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. COMPONENTES (LINKS SOCIAIS, SKILLS) */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    transition: color 0.3s, transform 0.3s;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.skill-card i {
    font-size: 4rem;
    color: var(--text-color);
}
.skill-card i.colored {
    color: initial; /* Permite que o devicon use sua própria cor */
}

.skill-card span {
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.projects-placeholder {
    margin-top: 2rem;
}

.projects-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
}

.projects-placeholder p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* 5. SEÇÃO DE CERTIFICAÇÕES */
.certification-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.cert-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.cert-details h3 {
    margin: 0;
    font-size: 1.2rem;
}
.cert-details p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* 6. SEÇÃO DE IDIOMAS */
.language-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.lang-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.lang-details h3 {
    margin: 0;
    font-size: 1.2rem;
}
.lang-details p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* 7. FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

/* 8. RESPONSIVIDADE */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .section-container h1 {
        font-size: 2.2rem;
    }

    .section-container h2 {
        font-size: 2rem;
    }

    .section-container {
        padding: 4rem 1rem;
    }

    .certification-card, .language-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}