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

/* Body */
body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Footer */
footer {
    margin-top: 125px;
    bottom: 0;
    background: #2c3e50;
    color: white;
    padding: 0.2rem 0.2rem;
    text-align: center;
    font-size: 12px;
}

/* Header Styles */
header {
    background: #d2e6fa;
    color: rgb(5, 1, 1);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Navigation Menu */
nav {
    width: 100%;
    margin-top: 0rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

nav a {
    color: rgb(5, 1, 1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

.logo {
    font-size: 1.2rem;
    font-weight: normal;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgb(5, 1, 1);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #b0c6af;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-section {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(78, 75, 244, 0.1);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 550px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 2rem 0rem;
    background: #fefefe;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 300px;
    background: #d7e5f3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Work History Timeline Styles */
.work-history {
    padding: 0rem 0;
    background: #f9f9f9;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #2c3e50;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #3498db;
    border: 4px solid #2c3e50;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.left::after {
    right: -14px;
}

.timeline-item.right::after {
    left: -14px;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
}

.timeline-description {
    margin-bottom: 1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #e1f5fe;
    color: #0277bd;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}
.social-links a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    color: #0066cc;
}

/* Custom color for each icon on hover */
.github:hover {
    color: #171515;
}
.linkedin:hover {
    color: #0077b5;
}
.email:hover {
    color: #ea4335;
}
.scholar:hover {
    color: #4285f4;
}
.researchgate:hover {
    color: #00ccbb;
}

/* Research Section Styles */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.software-grid-container {
    max-height: 80vh; /* Limit height to 80% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 0.2rem;
    scroll-behavior: smooth;
}

.software-grid-container::-webkit-scrollbar {
    width: 5px;
}

.software-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.software-grid-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.software-grid-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.software-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

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

.software-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: #e1f5fe;
    color: #0277bd;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.button {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 1rem;
}

.button:hover {
    background: #34495e;
}

.section {
    align-items: center;
    justify-content: center;
    margin: 2rem 0rem;
    max-width: 1200px;
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.code-example {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 1rem 0;
    overflow-x: auto;
}

.doi-link {
    color: #3c7be7;
    text-decoration: none;
}

.doi-link:hover {
    text-decoration: underline;
}

.speaker-card {
    border-left: 4px solid #79bc79;
    padding: 0.2rem 1rem;
    margin: 1rem 1rem;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .research-header h1 {
        font-size: 2rem;
    }

    .tech-stack {
        justify-content: flex-start;
    }

    .project-header h1 {
        font-size: 2rem;
    }
}

/* Project Styles */
.project-details {
    padding: 4rem 0;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-image {
    width: 50%;
    max-width: 800px;
    margin: 0.2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(169, 201, 249, 0.1);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.tech-badge {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-section {
    margin: 3rem 0;
}

.project-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-list {
    list-style-type: none;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-button:hover {
    color: #3498db;
}

.demo-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background 0.3s;
}

.demo-link:hover {
    background: #2980b9;
}

/* Collapse Styles Education */
.education {
    padding: 2rem 0;
    background: #f9f9f9;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.education-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0px;
}

.education-header {
    background-color: #d7e5f3;
    color: rgb(5, 1, 2);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.education-header:hover {
    background-color: #b0c6af;
}

.education-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.education-content {
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 20px;
}

.education-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.section-title {
    font-size: 1.3em;
    font-weight: bold;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.degree {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.degree:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.degree-title {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.university-name {
    color: #34495e;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.years {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.details {
    margin-left: 20px;
    margin-top: 15px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.detail-content {
    color: #666;
    padding-left: 15px;
}

.grades {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.grade-item span:first-child {
    color: #666;
}

.grade-item span:last-child {
    font-weight: bold;
    color: #2c3e50;
}

/* Collapse Styles Speaker */
.speaker {
    padding: 0rem 0;
    background: #f9f9f9;
}

.speaker-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0px;
    margin-bottom: 2rem
}

.speaker-header {
    background-color: #d7e5f3;
    color: rgb(5, 1, 2);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.speaker-header:hover {
    background-color: #b0c6af;
}

.speaker-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.speaker-content {
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 20px;
}

.speaker-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

/* Experience Styles */
.work-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0px;
    margin-bottom: 2rem;
}

.work-header {
    background-color: #d7e5f3;
    color: rgb(5, 1, 2);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.work-header:hover {
    background-color: #b0c6af;
}

.work-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 20px;
}

.work-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.work-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Publication Styles */
.publication-card {
    border-left: 4px solid #3498db;
    padding: 0.2rem 1rem;
    margin: 1rem 1rem;
    background: #f8f9fa;
}

.publication-card h4 {
    color: #2c3e50;
    margin-bottom: 0rem;
}

.publication-card .authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0rem;
}