/* Enhanced Benefits Section Styling */

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

/* Modern card styling */
.benefit-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: none;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

/* Hover effects */
.benefit-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Accent color overlay on hover */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    z-index: -1;
    transition: height 0.4s ease;
}

.benefit-card:hover::before {
    height: 10px;
}

/* Accent color in the corner */
.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.benefit-card:hover::after {
    border-width: 0 70px 70px 0;
}

/* Enhanced headings */
.benefit-card h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 15px;
}

.benefit-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Improved icon display */
.benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 1.5rem 1.5rem 0;
    box-shadow: var(--shadow-md);
    filter: saturate(1.2);
    transition: all 0.3s ease;
    float: left;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: var(--shadow-lg);
}

/* Enhanced list styling */
.benefit-card ul {
    list-style: none;
    padding-left: 0;
    clear: both;
}

.benefit-card ul li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 35px;
    transition: transform 0.2s ease;
}

.benefit-card ul li:hover {
    transform: translateX(5px);
}

/* Better checkmark styling */
.benefit-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.benefit-card ul li::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 1px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Enhanced strong text */
.benefit-card strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .benefits-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .benefit-icon {
        width: 80px;
        height: 80px;
    }
    
    .benefit-card h3 {
        font-size: 1.5rem;
    }
}

/* Enhanced heading animation */
#benefits .section-title::after {
    animation: gradient-pulse 2s infinite alternate;
}

@keyframes gradient-pulse {
    0% {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        width: 60px;
    }
    100% {
        background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
        width: 80px;
    }
}

/* Add subtle animation for benefit cards */
@media (prefers-reduced-motion: no-preference) {
    .benefit-card {
        animation: card-float 5s infinite alternate ease-in-out;
        animation-delay: calc(var(--card-index, 0) * 0.1s);
    }
    
    @keyframes card-float {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-8px);
        }
    }
}
