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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #1e5a8e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}





.nav-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.nav-menu a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: var(--white);
    color: var(--text-color);
    padding: 5rem 0 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-weight: 400;
}

.bio {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about {
    background-color: var(--white);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* CV Download Button */
.cv-download {
    margin-top: 2rem;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 90, 142, 0.2);
}

.cv-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 90, 142, 0.3);
}

.cv-button i {
    font-size: 1rem;
}

/* Interests and Education Section */
.interests-education {
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.column h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#interests-list {
    list-style: none;
    padding: 0;
}

#interests-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    color: #555;
}

#interests-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.education-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.education-degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.education-institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.education-date {
    color: #666;
    font-size: 0.95rem;
}

/* My Research Section */
.my-research {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

#research-overview p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Recent Publications */
.recent-publications {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.publication-item-home {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.publication-item-home:last-child {
    border-bottom: none;
}

.publication-link-home {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.publication-link-home .publication-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--text-color);
    transition: all 0.5s ease;
    transform-origin: left center;
}

.publication-link-home:hover .publication-text {
    color: #000;
    transform: scale(1.01);
}

.btn-link-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-link-small:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.view-all-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 3rem 0 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Publications */
.publications {
    background-color: var(--white);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.publication-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.paper-title {
    font-style: italic;
    text-decoration: underline;
}

.authors {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.authors strong {
    color: var(--secondary-color);
}

.venue {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.abstract {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.paper-links {
    display: flex;
    gap: 1rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    border: 1px solid #666;
    transition: all 0.3s;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-link i {
    font-size: 0.95rem;
}

.btn-link:hover {
    background-color: #333;
    color: var(--white);
    border-color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#citation-text {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.copy-message {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    min-height: 20px;
}

/* Publication Detail Page */
.publication-detail {
    padding: 3rem 0;
}

.back-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

.publication-detail h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pub-meta {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.pub-separator {
    margin: 0 0.5rem;
}

.pub-venue {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pub-type-badge {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: #666;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pub-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pub-section {
    margin-top: 2rem;
}

.pub-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pub-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Authors Section */
.authors-heading {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.author-card {
    display: flex;
    gap: 1rem;
    padding: 0;
    border: none;
    background-color: transparent;
    max-width: 350px;
}

.author-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.author-title {
    margin: 0 0 0.3rem 0;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

.author-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.author-links a {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.author-links a:hover {
    color: var(--secondary-color);
}

/* Blog Styles */
.blog-list {
    background-color: var(--white);
    padding: 4rem 0;
}

.blog-card {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.5s ease;
}

.blog-card-content {
    padding: 0;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.5s ease;
    transform-origin: left center;
}

.blog-link:hover h2 {
    color: #000;
    transform: scale(1.01);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-separator {
    color: #999;
}

.blog-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background-color: #666;
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Blog Post Page */
.blog-post {
    padding: 3rem 0;
}

.blog-post-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.blog-post-meta i {
    margin-right: 0.5rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    max-width: 800px;
}

.blog-post-body h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.blog-post-body h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 1.8rem 0 1rem 0;
}

.blog-post-body h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem 0;
}

.blog-post-body p {
    margin-bottom: 1.2rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body strong {
    font-weight: 600;
    color: var(--primary-color);
}

.blog-post-body a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-body a:hover {
    color: var(--primary-color);
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    display: block;
}

.blog-post-body code {
    background-color: #f6f8fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    color: #d63384;
    border: 1px solid #e0e0e0;
}

.blog-post-body pre {
    background-color: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
}

.blog-post-body pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    font-size: 0.9em;
    line-height: 1.6;
    display: block;
}

.blog-post-body pre code.hljs {
    background-color: transparent;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
    background-color: var(--light-gray);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-post-body table th,
.blog-post-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.blog-post-body table th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
}

.blog-post-body table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.blog-post-body hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
}

.publication-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.publication-link {
    position: relative;
}

.publication-link::before {
    content: "\f0c1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    color: var(--secondary-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.publication-link:hover::before {
    opacity: 1;
}

.publication-link .publication-text {
    transition: all 0.5s ease;
    transform-origin: left center;
}

.publication-link:hover .publication-text {
    color: #000;
    transform: scale(1.01);
}

.publication-item {
    padding: 2rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

/* Timeline */
.timeline-section {
    background-color: var(--white);
}

.timeline-section h2 {
    margin-top: 3rem;
}

.timeline-section h2:first-of-type {
    margin-top: 0;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title-with-icon i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.timeline {
    position: relative;
    padding: 0.5rem 0;
    margin-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -5px;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--white);
}

.timeline-content {
    background: transparent;
    padding: 0;
}

.timeline-date {
    display: inline-block;
    color: #666;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin: 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.timeline-content p {
    line-height: 1.6;
    margin-top: 0.3rem;
    color: #555;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--white);
    color: #666;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-brand {
        display: none;
    }

    .navbar .container {
        justify-content: center;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        margin-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}