/* === BASE & RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F6F8;
    color: #2C3E50;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === HEADER === */
header {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* === LAYOUT === */
.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
}

main {
    padding: 2rem;
    background: white;
    margin: 1rem auto;
    max-width: 1200px;
    width: 90%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

/* === TYPOGRAPHY === */
h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 0.5rem 0;
}

h2 {
    border-bottom: 2px solid #3498DB;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #2C3E50;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.highlight {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === ANIMATION === */
.wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* === PROFILE === */
.profile-photo {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.description {
    margin: 1rem auto;
    font-size: 1rem;
    color: #555;
    max-width: 1000px;
    text-align: center;
    list-style: none;
}

.description ul,
.description li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* === SOCIAL LINKS === */
.social-links {
    margin: 1rem 0;
}

.social-links a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    background: #2C3E50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498DB;
    transform: translateY(-2px);
}

/* === SKILLS === */
.skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.skill {
    background-color: #ecf0f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #2C3E50;
    transition: all 0.2s ease;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === CARDS (JOB, DEGREE, ARTICLE) - COLUNA DA DATA MAIS LARGA === */
.job, .degree, .article {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: minmax(85px, auto) 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 768px) {
    .job, .degree, .article {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.job-dates, .degree-dates, .article-dates {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    line-height: 1.4;
}

.job-details, .degree-details, .article-details {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
}

/* Garantir que o botão dentro de .article-details fique centralizado */
.article-details .button-container {
    margin-top: 1.5rem;
}

.job-title, .degree-title, .article-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.job-company, .degree-company {
    font-weight: normal;
    color: #3498DB;
}

.job-location, .degree-location {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.job-description, .degree-description, .article-description {
    margin: 0.75rem 0 0 0;
    padding: 0;
    text-align: justify;
}

.job-description p,
.degree-description p {
    margin-bottom: 0.75rem;
}

/* Tese */
.Tese .article {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: minmax(85px, auto) 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 768px) {
    .Tese .article {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.Tese .article-dates {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    line-height: 1.4;
}

.Tese .article-details {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
}

.Tese .article-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.Tese .job-location {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.Tese .degree-description p {
    margin-bottom: 0.75rem;
    text-align: justify;
}

/* === BOX CONTAINER === */
.box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

/* === BUTTONS === */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 130px;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #3498DB;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #2C3E50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === HOME BUTTON === */
.home-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.home-button:hover {
    opacity: 1;
}

.home-button img {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* === TOP RIGHT CONTROLS === */
.top-right-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.language-selector a img {
    width: 30px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.language-selector a img:hover {
    transform: scale(1.05);
}

.theme-toggle {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(15deg);
}

/* === FOOTER === */
footer {
    background-color: #2C3E50;
    color: #ECF0F1;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 850px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer a {
    color: #ECF0F1;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #3498DB;
}

/* === PDF CONTAINER === */
.pdf-container {
    width: 100%;
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

/* === DARK MODE === */
body.dark {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

body.dark header {
    background-color: #16213e;
}

body.dark main,
body.dark section {
    background: #1e2a3a;
    color: #e0e0e0;
}

body.dark h2 {
    border-bottom-color: #3498DB;
    color: #e0e0e0;
}

body.dark .description {
    color: #ccc;
}

body.dark .skill {
    background-color: #2c3e50;
    border-color: #3498DB;
    color: #e0e0e0;
}

body.dark .social-links a {
    background: #3498DB;
}

body.dark .job-details,
body.dark .degree-details,
body.dark .article-details,
body.dark .Tese .article-details {
    background: #1e2a3a;
}

body.dark .job-dates,
body.dark .degree-dates,
body.dark .article-dates,
body.dark .Tese .article-dates {
    color: #aaa;
}

body.dark .job-title,
body.dark .degree-title,
body.dark .article-title,
body.dark .Tese .article-title {
    color: #fff;
}

body.dark .box {
    background: #16213e;
    border-color: #3498DB;
}

body.dark .button {
    background-color: #3498DB;
}

body.dark .button:hover {
    background-color: #5dade2;
}

body.dark footer {
    background-color: #0f172a;
}

body.dark .highlight {
    background: linear-gradient(135deg, #7FDBFF, #B0A7FF);
    -webkit-background-clip: text;
    background-clip: text;
}

body.dark .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    main {
        width: 95%;
        padding: 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .description {
        width: 100%;
        font-size: 0.9rem;
        text-align: left;
    }
    
    .skills {
        gap: 0.4rem;
    }
    
    .skill {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .button {
        min-width: 110px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .top-right-controls {
        top: 10px;
        right: 10px;
    }
    
    .home-button {
        top: 10px;
        left: 10px;
    }
    
    .home-button img {
        width: 28px;
        height: 28px;
    }
    
    .job, .degree, .article,
    .Tese .article {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .top-right-controls,
    .home-button,
    .theme-toggle,
    .button-container,
    .social-links {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .box {
        break-inside: avoid;
    }
}