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

:root {
    --bg-color: #fafafa;           /* Slightly off-white for depth */
    --card-bg: #ffffff;            /* Pure white for cards */
    --text-primary: #1a1a1a;       /* Darker, sharper text */
    --text-secondary: #555555;     /* Softer secondary text */
    --text-light: #888888;         /* Meta text */
    --accent-color: #0066cc;       /* Vibrant professional blue */
    --border-color: #eaeaea;       /* Subtle borders */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px; /* Slightly narrower for better readability */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Start hidden */
}

/* Stagger animations for sections */
.header { animation-delay: 0.1s; }
.publications { animation-delay: 0.3s; }
.projects { animation-delay: 0.5s; }
.news { animation-delay: 0.7s; }

/* Header / About Section */
.header {
    padding: 100px 0 80px;
    background: var(--bg-color);
}

.profile-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    flex-shrink: 0;
    position: relative;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-info .title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.profile-info .affiliation {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.profile-info .bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: var(--transition-base);
}

.contact-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.contact-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-links a:hover {
    color: var(--accent-color);
}

.contact-links a:hover::after {
    background-color: var(--accent-color);
}


/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

/* Card Styles for Publications & Projects */
.publication, .project {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-base);
}

.publication:hover, .project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pub-title, .project h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.pub-links, .project-links {
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.pub-links a, .project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.pub-links a:hover, .project-links a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* News Section */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
}

.news-list li strong {
    color: var(--text-primary);
    min-width: 100px;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 60px 0 40px;
    }

    .profile-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .contact-links {
        justify-content: center;
    }
    
    .profile-info .bio {
        margin: 0 auto 2rem;
    }
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

