body {
    padding: 20px;
}
.nav-container {
    align-items: center; 
    background-color: white;
    padding: 2%;
    border-radius: 20px;
    width: 96%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: space-around;
}

.nav-container a {
    text-align: center;
    text-decoration: none; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
    padding: 10px;
    border-radius: 20px;
    color: black;

}

.projects-container {
    align-items: left;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
    border-radius: 10px;
    justify-content: space-between; /* Distributes items with equal space between them */
    gap: 20px;
}

.project-item {
    align-items: center;
    margin-bottom: 10px;
    padding: 2%;
    background-color: #edf0f5;
    border-radius: 10px;
    width: 40%;
}

.project-item h2 {
    padding: 2%;
    background-color: white;
    border-radius: 10px;
}

.project-item img{
    width: 99%;
    border-radius: 10px;
}

.project-item a{
    display: block;
    padding: 1%;
    background-color: white;
    margin-top: 20px;
    text-decoration: none;
    color: black;
    text-align: center;
    font-size: 20px;
}

/* Responsive view for mobile screens */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Remove padding for a clean mobile view */
        margin-left: -10px;
    }

    .nav-container {
        width: 100%; /* Full width for nav container on mobile */
        margin: 0; /* Remove margin */
        border-radius: 0; /* Remove border radius for clean mobile look */
    }

    nav {
        flex-direction: column; /* Stack nav items vertically */
    }

    .nav-container a {
        margin-bottom: 10px; /* Add space between nav items */
    }

    .projects-container {
        flex-direction: column; /* Stack projects vertically */
        padding: 0; /* Remove padding inside the project container */
        width: 100%; /* Full width for project container */
        margin: 0; /* Remove margin */
    }

    .project-item {
        width: 100%; /* Full width for project items */
        padding: 10px; /* Add some padding inside each project */
        margin-bottom: 20px; /* Add space between project items */
    }

    .project-item img {
        width: 100%; /* Make image full width */
    }
}
