﻿.projects-section {
    width: 75%;
    margin: -40px auto 0px;
}

.section-title {
    text-align: center;
    font-weight: 700;
    color: #4a1742;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: rgba(255, 245, 250, 0.38);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    width: 30%;
    border-radius: 18px;
    padding: 20px;
    transition: 0.3s;
}

    .project-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(160, 90, 220, 0.22);
    }

.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: #3c096c;
    margin-bottom: 8px;
}

.project-description {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    color: #7a0a40;
    cursor: pointer;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.project-btn {
    display: inline-block;
    background: #b20d57;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

    .project-btn:hover {
        background: #900a48;
    }


.slider-btn{

    display: none;

}

@media (max-width: 768px) {
    .slider-container {
        position: relative;
        width: 100%;
    }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.6);
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        cursor: pointer;
        z-index: 20;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .prev-btn {
        right: 5px;
    }

    .next-btn {
        left: 5px;
    }

    .projects-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0; 
        padding: 0;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }

        .projects-grid::-webkit-scrollbar {
            display: none;
        }

    .project-card {
        flex: 0 0 230px; 
        scroll-snap-align: center;
        margin: 0 20px; 
        box-sizing: border-box;
    }
}



