/* ============================================================
   AI & MACHINE LEARNING PAGE — EXTRA SECTIONS
   1) Why Choose Techfruits for Artificial Intelligence (bento grid)
   2) Industries We Serve (media + content)
   Palette: green gradient only.
   ============================================================ */

.tf-why-ai,
.tf-industries {
    --g-1: #063b2c;
    --g-2: #0c8f5f;
    --g-3: #22c98a;
    --g-4: #7bf3c0;
    --g-grad: linear-gradient(135deg, var(--g-2), var(--g-3) 55%, var(--g-4));
    --g-grad-soft: linear-gradient(135deg, rgba(12, 143, 95, .16), rgba(34, 201, 138, .06));
}

/* ============================================================
   1. WHY CHOOSE TECHFRUITS — bento grid, dark green
   ============================================================ */
.tf-why-ai {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: radial-gradient(120% 140% at 15% 0%, #0a2b20 0%, #071912 45%, #050d0a 100%);
    isolation: isolate;
}

.tf-why-ai__bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(123, 243, 192, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 243, 192, .06) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 90%);
            mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 90%);
}

.tf-why-ai__orb {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
}

.tf-why-ai__orb--1 {
    width: 460px;
    height: 460px;
    left: -160px;
    top: -120px;
    background: var(--g-2);
    opacity: .35;
    animation: tfWhyOrbFloat 9s ease-in-out infinite;
}

.tf-why-ai__orb--2 {
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -140px;
    background: var(--g-4);
    opacity: .2;
    animation: tfWhyOrbFloat 11s ease-in-out infinite reverse;
}

@keyframes tfWhyOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
}

.tf-why-ai .container { position: relative; z-index: 1; }

.tf-why-ai__head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.tf-why-ai__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g-4);
    background: rgba(34, 201, 138, .1);
    border: 1px solid rgba(34, 201, 138, .3);
    margin-bottom: 22px;
}

.tf-why-ai__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.28;
    color: #fff;
    margin-bottom: 18px;
}

.tf-why-ai__title span {
    background: var(--g-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tf-why-ai__sub {
    color: #a9bdb5;
    font-size: 16.5px;
    line-height: 1.85;
    margin: 0 auto;
}

/* ---- bento grid (Bootstrap row / col-lg-*) ---- */
.tf-why-ai__grid {
    margin-top: 10px;
}

.tf-why-ai__card {
    position: relative;
    padding: 34px 30px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(6px);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, box-shadow .4s ease, background .4s ease;
}

.tf-why-ai__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--g-grad);
    opacity: 0;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    transition: opacity .4s ease;
    pointer-events: none;
}

.tf-why-ai__card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--g-grad-soft);
    opacity: 0;
    transition: opacity .4s ease, transform .5s ease;
    transform: scale(.6);
}

.tf-why-ai__card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    box-shadow: 0 24px 60px rgba(6, 59, 44, .5), 0 0 0 1px rgba(34, 201, 138, .15);
}

.tf-why-ai__card:hover::before { opacity: 1; }
.tf-why-ai__card:hover::after { opacity: 1; transform: scale(1); }

.tf-why-ai__card--feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(150deg, rgba(34, 201, 138, .16), rgba(6, 59, 44, .35));
    border-color: rgba(34, 201, 138, .35);
}

.tf-why-ai__card--feature h3 { font-size: 26px; }
.tf-why-ai__card--feature p { font-size: 15.5px; max-width: 560px; }

.tf-why-ai__num {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .22);
    transition: color .4s ease;
}

.tf-why-ai__card:hover .tf-why-ai__num { color: rgba(123, 243, 192, .6); }

.tf-why-ai__icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 22px;
    font-size: 22px;
    color: var(--g-4);
    background: rgba(34, 201, 138, .12);
    border: 1px solid rgba(34, 201, 138, .3);
    transition: background .4s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1), color .4s ease;
}

.tf-why-ai__card:hover .tf-why-ai__icon {
    background: var(--g-grad);
    color: #05130d;
    transform: rotate(-8deg) scale(1.08);
}

.tf-why-ai__card h3 {
    position: relative;
    z-index: 1;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tf-why-ai__card p {
    position: relative;
    z-index: 1;
    font-size: 14.5px;
    line-height: 1.8;
    color: #9bb0a7;
    margin: 0;
    text-align: justify;
}

@media (max-width: 767px) {
    .tf-why-ai { padding: 70px 0; }
    .tf-why-ai__title { font-size: 25px; }
}

/* ============================================================
   2. INDUSTRIES WE SERVE — media + content, light green
   ============================================================ */
.tf-industries {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: #f4faf7;
}

.tf-industries__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
}

.tf-industries__glow--1 {
    width: 420px;
    height: 420px;
    left: -140px;
    top: -100px;
    background: var(--g-3);
    opacity: .18;
}

.tf-industries__glow--2 {
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -100px;
    background: var(--g-2);
    opacity: .14;
}

.tf-industries .container { position: relative; z-index: 1; }

.tf-industries__row { gap: 40px 0; }

/* ---- media / image side ---- */
.tf-industries__media {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
}

.tf-industries__ring {
    position: absolute;
    inset: 0;
    border: 1.5px dashed rgba(12, 143, 95, .35);
    border-radius: 50%;
    animation: tfIndSpin 26s linear infinite;
}

@keyframes tfIndSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tf-industries__shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.tf-industries__shape--1 {
    width: 140px;
    height: 140px;
    top: -20px;
    right: 0;
    background: var(--g-grad);
    opacity: .25;
    filter: blur(6px);
}

.tf-industries__shape--2 {
    width: 100px;
    height: 100px;
    bottom: -10px;
    left: -10px;
    background: var(--g-4);
    opacity: .3;
    filter: blur(6px);
}

.tf-industries__img-box {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 6px solid #fff;
    box-shadow: 0 30px 70px rgba(6, 59, 44, .22);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.tf-industries__media:hover .tf-industries__img-box {
    transform: scale(1.03) rotate(1deg);
}

.tf-industries__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf-industries__badge {
    position: absolute;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
    color: #fff;
    background: var(--g-grad);
    box-shadow: 0 14px 30px rgba(6, 59, 44, .35);
    animation: tfBadgeFloat 4.5s ease-in-out infinite;
}

.tf-industries__badge--1 { top: 8px; left: -6px; animation-delay: 0s; }
.tf-industries__badge--2 { top: 46%; right: -18px; animation-delay: .6s; }
.tf-industries__badge--3 { bottom: 30px; left: -22px; animation-delay: 1.2s; }
.tf-industries__badge--4 { bottom: -10px; right: 30%; animation-delay: 1.8s; }

@keyframes tfBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- content side ---- */
.tf-industries__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0c8f5f;
    background: rgba(12, 143, 95, .1);
    border: 1px solid rgba(12, 143, 95, .25);
    margin-bottom: 20px;
}

.tf-industries__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: #0a1f17;
    margin-bottom: 20px;
}

.tf-industries__title span {
    background: var(--g-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tf-industries__text {
    color: #4c5f57;
    font-size: 16.5px;
    line-height: 1.95;
    margin-bottom: 30px;
    text-align: justify;
}

.tf-industries__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tf-industries__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    color: #0a1f17;
    background: #fff;
    border: 1px solid rgba(12, 143, 95, .25);
    box-shadow: 0 6px 18px rgba(6, 59, 44, .06);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.tf-industries__tag i {
    color: #0c8f5f;
    transition: color .35s ease;
}

.tf-industries__tag:hover {
    transform: translateY(-4px) scale(1.04);
    background: var(--g-grad);
    color: #06210f;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(6, 59, 44, .25);
}

.tf-industries__tag:hover i { color: #06210f; }

.tf-industries__tag--more {
    background: var(--g-grad-soft);
    border-style: dashed;
    color: #0c8f5f;
}

@media (max-width: 991px) {
    .tf-industries { padding: 70px 0; }
    .tf-industries__title { font-size: 25px; }
    .tf-industries__media { margin-bottom: 30px; max-width: 320px; }
}

@media (max-width: 575px) {
    .tf-industries__badge { width: 44px; height: 44px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .tf-why-ai__orb,
    .tf-industries__ring,
    .tf-industries__badge {
        animation: none;
    }
}


@media (max-width: 767px){

    .tf-why-ai__card{
        padding: 25px 25px;
    }

    .tf-why-ai__card p{
        text-align: justify;
    }

    .tf-industries__text{
        text-align: justify;
    }

    .ai-transform-section .ai-description{
        text-align: justify;
    }

}