@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Rubik", serif;
    background-color: #f4f4f4;
    margin-top: 110px;
}


.hero-section {
    background-size: cover;
    background-position: top;
    height: 55%; /* Adjusted for better responsiveness */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 20px;
}

/* Adding the black transparent overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 55%;
    background: rgba(0, 0, 0, 0.5); /* Adjust transparency */
    z-index: 1;
}

/* Ensuring text appears above the overlay */
.hero-section h1 {
    position: relative;
    z-index: 2;
}

.products {
    padding: 5% 10%;;
}

.img1 {
    display: flex;
    justify-content: space-between; /* Ensures even spacing */
    gap: 2%; /* Adds spacing between images */
    padding-bottom: 2%;
}

.img2 {
    display: flex;
    justify-content: space-between; /* Ensures even spacing */
    gap: 2%; /* Adds spacing between images */
    padding-bottom: 2%;
    align-items: flex-end; /* Aligns images properly */
    margin-top: -8%;
}

.img3 {
    display: flex;
    justify-content: space-between; /* Ensures even spacing */
    gap: 2%; /* Adds spacing between images */
    padding-bottom: 2%;
}

.img4 {
    display: flex;
    justify-content: space-between; /* Ensures even spacing */
    gap: 2%; /* Adds spacing between images */
    padding-bottom: 2%;
    align-items: flex-end; /* Aligns images properly */
    margin-top: -8%;
}


.image-box {
    width: 32%; /* Ensures three images fit in a row */
    height: 80vh; /* Fixed height at 65% of viewport height */
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.6s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.image-box1 {
    width: 32%; /* Ensures three images fit in a row */
    height: 65vh; /* Fixed height at 50% of viewport height */
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.image-box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.6s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.image-box:hover, .image-box1:hover {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .products {
        padding: 10%;
        padding-top: 3%;
    }

    .img1, .img2, .img3, .img4 {
        flex-direction: column;
        align-items: center; /* Centers images */
        gap: 20px;
        margin-top: 5%;
    }

    .img2 .img4 {
        padding-top: 10%;
    }

    .image-box, .image-box1 {
        width: 100%; /* Full width */
        height: auto; /* Allow height to adjust based on image */
    }

    .image-box img, .image-box1 img {
        height: auto; /* Adjust height automatically */
    }

    .image-box:hover, .image-box1:hover {
        transform: scale(1);
    }
    
}