/* =========================================================
   0. Page Gradient Wrapper (تدرج ناعم يسيح في الأسود قبل الفوتر)
   ========================================================= */
.home-gradient-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #232860 28%,
        #232860 36%,
        #232860 47%,
        #4450B3 60%,
        #6C7EF8 74%,
        #4450B3 84%,
        #4450B3 93%,
        #1F244C 97.5%,
        #000000 100%
    );
}
/* =========================================================
   1. Hero Intro Section (Explore Our Services)
   ========================================================= */
.kifco-services-hero {
    width: 100%;
    padding-top: 120px;
    padding-right: 24px;
    padding-bottom: 80px;
    padding-left: 24px;
    background-color: transparent;
    text-align: center;
    box-sizing: border-box;
}

.kifco-services-hero-inner {
    max-width: 1120px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

.kifco-hero-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 69px;
    line-height: 83px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #ffffff;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 24px;
    margin-left: 0;
    opacity: 0;
    animation: slideDownFromTop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kifco-hero-desc {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 38px;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 980px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    opacity: 0;
    animation: slideDownFromTop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* أنيميشن النزول من الأعلى */
@keyframes slideDownFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة الشاشات المتوسطة والصغيرة */
@media (max-width: 992px) {
    .kifco-hero-title {
        font-size: 50px;
        line-height: 60px;
    }

    .kifco-hero-desc {
        font-size: 20px;
        line-height: 32px;
    }
}

@media (max-width: 576px) {
    .kifco-services-hero {
        padding-top: 90px;
        padding-right: 16px;
        padding-bottom: 60px;
        padding-left: 16px;
    }

    .kifco-hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .kifco-hero-desc {
        font-size: 16px;
        line-height: 26px;
    }
}
/* ==========================================
   Responsive Media Queries - Services Hero Intro Section
   ========================================== */

/* أجهزة اللابتوب والشاشات المتوسطة (Max-Width: 1400px) */
@media screen and (max-width: 1400px) {
    .kifco-services-hero {
        padding: 100px 24px 70px 24px;
    }

    .kifco-hero-title {
        font-size: 58px;
        line-height: 70px;
    }

    .kifco-hero-desc {
        font-size: 22px;
        line-height: 34px;
    }
}

/* شاشات التابلت ودون 1024px */
@media screen and (max-width: 1024px) {
    .kifco-services-hero {
        padding: 90px 24px 60px 24px;
    }

    .kifco-hero-title {
        font-size: 48px;
        line-height: 58px;
        margin-bottom: 20px;
    }

    .kifco-hero-desc {
        font-size: 20px;
        line-height: 32px;
    }
}

/* الهواتف المحمولة والتابلت الصغير (Max-Width: 768px) */
@media screen and (max-width: 768px) {
    .kifco-services-hero {
        padding: 70px 20px 50px 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .kifco-services-hero-inner {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .kifco-hero-title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 16px;
        overflow-wrap: break-word;
    }

    .kifco-hero-desc {
        font-size: 17px;
        line-height: 27px;
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

/* الهواتف المحمولة الصغيرة جداً (Max-Width: 480px) */
@media screen and (max-width: 480px) {
    .kifco-services-hero {
        padding: 55px 15px 40px 15px;
    }

    .kifco-hero-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 14px;
    }

    .kifco-hero-desc {
        font-size: 15px;
        line-height: 24px;
    }
}
/* =========================================================
   2. Service Card Section & 3D Top-Hinge Fold Styles
   ========================================================= */
.kifco-card-section {
    width: 100%;
    padding-top: 40px;
    padding-right: 24px;
    padding-bottom: 120px;
    padding-left: 24px;
    background-color: transparent;
    box-sizing: border-box;
}

/* حاوية المنظور لتحديد عمق الرؤية ثلاثية الأبعاد */
.kifco-card-stage {
    max-width: 1160px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    perspective: 1200px;
    perspective-origin: 50% 0%;
    box-sizing: border-box;
}

/* الكارت نفسه مع تثبيت محور الطي من الأعلى وخلفية شفافة */
.kifco-service-card {
    width: 100%;
    padding-top: 42px;
    padding-right: 48px;
    padding-bottom: 46px;
    padding-left: 44px;
    border-radius: 26px;
    border-width: 2.5px;
    border-style: solid;
    border-color: rgb(255, 255, 255);
    background-color: transparent;
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-sizing: border-box;
}

.kifco-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

.kifco-card-icon {
    flex-shrink: 0;
    width: 168px;
    height: 128px;
    margin-top: 2px;
    color: #ffffff;
}

.kifco-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.kifco-card-body {
    flex: 1;
    min-width: 0;
}

/* العنوان مائل بنفس أسلوب الصورة */
.kifco-card-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 42px;
    line-height: 48px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0px;
    color: #ffffff;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

.kifco-card-text {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 34px;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}
/* ==========================================
   Center-Axis 3D Rotation - Mobile View
   ========================================== */
@media screen and (max-width: 768px) {
    .kifco-card-section {
        width: 100%;
        max-width: 100%;
        padding: 28px 16px 60px 16px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .kifco-card-stage {
        width: 100%;
        max-width: 100%;
        perspective: 1400px;
        perspective-origin: 50% 50%;
        box-sizing: border-box;
    }

    .kifco-service-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px 28px 20px;
        border-radius: 20px;
        border-width: 2px;
        transform-origin: 50% 50%;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        will-change: transform, opacity;
        box-sizing: border-box;
    }

    .kifco-card-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-card-icon {
        width: 96px;
        height: 74px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .kifco-card-body {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-card-title {
        font-size: 26px;
        line-height: 33px;
        margin-bottom: 14px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .kifco-card-text {
        font-size: 15px;
        line-height: 24px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

@media screen and (max-width: 480px) {
    .kifco-card-section {
        padding: 22px 12px 50px 12px;
    }

    .kifco-card-stage {
        perspective: 1200px;
    }

    .kifco-service-card {
        padding: 20px 16px 24px 16px;
        border-radius: 16px;
    }

    .kifco-card-icon {
        width: 80px;
        height: 62px;
    }

    .kifco-card-title {
        font-size: 22px;
        line-height: 29px;
    }

    .kifco-card-text {
        font-size: 14px;
        line-height: 22px;
    }
}