/* ============================================
   How It Works Section - Styles (React Style)
   ============================================ */

.maxabhub-how-it-works {
    padding: 30px 0 !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

.maxabhub-how-it-works-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
}

/* Section Header */
.maxabhub-how-it-works-header {
    text-align: center !important;
    margin-bottom: 80px !important;
}

.maxabhub-how-it-works-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #A0D423 !important;
    margin-bottom: 20px !important;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
}

.maxabhub-how-it-works-subtitle {
    font-size: 1.875rem !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    margin-bottom: 15px !important;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
}

.maxabhub-how-it-works-description {
    font-size: 18px !important;
    color: #777295 !important;
    font-weight: 400 !important;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
}

/* Steps Container */
.maxabhub-steps-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 60px !important;
}

/* Step Wrapper - مطابق للتصميم الأصلي */
.maxabhub-step-wrapper {
    width: 100% !important; /* w-full */
    max-width: 330px !important; /* max-xl:w-[330px] */
    padding: 4px !important; /* p-1 = 0.25rem = 4px */
    display: flex !important;
    justify-content: center !important;
}

@media (min-width: 1280px) {
    .maxabhub-step-wrapper {
        max-width: 100% !important;
    }
}

/* Perspective Container */
.maxabhub-step-perspective {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    perspective: 1000px !important;
}

/* 3D Container - مطابق للتصميم الأصلي */
.maxabhub-step-3d-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s ease-linear !important;
    width: 100% !important;
    height: 100% !important;
    transform-style: preserve-3d !important;
    transform: rotateY(-2.66deg) rotateX(-6.39deg) !important;
}

.maxabhub-step-wrapper:hover .maxabhub-step-3d-container {
    transform: rotateY(0deg) rotateX(0deg) !important;
}

/* Step Item Outer - مطابق للتصميم الأصلي */
.maxabhub-step-item-outer {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important; /* rounded-xl */
    transform-style: preserve-3d !important;
}

.maxabhub-step-item-outer > * {
    transform-style: preserve-3d !important;
}

/* Blur Effects - مطابق للتصميم الأصلي */
.maxabhub-blur-effect {
    position: absolute !important;
    border-radius: 50% !important;
    filter: blur(40px) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.maxabhub-blur-top-right {
    top: 20px !important; /* top-5 = 1.25rem = 20px */
    right: 60px !important; /* right-15 = 3.75rem = 60px */
    width: 200px !important; /* w-50 = 12.5rem = 200px */
    height: 200px !important; /* h-50 = 12.5rem = 200px */
    background: rgba(158, 144, 248, 0.2) !important; /* bg-[#9E90F8]/20 */
    transform: translateY(-33.33%) translateX(33.33%) !important;
}

.maxabhub-blur-bottom-left {
    bottom: 20px !important; /* bottom-5 = 1.25rem = 20px */
    left: 60px !important; /* left-15 = 3.75rem = 60px */
    width: 200px !important; /* w-50 = 12.5rem = 200px */
    height: 200px !important; /* h-50 = 12.5rem = 200px */
    background: rgba(160, 212, 35, 0.1) !important; /* bg-lime-button/10 */
    transform: translateY(20%) translateX(-33.33%) !important;
}

/* Card - مطابق للتصميم الأصلي */
.maxabhub-card {
    width: 100% !important;
    height: 450px !important; /* h-[450px] */
    background: #ffffff !important; /* bg-card */
    color: #2c2c2c !important; /* text-card-foreground */
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important; /* gap-6 = 1.5rem = 24px */
    border-radius: 12px !important; /* rounded-xl */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 24px 0 !important; /* py-6 = 1.5rem = 24px */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; /* shadow-sm */
    position: relative !important;
    z-index: 10 !important;
    transition: all 0.2s ease-linear !important;
}

/* Card Content - مطابق للتصميم الأصلي */
.maxabhub-card-content {
    padding: 0 12px !important; /* px-3 = 0.75rem = 12px */
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.2s ease-linear !important;
}

/* Step Header - مطابق للتصميم الأصلي */
.maxabhub-step-header {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important; /* gap-4 = 1rem = 16px */
    margin-bottom: 16px !important; /* mb-4 = 1rem = 16px */
}

.maxabhub-step-text {
    flex: 1 !important;
}

.maxabhub-step-title {
    font-size: 20px !important; /* md:text-xl = 1.25rem = 20px */
    font-weight: 600 !important; /* font-semibold */
    color: #2c2c2c !important;
    margin-bottom: 4px !important; /* mb-1 = 0.25rem = 4px */
    line-height: 1 !important; /* leading-none */
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
}

.maxabhub-step-subtitle {
    font-size: 14px !important; /* text-sm = 0.875rem = 14px */
    color: #2c2c2c !important; /* text-black */
    margin-bottom: 8px !important; /* mb-2 = 0.5rem = 8px */
    line-height: 1.5 !important;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
}

@media (min-width: 768px) {
    .maxabhub-step-subtitle {
        font-size: 18px !important; /* md:text-lg = 1.125rem = 18px */
    }
}

/* Step Number - كبير في الخلفية - مطابق للتصميم الأصلي */
.maxabhub-step-number {
    font-size: 96px !important; /* text-8xl = 6rem = 96px */
    font-weight: 900 !important; /* font-black */
    color: rgba(0, 0, 0, 0.1) !important; /* text-black/10 */
    line-height: 1 !important;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Image Area with Radial Gradient - مطابق للتصميم الأصلي */
.maxabhub-step-image-area {
    border-radius: 6px !important; /* rounded-md */
    padding: 12px !important; /* px-3 = 0.75rem = 12px */
    width: 100% !important;
    margin-top: 28px !important; /* mt-7 = 1.75rem = 28px */
    position: relative !important;
    background: radial-gradient(50% 50% at 50% 50%, #9E90F8 0%, rgba(158, 144, 248, 0.4) 100%) !important;
    border-top-left-radius: 9999px !important; /* rounded-t-full */
    border-top-right-radius: 9999px !important; /* rounded-t-full */
    min-height: 300px !important; /* h-[300px] */
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.maxabhub-step-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.maxabhub-step-image img {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    position: relative !important;
    bottom: 12px !important; /* bottom-3 = 0.75rem = 12px */
    left: 4px !important; /* left-1 = 0.25rem = 4px */
}

/* Purple Gradient Circle - دائرة متدرجة باللون البنفسجي */
.maxabhub-purple-gradient-circle {
    position: absolute !important;
    border-radius: 50% !important;
    z-index: 5 !important;
    pointer-events: none !important;
    filter: blur(20px) !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.maxabhub-purple-right {
    top: 40px !important;
    right: -28px !important;
    width: 200px !important;
    height: 200px !important;
    background: radial-gradient(circle, rgb(158 144 248 / 22%) 0%, rgba(158, 144, 248, 0.3) 50%, rgba(158, 144, 248, 0) 70%) !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
}
/* تأثير عند التحويم */
.maxabhub-step-wrapper:hover .maxabhub-purple-gradient-circle {
    opacity: 0.9 !important;
    filter: blur(15px) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .maxabhub-purple-right {
        width: 80px !important;
        height: 80px !important;
        right: -20px !important;
        filter: blur(15px) !important;
    }
}

@media (max-width: 480px) {
    .maxabhub-purple-right {
        width: 60px !important;
        height: 60px !important;
        right: -15px !important;
        filter: blur(12px) !important;
    }
}

/* Responsive Image Sizes - مطابق للتصميم الأصلي */
@media (max-width: 1280px) {
    .maxabhub-step-image img {
        max-width: 260px !important; /* max-xl:w-[260px] */
    }
}

@media (max-width: 768px) {
    .maxabhub-step-image img {
        max-width: 260px !important; /* max-md:w-[260px] */
    }
}

@media (max-width: 640px) {
    .maxabhub-step-image img {
        max-width: 270px !important; /* max-sm:w-[270px] */
    }
}


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .maxabhub-steps-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .maxabhub-how-it-works-title {
        font-size: 36px !important;
    }
    
    .maxabhub-how-it-works-subtitle {
        font-size: 28px !important;
    }
    
    .maxabhub-card {
        height: 420px !important;
    }
}

@media (max-width: 768px) {
    .maxabhub-how-it-works {
        padding: 60px 0 !important;
    }
    
    .maxabhub-steps-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .maxabhub-card {
        height: 400px !important;
    }
    
    .maxabhub-step-3d-container {
        transform: rotateY(0deg) rotateX(0deg) !important;
    }
    
    .maxabhub-blur-top-right {
        width: 150px !important;
        height: 150px !important;
        right: 40px !important;
    }
    
    .maxabhub-blur-bottom-left {
        width: 150px !important;
        height: 150px !important;
        left: 40px !important;
    }
    
    .maxabhub-how-it-works-header {
        margin-bottom: 50px !important;
    }
    
    .maxabhub-how-it-works-title {
        font-size: 28px !important;
    }
    
    .maxabhub-how-it-works-subtitle {
        font-size: 22px !important;
    }
    
    .maxabhub-how-it-works-description {
        font-size: 16px !important;
    }
    
    .maxabhub-step-title {
        font-size: 18px !important;
    }
    
    .maxabhub-step-subtitle {
        font-size: 13px !important;
    }
    
    .maxabhub-step-number {
        font-size: 72px !important;
    }
    
    .maxabhub-step-image-area {
        min-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .maxabhub-how-it-works-container {
        padding: 0 20px !important;
    }
    
    .maxabhub-card {
        height: 380px !important;
        padding: 20px 0 !important;
    }
    
    .maxabhub-card-content {
        padding: 0 12px !important;
    }
    
    .maxabhub-step-header {
        margin-bottom: 20px !important;
    }
    
    .maxabhub-step-title {
        font-size: 16px !important;
    }
    
    .maxabhub-step-subtitle {
        font-size: 12px !important;
    }
    
    .maxabhub-step-number {
        font-size: 64px !important;
    }
    
    .maxabhub-step-image-area {
        min-height: 220px !important;
    }
    
    .maxabhub-blur-top-right {
        width: 120px !important;
        height: 120px !important;
    }
    
    .maxabhub-blur-bottom-left {
        width: 120px !important;
        height: 120px !important;
    }
}

