:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --background-color: #f9f9f9;
    --card-color: #fff;
    --border-color: #ddd;
    --timeline-color: #3498db;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background-color: var(--card-color);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.language-toggle button {
    border: none;
    background: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-color);
}

.language-toggle button.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 50px;
    margin-bottom: 50px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-content {
    max-width: 800px;
}

.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    animation: fadeIn 1.5s ease;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

/* Main Content */
main {
    padding-bottom: 50px;
}

.section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 2px;
    background-color: var(--timeline-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: -30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--timeline-color);
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3);
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-header {
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.job-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.job-position {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.job-period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.job-responsibilities {
    padding-left: 20px;
}

.job-responsibilities li {
    margin-bottom: 8px;
}

/* Education */
.education-item {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.institution {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.degree {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.period, .location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* Additional Info */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-column {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-column:hover {
    transform: translateY(-5px);
}

.info-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Language Toggle */
.pt, .en, .es {
    display: none;
}

body.pt-lang .pt {
    display: block;
}

body.en-lang .en {
    display: block;
}

body.es-lang .es {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .job-title, .institution {
        font-size: 1.2rem;
    }
    
    .job-position, .degree {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
    }
    
    .timeline-content, .education-item, .info-column {
        padding: 15px;
    }
}
