/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #263442;
    --text-color: #333;
    --text-light: #7f8c8d;
    --max-width: 1200px;
}

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

body {
    font-family: Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

p {
    font-size: 1.1rem;
}

ul {
    padding-left: 2rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--accent-color);
}

.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-color);
    font-weight: 300;
}

/* Navigation Styles */
nav {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 3px 5px rgba(1, 0, 0, 0.5);
}

.topnav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 10%;
}

.topnav a {
    color: white;
    font-weight: 500;
    font-size: 1.3rem;
}

.topnav a:hover {
    color: var(--accent-color);
    background-color: var(--light-color);
}

.topnav a:not(.topnave-barsicon) {
    width: 100%;
    padding: 15px 10px;
    text-align: center;
}

.topnav .topnave-barsicon {
    text-align: end;
    padding: 15px 30px;
    display: none;
    align-self: flex-end;
}

/* Section Styles */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 20px;
}

@keyframes highlight {
    from {background-color: rgba(255, 255, 0, 0.8);}
    /* to {background-color: transparent;} */
  }

.section:target {
    animation: highlight 1s ease-out;
}

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

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--dark-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 5px solid var(--light-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.img-subtitle {
    font-size: 1.3rem;
    text-align: center;
    font-weight: bold;
}

.bio {
    flex: 1;
    min-width: 300px;
}

.bio p {
    margin-bottom: 15px;
}

.cv-download {
    margin-top: 20px;
}

/* Research Section */
.research-item {
    margin-bottom: 30px;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.interests li {
    background-color: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Publications Section */
.publication-list ol {
    list-style-type: none;
    counter-reset: publication-counter;
}

.publication-list ol li {
    counter-increment: publication-counter;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.publication-list li div{
    margin-left: 20px;
}

.publication-list .publication-title{
    font-size: 1.2rem;
}
.publication-list .publication-authors{
    font-size: 1rem;
    color: var(--text-light)
}
.publication-list .publication-citation{
    font-size: 1rem;
    color: var(--text-light)
}

.publication-list ol li::before {
    content: counter(publication-counter);
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: none;
}

/* Teaching Section */
.teaching-item {
    margin-bottom: 30px;
}

.teaching-item ul {
    list-style: none;
}

.teaching-item li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.teaching-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.2rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.5rem;
}

.contact-info div {
    display: flex;
    align-items: baseline;
    line-height: 1.2;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 1.2rem;
}
.social-links i {
    font-size: 1.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topnav {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .topnav a:not(.topnave-barsicon) {
        display: none;
        padding: 10px 10px;
    }

    .topnav .topnave-barsicon {
        display: block;
    }

    .topnav.nav-showing a {
        display: block;
    }

    .section {
        scroll-margin-top: 300px;
    }

    .about-content {
        flex-direction: column;
    }
}