/* Importação das Fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Chakra+Petch:wght@300;400;500;700&display=swap');

/* Variáveis da Nova Identidade Visual */
:root {
    --primary-color: #1f3b4d; 
    --accent-color: #c8b8e2;  
    --bg-color: #d1e5ff;     
    --section-bg-color: #ffffff; 
    --text-color: #333333;    
    --light-color: #ffffff;
    --transition: all 0.3s ease-in-out;
    
    /* Fontes */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Chakra Petch', sans-serif;
}

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

body {
    background-color: var(--bg-color); /* Fundo suave mais escuro */
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Tela de Boas-Vindas */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: opacity 1.5s ease-out;
}

.welcome-text {
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Logo */
.site-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: var(--transition);
    opacity: 0; /* Começa invisível e aparece com o container */
}
.site-logo img {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2)); /* Leve sombra para destacar no fundo suave */
}
.site-logo:hover {
    transform: scale(1.1);
}

/* Conteúdo Principal */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.container.show {
    opacity: 1;
    transform: translateY(0);
}

header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 60px; /* Espaço para o logo */
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(31, 59, 77, 0.2);
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: 2.8rem; margin: 1rem 0 0.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; border-bottom: 3px solid var(--accent-color); display: inline-block; padding-bottom: 0.5rem; }

.tagline { font-size: 1.2rem; color: var(--text-color); font-weight: 500; }
.subtagline { font-size: 1rem; color: var(--text-color); font-weight: 300; }

section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: var(--section-bg-color); /* Usando nova variável para fundo de seção */
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}
section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sobre Mim - Pilares */
.dual-pillars { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; flex-wrap: wrap; }
.pillar { text-align: center; padding: 1.5rem; border-radius: 10px; width: 220px; border: 2px solid transparent; transition: var(--transition); }
.pillar i { font-size: 2.5rem; margin-bottom: 1rem; }
.pillar h3 { font-family: var(--font-heading); letter-spacing: 1px; }
.tech { border-color: var(--primary-color); color: var(--primary-color); }
.social { border-color: var(--accent-color); color: var(--primary-color); }
.pillar:hover { background-color: var(--primary-color); color: var(--light-color); transform: translateY(-5px); }

/* Formação - Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 5px; height: 100%; width: 2px; background: var(--accent-color); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-color); border: 3px solid var(--bg-color); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item h3 { font-family: var(--font-body); font-weight: 700; color: var(--primary-color); }
.date { color: #777; font-style: italic; margin: 0.2rem 0; }

/* Habilidades */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna por padrão */
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr 1fr; /* Duas colunas em telas maiores */
    }
}

.skill-category {
    background-color: var(--section-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    font-family: var(--font-heading); /* Usando Anton para a categoria de habilidades */
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr; /* Cada habilidade em uma linha */
    gap: 1rem;
}

.skill-item { /* Novo nome para o box da habilidade individual */
    background-color: var(--bg-color); /* Fundo do box da habilidade */
    padding: 1rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-name { margin-bottom: 0.5rem; font-weight: 500; display: flex; align-items: center; color: var(--text-color); }
.skill-name i { margin-right: 10px; color: var(--primary-color); width: 20px; font-size: 1.1em; } /* Aumentei o tamanho do ícone */

.skill-bar { height: 12px; background: #e0e0e0; border-radius: 6px; overflow: hidden; }
.skill-level { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); /* Degradê para a barra de habilidade */ border-radius: 6px; transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); }


/* Footer */
footer { text-align: center; padding-top: 2rem; }
.social-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.social-btn { display: inline-flex; align-items: center; padding: 0.8rem 1.8rem; background-color: var(--primary-color); color: var(--light-color); text-decoration: none; border-radius: 50px; transition: var(--transition); font-weight: 500; }
.social-btn:hover { background-color: var(--text-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.social-btn i { margin-right: 0.7rem; }
.copyright { color: #888; }

/* Responsividade */
@media (max-width: 768px) {
    .welcome-text { font-size: 2.5rem; }
    .site-logo { top: 15px; left: 15px; }
    .site-logo img { width: 50px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .dual-pillars { flex-direction: column; align-items: center; }
    .skills-wrapper { gap: 1.5rem; } /* Ajuste de gap para mobile */
}