/* Root Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #333;
    --light-text: #555;
    --bg-color: #ffffff;
    --page-bg: #f4f4f4;
    --border-color: #e5e7eb;
    --accent-color: #e74c3c;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--page-bg);
    line-height: 1.6;
}

.container {
    max-width: 950px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header and Profile Section */
header.container {
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-pic {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.profile-info h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-info {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Main Content */
main.container {
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

main p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.7;
}

main a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

main a:hover {
    text-decoration: underline;
}

/* Headings */
h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Lists */
ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--light-text);
    line-height: 1.7;
}

ul > li > ul {
    margin-top: 15px;
}

.publications-list li {
    margin-bottom: 18px;
    list-style: none;
    padding-left: 0;
}

.publications-list li b {
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.publications-list .authors {
    font-size: 0.95rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 3px;
}

/* Experience and Skills Sections */
.experience-list li {
    margin-bottom: 20px;
}

.experience-list li b {
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}

.experience-list .company {
    font-size: 0.95rem;
    color: var(--light-text);
    font-style: italic;
    display: block;
    margin-bottom: 8px;
}

.experience-list ul {
    margin-top: 8px;
    margin-left: 20px;
}

.experience-list ul li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.skills-section p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.skills-section strong {
    color: var(--text-color);
}

/* Service Section */
.service-section h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 16px;
    padding-left: 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.service-list li b {
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}

.service-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-description {
    color: var(--light-text);
    font-size: 0.95rem;
    display: block;
    margin-top: 2px;
    line-height: 1.6;
}

/* Conference Badges */
.conference-badge {
    color: #1a0dab;
    font-weight: 400;
}

.highlight {
    color: #1a0dab;
}

.paper-link {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 5px;
}

.paper-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 0;
    padding: 20px;
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 0 0 8px 8px;
    font-size: 0.95rem;
}

footer a {
    color: #ecf0f1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .container {
        margin: 10px auto;
        padding: 15px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

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

    .profile-info h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .contact-info {
        font-size: 14px;
    }

    main p {
        font-size: 0.95rem;
    }

    ul {
        padding-left: 15px;
    }

    li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
}
