html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #007bff;
        color: white;
        display: flex;
        flex-direction: row;
        /* Default: Place sections side by side */
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 20px;
        /* Space between the two sections */
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}
header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

header p {
    margin: 5px 0;
    font-size: 1em;
}

header a {
    color: white;
    background: #0056b3;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

header a:hover {
    background: #003d7a;
}
.about .about-text {
    display: block;
    /* Default is visible */
    overflow: hidden;
    max-height: none;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.toggle-btn2 {
    display: none;
    background: transparent;
    color: #007bff;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.toggle-btn2.active {
    transform: rotate(180deg);
}
.project-header{
    flex-direction: column;
}
@media screen and (max-width: 1050px) {
.about .about-text {
        max-height: 0;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .about .about-text.active {
        max-height: 1000px;
        visibility: visible;
        opacity: 1;
    }

    .toggle-btn2 {
        display: inline-block;
    }
    header {
        flex-direction: column;
        text-align: center;
    }

    header .container,
    header .about {
        width: 100%;
        /* Ensure sections span the full width */
        margin-bottom: 20px;
        /* Add spacing between sections */
    }
}

.container {
    width: 40%;
    margin: 0 auto;
    text-align: center;
}

main {
    padding: 20px;
}

.about {
    width: 60%;
    text-align: center;
    margin-bottom: 10px;
}

.about h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about p {
    font-size: 1em;
    text-align: justify;
    margin-bottom: 20px;
    margin-left: 120px;
    margin-right: 120px;
}

.btn {
    color: white;
    background: #0056b3;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #003d7a;
}

.projects, .publications {
    padding: 30px;
    max-width: 1200px;
    text-align: center;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.projects h2, .publications h2 {
    text-align: center;
    font-size: 2em;
    color: #007bff;
    margin-bottom: 20px;
}

.project-list,.project-list2, .publication-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
@media screen and (max-width: 500px) {
    .project-list,.project-list2, .publication-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 20px;
}
}
  #toggle-publications {
      display: none;
  }
@media screen and (max-width: 900px) {

    #toggle-publications {
        display: block;
    }
}
.publication-list{
    text-align: justify;
}
.publication-list li {
    margin: 15px;
}
.project, .publication {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover, .publication:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project h3, .publication strong {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #007bff;
}

.project a, .publication a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project a:hover, .publication a:hover {
    background-color: #0056b3;
}

.toggle-btn {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact {
    text-align: left;
    font-size: 0.9em;
    line-height: 1.8;
}

.contact p {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contact i {
    color: #007bff;
    margin-right: 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.contact a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover,
.contact i:hover {
    color: #0056b3;
}
.contact .label {
    font-weight: bold;
    margin-right: 5px;
    /* Adds space between the label and the value */
}

.contact p {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
    /* Adds space between the icon and the text */
}

.contact a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #0056b3;
}

footer .copyright {
    text-align: center;
    font-size: 0.9em;
    margin-left: auto;
}
.project-list,.project-list2, .publication-list {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.project-list, .project-list2 {
    max-height: 400px; /* Initial height for projects */
}

.publication-list {
    max-height: 400px; /* Initial height for publications */
}
/* Project Card Styling */
.project-card {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 0px;
}

.project-card .project-content {
    text-align: center;
    margin-top: 20px;
}

.project-card h2 {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 15px;
}

.project-card ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    margin: 20px auto;
    display: inline-block;
}

.project-card ul li {
    margin: 5px 0;
    font-size: 1.1em;
}

.project-card p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.btn.back-btn:hover {
    background-color: #0056b3;
}
/* Thumbnail Styling for Project Previews */
.project-thumb {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    margin-bottom: 10px;
}
/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

/* Carousel Images */
.carousel-images {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: white;
    background: rgba(0, 0, 0, 0.282);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1;
    user-select: none;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}
/* Honors and Awards Section */
/* Honors and Awards Section */
.honors-awards {
    padding: 20px 20px;
    background-color: #f4f4f9;
    margin: 30px auto;
    max-width: 1000px;
    text-align: center;
}

.honors-awards h2 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 20px;
}

.award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-icon {
    font-size: calc(1vw + 0.8rem);
    color: #007bff;
    margin-right: 15px;
}
.award-details h3 {
    font-size: calc(1vw + 0.7rem);
    /* font-size: calc(1vw + 1.1rem); */
    color: #333;
    margin-bottom: 5px;
}

.award-details p {
    font-size: calc(1vw + 0.2rem);
    color: #555;
}
.navbar {
    background-color: #007bff;
    /* Blue background */
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    /* Ensure navbar stays on top */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar-list li {
    margin: 10px 15px;
}

.navbar-link {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar-link:hover {
    background-color: #0056b3;
    /* background-color: #beddff; */
    /* Darker blue on hover */
}
body {
    margin-top: 40px;
    /* Adjust for the fixed navbar height */
}
/* Resources Section */
.resources-section {
    background-color: #f4f4f9;
    padding: 30px 20px;
    margin: 40px auto;
    max-width: 1000px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resources-section h2 {
    font-size: 1.5em;
    color: #000102;
    margin-bottom: 20px;
}

.resources-list {
    list-style-type: none;
    padding: 0;
}

.resources-list li {
    margin: 10px 0;
    padding: 5px;
}

.resource-link {
    font-size: 0.7em;
    color: #007bff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 5px;
    background-color: #e7f1ff;
    transition: background-color 0.3s, transform 0.3s ease;
}

.resource-link:hover {
    background-color: #0056b3;
    color: white;
    transform: scale(1.05);
}
/* Button to show the module */
.show-module-ico {
    background-color: #007bff;
    color: white;
    padding: 10px 10px;
    border: none;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-module-ico i {
    font-size: 1.5em;
}

.show-module-ico:hover {
    background-color: #0056b3;
}

/* The module (hidden by default) */
.info-module {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(250, 250, 250);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    z-index: 1000;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

/* Module content */
.info-module-content {
    font-size: 1.2em;
}

.info-module p {
    margin-bottom: 20px;
}

.info-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-button i {
    font-size: 1.5em;
}

.info-button:hover {
    background-color: #0056b3;
}

.close-module-btn {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.close-module-btn:hover {
    background-color: #e60000;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
}

@media screen and (max-width: 1120px) {
    .navbar-link:hover {
            /* background-color: #0056b3; */
            background-color: #beddff;
            /* Darker blue on hover */
        }
    .navbar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            justify-content: left;
        }
    .navbar-list {
        display: none;
        flex-direction: column;
        align-items: center;
        /* Centers the menu items */
        background-color: #ffffffea;
        position: absolute;
        top: 60px;
        /* Adjust for navbar height */
        width: 100vw;
        /* Centers the menu */
        padding: 10px 20px;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: auto;
        /* Adjust the width as needed */
    }
    .navbar-link{
        color: #007bff;
    }
    .navbar-list.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
.certificate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.certificate-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 200px;
    text-align: center;
    display: flex;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: auto;
}

.certificate-card p {
    margin: 8px 0;
    font-size: calc(1vw + 0.05rem);
    font-weight: bold;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal2 {
    display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}
.modal-content2 {
    width: auto;
        max-height: 75vh;
        margin-bottom: 5px;
        border: 2px solid white;
        border-radius: 8px;
}
.modal-caption2 {
    text-align: center;
    color: white;
    font-size: calc(1vw + 0.1rem);
    margin-top: 5px;
}
.close2 {
    position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
}

.close2:hover,
.close2:focus {
    color: #f00;
        text-decoration: none;
        cursor: pointer;
}
iframe {
    border-radius: 15px;
}