* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
strong{
    font-size: 12px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Botão CTA */
.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: transform 0.3s, background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    transform: scale(1.05);
    background-color: #c0392b;
}

/* Seção Benefícios */
.benefits {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.3);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.benefit-card p {
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* Timeline */
.timeline {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.timeline h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.timeline h3 {
    color: #3498db;
    margin: 2rem 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

/* Botão Toggle Moderno */
.toggle-btn {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.toggle-btn .modern-arrow {
    width: 12px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    margin-left: 0.75rem;
    transform: rotate(45deg);
    transition: transform 0.4s ease;
}

.toggle-btn.active .modern-arrow {
    transform: rotate(-135deg);
}

.timeline-toggle {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

.timeline-toggle.active {
    max-height: 3000px; /* Aumentado para cobrir todo o conteúdo */
}

/* Linha do Tempo Horizontal (Períodos) */
.timeline-periods {
    display: flex;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.timeline-toggle.active .timeline-periods {
    opacity: 1;
    transform: translateY(0);
}

.timeline-periods::after {
    content: '';
    position: absolute;
    height: 4px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
    right: 0;
}

.timeline-periods .period {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.timeline-periods .period:hover {
    background-color: #3498db;
    color: white;
}

.timeline-periods .period.active {
    background-color: #e74c3c;
    color: white;
}

/* Linha do Tempo Vertical */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-period-content {
    display: none;
    position: relative;
    min-height: 100px;
}

.timeline-period-content.active {
    display: block;
}

/* Linha Vertical */
.timeline-period-content::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #3498db;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 0; /* Começa com altura 0 */
    height: var(--line-height, 0); /* Controlado pelo JavaScript */
    transition: height 0.8s ease; /* Transição suave */
    z-index: 1; /* Ajustado para garantir que a linha fique visível */
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    z-index: 2; /* Garante que o conteúdo fique acima da linha */
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.timeline-content p {
    color: #555;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #e74c3c;
    margin-top: 0.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; /* Garante que o ponto fique acima da linha */
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

/* Sobre */
.about-section {
    max-width: 800px;
    margin: 0 auto 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.about-text p {
    text-align: justify;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Destaques da Educação */
.education-highlights {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.highlight-card {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    padding: 2rem;
    border-radius: 8px 20px;
    box-shadow: 5px 5px 15px rgba(44, 62, 80, 0.15);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #3498db 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.highlight-card:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 8px 8px 20px rgba(44, 62, 80, 0.25);
}

.highlight-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.highlight-card p {
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.highlight-date {
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

/* Projetos */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.project-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.project-card p {
    color: #555;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.project-card .project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #777;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    background: #f5f5f5;
    transition: background 0.3s, color 0.3s;
    position: relative;
    z-index: 2;
    margin-top: auto;
    align-self: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.project-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.project-card.fallback {
    background: #ffe6e6;
    text-align: center;
    border: none;
    box-shadow: none;
}

.project-card.fallback h4,
.project-card.fallback p {
    color: #c0392b;
}

/* Artigos */
.articles {
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 50%, #e74c3c 50%);
    opacity: 0.05;
    z-index: 0;
}

.articles h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #ffffff;
    padding: 2rem;
    border-left: 5px solid #3498db;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.article-card p {
    color: #555;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.article-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.article-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Seção de Contato */
.contact {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.contact p {
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Formulário Elegante */
.elegant-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.elegant-btn {
    width: 100%;
    padding: 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.elegant-btn:hover {
    transform: scale(1.05);
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.25rem;
    }
    header p {
        font-size: 1.1rem;
    }
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .about-text p {
        text-align: justify;
    }
    .education-highlights {
        grid-template-columns: 1fr;
    }
    .timeline h2 {
        font-size: 2rem;
    }
    .timeline h3 {
        font-size: 1.5rem;
    }
    .timeline-periods {
        flex-wrap: wrap;
    }
    .timeline-periods .period {
        flex: 1 1 33.33%;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    /* Ajuste na linha vertical para telas menores */
    .timeline-period-content::after {
        left: 20px;
        transform: none;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 40px;
    }
    .timeline-item::before {
        left: 10px !important;
        right: auto;
    }
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    .timeline-content p {
        font-size: 0.95rem;
    }
    .timeline-date {
        font-size: 0.85rem;
    }
    .benefit-card h3 {
        font-size: 1.5rem;
    }
    .benefit-card p {
        font-size: 1rem;
    }
    .highlight-card h3 {
        font-size: 1.5rem;
    }
    .highlight-card p {
        font-size: 1rem;
    }
    .highlight-date {
        font-size: 1rem;
    }
    .project-card h4 {
        font-size: 1.25rem;
    }
    .project-card p {
        font-size: 1rem;
    }
    .project-meta {
        font-size: 0.85rem;
    }
    .project-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    .articles h2 {
        font-size: 2rem;
    }
    .article-card h3 {
        font-size: 1.25rem;
    }
    .article-card p {
        font-size: 1rem;
    }
    .article-link {
        font-size: 0.9rem;
    }
    .contact h2 {
        font-size: 2rem;
    }
    .contact p {
        font-size: 1.1rem;
    }
}