/*
    File: style.css
    Author: Yash Balotiya
    Description: This file contains the styling part of the home Page.
    Created on: 12/10/2024
    Last Modified: 27/05/2025
*/

* {
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body {
    max-width: 100vw;
    height: 100vh;
    background-color: white;
}

/* main section */
.mainDiv {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* hero image section */
.hero-img-sec {
    width: 100%;
    height: 550px;
    background-image: url('./assets/images/sci-lab.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: end;
    justify-content: end;
}

.hero-img-sec div {
    width: 25%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 40px;
    overflow: hidden;
}

.hero-img-sec div p {
    font-size: 30px;
    margin: 0;
    animation: slide-right 0.5s 0.5s forwards;
    transform: translateX(-100%);
}

@keyframes slide-right {
    to {
        transform: translateX(0);
    }
}

/* Top selling */
.top-sell-sec {
    width: 75%;
    margin: 50px 0;
}

.top-sell-sec h3 {
    color: #0092dd;
}

.top-sell-div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-card {
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    padding: 20px;
    border-radius: 4px;
}

.product-card img {
    width: 100%;
    height: 240px;
}

.top-sell-sec button {
    background-color: #f7f7f7;
    border: none;
    margin-top: 8px;
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* About & news section */
.top-sell-sec b {
    color: #0092dd;
    font-size: x-large;
}

.top-sell-div h1 {
    font-size: medium;
}

.about-div b,
.why-order-div b,
h4 {
    color: #0092dd;
    font-size: large;
}

.about-news-sec,
.part-3 {
    width: 75%;
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.about-div,
.news-div,
.why-order-div {
    /* width: 40%; */
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: justify;
}

.news-div {
    background-color: #f7f7f7;
    text-align: justify;
}

/* image slider section */
.part-3 img {
    width: 40%;
}

.part-3 {
    display: flex;
}

.image-slider {
    position: relative;
    width: 60%;
    overflow: hidden;
}

.image-slider img {
    position: absolute;
    left: 100px;
    opacity: 0;
    transition: opacity 1s ease;
}

.image-slider img.active {
    opacity: 1;
}

/* testimonials section */
.part-4 {
    width: 85%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.part-4 h5 {
    margin: 20px 0 20px 30px;
}

.testimonials-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-div {
    display: flex;
    transition: transform 0.5s ease;
    width: 90%;
}

.review-div {
    min-width: 35%;
    background-color: #f7f7f7;
    padding: 30px;
    box-sizing: border-box;
    margin: 0 8px;
}

.nav-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.nav-button.left {
    left: 10px;
}

.nav-button.right {
    right: 10px;
}

.profile-img {
    background-color: #9d9d9d;
    width: 24px;
    height: 24px;
    text-align: center;
    border-radius: 50%;
}

/* PAN INDIA SUPPORT */
.pan-india-sec {
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maps-container {
    width: 100%;
    display: flex;
    /* justify-content: space-between; */
}

/* Responsive */
@media(max-width: 1300px) {
    .top-sell-sec {
        width: 90%;
        flex-wrap: wrap;
    }

    .about-news-sec,
    .pan-india-sec {
        width: 90%;
    }
}

@media(max-width: 900px) {
    .hero-img-sec {
        height: 60vh;
    }
    
    .hero-img-sec div {
        width: 500px;
    }

    .top-sell-div {
        justify-content: center;
        gap: 50px;
    }

    .maps-container {
        width: 90vw;
        flex-direction: column;
    }

    .maps-container iframe {
        width: 100%;
    }
}

@media(max-width: 600px) {
    .hero-img-sec div p {
        font-size: 5vw;
    }

    .about-news-sec {
        width: 90%;
        flex-direction: column;
        align-items: center;
    }

    .about-news-sec div {
        width: 100%;
    }
}

@media(max-width: 500px) {
    .top-sell-sec {
        display: flex;
        justify-content: center;
    }

    .top-sell-div {
        justify-content: center;
        gap: 50px;
    }
    
    .product-card {
        width: 100%;
        /* height: auto; */
    }
}