.banner img {
    width: 100%;
    height: 70vh;
    color: white;
}

/* Products */
.products-section {
    padding: 40px;
}

/* Heading */
.section-heading {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-align: left;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
    transition: background 0.3s ease;
    padding: 20px;
}

/* Default Background Colors */
.product-card:nth-child(1) {
    background: #008080;
}

.product-card:nth-child(2) {
    background: #D8BFD8;
}

.product-card:nth-child(3) {
    background: #FF8C00;
}

.product-card:nth-child(4) {
    background: #00BFFF;
}

.product-card:nth-child(5) {
    background: #3CB371;
}

.product-card:nth-child(6) {
    background: #A52A2A;
}

.product-card:nth-child(7) {
    background: #FFD700;
}

.product-card:nth-child(8) {
    background: #afafd7;
}

/* Product Name */
.product-name {
    font-size: 2.5rem;
    font-style: oblique;
    font-weight: bold;
    font-variant: small-caps;
    color: black;
    z-index: 2;
    position: relative;
    left: 0;
    transition: left 0.3s ease;
}

/* Product Description (Hidden by Default) */
.product-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, left 0.3s ease;
    color: white;
    margin: 10px 0;
    z-index: 2;
    position: relative;
    left: -20px;
}

/* View Details Button */
.view-details {
    display: inline-block;
    background: #067c3d;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: whitesmoke;
    margin-top: 10px;
    transition: background 0.3s ease, left 0.3s ease;
    z-index: 2;
    position: relative;
    /* left: -20px; */
    border-radius: 10px;
}

.view-details:hover {
    background: #2661a9;
}

/* 🔥 Overlay Effect */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

/* 🔥 Hover Effect: Show Description, Change Background, Add Overlay, Move Text from Left */
.product-card:hover {
    background-size: cover !important;
    background-position: center !important;
    color: whitesmoke;
    cursor: pointer;
    align-items: flex-start;

    .product-name {
        color: whitesmoke;
        font-size: 3rem;
        text-decoration: underline;
    }

    .view-details {
        background: #2661a9;
    }
}

.product-card:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.product-card:hover .product-name {
    left: 0;
}

.product-card:hover .product-desc {
    opacity: 1;
    max-height: 100px;
    left: 0;
}

.product-card:hover .view-details {
    left: 0;
}

/* Responsive Styles */
@media (max-device-width: 768px) {
    .banner img {
        width: 100;
        height: 100%;
        color: white;
    }

    .section-heading {
        font-size: 24px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .product-card {
        background-size: cover !important;
        background-position: center !important;
        color: white;
        pointer-events: none;
        align-items: flex-start;
    }

    .product-card::before {
        background: rgba(0, 0, 0, 0.6);
    }

    .product-name {
        color: whitesmoke;
        font-size: 2.5rem;
        text-decoration: underline;
    }

    .product-desc {
        opacity: 1;
        max-height: 100px;
        left: 0;
    }

    .view-details {
        pointer-events: auto;
        background: #2661a9;
    }

}

/* Responsive Styles */
@media (max-device-width: 1024px) {
    .banner img {
        width: 100;
        height: 100%;
        color: white;
    }
}