:root {
    --white: white;
    --black: #333;
    --button: #F0811A;
    --primary-color: #3f602c;
}

body {
    overflow-x: hidden;
}

.product-image {
    text-decoration: none;
    padding: 20px;
}

.product-image p {
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* ================= DEFAULT: DESKTOP (6 columns) ================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 190px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid>div {
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

/* Remove top border from first row */
.category-grid>div:nth-child(-n + 6) {
    border-top: none;
}

/* Remove left border from first column */
.category-grid>div:nth-child(6n + 1) {
    border-left: none;
}

.category-grid img {
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
}

.category-grid p {
    margin: 0;
    line-height: 1.2;
}

/* ================= TABLET (≤1024px → 3 columns) ================= */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* RESET desktop border removal */
    .category-grid>div {
        border-top: 1px solid #ddd;
        border-left: 1px solid #ddd;
    }

    .category-grid>div:nth-child(-n + 6) {
        border-top: 1px solid #ddd;
    }

    /* ONLY first row (1–3) should not have top border */
    .category-grid>div:nth-child(-n + 3) {
        border-top: none;
    }

    /* First column items */
    .category-grid>div:nth-child(3n + 1) {
        border-left: none;
    }
}


/* ================= MOBILE (≤576px → 2 columns, NO BORDERS) ================= */

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 🔴 Remove ALL borders on phone */
    .category-grid>div {
        border: none !important;
    }
}







.product-box {
    border-radius: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* initial hidden state */
.scroll-animate {
    opacity: 0;
    transform: translate3d(80px, 0, 0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

.scroll-animate.animate-show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.heading {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.heading-line {
    width: 80px;
    /* desktop */
    height: 1px;
    background-color: #000;
    /* color change kar sakte ho */
    margin: 0 auto 30px;
    /* center */
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .heading-line {
        width: 50px;
        height: 2px;
    }

    .category-grid>div {

        padding: 0px;

    }
}




.service-box {
    background: var(--white);
    padding: 24px 40px;
    height: 300px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;

}



.service-box h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* HOVER EFFECT (DESKTOP ONLY) */
.service-box:hover {

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.bg-service:hover {
    background-image: url("/ambient/assests/images/home/R-D-services.jpg");

}

.bg-private:hover {
    background-image: url("/ambient/assests/images/home/Private-Label.jpg");
}

.bg-contract:hover {
    background-image: url("/ambient/assests/images/home/Contract-Manufacturing.jpg");
}

.bg-custom:hover {
    background-image: url("/ambient/assests/images/home/Custom-Formulation.jpg");
}

.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: 0.4s;
    z-index: 1;
}

.service-box:hover::before {
    opacity: 0.5;
    border-radius: 14px;
}



.service-box:hover h4,
.service-box:hover p {
    color: white;
}

.formulation {
    background: #5d5a5a21;
    padding: 0px;
    border-radius: 18px;
    height: 100%;
    text-align: start;
}

.priority {
    padding: 0px 30px;
}

.service-box {
    position: relative;
}

.service-link {
    position: relative;
    z-index: 10;
    /* 👈 MOST IMPORTANT */
    float: right;
    margin: 30px;
    color: var(--button);
    text-decoration: none;
    cursor: pointer;
}

.service-link i {
    font-size: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(6px);
}







/* CARD WRAPPER */
.custom-card {
    background: #f7f7f7;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
}

/* LEFT IMAGE */
.left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

/* RIGHT CONTENT */
.right-content {
    padding: 50px 40px;
}

.right-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    max-width: 380px;
    margin: 0 auto;
}

.custom-card-logo {
    background: #f7f7f7;
    width: 200px;
    height: 545px;
    padding: 50px 20px;
    border-top-right-radius: 80px;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

/* Logo */
.logo-img {
    max-width: 180px;
    margin-bottom: auto;
}

/* Circular Image Container */
.circle-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--white);
    background: var(--white);
    position: absolute;
    bottom: 0px;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unique {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.unique img {
    width: 60px;
    border: 1px solid var(--button);
    border-radius: 30px;
    padding: 10px;
}

.unique h3 {
    font-size: 1rem;
}

.form-control,
textarea.form-control {
    border-radius: 0px !important;
}


.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
    /* ya apna color de sakte ho */
}


.certificate-image {
    width: 65%;
}

.certificate-slider {
    width: 100%;
    max-width: 280px;
    height: 400px;
    margin: auto;
    overflow: hidden;
    cursor: grab;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-track img {
    min-width: 100%;
    height: 350px;
    object-fit: contain;
    pointer-events: none;
}

.innovate {
    background-image: url("/ambient/assests/images/home/Innovate-Together.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* mobile default */
    padding: 40px 130px;
    height: 345px;

}

.quote-btn {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    border: none;
    text-decoration: none;
}

.quote-btn:hover {
    background-color: var(--button);
}

.contact-info {
    background-image: url("/ambient/assests/images/home/get-in-touch.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    padding: 40px 150px;
}

.contact-section {
    background: var(--white);
    position: relative;
}

.divider {
    display: inline-block;
    width: 50px;
    height: 1px;
    background: #000;
}


.contact-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-form {
    position: absolute;
    right: 100px;
    top: 10%;
    transform: translateY(-50%);
    background: var(--white);
    width: 410px;
    padding: 25px;
    border-radius: 20px;
}

.contact-form .form-control {
    border-radius: 0;
    box-shadow: none;
}

.service {
    padding: 0px 150px;
}

.contact-btn {
    background-color: var(--primary-color);
    padding: 20px;
    border: none;
    color: var(--white);

}

.contact-icon {
    border-radius: 50%;
    padding: 10px 17px;
    color: var(--white);
    border: 1px solid white;
    text-align: center;
}

.contact-icon::before {
    margin-left: -7px;
}

.contact-flex {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-top: 15px;
}

section {
    height: 100%;
    width: 100%;
}



/* Common animation class */
/* Base */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-in-out;
}

/* Visible */
.animate-on-scroll.show {
    opacity: 1;
}

/* UP */
.animate-up {
    transform: translateY(60px);
}

/* LEFT */
.animate-left {
    transform: translateX(-60px);
}

/* RIGHT */
.animate-right {
    transform: translateX(60px);
}

/* ZOOM */
.animate-zoom {
    transform: scale(0.9);
}

/* Reset transform when visible */
.animate-on-scroll.show.animate-up,
.animate-on-scroll.show.animate-left,
.animate-on-scroll.show.animate-right,
.animate-on-scroll.show.animate-zoom {
    transform: translate(0) scale(1);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.product-category {
    text-decoration: none;
    color: var(--black);
}

.product-category p {
    font-size: 16px;
}

.count-badge {
    position: relative;
    display: inline-block;
}

.count-badge img {
    width: 100px;
    /* adjust as needed */
    height: auto;
}

.count-badge span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #000;
    /* text color */
}

.global {
    text-align: end;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.popup-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 10px 20px var(--black);
}

.popup-box input,
.popup-box select,
.popup-box textarea {
    width: 100%;
    padding: 10px;
    border-radius: 0px;
}

.popup-box button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 24px;
    cursor: pointer;
}

.quality-product {
    background-image: url("/ambient/assests/images/about/Quality.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 2px solid black;
}

.quality-standard {
    padding: 20px 40px;
    margin: 50px;
    width: 50%;
    float: right;
}

/* Download catalog */
#downloadcatalog {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #42884a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    overflow: hidden;
    transition: 0.3s;
}

#downloadcatalog:hover {
    transform: scale(1.05);
}

/* Light Sweep Effect */

#downloadcatalog::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 130%;
    }
}


@media (max-width: 768px) {



    .custom-card {
        width: 100%;
        height: auto;
        border-radius: 30px;
        padding-bottom: 280px;
    }

    .hero-slide img,
    .carousel img {
        object-fit: contain;
        margin-top: 25px !important;
    }

    .hero-carousel,
    .carousel {
        height: 350px !important;
        background: #fff !important;
    }

    .circle-img {
        position: relative;
        bottom: 0;
        margin-top: 30px;
    }

    .py-5,
    .p-5,
    .px-5 {
        padding: 12px 10px !important;
    }

    .contact-form {
        background: var(--white);
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 20px;
    }

    .contact-info {
        height: 100% !important;
        padding: 40px !important;
    }

    .service {
        padding: 0px 25px !important;
    }

    .innovate {
        padding: 40px 10px !important;
        height: 200px !important;
        background-position: right !important;
    }

    .global {
        text-align: start !important;
    }

    .wellness-goals {
        display: none;
    }

    .top {
        margin-top: 80px !important;
    }
}

@media (max-width: 500px) {

    .quality-standard {
        width: 100%;
        float: none;
    }

    .phrowreverse {
        flex-direction: column-reverse !important;
    }

    .quality-product {
        border: none;
    }

    .category-grid {
        grid-auto-rows: 135px;
    }

    .hero-carousel,
    .carousel {
        height: 243px !important;
        background: white !important;
    }

    .service-box {
        height: 234px !important;
    }

    .hero-slide img {
        height: 100% !important;
    }

    .toggleicon {
        width: 100%;
    }

    .hero-slide img,
    .carousel img {
        margin-top: 30px !important;
        object-fit: contain;
    }

    .nav-button {
        padding: 6px 13px !important;
        top: 60% !important;
    }

    .footer-grid {
        gap: 10px;
    }

    .carousel img {
        height: 70% !important;
    }

    .contact-flex {
        gap: 18px;
        margin-top: 18px;
        margin-bottom: 20px;
    }

    .pph {
        padding: 0px !important;
    }

    .product-box {
        display: block;
        width: 372px;
    }

    .product-img {
        width: 372px;
    }

    section.product-section.py-5.pphone {
        padding: 0;
    }
}


@media (max-width:380px) {
    .product-box {
        display: block;
        width: 335px;
    }

    .product-img {
        width: 335px;
    }
}

@media (max-width: 500px) {
    .carousel img {
        object-fit: inherit !important;
    }

}