/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --text-secondary: #5a5a5a;
    --accent-color: #222;
    --link-color: #0056b3;
    --link-hover: #003d80;
    --border-color: #e5e5e5;
    --card-bg: #fff;
    --header-bg: #fff;
    --hover-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Cooler, slightly darker Theme override if desired or just sharper styling */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Layout Container */
main,
header,
footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dark Header Option for 'Cool' factor */
header {
    margin-top: 0;
    padding: 4rem 24px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    /* Subtle gradient or keep white */
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
    /* Full width background */
}

/* Constrain content within full width header */
header>div,
header>h1 {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 3rem;
    color: #111;
    letter-spacing: -0.03em;
    margin: 0;
    font-weight: 700;
}

.intro {
    font-size: 1.1rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

.intro a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.intro a:hover {
    color: var(--link-color);
}

.intro-list {
    margin: 0.8rem 0 0 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.intro-list li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.intro-list a {
    font-weight: 500;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    max-width: 1000px;
    margin: 1.5rem auto 0;
}

/* Sections */
section {
    margin: 4rem auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #111;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.project-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.project-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.pub-item {
    padding: 0;
    border-left: 3px solid var(--border-color);
    background: transparent;
    padding-left: 1.5rem;
    transition: border-color 0.2s;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-left: 3px solid #eee;
}

.pub-item:hover {
    border-left-color: #111;
}

.pub-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

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

.pub-authors {
    font-weight: 500;
    color: #333;
}

.pub-year {
    color: #888;
}

.pub-journal {
    font-style: italic;
    color: #555;
}

.pub-abstract {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
    background: #f4f4f4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.pub-abstract summary {
    cursor: pointer;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.3rem;
    outline: none;
}

.pub-abstract summary:hover {
    color: #333;
}

.pub-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-weight: 600;
}

.pub-links a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.view-all-pubs {
    text-align: center;
    margin-top: 3rem;
}

footer {
    border-top: none;
    padding: 4rem 0;
    margin-top: 4rem;
    background: #f9f9f9;
    max-width: 100%;
}

footer p {
    margin: 0;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
}