/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 13pt;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header styles */
header {
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ddd;
}

.header-text {
    flex: 1;
}

header h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(237, 0, 0);
}

.tagline {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 0;
}

header hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0;
}

/* Section styles */
section {
    margin-bottom: 3rem;
}

h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgb(237, 0, 0);
    text-transform: capitalize;
}

h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(237, 0, 0);
}

p {
    margin-bottom: 1rem;
    color: #000;
}

/* Timeline styles */
.timeline-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-year-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    flex-shrink: 0;
    gap: 0.5rem;
}

.timeline-year {
    font-weight: 600;
    color: #000;
    text-align: right;
}

.timeline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.timeline-content {
    flex: 1;
}

.timeline-content p {
    margin-bottom: 0;
    color: #000;
}

/* Project styles */
.project-item {
    margin-bottom: 2rem;
}

.project-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-text {
    flex: 1;
}

.project-item h3 {
    margin-bottom: 0.75rem;
}

.project-description {
    position: relative;
    overflow: hidden;
    max-height: 120px;
    transition: max-height 0.3s ease-out;
    display: block;
}

.project-description.expanded {
    max-height: 5000px !important;
}

.project-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.15s ease-out;
}

.project-description.expanded::after {
    opacity: 0;
    display: none;
}

.read-more-btn {
    font-family: Arial, sans-serif;
    font-size: 13pt;
    color: rgb(237, 0, 0);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: rgb(200, 0, 0);
}

.project-thumbnail {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Pagination styles */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination-btn {
    font-family: Arial, sans-serif;
    font-size: 13pt;
    padding: 0.5rem 1.5rem;
    background-color: #fff;
    color: rgb(237, 0, 0);
    border: 1px solid rgb(237, 0, 0);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: rgb(237, 0, 0);
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-family: Arial, sans-serif;
    font-size: 13pt;
    color: #000;
}

/* Publication styles */
.publication-item {
    margin-bottom: 2rem;
}

.publication-item h3 {
    margin-bottom: 0.5rem;
}

.publication-venue {
    font-style: italic;
    color: #000;
    margin-bottom: 0.25rem;
}

.publication-authors {
    color: #000;
    margin-bottom: 0.5rem;
}

.publication-links {
    font-size: 0.9rem;
}

/* Contact styles */
.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin-bottom: 0.5rem;
}

/* Link styles */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Footer styles */
footer {
    font-family: Arial, sans-serif;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #000;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 1.5rem 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .project-content {
        flex-direction: column;
        gap: 1rem;
    }

    .project-thumbnail {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-year-logo {
        min-width: auto;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .timeline-year {
        text-align: left;
    }

    .timeline-logo {
        width: 50px;
        height: 50px;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    body {
        max-width: 100%;
        padding: 1rem;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .contact-links a[href^="mailto"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

