/* ==========================================================================
   Benefits Section (Features.html)
   ========================================================================== */

.benefits-section {
    position: relative;
    z-index: 1;
}

.benefits-accordion {
    height: 100%;
}

.benefit-card {
    background-color: #f8f9fc;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    flex: 1;
    /* Default equal width */
    min-width: 0;
    /* Prevents overflow pushing flex bounds */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 992px) {
    .benefits-accordion:hover .benefit-card {
        flex: 1;
        /* Non-hovered cards stay normal or shrink relatively */
    }

    .benefits-accordion .benefit-card:hover,
    #first-benefits-row:not(:hover) .benefit-card:first-child {
        flex: 1.75;
        /* 75% increase in width */
        box-shadow: 0 10px 40px rgba(167, 139, 250, 0.15);
        /* transform: translateY(-5px); */
    }
}

@media (max-width: 991.98px) {

    .benefit-card:hover,
    #first-benefits-row:not(:hover) .benefit-card:first-child {
        box-shadow: 0 10px 40px rgba(167, 139, 250, 0.15);
        /* transform: translateY(-5px); */
    }
}

/* The "75% increase" purple gradient starting from top */
.benefit-bg-gradient {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.45) 0%, rgba(167, 139, 250, 0) 75%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.benefit-card:hover .benefit-bg-gradient,
#first-benefits-row:not(:hover) .benefit-card:first-child .benefit-bg-gradient {
    opacity: 1;
}

/* Large Watermark Icon */
.benefit-watermark-icon {
    position: absolute;
    top: 30%;
    right: 25px;
    transform: translateY(-50%) scale(0.6);
    font-size: 10rem;
    color: rgba(167, 139, 250, 0.05);
    z-index: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.benefit-card:hover .benefit-watermark-icon,
#first-benefits-row:not(:hover) .benefit-card:first-child .benefit-watermark-icon {
    opacity: 1;
    color: rgba(167, 139, 250, 0.15);
    transform: translateY(-50%) scale(1);
}

/* Smooth transitions for content */
.benefit-title,
.benefit-icon {
    transition: all 0.4s ease;
}

/* Pure CSS Smooth Text Reveal */
.benefit-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.benefit-card:hover .benefit-desc,
#first-benefits-row:not(:hover) .benefit-card:first-child .benefit-desc {
    max-height: 150px;
    opacity: 1;
    margin-top: 1rem;
    color: #334155 !important;
}

.benefit-card:hover .benefit-icon,
#first-benefits-row:not(:hover) .benefit-card:first-child .benefit-icon {
    background-color: #8982EE !important;
    transform: scale(1.05);
}

.benefit-card:hover .benefit-title,
#first-benefits-row:not(:hover) .benefit-card:first-child .benefit-title {
    color: #0f172a !important;
}

/* Pricing Toggle Button Group */
.pricing-toggle {
    border: 1px solid #8982EE;
    background-color: #f8faff;
    padding: 2px;
}

.pricing-toggle .btn {
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.pricing-toggle .btn-check:checked+.btn {
    background-color: #8982EE;
    color: white;
}

/* Matter.js DOM Overlay Styles */
.physics-ball {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
    background-color: #ffffff;
    border: 1px solid rgba(137, 130, 238, 0.5);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.physics-ball-active {
    background-color: #8982EE !important;
    color: #ffffff !important;
    border-color: #8982EE !important;
    box-shadow: 0 10px 30px rgba(137, 130, 238, 0.3) !important;
}

/* ==========================================================================
   Pricing Section (price.html)
   ========================================================================== */

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(137, 130, 238, 0.1);
}

.pricing-btn {
    border-color: #8982EE !important;
    color: #1e293b !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.pricing-btn i {
    color: #1e293b !important;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background-color: #8982EE !important;
    color: white !important;
    border-color: #8982EE !important;
}

.pricing-btn:hover i {
    color: white !important;
}