/* 
 * Personal Website CSS
 * A clean, professional design for academic personal websites
 */

/* Base Styles and Reset */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --link-color: #3498db;
    --link-hover-color: #2980b9;
    --background-color: #ffffff;
    --section-background: #f9f9f9;
    --header-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 'Georgia', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header and Navigation */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    font-family: var(--header-font);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Profile Section */
#profile-section {
    padding: 2rem 0;
    background-color: var(--light-color);
}

.profile-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.profile-left {
    flex: 1;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-right {
    flex: 2;
    max-width: 70%;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

#profile-image {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-text {
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.institution {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info {
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.profile-right h2 {
    margin-top: 0;
}

/* Main Content Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--section-background);
}

/* Research Projects */
.research-project {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    gap: 1.5rem;
}

.research-project:last-child {
    border-bottom: none;
}

.research-project h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.research-project-figure {
    flex: 0 0 350px;
    margin-top: 0.5rem;
}

.research-project-figure img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.research-project-content {
    flex: 1;
}

@media (max-width: 768px) {
    .research-project {
        flex-direction: column;
    }
    
    .research-project-figure {
        flex: 0 0 auto;
        margin-bottom: 1rem;
        max-width: 350px;
    }
}

/* Publications */
.publication {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
}

.publication:last-child {
    border-bottom: none;
}

.publication h3 {
    margin-bottom: 0.5rem;
}

.authors {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.venue {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.publication-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.pub-button {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: var(--header-font);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pub-button i {
    margin-right: 0.2rem;
}

.pdf-button {
    background-color: var(--accent-color);
    color: white;
    border: 0.5px solid var(--accent-color);
}

.pdf-button:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

.code-button {
    background-color: var(--primary-color);
    color: white;
    border: 0.5px solid var(--primary-color);
}

.code-button:hover {
    background-color: var(--link-hover-color);
    color: white;
    text-decoration: none;
}

/* CV Section */
.cv-item {
    display: flex;
    margin-bottom: 2rem;
}

.cv-year {
    flex: 0 0 200px;
    font-weight: bold;
}

.cv-content {
    flex: 1;
}

.cv-content h4 {
    margin-bottom: 0.5rem;
}

.cv-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    list-style-position: outside;
}

.cv-content ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-left, .profile-right {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-left {
        margin-bottom: 2rem;
    }
}

/* Fix for container in profile section */
#profile-section .container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cv-item {
        flex-direction: column;
    }
    
    .cv-year {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}
