/* ============================================
   Why Choose AmalXM Section - Animated Background (Even Section)
   ============================================ */

.why-choose-section {
    background: 
        linear-gradient(135deg, #fafbff 0%, #f0f4ff 25%, #ffffff 50%, #f8faff 75%, #fafbff 100%),
        linear-gradient(45deg, rgba(42, 193, 174, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Floating orbs */
        radial-gradient(circle 80px at 20% 30%, rgba(42, 193, 174, 0.08) 0%, transparent 70%),
        radial-gradient(circle 60px at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
        radial-gradient(circle 70px at 15% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 70%),
        radial-gradient(circle 50px at 85% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
        radial-gradient(circle 90px at 50% 10%, rgba(42, 193, 174, 0.06) 0%, transparent 70%),
        /* Geometric patterns */
        linear-gradient(45deg, transparent 48%, rgba(42, 193, 174, 0.02) 49%, rgba(42, 193, 174, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(139, 92, 246, 0.02) 49%, rgba(139, 92, 246, 0.02) 51%, transparent 52%);
    background-size: auto, auto, auto, auto, auto, 100px 100px, 80px 80px;
    animation: whyChooseFloating 25s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes whyChooseFloating {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(0deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) translateX(-15px) rotate(-1deg);
        opacity: 0.7;
    }
}

/* Content Styling */
.why-choose-content {
    position: relative;
    z-index: 2;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.section-badge {
    display: inline-block;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: whyChooseFadeInUp 0.8s ease forwards 0.2s;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.section-badge:hover .badge-text::before {
    left: 100%;
}

.section-badge:hover .badge-text {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

@keyframes whyChooseFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-choose-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: whyChooseFadeInUp 0.8s ease forwards 0.4s;
}

/* Features List */
.features-list {
    margin-bottom: 2rem;
    flex: 1;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: whyChooseSlideInLeft 0.6s ease forwards;
    padding: 0.2rem 0;
}

.feature-point:nth-child(1) { animation-delay: 0.6s; }
.feature-point:nth-child(2) { animation-delay: 0.8s; }
.feature-point:nth-child(3) { animation-delay: 1s; }
.feature-point:nth-child(4) { animation-delay: 1.2s; }

@keyframes whyChooseSlideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: 
        linear-gradient(135deg, rgba(42, 193, 174, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(42, 193, 174, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2BC7B4, #8B5CF6, #06B6D4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: whyChooseRotateBorder 3s linear infinite;
}

.feature-point:hover .feature-icon::before {
    opacity: 0.6;
}

.feature-point:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
    border-color: rgba(42, 193, 174, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(42, 193, 174, 0.2);
}

@keyframes whyChooseRotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-icon i {
    font-size: 1.2rem;
    color: #2BC7B4;
    transition: all 0.4s ease;
}

.feature-point:hover .feature-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.feature-text h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.feature-point:hover .feature-text h4 {
    color: #2BC7B4;
    transform: translateX(5px);
}

.feature-text p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.feature-point:hover .feature-text p {
    color: #475569;
    transform: translateX(5px);
}

/* CTA Section */
.why-choose-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: whyChooseFadeInUp 0.8s ease forwards 1.4s;
}

.why-choose-cta .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.why-choose-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* Image Section */
.why-choose-image {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: whyChooseFadeInUp 0.8s ease forwards 0.6s;
    height: 100%;
    display: flex;
    align-items: center;
}

.image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(42, 193, 174, 0.1);
    transition: all 0.4s ease;
    width: 100%;
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(42, 193, 174, 0.15);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: transform 0.4s ease;
}

.image-container:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 193, 174, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: 3;
    animation: whyChooseFloat 4s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 25%;
    left: 5%;
    animation-delay: 1.5s;
}

.element-3 {
    top: 55%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes whyChooseFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.floating-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(42, 193, 174, 0.3);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(42, 193, 174, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(42, 193, 174, 0.4);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(42, 193, 174, 0.2);
}

.floating-card i {
    font-size: 1.25rem;
    color: #2BC7B4;
    transition: all 0.3s ease;
}

.floating-card:hover i {
    color: #8B5CF6;
    transform: scale(1.2);
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.floating-card:hover span {
    color: #2BC7B4;
}

/* Responsive Design */
@media (max-width: 992px) {
    .why-choose-section {
        padding: 70px 0;
    }
    
    .why-choose-content {
        padding-right: 0;
        margin-bottom: 3rem;
        height: auto;
        justify-content: flex-start;
    }
    
    .why-choose-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .feature-point {
        margin-bottom: 0.8rem;
        gap: 0.9rem;
        padding: 0.15rem 0;
    }
    
    .features-list {
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 1.1rem;
    }
    
    .feature-text h4 {
        font-size: 1.05rem;
    }
    
    .why-choose-cta {
        text-align: center;
    }
    
    .why-choose-image {
        height: auto;
    }
    
    .floating-element {
        transform: scale(0.9);
    }
    
    .element-1 {
        top: 8%;
        right: 2%;
    }
    
    .element-2 {
        bottom: 20%;
        left: 2%;
    }
    
    .element-3 {
        top: 50%;
        right: 8%;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 50px 0;
    }
    
    .why-choose-title {
        font-size: 2rem;
    }
    
    .feature-point {
        gap: 0.8rem;
        margin-bottom: 0.6rem;
        padding: 0.1rem 0;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-text h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .features-list {
        margin-bottom: 1.5rem;
    }
    
    .floating-element {
        display: none !important;
    }
    
    .why-choose-image {
        margin-bottom: 3rem;
    }
    
    .why-choose-cta .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .why-choose-section {
        padding: 40px 0;
    }
    
    .why-choose-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .section-badge {
        margin-bottom: 0.8rem;
    }
    
    .feature-point {
        gap: 0.6rem;
        margin-bottom: 0.4rem;
        padding: 0.1rem 0;
        align-items: flex-start;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        margin-top: 0.1rem;
    }
    
    .feature-icon i {
        font-size: 0.9rem;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .features-list {
        margin-bottom: 1.2rem;
    }
    
    .floating-element {
        display: none !important;
    }
    
    .why-choose-image {
        margin-bottom: 2.5rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .why-choose-cta .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Performance optimizations */
.feature-point,
.why-choose-image,
.floating-element {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .why-choose-section::before,
    .feature-point,
    .why-choose-image,
    .floating-element,
    .feature-icon::before {
        animation: none;
    }
    
    .feature-point:hover .feature-icon,
    .image-container:hover,
    .floating-card:hover {
        transform: none;
    }
}
