.carousel-container {
    position: relative;
    width: 90%;
    margin: auto;
    background-color: #ffd6da !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*Skill progress bar*/
/* Responsive Grid */
.skills-container {
    display: grid;
    gap: 20px;
    padding: 3px;
}

/* Large Screens: 4 items per row */
@media (min-width: 800px) {
    .skills-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Screens: 2 items per row */
@media (max-width: 799px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.skill-label {
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    background: #ffd6da;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 20px;
    /*background: linear-gradient(90deg, #007bff, #00c6ff);*/
    background: linear-gradient(90deg, #0066ff, #5c9dff);
    transition: width 2s ease-in-out;
}

/* Styling for desktop */
@media (min-width: 1024px) {
    .carousel-cell {
        width: calc(100% / 3 - 10px); /* Three images visible on desktop */
        margin: 5px 5px; /* Spacing between images */
        height: auto;
        overflow: hidden;
        position: relative;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .carousel-cell img {
        width: 100%;
        height: auto; /* Maintain original landscape orientation */
    }

    .carousel-caption {
        font-size: 14px;
        color: #333;
        text-align: center;
        margin-top: 5px; /* Spacing below the image */
        background-color: rgba(0, 0, 0, 0.1);
        padding: 5px 10px;
        border-radius: 5px;
        position: static; /* Caption below the image for desktop */
    }
}

/* Styling for mobile */
@media (max-width: 1023px) {
    .carousel-cell {
        width: 100%; /* One image per slide on mobile */
        margin: 0;
        height: 250px; /* Adjust height for smaller screens */
        overflow: hidden;
        position: relative;
    }

    .carousel-cell img {
        width: 100%;
        height: auto; /* Maintain original landscape orientation */
    }

    .carousel-caption {
        font-size: 12px;
        color: white;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 5px 10px;
        border-radius: 5px;
        position: absolute; /* Overlay on the image for mobile */
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007BFF;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.carousel-button i {
    font-size: 20px;
    color: white;
}

.carousel-button:hover {
    background-color: #0056b3;
}
