.section-container {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 24px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.portfolio-carousel {
    width: calc(100% - 50px);
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0 70px;
}

@media (prefers-reduced-motion: no-preference) {
    .portfolio-carousel {
        scroll-behavior: smooth;
    }
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-slide {
    flex: 0 0 550px;
    scroll-snap-align: start;
}

.project-card {
    /* background: #fff; */
    background: linear-gradient(to right, rgb(255 255 255 / 90%), rgb(255 247 232 / 90%));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 20px;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


.project-title {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.project-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    background: rgba(37, 99, 235, 0.9);
    padding: 8px 16px;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: rgba(29, 78, 216, 0.9);
}

.project-content {
    padding: 24px;
    padding-top: 12px;
}

.project-description {
    color: #191c20;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
    margin-top: 0;
}

.read-more-btn {
    display: inline-block;
    background: #00661a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #009926;
}

@media (max-width: 768px) {
    .portfolio-slide {
        flex: 0 0 380px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .project-overlay {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 10px;
    }
}