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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 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.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 4rem;
}

/* Link styling in content areas */
.about-content a,
.publication-item a,
.patent-item a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.about-content a:hover,
.publication-item a:hover,
.patent-item a:hover {
    border-bottom-color: var(--primary-color);
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

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

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.bio {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 800px;
}

/* Quick Links in Hero */
.quick-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    background-color: var(--bg-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.quick-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.icon-quick {
    width: 20px;
    height: 20px;
}

/* About Details Section */
.about-details {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.about-details .container {
    max-width: 1000px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-content:last-child {
    margin-bottom: 0;
}

.about-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.002em;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-content em {
    font-style: italic;
}

/* Profiles Section */
.profiles {
    padding: 5rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.profiles h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.profile-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.profile-card:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-card .icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.profile-card:hover .icon {
    transform: scale(1.1);
}

.profile-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Resume Section */
.resume-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.resume-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.icon-small {
    width: 20px;
    height: 20px;
}

/* Page Header */
.page-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scholar-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.scholar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.resume-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-section .container {
    max-width: 1000px;
}

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pdf-viewer iframe {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
}

.pdf-fallback {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
}

.pdf-fallback a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.year-divider {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--primary-color);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.year-divider:first-child {
    margin-top: 0;
}

.publication-item {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.publication-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.publication-authors {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.publication-venue {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.publication-abstract {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

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

.award-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid #fbbf24;
}

/* Patents */
.patent-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.patent-item {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.patent-item:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.patent-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.patent-number {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.patent-inventors {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.patent-date {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.patent-abstract {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

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

.btn-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 41, 55, 0.65);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    z-index: 50;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

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

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

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

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

    .tagline {
        font-size: 1.25rem;
    }

    .bio {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .profile-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .publication-item,
    .patent-item {
        padding: 1.5rem;
    }

    .publication-title,
    .patent-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .profiles h2,
    .resume-section h2 {
        font-size: 1.5rem;
    }

    .profile-links {
        grid-template-columns: 1fr;
    }
}
