/* Global styles */
:root {
    --primary: purple;
    --dark: #333;
    --light: #f5f5f5;
    --gray: #666;
    --border: #ddd;
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

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

a:hover {
    color: #5a0b8d;
}

img {
    max-width: 100%;
}

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

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

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

.name-corner {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Updated Navigation */
.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-text {
    font-size: 1rem;
    font-weight: 600;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

nav.active {
    display: block;
}

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

nav ul li {
    margin: 0;
    width: 100%;
}

nav ul li a {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

nav ul li:last-child a {
    border-bottom: none;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a::after {
    display: none;
}

/* Sections */
.section {
    padding: 80px 0;
}

#about {
    padding-top: 0;
}

.section:nth-child(odd) {
    background-color: var(--light);
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.profile-image {
    flex: 1;
    min-width: 250px;
    max-width: 330px;
    margin: 0 auto;
}

.profile-image img {
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.education-summary {
    margin-top: 20px;
    text-align: center;
    background-color: #f9f4ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.education-summary h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.education-summary p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
}

.github-highlight {
    background-color: #f0e6fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.award-highlight {
    background-color: rgba(128, 0, 128, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.award-highlight i {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--primary);
}

.award-highlight a {
    font-weight: 600;
}

.github-highlight i {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--primary);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 20px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
}

.project-date {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.project-award {
    margin-top: 15px;
    color: #d4af37; /* Gold color for awards */
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.project-links a:hover {
    background-color: #5a0b8d;
}

/* Publications Section */
.publication-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.publication-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.publication-item .authors {
    font-weight: bold;
    margin-bottom: 5px;
}

.publication-item .journal {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 15px;
}

.publication-item a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.publication-item a:hover {
    background-color: #5a0b8d;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: purple;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Mobile Menu Toggle - not needed anymore */
.mobile-menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        padding: 0 20px;
    }
    
    /* No need for special mobile menu handling since we're using the same dropdown for all screen sizes */
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        max-width: 250px;
    }
    
    .profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .github-highlight, .award-highlight {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .github-highlight i, .award-highlight i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
        gap: 25px;
        margin-top: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card, .publication-item {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .publication-item h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 25px;
    }
    
    .education-summary {
        padding: 15px;
        margin-top: 15px;
        width: 100%;
    }
    
    .education-summary h3 {
        font-size: 1.2rem;
    }
    
    .education-summary p {
        font-size: 0.9rem;
    }
    
    /* Improve banner for mobile */
    .phd-banner {
        height: auto;
        min-height: 250px;
        padding: 30px 0;
    }
    
    .banner-content {
        padding: 0 30px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-text {
        font-size: 1rem;
    }
    
    /* Better touch targets for mobile */
    .project-links a, .publication-item a, .contact-item a {
        padding: 10px 16px;
        display: inline-block;
    }
    
    /* Improve spacing in contact section */
    .contact-item {
        width: 100%;
        padding: 0 20px;
    }
    
    .contact-item i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .name-corner {
        font-size: 1rem;
    }
    
    .profile-image {
        max-width: 180px;
    }
    
    .profile-image img {
        width: 160px;
        height: 160px;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .education-item h3, .project-card h3 {
        font-size: 1.2rem;
    }
    
    .github-highlight, .award-highlight {
        padding: 12px;
    }
    
    .project-card, .publication-item {
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    /* Smaller banner for very small screens */
    .phd-banner {
        min-height: 200px;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    /* More compact footer for small screens */
    footer {
        padding: 15px 0;
        font-size: 0.9rem;
    }
}

/* Add this to the existing CSS */
.highlight-link {
    border: 2px solid white;
    border-radius: 4px;
    padding: 5px 12px !important;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s, transform 0.2s;
}

.highlight-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.highlight-link::after {
    display: none !important;
}

/* About Section */
.phd-image-section {
    margin-bottom: 40px;
    text-align: center;
}

.image-placeholder {
    background-color: #f0e6fa;
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 80%;
}

.image-note {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.image-prompt {
    background-color: white;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 0 auto 20px;
    max-width: 90%;
    font-size: 1rem;
    text-align: left;
    color: #333;
    border-radius: 5px;
}

.image-instructions {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.phd-hero-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* About Section */
.phd-banner {
    background-image: linear-gradient(rgba(20, 30, 55, 0.8), rgba(20, 30, 55, 0.6)), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 40px;
}

.banner-content {
    padding: 0 80px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.banner-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.banner-divider {
    height: 3px;
    width: 60px;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.banner-text {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 100%;
} 