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

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem 0;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-white) 100%);
}

.hero-header {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    flex: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.affiliation {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.about-bio {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-bio p {
    margin-bottom: 1rem;
    text-align: justify;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-links a:hover .social-icon {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.section-gray {
    background-color: var(--bg-gray);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* Publications */
.publications-grid {
    display: grid;
    gap: 1rem;
}

.publication-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.publication-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.publication-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.publication-authors {
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.publication-venue {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.publication-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
}

.publication-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.award-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
    transition: all 0.2s;
}

.award-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.timeline-description {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.award-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.2s;
}

.award-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.award-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.award-icon img {
    width: 100%;
    height: 100%;
}

.award-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.award-awarder {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.award-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.award-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About */
.about-wrapper {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.about-content {
    flex: 1;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body pre {
    background-color: var(--bg-gray);
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .hero-header {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .hero-photo img {
        width: 200px;
        height: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .social-links {
        justify-content: center;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

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

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-white: #1f2937;
        --bg-gray: #111827;
        --border-color: #374151;
    }

    .navbar,
    .publication-card,
    .award-card {
        background: #1f2937;
    }

    .timeline-item::before {
        border-color: var(--bg-white);
    }
}
