/* ============================================
   Education Benefits Section - Zencia.AI
   ============================================ */

/* Benefits Section */
.benefits-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    overflow: hidden;
}

/* Animated background with SVG */
.benefits-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: url('../../images/ai-voice-background.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.2;
    filter: brightness(0.8);
}

/* Animated gradient overlay */
.benefits-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Floating particles effect */
.benefits-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.benefits-particles .particle {
    position: absolute;
    background: #00D9D5;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

.benefits-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.benefits-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.benefits-particles .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.benefits-particles .particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

.benefits-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto; /* ensures full section is centered */
    text-align: center; /* optional */
}


/* Section Title */
.benefits-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin: 0 auto 4rem; /* <-- centers the block */
    letter-spacing: -1px;
    max-width: 800px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    color: #FFFFFF;
}


.benefits-title .highlight {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Benefit Card */
.benefit-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.6s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 213, 0.5);
    box-shadow: 0 20px 60px rgba(0, 217, 213, 0.3);
}

/* Card accent line */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00D9D5;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.benefit-card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-weight: 400;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-section {
        padding: 4rem 1.5rem;
    }

    .benefits-title {
        margin-bottom: 3rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefit-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .benefits-section {
        padding: 3rem 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-card-title {
        font-size: 1.3rem;
    }

    .benefit-card-description {
        font-size: 0.95rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}