body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #212121;
}

#logo {
    padding-left: 20px;
    max-height: 50px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #FF0000;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

nav a:hover {
    text-decoration: underline;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
}

#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px;
}

.project-thumbnail {
    width: calc(100% / 4 - 20px);
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
}

.project-thumbnail h2 {
    bottom: 40px;
    position: relative;
    font-size: 20px ;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .project-thumbnail {
        width: calc(100% / 3 - 20px);
    }
}

@media screen and (max-width: 900px) {
    .project-thumbnail {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {
    .project-thumbnail {
        width: 100%;
    }
}

.carousel {
    max-height: 60vh;
    position: relative;
    max-height: 80vh;
    max-width: 80%;
    margin: 0 auto;
    height: 100%; /* 66.66% 2/3 of the modal-dialog */
    overflow: hidden;
}
.carousel-inner{
    width: 100%;
    aspect-ratio: 0.6;
}

#projectDetails {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    height: 20%; /* 33.33% 1/3 of the modal-dialog */
    overflow: auto;
}
#projectDetails a{
    color: #2ee0fd;
}

.modal-dialog {
    height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin-top: 5rem;
}




.carousel img {
    object-fit: contain;
    max-height: 80vh;
}