:root {
    --primary-color: #29ABE2; /* Azul mais claro e moderno */
    --secondary-color: #87D8E2; /* Azul claro suave */
    --accent-color: #F9A825; /* Amarelo/Dourado para destaque */
    --background-color: #1E272E; /* Fundo escuro */
    --card-background: #2C3E50; /* Fundo dos cards */
    --text-color: #FFFFFF; /* Texto branco */
    --border-color: #34495E; /* Cor das bordas */
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Valor padrão para o espaçamento do cabeçalho em telas grandes */
    padding-top: 95px;
    -webkit-user-select: none; /* Safari, Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Padrão */
}

.main-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Estilos do Header Fixo */
.sticky-header {
    background-color: rgba(30, 39, 46, 0.9);
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-button a {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.home-button a:hover {
    color: var(--accent-color);
}

.profile-info {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: default;
}

.profile-info:hover {
    transform: scale(1.05);
}

.profile-pic-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.header-text h1#name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.header-text p#role {
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

section {
    background: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#summary p {
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.card-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.card {
    flex: 1 1 calc(50% - 1.5rem);
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.card-header h3 {
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.card.expanded .card-details {
    max-height: 1000px;
    padding-top: 1rem;
}

.company-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

ul {
    padding-left: 1.5rem;
}

.card-details p,
.card-details ul {
    color: var(--secondary-color);
}

.card-details ul {
    list-style-type: disc;
}

.card-details li {
    margin-bottom: 0.75rem;
}

.card-details li:last-child {
    margin-bottom: 0;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--accent-color);
    color: var(--background-color);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.link-certificado {
    display: inline-block;
    margin-top: 0.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-certificado:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .card-grid {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 110px;
    }

    .sticky-header {
        padding: 0.4rem 1rem;
    }

    .header-content {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center;
    }
    
    .home-button a {
        font-size: 1.4rem; 
    }

    .social-links a {
        font-size: 1.2rem; 
        margin-left: 0.8rem; 
    }

    .profile-info {
        flex-basis: 100%;
        order: 3;
        justify-content: center;
        margin-top: -0.5rem; 
    }

    .profile-pic-small {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .header-text {
        text-align: left;
    }

    .header-text h1#name {
        font-size: 1.1rem;
    }

    .header-text p#role {
        font-size: 0.8rem;
        font-weight: 300;
    }
}

@media (max-width: 400px) {
     body {
        padding-top: 80px;
    }
    .profile-info {
        margin-top: -0.4rem; 
    }
    .header-text h1#name {
        font-size: 1rem;
    }
    .header-text p#role {
        font-size: 0.75rem;
    }
}

/* ======================================================= */
/* ====== INÍCIO DOS ESTILOS PARA O ÍCONE DE EXPANSÃO ====== */
/* ======================================================= */

.card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.expand-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 0.5rem; /* Aumenta a área de clique do ícone */
    margin-top: -0.5rem; /* Ajusta o alinhamento vertical com o título */
}

/* Animação do ícone quando o card está expandido */
.card.expanded .expand-icon {
    transform: rotate(180deg);
}