/* --- Technology Section --- */
#technology {
    position: relative;
    padding: 80px 10%;
    text-align: center;
    color: white;
    overflow: hidden;
}

#technology .bg-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 0;
}

.bg-img {
    background-size: cover;
    background-position: center;
    filter: brightness(0.35); /* dimming */
}

/* foreground content stays above images */
#technology h2,
#technology p,
#technology .features {
    position: relative;
    z-index: 2;
}

/* subtle overlay to unify the background */
#technology::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* keep existing feature block styling */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background-color: rgba(0, 0, 0, 0.12);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.50);
}

.molecules {
    background-image: url("/static/images/molecules.png");
}

.graphene {
    background-image: url("/static/images/graphene.png");
}

.processor {
    background-image: url("/static/images/processor.png");
}

    @media (max-width: 900px) {
        #technology .bg-strip {
            grid-template-columns: 1fr;
            grid-auto-rows: 1fr;      /* creates as many rows as needed */
        }

        #technology .bg-img {
            width: 100%;
            height: 100%;
        }
    }