:root {
    --bg-color: #0b1622;
    --card-bg: #1a2a3a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #14b8a6; /* Teal */
    --accent-hover: #2dd4bf;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 22, 34, 0.9);
    position: sticky;
    top: 0;
}
nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}
nav a:hover { color: var(--accent); }

/* Container */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Profile Photo */
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    object-position: 50% 10%;
    margin-bottom: 20px;
    margin-top: 40px; 
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
	/*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap: 20px;
}

.topic-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.topic-box:hover { transform: translateY(-5px); border: 1px solid var(--accent); }

.topic-box img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    /*object-fit: cover;*/
	object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* Email Protection */
.email-link::after { content: attr(data-domain); }
.email-link::before { content: attr(data-user) "\0040"; }

/* Publications List */
.pub-list {
    list-style: none;
    padding: 0;
}

.pub-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-hover);
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* External Link Buttons */
.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--text-secondary);
}

.ext-btn {
    padding: 10px 15px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ext-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
}

/* Career List Styling */
.career-list {
    list-style: none;
    padding: 0;
}
.career-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--card-bg);
}
.career-list li strong {
    color: var(--accent);
    display: inline-block;
    width: 120px; /* Aligns the dates */
}

/* Collaboration Tags */
.collab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.collab-tags span {
    background: var(--card-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    color: var(--text-primary);
}

/* Responsive adjustment for dates */
@media (max-width: 600px) {
    .career-list li strong {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
}

/* Publication Interactivity */
.pub-item {
    transition: background-color 0.3s ease;
}

.pub-item:hover {
    background-color: #233549; /* Slightly lighter than card-bg */
}

.pub-title {
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 5px;
}

.pub-title:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* Badge and News Styling */
.badge {
    background: #f59e0b;
    color: #0b1622;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

.news-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    font-style: italic;
}

.news-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.section-title {
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* Gallery Layout */
.gallery-container { padding: 40px 20px; }

.gallery-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

/* Alternate order for even blocks */
.gallery-block:nth-child(even) { flex-direction: row-reverse; }

.gallery-text { flex: 1.3; }
.gallery-text h2 { 
    color: var(--accent); 
    font-size: 1.8rem; 
    margin-bottom: 20px;
    position: relative;
}
.gallery-text h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.gallery-img { flex: 1; text-align: center; }
.gallery-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid var(--card-bg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.gallery-img img:hover { transform: translateY(-5px); }

.fig-caption {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-style: italic;
}
.fig-caption:hover { color: var(--accent); text-decoration: underline; }

/* Mobile View */
@media (max-width: 900px) {
    .gallery-block, .gallery-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .gallery-text h2::after { margin: 10px auto; }
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-block, .gallery-block:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
	.research-grid {
		grid-template-columns: 1fr;
	}
}

/* Style for links without a specific class */
.custom-link {
    color: #38bdf8; /* A bright, readable sky blue */
    text-decoration: underline;
    transition: color 0.2s;
}

/* Keeps the link from turning purple after being clicked */
.custom-link:visited {
    color: #38bdf8; 
}

/* Hover effect for plain links */
.custom-link:hover {
    color: var(--accent-hover);
    text-decoration: none;
}
