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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

/* Light Theme */
body.light-theme {
    background-color: #e9f3fb;
    color: #1e1e1f;
}

/* Dark Theme */
body.dark-theme {
    background-color: #1e1e1f;
    color: #e9f3fb;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid;
    border-color: inherit;
    color: inherit;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.2s;
}

#theme-toggle:hover {
    opacity: 0.7;
}

/* Navigation */
nav {
    border-bottom: 1px solid;
    border-color: currentColor;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: inherit;
    padding: 1.5rem;
    text-align: center;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 300;
    margin: 0 1rem;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.6;
}

/* Main Content */
main {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 3rem;
}

section {
    margin-bottom: 4rem;
}

h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 0.75rem;
}

p_big {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 0.75rem;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.6;
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.photo-info {
    flex-shrink: 0;
    text-align: center;
}

.profile-photo {
    width: 200px;         /* Increased width for a rectangular feel */
    aspect-ratio: 2 / 3;  /* Sets a standard landscape rectangle */
    border-radius: 5px;   /* Small rounding on corners (optional, but looks modern) */
    object-fit: cover;    /* Prevents stretching */
    /* border: 1px solid currentColor; */
    margin-bottom: 0.5rem;
}

.name {
    font-size: 15px;
    font-weight: 300;
}

.about-text {
    flex: 1;
}

.links {
    margin-top: 1rem;
    font-size: 13px;
}

.links a {
    text-decoration: none;
    margin: 0 0.25rem;
}

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

/* Research Section */
.subsection {
    margin-bottom: 2rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection ul {
    list-style-position: inside;
    font-size: 14px;
    font-weight: 300;
}

.subsection li {
    margin-bottom: 0.5rem;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-header {
    display: flex;
    gap: 30px;           /* Adjust this for the "small space" */
    align-items: baseline; /* Aligns the bottom of the text perfectly */
}

.cv-title {
    font-weight: bold;   /* Optional: makes the degree stand out */
    margin: 0;           /* Removes extra spacing around the text */
}

.cv-date {
    margin: 0;
    color: currentColor;
    opacity: 0.6;
}

.cv-description {
    margin-top: 5px;     /* Space between the title line and the details */
}

/* Page Links */
.page-link {
    font-weight: 300;
    text-decoration: none;
}

.page-link:hover {
    text-decoration: underline;
}

/* Add this at the end of style.css */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px; right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 8px;
    font-weight: 300;
    border-top: 1px solid currentColor;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav a {
        margin: 0 0.5rem;
        font-size: 12px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    main {
        padding: 2rem 1rem;
    }
}
