@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =============================================== */
/* RESET E VARIÁVEIS GERAIS */
/* =============================================== */
:root {
    --primary-color: #ff0147;
    --bg-dark: #1e1e24;       /* Fundo padrão */
    --bg-darker: #111111;     /* Fundo seções alternadas */
    --text-color: #eee;
    --text-muted: #aaa;
    --card-bg: #2a2a32;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: 14px; /* Aumentei levemente para leitura melhor */
    color: var(--text-color);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* =============================================== */
/* HEADER / NAV */
/* =============================================== */
header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    text-align: center;
    padding: 15px 0;
    /* Efeito de vidro para ficar mais moderno e formal */
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header nav a {
    margin: 0 25px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

header nav a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* =============================================== */
/* ESTRUTURA GERAL DAS PÁGINAS (.tab) */
/* =============================================== */
.tab {
    width: 100%;
    min-height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    /* Removi a imagem de fundo repetitiva para limpar o visual */
    background-color: var(--bg-dark); 
}

.tab .container {
    width: 1200px;
    max-width: 90%;
    height: 100%;
    padding-top: 80px; /* Espaço para o header */
    margin: auto;
    position: relative;
}

/* Gradiente de Texto */
.text-gradient {
    background-image: linear-gradient(to right, #E4454A, #ff0147);
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text; /* Padrão moderno */
}

/* =============================================== */
/* SEÇÃO #intro (HOME) */
/* =============================================== */
#intro {
    background-color: #050505;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

#intro .avatar {
    text-align: right;
    height: 100%;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#intro .avatar img {
    height: 90%; /* Ajuste para não colar no topo */
    margin-top: 5%;
    filter: saturate(0); /* Preto e branco para ser mais formal */
    opacity: 0.6; /* Leve transparência para focar no texto */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

#intro .content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    width: 600px;
    max-width: 90%;
    z-index: 1;
}

/* CORREÇÃO DO TEXTO CORTADO */
#intro .content .name,
#intro .content .job {
    /* Reduzi de 6em para 4.5em para caber melhor e ficar elegante */
    font-size: 4.5em; 
    font-weight: bold;
    font-family: 'Righteous', sans-serif;
    /* Aumentei o line-height para não cortar o Ç ou G */
    line-height: 1.2em; 
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

#intro .content .job {
    font-size: 3.5em; /* O cargo um pouco menor que o nome */
    color: #ccc;
}

#intro .content .des {
    margin-top: 20px;
    width: 80%;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

#intro .content i {
    /* Mantido ícone de aspas decorativo */
    font-size: 8em;
    position: absolute;
    top: -40px;
    right: -20px;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
}

/* Ícones Sociais (Intro) */
.social-links-inline {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    align-items: center;
}

.social-links-inline .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.social-links-inline .social-icon img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
}

.social-links-inline .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}
.social-links-inline .social-icon:hover img {
    opacity: 1;
}

/* =============================================== */
/* SEÇÃO #skill (Competências) */
/* =============================================== */
#skill {
    /* Fundo mais sóbrio e formal */
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, #2a1015, #111);
}

#skill .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    padding-bottom: 50px;
}

#skill .list .item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

#skill .list .item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

#skill .list .item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#skill .list .item .name {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

#skill .list .item .des {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================== */
/* SEÇÃO #project (Certificações/Projetos) */
/* =============================================== */
#project {
    background-color: var(--bg-darker);
}

#project .container {
    overflow-y: auto; /* Permite scroll se tiver muitos itens */
    padding-bottom: 50px;
}

#project .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-link {
    display: block;
}

#project .list .item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#project .list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#project .list .item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#project .list .item:hover img {
    opacity: 1;
}

#project .list .item .index {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#project .list .item .name {
    padding: 15px 20px 5px 20px;
    font-size: 1.1em;
    color: #fff;
}

#project .list .item .des {
    padding: 0 20px 15px 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}

#project .list .item .author {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #ccc;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =============================================== */
/* SEÇÃO #experience (Perfil/Linha do Tempo) */
/* =============================================== */
#experience {
    background-color: var(--bg-dark);
}

#experience .container {
    display: flex;
    align-items: center;
    overflow-x: auto; /* Scroll horizontal para a timeline */
    padding-bottom: 20px;
}

#experience .list {
    display: flex;
    gap: 40px;
    padding: 0 50px;
    position: relative;
    min-width: max-content;
}

/* Linha central da timeline */
#experience .list::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
    transform: translateY(-50%);
}

#experience .list .item {
    width: 280px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ajuste para alternar CIMA/BAIXO na timeline */
#experience .list .item:nth-child(odd) {
    transform: translateY(-20%);
}
#experience .list .item:nth-child(even) {
    transform: translateY(20%);
}

#experience .list .item i {
    width: 40px;
    height: 40px;
    background: var(--bg-darker);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2em;
    align-self: flex-start;
    margin-bottom: 5px;
}

#experience .list .item .time {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: bold;
}

#experience .list .item .job {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}

#experience .list .item .company {
    font-size: 0.9em;
    color: #ccc;
    font-style: italic;
    margin-bottom: 5px;
}

#experience .list .item .des {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =============================================== */
/* SEÇÃO #contact (Contato) */
/* =============================================== */
#contact {
    background-color: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact .content {
    text-align: center;
}

#contact .thank {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Righteous', sans-serif;
}

#contact .des {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

#contact .list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#contact .list .item {
    font-size: 1.1em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

#contact .list .item i {
    color: var(--primary-color);
}

.whatsapp-link, .instagram-link {
    color: #fff;
    transition: color 0.3s;
}
.whatsapp-link:hover, .instagram-link:hover {
    color: var(--primary-color);
}


/* =============================================== */
/* RESPONSIVIDADE (Mobile) */
/* =============================================== */
@media screen and (max-width: 768px) {
    
    header nav a {
        margin: 0 10px;
        font-size: 0.75rem;
    }

    /* Ajustes Home */
    #intro .avatar { display: none; }
    #intro .content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }
    #intro .content .name { font-size: 2.5em; }
    #intro .content .job { font-size: 1.8em; }
    #intro .social-links-inline { justify-content: center; }

    /* Ajustes Skills/Projects */
    #skill .list, #project .list {
        grid-template-columns: 1fr; /* Uma coluna no mobile */
    }

    /* Ajustes Timeline */
    #experience .list .item:nth-child(odd),
    #experience .list .item:nth-child(even) {
        transform: none; /* Remove o zigue-zague no mobile */
    }
    #experience .list {
        flex-direction: column; /* Lista vertical */
        min-width: unset;
        width: 100%;
        padding: 0;
    }
    #experience .list::before {
        left: 20px;
        width: 2px;
        height: 100%;
        top: 0;
        transform: none;
    }
    #experience .list .item {
        width: 100%;
        margin-left: 20px; /* Espaço para a linha */
    }
}

/* Animação de Entrada (Opcional - Mantida do original) */
.tab.active {
    animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}