@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0B1C49;
    color: white;
}

.projects {
    width: 100%;
    min-height: 100vh;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background-image: url('../images/background_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 50px 20px;
}

.swiper {
    width: 950px;
}

.card {
    position: relative;
    background: #ffffff10;
    border-radius: 20px;
    height: 460px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid #A0DDFF40;
    color: white;
}

.card-content::after {
    content: '';
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px auto;
    display: block;
}

.card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.card-content::-webkit-scrollbar {
    width: 10px;
}

.card-content::-webkit-scrollbar-track {
    background: #1A1A2E;
    border-radius: 10px;
}

.card-content::-webkit-scrollbar-thumb {
    background-color: #624CAB;
    border-radius: 10px;
    border: 2px solid #1A1A2E;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background-color: #7A6DCD;
}

.card-content {
    scrollbar-width: thin;
    scrollbar-color: #624CAB #1A1A2E;
}

.projectimage {
    height: 180px;
    width: 180px;
    border-radius: 20%;
    margin-top: 10px;
    background: linear-gradient(135deg, #A0DDFF, #2C5EFF);
    padding: 4px;
    box-shadow: 0 0 10px rgba(160, 221, 255, 0.5);
    transition: transform 0.3s ease;
}

.projectimage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20%;
    border: 3px solid white;
}

.projectimage:hover {
    transform: scale(1.05);
}

.imageinfo {
    font-size: 12px;
    font-weight: 500;
}

.projectname {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #A8C7FF;
}

.projectdescription {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    margin-top: 10px;
    line-height: 1.4;
    padding: 0 10px;
    max-width: 90%;
}

.gitbuttonsection {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gitbutton {
    background: #2C5EFF;
    border: none;
    color: #fff;
    padding: 8px 22px;
    border-radius: 10px;
    font-size: 14px;
    transition: #624CAB 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.gitbutton:hover {
    background: #2C5EFF;
}

.swiper-pagination {
    position: absolute;
    bottom: -40px;
}

.swiper-pagination-bullet {
    height: 8px;
    width: 26px;
    border-radius: 25px;
    background: #A8C7FF;
    transition: #624CAB 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #2C5EFF;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
    padding: 20px;
}

.image-modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.image-modal-overlay .close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

@media (max-width: 768px) {
    .swiper {
        width: 100%;
    }

    .card {
        height: auto;
        margin: 10px 0;
    }

    .card-content {
        padding: 20px;
    }

    .projectimage {
        height: 140px;
        width: 140px;
    }

    .projectname {
        font-size: 1.2rem;
    }

    .projectdescription {
        font-size: 0.95rem;
    }

    .gitbutton {
        font-size: 12px;
        padding: 6px 16px;
    }
}

