/* General styles */
:root {
    --background-color: #1a1a1a;
    --text-color: #fff;
    --link-color: #4caf50;
    --card-color: #333;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a, .theme-toggle {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.nav a:hover, .theme-toggle:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile {
    display: flex;
    margin-top: 20px;
}

.profile-img img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.profile-info {
    margin-left: 20px;
}

.profile-info a {
    color: var(--link-color);
    text-decoration: none;
}

.profile-info a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin: 20px 0;
    text-align: center;
}

.social-links a {
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
    color: var(--link-color);
}

/* Publications */
.publications {
    margin-top: 40px;
}

.publication-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--card-color);
    padding: 10px;
    border-radius: 8px;
}

.publication-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.publication-info p {
    margin: 5px 0;
}

.publication-links a {
    margin-right: 10px;
    text-decoration: none;
    color: var(--link-color);
}

.publication-links a:hover {
    text-decoration: underline;
}

/* Light Mode */
.light-theme {
    --background-color: #f4f4f4;
    --text-color: #000;
    --link-color: #007acc;
    --card-color: #e0e0e0;
}
/* General styles */
:root {
    --background-color: #1a1a1a;
    --text-color: #fff;
    --link-color: #4caf50;
    --card-color: #333;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 75%;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a, .theme-toggle {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.nav a:hover, .theme-toggle:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile {
    display: flex;
    margin-top: 20px;
}

.profile-img img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.profile-info {
    margin-left: 20px;
}

.profile-info a {
    color: var(--link-color);
    text-decoration: none;
}

.profile-info a:hover {
    text-decoration: underline;
}

/* Profile Image and Social Links */
.profile-img-and-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

/* Social Links */
/* Social Links under Image */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links a {
    font-size: 16px;
    text-decoration: none;
    color: var(--link-color);
}

.social-links a:hover {
    text-decoration: underline;
}

/* Publications */
.publications {
    margin-top: 40px;
}

.publication-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--card-color);
    padding: 10px;
    border-radius: 8px;
}

.publication-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.publication-info p {
    margin: 5px 0;
}

.publication-links a {
    margin-right: 10px;
    text-decoration: none;
    color: var(--link-color);
}

.publication-links a:hover {
    text-decoration: underline;
}

/* Light Mode */
.light-theme {
    --background-color: #f4f4f4;
    --text-color: #000;
    --link-color: #007acc;
    --card-color: #e0e0e0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button-like link */
.btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

/* Optional: hover/focus states */
.btn:hover,
.btn:focus {
  text-decoration: none;
  filter: brightness(0.9);
  outline: none;
}

.theme-toggle { /* keep your existing styles if any */ }

.publication-item {
    display: grid;
    grid-template-columns: 220px 1fr; /* default: with image */
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

/* if no image → collapse to single column */
.publication-item:not(:has(.publication-figure)) {
    grid-template-columns: 1fr;
}


/* Figure box */
.publication-figure {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;              /* gives white matte around image on dark theme */
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    aspect-ratio: 4 / 3;           /* consistent thumbnail shape */
}

/* Image sizing (no squish) */
.publication-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;             /* or 'contain' if you want full figure visible */
    display: block;
    transition: transform 0.2s ease;
}
.publication-figure img:hover { transform: scale(1.03); }

/* Text column */
.publication-info { align-self: center; } /* centers text vertically relative to image */

/* Links (optional cleanup) */
.publication-links a {
    margin-right: 14px;
    text-decoration: none;
}

/* Mobile: stack image above text */
@media (max-width: 700px) {
    .publication-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .publication-info { align-self: start; }
}