body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    color: #333;
    text-align: center;
}

header {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="password"] {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #388E3C;
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.project-item {
    width: 30%;
    background: #fafafa;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-item p {
    margin-bottom: 10px;
}

.project-item a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
/* Update the header to be wider */
.minimal-header {
    background: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: fixed; /* Fix the header at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh; /* Make it cover the entire viewport height */
    box-sizing: border-box;
    z-index: 1000;
    overflow: hidden; /* Prevent scrolling when header is active */
}

.header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}
.logo {
    font-weight: bold;
    font-size: 24px;
    color: black;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #000;
}

.menu-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    display: none;
}

.menu-icon div {
    width: 100%;
    height: 4px;
    background: #333;
}

.sticky {
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hidden-nav {
    display: none;
}

#menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white; /* Change background to white */
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#menu-overlay ul {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 100px;
}

#menu-overlay ul li {
    margin: 20px 0;
}

#menu-overlay ul li a {
    color: black; /* Default text color */
    font-size: 24px;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

#menu-overlay ul li a:hover {
    color: green; /* Change text color to green on hover for regular items */
}

.contact-btn {
    border: 2px solid black;
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.contact-btn:hover {
    background-color: green; /* Change background to green on hover */
    color: black; /* Keep text color black */
}
#menu-overlay.active {
    right: 0;
}

.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?fit=crop&w=1650&q=80') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?fit=crop&w=1650&q=80') 
                no-repeat center center/cover;
}




.background-research {
    background: url('https://images.unsplash.com/photo-1506702315536-dd8b83e2dcf9?fit=crop&w=1650&q=80') no-repeat center center/cover;
    padding: 60px 20px;
    color: white;
}

.background-publications {
    background: url('https://images.unsplash.com/photo-1529243856184-fd5465488984?fit=crop&w=1650&q=80') no-repeat center center/cover;
    padding: 60px 20px;
    color: white;
}

.background-teaching {
    background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?fit=crop&w=1650&q=80') no-repeat center center/cover;
    padding: 60px 20px;
    color: white;
}

.background-about-me {
    background: url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?fit=crop&w=1650&q=80') no-repeat center center/cover;
    padding: 60px 20px;
    color: white;
}

section {
    background-size: cover;
    background-attachment: fixed;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .menu-icon {
        display: flex;
    }

    nav ul {
        display: none; /* Hide the nav links by default on mobile */
    }

    #menu-overlay ul {
        margin-top: 50px; /* Adjust for better spacing */
    }

    .hero, .background-research, .background-publications, .background-teaching, .background-about-me {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Change from 'fixed' to 'scroll' */
    height: auto;
}


    section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .menu-icon {
        width: 25px;
        height: 18px;
    }

    #menu-overlay ul li {
        margin: 15px 0;
    }

    #menu-overlay ul li a {
        font-size: 20px;
    }
}
