@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    margin: 0; 
    background: #0a0a0a;
    color: #e0e0e0; 
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

/* Subtle star field background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.3;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

nav { 
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2em 0; 
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a { 
    color: #b0b0b0; 
    margin: 0 3em; 
    text-decoration: none; 
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.4s ease;
    padding: 0.5em 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

nav a:hover { 
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #fff;
    font-weight: 500;
}

nav a.active::after {
    width: 100%;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 2em; 
}

section { 
    display: none; 
    padding: 4em 0;
}

section.active { 
    display: block; 
}



h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif;
    color: #fff; 
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
    font-weight: 300;
    margin-bottom: 0.5em;
    text-align: center;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    text-align: center;
    font-weight: 300;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 2.2em;
    margin: 2em 0 0.5em 0;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3em;
}

h4 {
    font-size: 1.4em;
    margin: 1.5em 0 0.5em 0;
    color: #ccc;
    font-weight: 400;
}

/* Hero Section */
.profile-section {
    text-align: center;
    padding: 6em 0;
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 3em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.profile-image:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.profile-text {
    max-width: 800px;
    margin: 0 auto;
}

.profile-text h1 {
    margin-bottom: 1em;
}

.profile-text p {
    margin-bottom: 2em;
    line-height: 1.8;
    font-size: 1.2rem;
    color: #ccc;
    text-align: left;
    font-weight: 300;
}

/* Flowing Content Sections */
.content-flow {
    margin: 4em 0;
}

.content-flow h3 {
    margin-top: 3em;
    margin-bottom: 1em;
}

.content-flow p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
}

/* List Styling */
ul {
    margin: 1em 0;
    padding: 0;
    list-style: none;
}

li {
    margin: 1em 0;
    line-height: 1.7;
    padding: 0;
    color: #ccc;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    padding-left: 2em;
}

li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: 400;
}

li strong {
    color: #fff;
    font-weight: 500;
}

/* Contact Section */
.contact-info {
    text-align: center;
    padding: 4em 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4em;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 1em;
    border-bottom: none;
    padding-bottom: 0;
}

.contact-title {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2em;
    font-weight: 300;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
    margin: 0 auto;
}

.contact-details p {
    margin: 0;
    line-height: 1.6;
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-details strong {
    color: #fff;
    font-weight: 500;
}

.contact-details a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-details a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Science Section Styling */
.science-content {
    max-width: 100%;
}

.science-intro {
    margin-bottom: 4em;
    padding: 0;
}

.science-intro p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 300;
}

.science-box {
    margin: 4em 0;
    padding: 0;
}

.science-box h3 {
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.science-box p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    font-weight: 300;
}

/* CV Section Styling */
.cv-content {
    max-width: 100%;
}

.cv-section {
    margin: 4em 0;
    padding: 0;
}

.cv-section h3 {
    margin-top: 0;
    margin-bottom: 2em;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.cv-item {
    display: flex;
    gap: 3em;
    margin-bottom: 2em;
    padding: 0;
    align-items: flex-start;
}

.cv-date {
    font-weight: 500;
    color: #fff;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: right;
    font-family: 'Playfair Display', serif;
}

.cv-details {
    flex: 1;
}

.cv-details strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3em;
    font-family: 'Playfair Display', serif;
}

.cv-details br + strong {
    margin-top: 1em;
}

.cv-details br {
    line-height: 1.6;
}

.cv-section ul {
    margin: 0;
    padding: 0;
}

.cv-section li {
    background: none;
    border: none;
    padding: 0.5em 0 0.5em 2em;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    font-weight: 300;
}

.cv-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: 400;
}

/* Opportunities Section Styling */
.opportunities-content {
    max-width: 100%;
}

.opportunities-section {
    margin: 4em 0;
    padding: 0;
}

.opportunities-section h3 {
    margin-top: 0;
    margin-bottom: 2em;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.opportunity-item {
    display: flex;
    gap: 3em;
    margin-bottom: 2em;
    padding: 0;
    align-items: flex-start;
}

.opportunity-date {
    font-weight: 500;
    color: #fff;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: right;
    font-family: 'Playfair Display', serif;
}

.opportunity-details {
    flex: 1;
}

.opportunity-details strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3em;
    font-family: 'Playfair Display', serif;
}

.opportunity-details br + strong {
    margin-top: 1em;
}

.opportunity-details br {
    line-height: 1.6;
}

/* Publications Section */
.publications-container {
    max-width: 100%;
}

.publications-header {
    margin-bottom: 4em;
    padding: 0;
    text-align: center;
}

.publications-header p {
    margin: 0;
    line-height: 1.6;
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 300;
}

.ads-link {
    color: #ccc;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.ads-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.publications-list {
    min-height: 400px;
    margin: 4em 0;
}

.loading {
    text-align: center;
    padding: 4em;
    color: #ccc;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 300;
}

.publication-item {
    margin-bottom: 2em;
    padding: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 2em;
    transition: all 0.3s ease;
}

.publication-item:hover {
    border-left-color: rgba(255, 255, 255, 0.5);
}

.publication-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5em;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.publication-authors {
    color: #ccc;
    margin-bottom: 0.5em;
    font-style: italic;
    font-weight: 300;
    font-size: 0.95em;
}

.publication-journal {
    color: #ccc;
    font-weight: 400;
    margin-bottom: 0.5em;
    font-size: 0.95em;
}

.publication-year {
    color: #999;
    font-size: 0.85em;
    font-weight: 300;
}

.publication-links {
    margin-top: 1em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.publication-link {
    padding: 0.5em 1em;
    color: #ccc;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: 300;
}

.publication-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.publications-footer {
    text-align: center;
    margin-top: 4em;
    padding: 4em 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-all-btn {
    display: inline-block;
    padding: 1em 2em;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.publications-filter {
    margin-bottom: 4em;
    padding: 0;
    text-align: center;
}

.publications-filter label {
    display: flex;
    align-items: center;
    gap: 1em;
    color: #ccc;
    font-weight: 400;
    cursor: pointer;
    font-size: 1rem;
    justify-content: center;
}

.publications-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        padding: 4em 0;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 3em;
    }
    
    h2 {
        font-size: 2.2em;
    }
    
    .cv-item {
        flex-direction: column;
        gap: 1em;
    }
    
    .cv-date {
        text-align: left;
        min-width: auto;
    }
    
    .opportunity-item {
        flex-direction: column;
        gap: 1em;
    }
    
    .opportunity-date {
        text-align: left;
        min-width: auto;
    }
    
    .container {
        padding: 0 1em;
    }
    
    nav a {
        margin: 0 1em;
        font-size: 0.8rem;
    }
    
    section {
        padding: 2em 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.pagination button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination span {
    color: #ccc;
    font-size: 0.9rem;
} 