﻿
:root {
    --home-deep: #0b3f38;
    --home-teal: #0f5a4f;
    --home-green: #8fce3f;
    --home-lime: #b9ef54;
    --home-bg: #f3f7f2;
    --home-soft: #eaf3e7;
    --home-card: #ffffff;
    --home-text: #113d38;
    --home-muted: #637b76;
    --home-border: rgba(15, 90, 79, 0.14);
    --home-shadow: 0 24px 70px rgba(11, 63, 56, 0.13);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}
/* HERO */
/*.home-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #f0f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
.home-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT + RIGHT IMAGES */
.hero-side {
    position: absolute;
    z-index: 1;
    width: clamp(320px, 32vw, 650px);
}

    .hero-side img {
        width: 100%;
        display: block;
        object-fit: contain;
    }

/* LEFT IMAGE */
.hero-left {
    left: -40px;
    /* image ko uper neechy krna ho to yahan change kro */
    top: 52%;
    transform: translateY(-50%);
}

/* RIGHT IMAGE */
.hero-right {
    right: -40px;
    /* image ko uper neechy krna ho to yahan change kro */
    top: 52%;
    transform: translateY(-50%);
}

/* CENTER LIGHT EFFECT */
/*.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient( ellipse 50% 80% at center, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70% );
    pointer-events: none;
}*/
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(11, 63, 56, 0.45);*/
    pointer-events: none;
}
.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    transform: translateY(-70px);  
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px; /* yeh add karo — proper spacing deta hai elements ke beech */
}   

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--home-teal);
    background: rgba(185, 239, 84, 0.24);
    border: 3px solid rgba(143, 206, 63, 0.35);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: -17px;
}
.hero-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.typing-word {
    color: var(--home-teal);
    min-width: 55px; /* thoda bara */
    text-align: left;
    position: relative;
    padding-bottom: 3px; /* "2  3 px" tha, fix kar diya */
}
.typing-word::after {
    content: "";
    width: 2px;
    height: 18px;
    background: var(--home-teal);
    display: inline-block;
    margin-left: 4px;
    animation: blink 0.7s infinite;
}
/* HERO ENTRY ANIMATIONS */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    animation: fadeUp 0.9s ease 0.1s both;
}

.home-hero h1 {
    animation: fadeUp 0.9s ease 0.2s both;
}

.home-hero p {
    animation: fadeUp 0.9s ease 0.4s both;
}

.hero-cta {
    animation: fadeUp 0.9s ease 0.6s both;
}

.bold-arrows {
    animation: fadeUp 0.9s ease 0.8s both;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.home-hero h1 {
    color: var(--home-deep);
    font-size: clamp(52px, 8vw, 83px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0 0; /* margin-top: -80px hata do */
}   

.home-hero p {
/*    color: var(--home-muted);*/
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 20px;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 30px;
    border-radius: 14px;
    background: var(--home-deep);
    color: var(--home-lime);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(11, 63, 56, 0.22);
    transition: 0.25s ease;
    animation: shadowPulse 2.5s ease-in-out infinite;
}
@keyframes shadowPulse {
    0% {
        box-shadow: 0 18px 40px rgba(11, 63, 56, 0.22);
    }

    50% {
        box-shadow: 0 28px 70px rgba(11, 63, 56, 0.75);
    }

    100% {
        box-shadow: 0 18px 40px rgba(11, 63, 56, 0.22);
    }
}

    .hero-cta:hover {
        background: var(--home-teal);
        color: #fff;
        transform: translateY(-3px);
    }

/* MOBILE */
@media (max-width: 992px) {

    .hero-side {
        width: 260px;
        opacity: 0.5;
    }

    .hero-left {
        left: -100px;
    }

    .hero-right {
        right: -100px;
    }

    .home-hero h1 {
        margin-bottom: 50px;
    }
}

.bold-arrows {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

    .bold-arrows span {
        width: 42px;
        height: 42px;
        border-right: 5px solid var(--home-teal);
        border-bottom: 5px solid var(--home-teal);
        transform: rotate(-45deg);
        opacity: 0.3;
        border-radius: 3px;
        animation: boldFlow 2.4s ease-in-out infinite;
    }

        .bold-arrows span:nth-child(1) {
            border-color: var(--home-lime);
        }

        .bold-arrows span:nth-child(2) {
            animation-delay: 0.22s;
            border-color: var(--home-teal);
        }

        .bold-arrows span:nth-child(3) {
            animation-delay: 0.44s;
            border-color: var(--home-deep);
        }

@keyframes boldFlow {
    0% {
        transform: translateX(-10px) rotate(-45deg);
        opacity: 0.2;
    }

    50% {
        transform: translateX(10px) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-10px) rotate(-45deg);
        opacity: 0.2;
    }
}
/* SHARED SECTIONS */
.home-section-heading {
    max-width: 780px;
    margin: 0 auto 44px;
}

    .home-section-heading span {
        display: inline-block;
        color: var(--home-teal);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .home-section-heading h2 {
        color: var(--home-deep);
        font-size: clamp(34px, 4.2vw, 58px);
        line-height: 1;
        letter-spacing: -0.045em;
        font-weight: 800;
        margin-bottom: 14px;
    }

    .home-section-heading p {
        color: var(--home-muted);
        font-size: 17px;
        line-height: 1.65;
        margin: 0;
    }

    .home-section-heading.light span,
    .home-section-heading.light h2 {
        color: #fff;
    }

    .home-section-heading.light p {
        color: rgba(255,255,255,0.72);
    }

/* STEPS */
.home-steps-section {
    padding: 110px 0;
    background: var(--home-bg);
    position: relative;
}

.step-col {
    position: relative;
}

@media (min-width: 768px) {
    .step-col:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -28px;
        width: 56px;
        height: 2px;
        background: linear-gradient(90deg, var(--home-lime), transparent);
        z-index: 1;
    }
}

.step-card {
    position: relative;
    height: 100%;
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--home-border);
    border-radius: 28px;
    padding: 46px 28px 34px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(11,63,56,0.08);
    transition: 0.25s ease;
}

    .step-card.featured {
        background: #fff;
        transform: translateY(-10px);
        box-shadow: var(--home-shadow);
    }

    .step-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--home-shadow);
    }

.step-number {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--home-deep);
    color: var(--home-lime);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(11,63,56,0.18);
}

.step-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(20%) saturate(1540%) hue-rotate(123deg) brightness(91%) contrast(90%);
    transition: 0.25s ease;
}

.step-card:hover .step-icon {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(0) saturate(100%) invert(71%) sepia(83%) saturate(420%) hue-rotate(32deg) brightness(98%) contrast(90%);
}

.step-card h3 {
    color: var(--home-deep);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* PRODUCTS */
.products-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: radial-gradient(circle at top left, rgba(185,239,84,0.18), transparent 32%), radial-gradient(circle at bottom right, rgba(143,206,63,0.18), transparent 34%), var(--home-deep);
}

    .products-section .container {
        position: relative;
        z-index: 2;
    }

    .products-section .home-section-heading {
        margin-bottom: 34px;
    }

.search-box {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 58px;
}

.search-input {
    min-height: 58px;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: #fff !important;
    color: var(--home-text);
    padding: 0 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

    .search-input:focus {
        border-color: var(--home-lime) !important;
        box-shadow: 0 0 0 5px rgba(185,239,84,0.28), 0 18px 45px rgba(0,0,0,0.18);
    }

#productSearch::placeholder {
    text-align: center;
    color: #8c9b98;
    font-weight: 400;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    box-shadow: var(--home-shadow);
    z-index: 1000;
    padding: 8px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 14px;
    transition: 0.2s ease;
}

    .search-item:hover {
        background: #e4fcb8;
    }

.search-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--home-bg);
    border: 1px solid var(--home-border);
}

.search-name {
    font-weight: 700;
    color: var(--home-text);
    font-size: 14px;
}

.mySwiper {
    padding: 8px 0 8px !important;
}

.swiper-slide a,
.product-link {
    display: block;
    text-decoration: none;
}

.product-card-wrapper {
    position: relative;
    max-width: 245px;
    height: 245px;
    margin: auto;
}

.category-card {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 20px 55px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.product-img-box {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.25s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(11,63,56,0.94), rgba(15,90,79,0.92));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: 0.25s ease;
}

.product-card-wrapper:hover .card-overlay {
    opacity: 1;
}

.product-card-wrapper:hover .product-img {
    transform: scale(1.08);
}

.overlay-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.request-link {
    text-decoration: none;
}

.request-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-lime);
/*    color: var(--home-deep) !important;*/
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    margin: 0;
}

/* WHY */
.why-section {
    position: relative;
    padding: 110px 0;
    background: radial-gradient(circle at 12% 12%, rgba(185,239,84,0.18), transparent 30%), linear-gradient(180deg, #ffffff 0%, var(--home-bg) 100%);
}

.why-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 28px;
    padding: 34px 22px;
    box-shadow: 0 18px 45px rgba(11,63,56,0.08);
    transition: 0.25s ease;
}

    .why-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--home-shadow);
        border: 1px solid #b9ef54;
    }

    .why-card i {
        width: 58px;
        height: 58px;
        display: inline-grid;
        place-items: center;
        border-radius: 18px;
        background: var(--home-soft);
        color: var(--home-teal);
        font-size: 26px;
        margin-bottom: 18px;
    }

    .why-card h5 {
        color: var(--home-deep);
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 10px;
    }

    .why-card p {
        color: var(--home-muted);
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

/* RESPONSIVE */
@media (max-width: 1199px) {
    .home-hero {
        min-height: 680px;
    }

    .home-hero-bg {
        background-position: center;
    }

    .product-card-wrapper {
        max-width: 220px;
        height: 220px;
    }
}

@media (max-width: 991px) {
    .home-hero {
        /*        min-height: 5px;*/
        min-height: 100svh;
        background-size: cover;
        background-position: center center;
    }

    .home-hero-bg {
        opacity: 0.5;
        background-position: center;
        filter: blur(1px) saturate(1.05) contrast(1.03);
    }

    .home-hero::after {
        background: rgba(255,255,255,0.64);
    }

    .home-hero-content {
        padding-top: 90px;
    }

    .home-steps-section,
    .products-section,
    .why-section {
        padding: 82px 0;
    }

        .products-section .home-section-heading {
            margin-bottom: 28px;
        }

    .search-box {
        margin-bottom: 46px;
    }

    .step-card.featured {
        transform: none;
    }

    .product-card-wrapper {
        max-width: 210px;
        height: 210px;
    }

    .product-img-box {
        height: 140px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        /*        min-height: 580px;*/
        background-position: center center;
        background-size: cover;
        min-height: 100svh;
        
    }

    .hero-kicker {
        font-size: 12px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-hero p {
        font-size: 16px;
    }

    .hero-cta {
        min-height: 50px;
        padding: 0 24px;
    }

    .home-section-heading h2 {
        font-size: 36px;
    }

    .product-card-wrapper {
        max-width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
/*    .home-hero {
        min-height: 100svh;
        background-size: cover;
        background-position: center center;
    }*/
    .home-hero {
        background: url('/Images/hero-mobile.jpg') center center / cover no-repeat !important;
    }

        .home-hero h1 {
            font-size: 36px;
        }

    .home-hero-content {
        padding-inline: 16px;
    }

    .home-section-heading h2 {
        font-size: 32px;
    }

    .product-card-wrapper {
        max-width: 180px;
        height: 180px;
    }

    .product-img-box {
        height: 120px;
    }

    .step-card,
    .why-card {
        border-radius: 22px;
    }
}

/* navbar search issue */
/* ===== FIX: Prevent Home page product search CSS from breaking navbar search ===== */

.ks-header .search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 74px);
    right: 0;
    left: auto;
    width: 340px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: 22px;
    box-shadow: var(--ks-shadow);
    z-index: 10000;
    padding: 8px;
}

.ks-header .search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 14px;
    color: var(--ks-text);
    transition: 0.2s ease;
}

    .ks-header .search-item:hover {
        background: #edf5f2;
    }

.ks-header .search-img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--ks-bg);
    border: 1px solid rgba(0, 75, 67, 0.08);
}

.ks-header .search-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ks-text);
    line-height: 1.3;
}

@media (max-width: 991px) {
    .ks-header .search-dropdown {
        position: relative;
        width: 100%;
        max-height: 320px;
        top: 10px;
        right: auto;
        left: auto;
        margin-bottom: 10px;
    }
}
