﻿#product-banner {
    width: 100%;
    background-image: url("/images/about-banner-img.jfif");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 60vh;
}

    #product-banner .product-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        color: white;
    }

        #product-banner .product-wrapper h1 {
            color: white;
            font-size: 5vw;
        }

        #product-banner .product-wrapper .pervLink {
            border: 4px solid #f76c31;
            padding: 15px;
            font-weight: 600;
            letter-spacing: 1px;
        }

            #product-banner .product-wrapper .pervLink a {
                color: white;
                text-decoration: none;
            }

                #product-banner .product-wrapper .pervLink a:hover {
                    text-decoration: underline;
                }

#services {
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.service-card {
    cursor: pointer;
    position: relative;
    width: 400px;
    height: fit-content;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    flex-direction: column;
}

    .service-card img {
        width: 100%;
        height: 100%;
    
    }

    .service-card h3 {
        color: black;
        font-size: 20px;
        width: 100%;
        z-index: 3;
        text-align: center;
        padding: 20px;
        transition: all 0.5s;
        background-color: white;
        position: relative;
        letter-spacing: 1px;
        font-weight: 500;
    }

        .service-card h3::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background-color: #f76c31;
            z-index: -1;
            transition: all 0.5s;
        }

    .service-card:hover h3::before {
        height: 100%;
    }

    .service-card:hover h3 {
        color: white;
    }

/* Popup Styles */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 80%;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.4s ease-in-out;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .popup-content img {
        width: 50%;
        height: 100%;
        object-fit: cover;
    }

    .popup-content .desc {
        flex: 1;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        color: #333;
        font-family:Quicksand;
        font-size: 15px;
        line-height: 1.6;
    }


    .popup-content .desc span{
        text-align: right;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .popup-content .desc span:hover {
            color: #f76c31;
        }

/* Optional: Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

@media (max-width: 980px) {
    .popup-content {
        flex-direction: column;
    }

        .popup-content img {
            width: 100%;
            height: 300px;
        }
}


    @media (max-width: 600px) {
        .popup-content {
            width: 100%;
            min-height: 80%;
            border-radius: 12px;
        }

            .popup-content img {
                height: 180px;
            }

            .popup-content .desc {
                padding: 16px;
                font-size: 14px;
            }
    }



    @media (max-width: 400px) {

        .popup-content .desc {
            padding: 16px;
            font-size: 12px;
        }
    }