:root {

    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

a:hover {
    color: #1a5276;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-image: url('images/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

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

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.contact-links a {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.contact-links a:hover {
    color: var(--secondary-color);
}

nav {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.education-grid,
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.institution,
.company {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.institution span,
.company span {
    color: var(--secondary-color);
    font-weight: 500;
}

.education-item .degree,
.experience-item .role {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-right: 10px;
}

.experience-header h3 {
    margin-bottom: 0;
}

.experience-toggle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.experience-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.experience-content.active {
    max-height: 500px;
}

.experience-item ul {
    margin-top: 15px;
    padding-left: 20px;
}

.experience-item li {
    margin-bottom: 8px;
}

.skills-container {
    margin-top: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 15px; 
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}


.publications-container {
    max-width: fit-content;
    max-height: fit-content;
    margin: 10px auto;
}

.publication-content {
    display: auto;
}

/* When active (toggled), show the content */
.publication-content.active {
    display: block;
}


/* Style for the publication toggle button */
.publication-toggle {
    width: 100%; 
    padding: 15px; 
    background-color: #ffffff;
    color: rgb(0, 0, 0); 
    font-size: 18px; 
    border: none; 
    cursor: pointer; 
    border-radius: 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: transform 0.3s ease;
}

/* Change background color on hover */
.publication-toggle:hover {
    background-color: #b1b1b1; /* Darker green on hover */
}

/* Adjust the chevron icon */
.publication-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease; 
}

/* Rotate the chevron when active */
.publication-toggle.active i {
    transform: rotate(180deg); 
}

.dropdown-content {
    display: none; 
    padding: 15px;
    background-color: #f9f9f9; 
    border-radius: 5px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    margin-top: 10px; 
}

/* Show the content when active */
.dropdown-content.active {
    display: block; 
}

.publication-content.active + .publication-toggle i {
    transform: rotate(180deg);
}

.publication-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

.publication-item .authors {
    font-style: italic;
    margin-bottom: 10px;
}

.publication-item .journal {
    font-weight: 500;
    color: var(--secondary-color);
}

.publication-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.publication-links a {
    padding: 8px 15px;
    background-color: var(--light-bg);
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.publication-links a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.publication-details {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Code samples specific styles - modified to work with your CSS */
#code-samples .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.code-samples-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: 20px;
}

.language-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.language-tab {
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.language-tab:hover {
    background-color: #e9ecef;
}

.language-tab.active {
    background-color: #fff;
    border-bottom: 3px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* Important: These styles control the visibility of tabs */
.code-content {
    display: none;
    padding: 20px;
}

.code-content.active {
    display: block;
}

/* Dropdown menu styles - integrated with your existing dropdown styles */
.dropdown-menu {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.dropdown-item {
    border-bottom: 1px solid #eee;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: white;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.dropdown-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.dropdown-item p {
    color: #666;
    font-size: 0.9em;
}

/* Reuse your existing dropdown-content styles but ensure specificity */
#code-samples .dropdown-content {
    padding: 15px;
    display: none;
    background-color: #f8f9fa;
    margin-top: 0;
}

#code-samples .dropdown-content.active {
    display: block;
}

/* PDF container styles - integrating with your existing styles */
#code-samples .pdf-container {
    width: 100%;
    height: 700px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 30px;
}
.pdf-fallback {
    margin-top: 10px;
    font-size: 14px;
}

canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
}

#pdf-viewer {
    width: 100%;
    height: 700px;
    overflow-y: auto;
    position: relative;
}

.pdf-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-navigation button {
    padding: 5px 10px;
    cursor: pointer;
}

#page-number {
    font-size: 16px;
}

footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 30px 0;
}


@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pdf-container {
        height: 400px;
    }

    img {
        max-width: 90%; 
        margin: 0 auto; 
    }

    .responsive-img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .header-content h2 {
        font-size: 1rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .nav-links li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .pdf-container {
        height: 300px;
    }

    img {
        max-width: 100%; /* Ensure images fit on small screens */
    }
}




