body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}
.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 3px solid #3498db; /* Blue border */
}

/* Estilos do Banner */
.banner-img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Altura máxima para o banner */
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    border-radius: 8px; /* Cantos arredondados para combinar com o container */
    margin-bottom: 20px; /* Espaço abaixo do banner */
}

header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #2c3e50;
}
header h2 {
    margin: 5px 0;
    font-size: 1.5em;
    font-weight: 400;
    color: #3498db;
}
.contact-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.contact-info a {
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
}
.contact-info a:hover {
    color: #3498db;
}

/* PDF download icon specific styling */
#downloadPdfIcon {
    transition: all 0.3s ease;
}

#downloadPdfIcon:hover {
    color: #c0392b !important;
    transform: scale(1.1);
    text-decoration: none;
}

/* Adiciona espaço entre os ícones e o texto no cabeçalho */
.contact-info i {
    margin-right: 8px;
}

/* Estilos do Seletor de Idioma */
.lang-switcher {
    text-align: right;
    margin-bottom: 15px;
    font-size: 0.9em;
}
.lang-switcher a {
    color: #3498db;
    text-decoration: none;
    padding: 5px;
    font-weight: bold;
}
.lang-switcher a:hover {
    text-decoration: underline;
}

section {
    margin-top: 30px;
}
section h3 {
    font-size: 1.8em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.job, .education-item {
    margin-bottom: 20px;
}
.job h4, .education-item h4 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}
.job .details, .education-item .details {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}
ul {
    list-style-type: none;
    padding: 0;
}
ul li {
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 4px;
}
.skills-list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skills-list li {
    background-color: #eaf2f8;
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: none;
    cursor: pointer; /* Indica que os itens são clicáveis */
    transition: all 0.3s ease;
}
.skills-list li:hover {
    background-color: #d1e7f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos do Modal (Pop-up) */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Fundo escurecido */
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.modal-content-full {
    background-color: #f0f8ff; /* AliceBlue background */
    margin: 5% auto;
    padding: 25px;
    border: 3px solid #000080; /* Navy border */
    width: 90%;
    max-width: 960px;
    border-radius: 8px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    color: #000080; /* Navy text */
}

.modal-content-full h1, .modal-content-full h2, .modal-content-full h3, .modal-content-full h4 {
    color: #000080; /* Navy headers */
}

.modal-content-full .close-btn {
    color: #000080; /* Navy close button */
}

.modal-content-full .close-btn:hover,
.modal-content-full .close-btn:focus {
    color: #0000cd; /* MediumBlue hover */
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0} 
    to {top: 0; opacity: 1}
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#modalSkillTitle {
    margin-top: 0;
    color: #2c3e50;
}

.full-resume-container {
    text-align: center;
    margin-top: 20px;
}

#show-full-resume {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#show-full-resume:hover {
    background-color: #2980b9;
}

#passwordInput {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#submitPassword {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#submitPassword:hover {
    background-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
}

.analytics-notice {
    font-size: 0.8em;
    color: #777;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 0.9em;
    color: #777;
}

/* Download Section Styles */
#download-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #0066cc;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.consent-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#consentCheckbox {
    margin-right: 10px;
}

#download-section h3 {
    margin-bottom: 15px;
    color: #0066cc;
    font-size: 1.5em;
    font-weight: bold;
}

.download-buttons {
    margin: 15px 0;
}

#downloadBtn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border: none;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#downloadBtn:hover {
    background: linear-gradient(135deg, #004499 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#downloadBtn:active {
    transform: translateY(0);
}

#downloadBtn i {
    margin-right: 8px;
}

#download-section p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    header h1 {
        font-size: 2em;
    }
    header h2 {
        font-size: 1.2em;
    }
    section h3 {
        font-size: 1.5em;
    }
    .modal-content {
        width: 90%;
    }
}

/* Resume Content Styles */
.resume-content, .full-profile-content {
    padding: 20px 0;
}

.job-item {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid #3498db;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.job-item h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.job-item h5 {
    margin: 15px 0 5px 0;
    color: #34495e;
    font-size: 1.1em;
}

.job-item .details {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 500;
}

.job-item .location {
    color: #95a5a6;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-style: italic;
}

.job-item p {
    margin: 10px 0;
    line-height: 1.6;
}

.technologies {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-size: 0.9em;
}

.technologies strong {
    color: #2c3e50;
}

.projects {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #e8f5e8;
    border-radius: 4px;
    font-size: 0.9em;
}

.projects strong {
    color: #27ae60;
}

.projects a {
    color: #2980b9;
    text-decoration: none;
}

.projects a:hover {
    text-decoration: underline;
}

.sub-position {
    margin-top: 15px;
    margin-left: 20px;
    padding: 10px;
    border-left: 2px solid #bdc3c7;
    background-color: #ffffff;
    border-radius: 3px;
}

/* Full Profile Specific Styles */
.personal-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.personal-info h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 2em;
}

.personal-info h3 {
    margin: 5px 0 15px 0;
    color: #3498db;
    font-weight: 400;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
    text-align: left;
}

.contact-details p {
    margin: 5px 0;
    padding: 5px;
}

.summary-section, .languages-section, .certifications-section, 
.experience-section, .education-section {
    margin-bottom: 30px;
}

.summary-section h3, .languages-section h3, .certifications-section h3,
.experience-section h3, .education-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.education-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

.education-item h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.education-item .details {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.education-item .field {
    color: #95a5a6;
    font-size: 0.85em;
    font-style: italic;
}

/* Full Resume Button Styles */
.full-resume-container {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
}

#show-full-resume {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#show-full-resume:hover {
    background-color: #c0392b;
}

/* Modal Footer Styles */
.modal-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
    background-color: #f8f9fa;
}

.close-footer-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.close-footer-btn:hover {
    background-color: #2980b9;
}