:root {
    --primary: #0a66c2;
    --secondary: #2c3e50;
    --light: #f5f5f5;
    --dark: #333;
    --accent: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bold;
}

.profile-title {
    font-size: 1.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-btn i {
    font-size: 1.2rem;
}

.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    margin-left: 20px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -29px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid white;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-style: italic;
    margin-bottom: 0.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* garante que a imagem preencha sem distorcer */
  display: block;
}
.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background-color: #e0e0e0;
    color: var(--secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.cta-section {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    opacity: 0.8;
}

/* Education Timeline */
.education-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 120px;
    margin-left: -1px;
}

.education-item {
    position: relative;
    display: flex;
    margin-bottom: 30px;
}

.education-year {
    min-width: 100px;
    padding-right: 20px;
    font-weight: bold;
    color: #3498db;
    text-align: right;
    padding-top: 3px;
}

.education-content {
    position: relative;
    margin-left: 40px;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    width: calc(100% - 140px);
}

.education-content::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #3498db;
    left: -48px;
    top: 15px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #3498db;
}

.education-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

.education-content p {
    margin: 5px 0;
    line-height: 1.4;
}

.edu-period {
    font-weight: normal;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .profile-name {
        font-size: 2rem;
    }

    .profile-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Education timeline mobile adjustments */
    .education-timeline::before {
        left: 30px;
    }

    .education-item {
        flex-direction: column;
    }

    .education-year {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        margin-bottom: 10px;
    }

    .education-content {
        margin-left: 50px;
        width: calc(100% - 60px);
    }

    .education-content::before {
        left: -38px;
    }
}