body {
    font-family: 'Helvetica', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.header-content h1 {
    margin: 0;
    font-size: 2.5rem;
    animation: subtleGlow 5s infinite ease-in-out;
}

.header-content p {
    margin: 0;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 0;
    animation: fadeIn 1s ease-in-out;
}

#about {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-pic {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    order: 1; /* This puts the image to the left */
}

#about p {
    flex: 1;
    order: 2; /* This puts the text to the right */
    min-width: 300px;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Modal styles for enlarged image */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Slightly more transparent */
    /* backdrop-filter: blur(5px); */ /* Removed blur effect */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%; /* Smaller max-width */
    max-height: 80%; /* Smaller max-height */
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
}

section ul {
    padding-left: 0;
}

section > ul > li {
    list-style-type: none;
    margin-bottom: 1.5em;
}

section ul ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 0.5em;
}

section ul ul li {
    margin-bottom: 0.5em;
}

.cv-container {
    text-align: center;
}

.btn {
    display: inline-block;
    background: none;
    color: #333;
    padding: 0;
    text-decoration: none;
    border-radius: 0;
    margin-top: 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: none;
    color: #000;
}

.btn::before {
    content: '[';
    margin-right: 5px;
}

.btn::after {
    content: ']';
    margin-left: 5px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleGlow {
    0% {
        text-shadow: 0 0 1px rgba(51, 51, 51, 0.1);
    }
    50% {
        text-shadow: 0 0 4px rgba(51, 51, 51, 0.3);
    }
    100% {
        text-shadow: 0 0 1px rgba(51, 51, 51, 0.1);
    }
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Helvetica', Arial, sans-serif;
}

/* Publication List Styles */
#papers-list, #presentations-list, #teaching-list {
    padding: 2rem 0;
}

#papers-list h2, #presentations-list h2, #teaching-list h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.publication-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publication-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication-list .year {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
    width: 60px;
}

.publication-list .publication-details {
    flex-grow: 1;
}

.publication-list .publication-details .title {
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.publication-list .publication-details .journal {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for publication lists */
@media (max-width: 768px) {
    .publication-list li {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .publication-list .year {
        width: auto;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    #papers-list h2, #presentations-list h2, #teaching-list h2 {
        font-size: 2rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    #about {
        flex-direction: row; /* Keep horizontal layout */
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .profile-pic {
        width: 150px;
        height: 190px;
        order: 1; /* Keep image on the left */
    }
    
    #about p {
        order: 2; /* Keep text on the right */
        min-width: 200px;
    }
    
    main {
        padding: 1rem 0;
    }
    
    footer {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 0 5px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 0;
    }
    
    #about {
        flex-direction: row; /* Keep horizontal layout even on very small screens */
        gap: 10px;
    }
    
    .profile-pic {
        width: 120px;
        height: 150px;
        order: 1; /* Keep image on the left */
    }
    
    #about p {
        order: 2; /* Keep text on the right */
        min-width: 150px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 0.5rem 0;
    }
    
    .close {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }
} 

/* Contact Page Styles */
#contact-info {
    padding: 2rem 0;
    text-align: center;
}

#contact-info h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-details p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #ddd;
    transition: border-bottom-color 0.2s ease;
}

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

/* About Page Styles */
#about {
    padding: 2rem 0;
}

#about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.about-content {
    display: flex;
    align-items: stretch; /* This is the key change */
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-pic-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns image to the top */
    flex-basis: 220px; /* Sets a base width */
    flex-shrink: 0;
}

.profile-pic {
    width: 100%; /* Fill the container's width */
    height: 100%; /* Fill the container's height */
    object-fit: cover; /* This is important */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    #about h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        gap: 1rem;
    }
    
    #about h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
} 