#projects {
    width: 100%;
    /* height: calc(100vh - 50px); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Marquee Container */
.marquee {
    width: 100%;
    margin-bottom: 3rem;
}
  
/* Content to Scroll */
.marquee-content {
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-top: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}


.marquee-content div {
    width: 220px; /* this should be increased if the text wraps to the next line */
    object-fit: contain;
    height: calc(100px - 20px); 
    object-fit: contain; /* Maintain aspect ratio */
    position: absolute;
    left: calc(220px * 15); /* Increased space between images it has to match the width value */
    animation-name: scrollleft;
    animation-duration: 25s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    text-align: center;
    padding: 10px;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marquee-item p {
    margin: 0;
    font-size: 0.75rem;
    text-align: center;
}

@keyframes scrollleft {
    to {
        left: -120px;
    }
}

.item1 {
    animation-delay: calc(25s / 14 * (14 - 1) * -1);
}

.item2 {
    animation-delay: calc(25s / 14 * (14 - 2) * -1);
}

.item3 {
    animation-delay: calc(25s / 14 * (14 - 3) * -1);
}

.item4 {
    animation-delay: calc(25s / 14 * (14 - 4) * -1);
}

.item5 {
    animation-delay: calc(25s / 14 * (14 - 5) * -1);
}

.item6 {
    animation-delay: calc(25s / 14 * (14 - 6) * -1);
}

.item7 {
    animation-delay: calc(25s / 14 * (14 - 7) * -1);
}

.item8 {
    animation-delay: calc(25s / 14 * (14 - 8) * -1);
}

.item9 {
    animation-delay: calc(25s / 14 * (14 - 9) * -1);
}

.item10 {
    animation-delay: calc(25s / 14 * (14 - 10) * -1);
}

.item11 {
    animation-delay: calc(25s / 14 * (14 - 11) * -1);
}

.item12 {
    animation-delay: calc(25s / 14 * (14 - 12) * -1);
}

.item13 {
    animation-delay: calc(25s / 14 * (14 - 13) * -1);
}

.item14 {
    animation-delay: calc(25s / 14 * (14 - 14) * -1);
}

/* .item15 {
    animation-delay: calc(15s / 14 * (14 - 15) * -1);
} */

/* .img16 {
    animation-delay: calc(15s / 16 * (16 - 16) * -1);
} */


/* Interests Styling */

@keyframes scrollleftinterests {
    to {
        left: -520px; /* Increased space between images */
    }
}

.custom-width {
    width: 700px;
}

.marquee-content li {
    width: 220px; /* this should be increased if the text wraps to the next line */
    object-fit: contain;
    height: 100px; 
    object-fit: contain; /* Maintain aspect ratio */
    position: absolute;
    left: calc(220px * 4); /* Increased space between images it has to match the width value */
    animation-name: scrollleftinterests;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.list1 {
    animation-delay: calc(15s / 4 * (4 - 1) * -1);
}

.list2 {
    animation-delay: calc(15s / 4 * (4 - 2) * -1);
}

.list3 {
    animation-delay: calc(15s / 4 * (4 - 3) * -1);
}

.list4 {
    animation-delay: calc(15s / 4 * (4 - 4) * -1);
}



.project {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.project-image {
    width: 300px; /* Fixed width */
    height: 200px; /* Fixed height */
    border-radius: 8px;
    object-fit: cover; /* Ensure the image covers the area */
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

.project-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    /* color: white; */
    /* background-color: #007bff; */
    transition: background-color 0.3s ease;
}

/* .project-button:hover {
    background-color: #0056b3;
}

.project-button.live {
    background-color: #28a745;
}

.project-button.live:hover {
    background-color: #218838;
} */

@media (max-width: 768px) {
    .project {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-info {
        margin-top: 1rem;
    }

    .project-buttons {
        flex-direction: column;
        width: 100%;
    }

    .project-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}