/* Benefits Section - Modern Design */

.benefits-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a15 50%, #0a0a0f 100%);
    padding: 80px var(--spacing-lg) !important;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
    filter: blur(50px);
}

.benefits-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
    filter: blur(50px);
}

.benefits-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.benefits-section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.benefits-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Benefit Card */
.benefit-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    transition: all var(--transition-slow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out both;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* Gradient border effect */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Hover shine effect */
.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.benefit-card:hover::after {
    top: -20%;
    right: -20%;
}

.benefit-card:hover {
    transform: translateY(-12px);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
    backdrop-filter: blur(30px);
}

/* Benefit Icon Container - Supports SVG, Lottie, Emoji, Images */
.benefit-icon-container {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-container {
    background: transparent;
    transform: scale(1.15);
}

/* SVG Icon Support */
.benefit-icon-container svg {
    width: 100px;
    height: 100px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
}

/* Add gradient colors to each benefit card's SVG */
.benefit-card:nth-child(1) svg { stroke: #3b82f6; }
.benefit-card:nth-child(2) svg { stroke: #f59e0b; }
.benefit-card:nth-child(3) svg { stroke: #ef4444; }
.benefit-card:nth-child(4) svg { stroke: #10b981; }
.benefit-card:nth-child(5) svg { stroke: #8b5cf6; }
.benefit-card:nth-child(6) svg { stroke: #06b6d4; }

/* Image Support */
.benefit-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Lottie Animation Support */
.benefit-icon-container lottie-player {
    width: 100%;
    height: 100%;
}


/* Legacy emoji support */
.benefit-icon {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.15));
    transform: scale(1.05);
}

/* Benefit Title */
.benefit-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 var(--spacing-md) 0;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.benefit-card:hover .benefit-title {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Benefit Description */
.benefit-description {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .benefits-section {
        padding: 60px var(--spacing-md) !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .benefit-card {
        padding: var(--spacing-xl);
    }

    .benefit-image {
        height: 150px;
    }

    .benefit-title {
        font-size: 1.1rem;
    }
}
