body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #585858;
    background-image: linear-gradient(139deg,    rgba(36, 40, 50, 1) 0%,    rgba(36, 40, 50, 1) 0%,    rgb(39, 29, 43) 100%);
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 250px;
    background-color: #000000;
    border-color: #9b9b9b;
    color: hsl(0, 0%, 100%);
    padding: 20% 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transform: translateX(0);
    transition: transform 0.3s ease;


}


.sidebar.active {
    transform: translateX(-100%);
}

.name{
    color: #ffffff;
    /* position: fixed; */
    left: 20px;
    /* background-color: #575757; */
    padding: .3em;
    /* border-radius: 10px; */
    
}
.profile {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.profile-btn {
    position: fixed; /* Fix position */
    top: 20px; /* Adjust as needed */
    left: 80px; /* Adjust as needed */
    z-index: 1100; /* Ensure it's above the sidebar */
    cursor: pointer;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 30%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile h1 {
    margin: 0;
    font-size: 1.2em;
}

.nav {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav li {
    margin: 10px 0;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #575757;
}

.content {
    flex: 1;
    margin: auto;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    align-items: center;
}

/* .content-section {
    display: none;
} */

.content-section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
    color: #333;
}

/*update Test*/
.content-section {
    display: none;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 85%;
    margin: auto;
    /* text-align: center; */

}

.content-section p {
    color: #555;
    line-height: 1.6;
}

.content-section .links{
    margin-top: 20px;

}


#about .links a {
    text-decoration: none;
    color: #007bff;
    margin: 0 10px;
    font-weight: bold;
}

#about .links a:hover {
    text-decoration: underline;
}


#CurResearch a {
    text-decoration: none;
    color: #007bff;
    margin: 0 5px;
    font-weight: bold;
}

#CurResearch a:hover {
    text-decoration: underline;
}


/*test*/
#research {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#research h2 {
    margin-top: 0;
    color: #333;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grid-item img, .grid-item video {
    width: 100%;
    height: auto;
    display: block;
}

.grid-item .content {
    padding: 10px;
}

.grid-item .content h3 {
    margin: 0;
    color: #333;
}

.grid-item:hover {
    transform: scale(1.05);
}

section {
    margin: 20px 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.content-section {
    padding: 20px;
    max-width: 1200px; /* Keeps content centered and readable */
    margin: 0 auto;
}
.publication-block {
    width: 90%;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border-left: 5px solid #007BFF; /* Adds a nice left border highlight */
    transition: border-left 0.2s ease-in-out;
}

.publication-block:hover{
    border-left: 25px solid #00b7ff; /* Adds a nice left border highlight */
}
.publication-block.no-hover:hover {
    border-left: 5px solid #007BFF;
    transform: none;
}
.publication-block h3 {
    margin-top: 0;
    font-size: 20px;
}
.publication-block p {
    margin: 5px 0;
    font-size: 16px;
}


/* The scrollable "form/page" container */
.cv {
    max-width: auto;       /* Control the container width */
    max-height: 90vh;       /* Control the container height for scrolling */
    margin: 0 auto;         /* Center horizontally */
    overflow-y: auto;       /* Allow vertical scrolling */
    background-color: #fff; /* White background for the "form" look */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Headings inside the CV container */
    .cv h1 {
    text-align: center;
    margin-bottom: 20px;
    }
    .cv h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.25rem;
    }
    .cv h3 {
    margin-top: .3rem;
    margin-bottom: 0.25rem;
    color: #242424;
    }
    .cv h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: normal;
    font-style: italic;
    color: #333333;
    }
    .cv h5 {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        font-weight: normal;
        font-style: italic;
        color: #5f5f5f;
    }

/* Paragraph/description text inside sections */
.cv section {
margin-bottom: 1.5rem;
line-height: 1.4;
}

/* Paragraph/description text inside sections */
.cv section {
    margin-bottom: 1.5rem;
    line-height: 1.4;
    }

    /* Skills Section */
    .skills-category {
    margin-bottom: 1rem;
    }

    .skills-category h4 {
    margin-bottom: 0.5rem;
    font-weight: normal;
    font-style: italic;
    color: #666;
    }

    .skills-list {
    list-style: none;
    display: flex;           /* Display items in a row (horizontally) */
    flex-wrap: wrap;         /* Wrap to next line if they don't fit */
    gap: 10px;               /* Space between each skill item */
    margin: 0;
    padding: 0;
    }

    .skills-list li {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .name{
        color: #ffffff;
        position: relative;
        left: 25%;  
        width: 100%;    
    }
    .content.slide-up {
        transition: transform 0.3s ease;
        transform: translateY(-150px); /* Adjust value to control how much it slides up */
    }
    .container {
        transition: transform 0.3s ease; /* Smooth transition for slide effects */
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .content {
        padding: 10px;
    }
    .profile-btn {
        left: 20px;
    }
}



@media (max-width: 480px) {
    .name{
        color: #ffffff;
        position: relative;
        left: 25%;  
        width: 100%;    
    }
    .profile-img {
        width: 80px;
        height: 80px;
    }

    .profile h1 {
        font-size: 1em;
    }

    .nav a {
        font-size: 1em;
        padding: 6px;
    }
    .profile-btn {
        left: 10px;
    }
}

#mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1200;
    background: #222;
    color: #fff;
    border: 2px solid #00b7ff; /* Add a bright border for visibility */
    border-radius: 24px;
    width: 64px;
    height: 32px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    padding: 0 6px;
    transition: background 0.3s;
}
#mode-toggle.day {
    background: #e0e0e0;
    color: #222;
    border: 2px solid #ffb700; /* Yellow border for day mode */
}
#mode-toggle .slider {
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 50%;
    position: absolute;
    left: 0px;
    top: 0px;
    transition: left 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 1.1em;
}
#mode-toggle.day .slider {
    left: 32px;
    background: #ffe066;
    color: #b8860b;
    border: 1.5px solid #ffe066;
}
#mode-toggle .icon {
    flex: 1;
    text-align: center;
    z-index: 1;
    font-size: 1.1em;
}






