/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
}

.headshot-container {
    flex-shrink: 0;
}

.headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.title {
    font-size: 1.3rem;
    color: #3498db;
    margin-bottom: 5px;
    font-weight: 500;
}

.affiliation {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

/* Section Styles */
.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Bio Section */
.bio-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.8;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-size: 1.05rem;
    padding: 8px 0;
}

.contact-item strong {
    color: #2c3e50;
    min-width: 100px;
    display: inline-block;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Education Section */
.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.education-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
}

.date {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: #e8f4f8;
    padding: 4px 12px;
    border-radius: 4px;
}

.institution {
    font-size: 1.05rem;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 8px;
}

.description {
    color: #555;
    line-height: 1.6;
}

/* Projects Section */
.project-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
}

.project-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: justify;
}

.project-tech {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.project-tech strong {
    color: #2c3e50;
    font-style: normal;
}

/* Publications Section */
.publication-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.publication-item:last-child {
    margin-bottom: 0;
}

.pub-authors {
    color: #555;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.pub-venue {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.pub-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .headshot {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .name {
        font-size: 1.7rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }
}
