html, body {
    height: 100%;
    background-color: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
}

#about p,
.timeline-content p {
    text-align: justify;
    line-height: 1.8;
    color: #333;
}

.main-content {
    flex: 1 0 auto;
}

.profile-picture-header {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: -10px;
    margin-bottom: -10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.profile-picture-header:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.content-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.section-heading {
    position: relative;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color:#007bff;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background-color: #e9ecef;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

.timeline-content h3 {
    font-weight: 400;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    font-weight: 300;
    color: #6c757d;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 300;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #007bff;
}

.publication-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.publication-year {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
    color: #6c757d;
    padding-top: 0.15rem;
}

.publication-details {
    flex-grow: 1;
}

.publication-item h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.publication-item h3 a {
    text-decoration: none;
    color: #333;
}

.publication-item h3 a:hover {
    text-decoration: underline;
}

footer {
    flex-shrink: 0;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
}

footer a {
    color: #6c757d;
}

footer a:hover {
    color: #007bff;
}

.fi {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.25rem;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .timeline::before {
        left: 50%;
        margin-left: -1px;
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 4rem;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 4rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: -8px;
    }

    .timeline-item::after {
        left: auto;
        right: -8px;
    }
}

@media (max-width: 768px) {
    .profile-picture-header {
        width: 80px;
        height: 80px;
    }

    h1.display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 10px;
    }

    .timeline-content {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .profile-picture-header {
        margin-top: 0;
        margin-bottom: 1rem;
    }
}