/* ===================================================
   Business Feature Sections — css/business.css
   Sits between #mobile-commerce and #page5-bottom
=================================================== */

/* ---- Wrapper ---- */
.biz-wrapper {
    background: #0D1840;
    /* Updated to use --bg-darker for consistency */
    color: #fff;
    overflow: hidden;
}

/* ---- Base section ---- */
.biz-section {
    padding: 8rem 0;
    /* Slightly more vertical breathing room */
}

.biz-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 4rem;
}

/* ---- Grid layouts ---- */
.biz-grid {
    display: grid;
    align-items: center;
    gap: 8%;
    /* Increased and relative gap for more clean spacing */
}

/* Images 40%, Content 60% */
.biz-grid--40-60 {
    grid-template-columns: 6fr 4fr;
    /* Content 60, Image 40 */
}

.biz-grid--50-50 {
    grid-template-columns: 1fr 1fr !important;
    gap: 5% !important;
}

.biz-grid--60-40 {
    grid-template-columns: 4fr 6fr;
    /* Image 40, Content 60 */
}

/* Special case for Section 2 (Title 40, Desc 60) */
.biz-grow-grid {
    grid-template-columns: 4fr 6fr !important;
}

/* ====================================================
   Glow image wrapper
==================================================== */
.biz-glow-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.biz-glow-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170%;
    /* Slightly larger for better visibility */
    height: 145%;
    background: radial-gradient(circle,
            rgba(151, 71, 255, 0.45) 0%,
            rgba(151, 71, 255, 0.15) 45%,
            transparent 75%);
    filter: blur(45px);
    /* Stronger blur for a softer glow */
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    /* Ensures visibility on dark bg */
}

.biz-glow-wrap>img:first-child {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.dail-instruction {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* ====================================================
   Service card (sections 3 – 7) with Animated Border
==================================================== */
.biz-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.75rem 2.25rem;
    overflow: hidden;
    z-index: 1;
}

/* The rotating "light" behind the card */
.biz-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(151, 71, 255, 1),
            /* Maximum glow visibility */
            transparent 45%);
    animation: biz-rotate 6s linear infinite;
    /* Smoother rotation */
    z-index: -2;
}

.biz-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    /* Thinner border for high-end look */
    background: #0D1840;
    /* Consistent with biz-wrapper background */
    border-radius: 15px;
    z-index: -1;
}

@keyframes biz-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.biz-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #fff;
}

.biz-card p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #C7D0E7;
    margin-bottom: 0.75rem;
}

.biz-card p:last-child {
    margin-bottom: 0;
}

/* ====================================================
   Section 1 — BI / Track Businesses
==================================================== */
.biz-bi-badge {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #C7D0E7;
    margin-bottom: 0.75rem;
}

.biz-bi-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.biz-bi-desc {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #C7D0E7;
    margin-bottom: 2rem;
}

.biz-bi-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2.5rem;
    margin-bottom: 2.25rem;
}

.biz-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.biz-stat img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.biz-stat span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.overflow-cut {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 69%;
    height: 79%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.lappy-ctn {
    height: 200%;
    width: 100%;
    animation: lappy-scroll 15s ease-in-out infinite;
}

.lappy-content {
    width: 100%;
    height: auto;
    display: block;
}

/* Laptop content scroll animation: scrolls down then back up */
@keyframes lappy-scroll {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-125%);
    }

    100% {
        transform: translateY(0);
    }
}

/* ====================================================
   Section 2 — Grow Businesses
==================================================== */
.biz-grow-section {
    padding: 4rem 0;
}

.biz-grow-badge {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #C7D0E7;
    margin-bottom: 0.75rem;
}

.biz-grow-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.biz-grow-desc {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #C7D0E7;
    align-self: center;
}

/* ====================================================
   Responsive
==================================================== */
@media (max-width: 992px) {

    .biz-grid,
    .biz-grid--40-60,
    .biz-grid--60-40,
    .biz-grid--50-50,
    .biz-grow-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center;
    }

    /* Track Businesses Alignment */
    .biz-bi-title,
    .biz-bi-desc,
    .biz-grow-title,
    .biz-grow-desc {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .biz-bi-stats {
        justify-content: center;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem 2rem;
    }

    .biz-stat {
        justify-content: flex-start;
    }

    /* Ordering for Sections where image is left on desktop */
    /* Ensure content is always above images when stacking */
    .biz-grid>* {
        order: 2;
        /* Move images down by default */
    }

    .biz-grid>div:not(.biz-glow-wrap),
    .biz-grid>.biz-card {
        order: 1;
        /* Keep content (articles/cards) on top */
    }

    /* Track Business (Section 1) Image should stay on top of stats list */
    #bi-analysis .biz-grid {
        display: flex;
        flex-direction: column;
    }

    #bi-analysis .biz-grid .biz-glow-wrap {
        order: -1;
    }

    .biz-glow-wrap img {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .biz-section {
        padding: 4rem 0;
    }

    .biz-grow-section {
        padding: 3rem 0;
    }

    .biz-bi-stats {
        grid-template-columns: 1fr;
        /* Stack stats on very small screens */
        max-width: fit-content;
        text-align: left;
    }

    .biz-card {
        padding: 2.5rem 1.5rem;
    }
}