/* ==========================================
   Hero Video Section Styles (مع أنيميشن نزول العناصر من الأعلى)
   ========================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 85px); /* الارتفاع الخارجي المتناسب مع الشاشة */
    min-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

/* ملء الشاشة مع تثبيت الكادر من الأسفل وقص الزيادة من الأعلى فقط */
.hero-video-section .bg-video {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    z-index: 1;
}

/* طبقة التعتيم السوداء الشفافة */
.hero-video-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

/* حاوية المحتوى فوق الفيديو */
.hero-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 2300px;
    margin: 0 auto;
    padding: 0 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* النصوص العلوية */
.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* تحديث خط وحجم عنوان الهيرو مع تطبيق أنيميشن النزول من الأعلى للأفل */
.hero-main-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 60px;
    line-height: 78px;
    font-weight: 400;
    color: #C2C2C2;
    letter-spacing: 0px;
    margin-top: 100px;
    animation: slideDownFromTop 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-sub-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 60px;
    line-height: 78px;
    font-weight: 400;
    color: #C2C2C2;
    letter-spacing: 0px;
    margin: 0;
    animation: slideDownFromTop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

/* الجزء السفلي (Power Plant والزر) */
.hero-bottom-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    position: relative;
    animation: slideDownFromTop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.hero-bottom-label {
    font-family: 'K2D', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* زر MAIN PARTNER الأنيق */
.main-partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Helvetica W01 Roman', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    margin-left: auto;
    margin-bottom: 100px;
}

.main-partner-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.main-partner-btn svg {
    transition: transform 0.3s ease;
}

.main-partner-btn:hover svg {
    transform: translateX(5px);
}

@keyframes slideDownFromTop {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ==========================================
   Responsive Media Queries - Hero Video Section
   ========================================== */

/* شاشات اللابتوب الكبيرة والمتوسطة (Max-Width: 1400px) */
@media screen and (max-width: 1400px) {
    .hero-content-container {
        padding: 90px 50px 50px 50px;
    }

    .hero-main-title,
    .hero-sub-title {
        font-size: 48px;
        line-height: 62px;
    }

    .hero-main-title {
        margin-top: 60px;
    }

    .hero-bottom-label {
        font-size: 34px;
    }

    .main-partner-btn {
        margin-bottom: 60px;
    }
}

/* شاشات التابلت واللابتوب الأصغر (Max-Width: 1024px) */
@media screen and (max-width: 1024px) {
    .hero-video-section {
        height: auto;
        min-height: 520px;
    }

    .hero-content-container {
        padding: 70px 30px 45px 30px;
        gap: 50px;
    }

    .hero-main-title,
    .hero-sub-title {
        font-size: 40px;
        line-height: 52px;
    }

    .hero-main-title {
        margin-top: 30px;
    }

    .hero-bottom-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-bottom-label {
        position: static;
        transform: none;
        font-size: 30px;
    }

    .main-partner-btn {
        margin-left: 0;
        margin-bottom: 0;
    }
}

/* الهواتف المحمولة والتابلت الصغير (Max-Width: 768px) */
@media screen and (max-width: 768px) {
    .hero-video-section {
        height: auto;
        min-height: 460px;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-content-container {
        padding: 50px 20px 35px 20px;
        gap: 36px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-text-block {
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-main-title,
    .hero-sub-title {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -0.5px;
    }

    .hero-main-title {
        margin-top: 10px;
    }

    .hero-bottom-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-bottom-label {
        position: static;
        transform: none;
        font-size: 24px;
        line-height: 1.25;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-partner-btn {
        margin-left: 0;
        margin-bottom: 0;
        padding: 12px 24px;
        font-size: 14px;
        gap: 10px;
        box-sizing: border-box;
    }
}

/* الهواتف المحمولة الصغيرة جداً (Max-Width: 480px) */
@media screen and (max-width: 480px) {
    .hero-video-section {
        min-height: 420px;
    }

    .hero-content-container {
        padding: 40px 15px 30px 15px;
        gap: 28px;
    }

    .hero-main-title,
    .hero-sub-title {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-main-title {
        margin-top: 0;
    }

    .hero-bottom-label {
        font-size: 20px;
    }

    .main-partner-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
/* ==========================================
   Who We Are Section Styles
   ========================================== */
.who-we-are-section {
    position: relative;
    width: 100%;
    background-color: #000000; /* يبدأ القسم باللون الأسود الخالص */
    padding: 100px 80px;
    box-sizing: border-box;
}

.who-we-are-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* العمود الأيسر (الفيديو) */
.who-video-col {
    flex: 1;
    max-width: 1150px;
    overflow: hidden;
    border-radius: 4px;
}

.content-side-video {
    width: 1000px;
    height: 450px;
    display: block;
    object-fit: cover;
}

/* العمود الأيمن (النصوص) */
.who-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.who-text-col .section-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 68px;
    line-height: 78px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
}

.section-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-desc p {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 36px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
}

.section-desc p strong {
    color: #FFFFFF;
    font-weight: 400;
}

.read-more-wrapper {
    margin-top: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 48px;
    border: 1px solid rgba(255, 252, 252, 0.993);
    border-radius: 30px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Helvetica W01 Roman', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.read-more-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.read-more-btn svg {
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(5px);
}
@media screen and (max-width: 768px) {
    .who-we-are-section {
        width: 100%;
        max-width: 100%;
        padding: 40px 16px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow: hidden;
    }

    .who-we-are-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 24px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    .who-video-col,
    .who-text-col,
    .section-desc,
    .read-more-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .content-side-video {
        width: 100%;
        max-width: 100%;
        height: 210px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .who-text-col .section-title {
        font-size: 32px;
        line-height: 40px;
        overflow-wrap: break-word;
    }

    .section-desc p {
        font-size: 15px;
        line-height: 24px;
        overflow-wrap: break-word;
    }

    .read-more-btn {
        max-width: 100%;
        padding: 12px 28px;
        font-size: 14px;
        box-sizing: border-box;
    }
}
/* ==========================================
   Unified Gradient Wrapper (Industries + Services)
   ========================================== */
.home-gradient-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #0F1123 16%,
        #323873 38%,
        #505CC3 62%,
        #6F7EFF 82%,
        #1B2454 95%,
        #000000 100%
    );
}

/* ==========================================
   Industries Section Styles
   ========================================== */
.industries-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 80px 80px;
    box-sizing: border-box;
}

.industries-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.industries-content-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.industries-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 68px;
    line-height: 78px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
}

.industries-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.industries-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.industries-list li:hover {
    transform: translateX(8px);
}

.industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.9;
}

.industry-text {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #C2C2C2;
    transition: color 0.3s ease;
}

.industries-list li:hover .industry-text {
    color: #FFFFFF;
}

.industries-video-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-video-wrapper {
    width: 650px;
    height: 650px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.industries-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ==========================================
   Responsive Media Queries - Industries Section
   ========================================== */

/* شاشات اللابتوب الكبيرة والمتوسطة (Max-Width: 1400px) */
@media screen and (max-width: 1400px) {
    .industries-section {
        padding: 70px 50px;
    }

    .industries-container {
        gap: 50px;
    }

    .industries-title {
        font-size: 54px;
        line-height: 62px;
    }

    .industries-content-col,
    .industries-list {
        gap: 36px;
    }

    .circle-video-wrapper {
        width: 480px;
        height: 480px;
    }
}

/* شاشات التابلت واللابتوب الأصغر (Max-Width: 1024px) */
@media screen and (max-width: 1024px) {
    .industries-section {
        padding: 60px 30px;
    }

    .industries-container {
        flex-direction: column;
        align-items: stretch;
        gap: 45px;
    }

    .industries-content-col,
    .industries-video-col {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .industries-title {
        font-size: 44px;
        line-height: 52px;
    }

    .industries-content-col {
        gap: 32px;
    }

    .industries-list {
        gap: 24px;
    }

    .circle-video-wrapper {
        width: 380px;
        height: 380px;
    }
}

/* الهواتف المحمولة والتابلت الصغير (Max-Width: 768px) */
@media screen and (max-width: 768px) {
    .industries-section {
        padding: 50px 20px;
        overflow: hidden;
    }

    .industries-container {
        gap: 36px;
    }

    .industries-title {
        font-size: 34px;
        line-height: 42px;
    }

    .industries-content-col {
        gap: 24px;
    }

    .industries-list {
        gap: 18px;
    }

    .industries-list li {
        gap: 12px;
    }

    .industry-text {
        font-size: 17px;
        line-height: 1.4;
    }

    .circle-video-wrapper {
        width: 280px;
        height: 280px;
        max-width: 100%;
    }
}

/* الهواتف المحمولة الصغيرة جداً (Max-Width: 480px) */
@media screen and (max-width: 480px) {
    .industries-section {
        padding: 40px 15px;
    }

    .industries-container {
        gap: 30px;
    }

    .industries-title {
        font-size: 28px;
        line-height: 36px;
    }

    .industries-list {
        gap: 15px;
    }

    .industry-text {
        font-size: 15px;
    }

    .circle-video-wrapper {
        width: 220px;
        height: 220px;
    }
}
/* ==========================================
   Explore Our Services Section Styles
   ========================================== */
.services-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 110px 80px;
    box-sizing: border-box;
}

/* يفضل مختفي ثانيتين عند الوصول لمنتصف الشاشة ثم يظهر */
.services-section.reveal-on-scroll {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s,
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s;
    will-change: opacity, transform;
}

.services-section.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-container {
    max-width: 1500px;
    margin: 0 auto;
}

/* الهيدر الأوسط */
.services-header {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 75px auto;
}

.services-main-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 64px;
    line-height: 76px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.services-subtitle {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 36px;
    font-weight: 400;
    color: #E6EBFF;
    margin: 0;
}

/* شبكة الكروت */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    border: 2.5px solid #FFFFFF;
    border-radius: 16px;
    background: rgba(6, 9, 28, 0.42);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.service-card:hover {
    border-color: #FFFFFF;
    background: rgba(12, 18, 54, 0.65);
    transform: translateY(-3px);
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
}

.service-card-desc {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #D4DCFF;
    margin: 0;
}

.service-card-icon {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-card-icon {
    opacity: 1;
    transform: translateX(4px);
}

/* تجاوب الشاشات الصغيرة والموبايل */
@media screen and (max-width: 1024px) {
    .who-we-are-section,
    .industries-section {
        padding: 60px 30px;
    }
    .who-we-are-container,
    .industries-container {
        flex-direction: column;
        gap: 40px;
    }
    .who-video-col {
        max-width: 100%;
    }
    .who-text-col .section-title,
    .industries-title {
        font-size: 36px;
        line-height: 44px;
    }
    .section-desc p {
        font-size: 18px;
        line-height: 28px;
    }
    .circle-video-wrapper {
        width: 320px;
        height: 320px;
    }
    .industry-text {
        font-size: 16px;
    }
    .services-section {
        padding: 70px 30px;
    }
    .services-main-title {
        font-size: 40px;
        line-height: 48px;
    }
    .services-subtitle {
        font-size: 18px;
        line-height: 28px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 26px 24px;
    }
    .service-card-title {
        font-size: 24px;
        line-height: 32px;
    }
    .service-card-icon {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-section.reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ==========================================
   Knowledge Section Styles
   ========================================== */
.knowledge-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 110px 80px 130px 80px;
    box-sizing: border-box;
}

/* نفس أنيميشن الظهور عند الوصول لمنتصف الشاشة */
.knowledge-section.reveal-on-scroll {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s,
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s;
    will-change: opacity, transform;
}

.knowledge-section.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.knowledge-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* الهيدر العلوي */
.knowledge-header {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 65px auto;
}

.knowledge-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 66px;
    line-height: 68px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.knowledge-intro {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 23px;
    line-height: 32px;
    font-weight: 400;
    color: #F0F3FF;
    margin: 0;
}

/* الصندوق الوسطي: صورة + خلفية سوداء */
.knowledge-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 380px;
    background: #000000;
    overflow: hidden;
}

.knowledge-media {
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

.knowledge-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.05);
}

.knowledge-panel {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 52px;
    box-sizing: border-box;
}

.knowledge-body {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #E6E6E6;
    margin: 0;
    text-align: left;
}

/* زر Read more بالأسفل */
.knowledge-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.knowledge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 175px;
    padding: 13px 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: transparent;
    color: #FFFFFF;
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.knowledge-btn svg {
    transition: transform 0.3s ease;
}

.knowledge-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
}

.knowledge-btn:hover svg {
    transform: translateX(4px);
}

/* تجاوب الشاشات */
@media screen and (max-width: 1024px) {
    .knowledge-section {
        padding: 70px 30px 90px 30px;
    }
    .knowledge-title {
        font-size: 38px;
        line-height: 46px;
    }
    .knowledge-intro {
        font-size: 17px;
        line-height: 27px;
    }
    .knowledge-box {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .knowledge-media {
        min-height: 260px;
        max-height: 320px;
    }
    .knowledge-panel {
        padding: 32px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knowledge-section.reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ==========================================
   Our Clients Section Styles
   ========================================== */
.clients-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 110px 48px 140px 48px;
    box-sizing: border-box;
}

/* نفس أنيميشن الظهور عند الوصول لمنتصف الشاشة */
.clients-section.reveal-on-scroll {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s,
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s;
    will-change: opacity, transform;
}

.clients-section.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.clients-container {
    max-width: 1480px;
    margin: 0 auto;
}

/* الهيدر الأوسط */
.clients-header {
    text-align: center;
    margin: 0 auto 80px auto;
}

.clients-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 56px;
    line-height: 68px;
    font-weight: 400;
    color: #0D1021;
    margin: 0 0 22px 0;
}

.clients-subtitle {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    color: #0D1021;
    margin: 0;
}

/* شبكة الشعارات: 4 في كل سطر */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 36px;
    row-gap: 72px;
    align-items: center;
    justify-items: center;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 170px;
    padding: 8px 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-logo-item:hover {
    transform: translateY(-3px);
}

.client-logo-img {
    display: block;
    width: 100%;
    max-width: 360px;
    max-height: 180px;
    height: auto;
    object-fit: contain;
}

/* تجاوب الشاشات */
@media screen and (max-width: 1024px) {
    .clients-section {
        padding: 80px 30px 100px 30px;
    }
    .clients-title {
        font-size: 40px;
        line-height: 48px;
    }
    .clients-subtitle {
        font-size: 16px;
        line-height: 26px;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 28px;
        row-gap: 52px;
    }
    .client-logo-item {
        min-height: 130px;
    }
    .client-logo-img {
        max-width: 260px;
        max-height: 130px;
    }
}

@media screen and (max-width: 480px) {
    .clients-grid {
        gap: 36px 20px;
    }
    .client-logo-img {
        max-width: 180px;
        max-height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-section.reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ==========================================
   The Perfect Customer Experience Section Styles
   ========================================== */
.testimonials-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 110px 60px 160px 60px;
    box-sizing: border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* نفس أنيميشن الظهور عند الوصول لمنتصف الشاشة */
.testimonials-section.reveal-on-scroll {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s,
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2s;
    will-change: opacity, transform;
}

.testimonials-section.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-container {
    max-width: 1360px;
    margin: 0 auto;
}

/* العنوان الرئيسي */
.testimonials-header {
    text-align: center;
    margin: 0 auto 72px auto;
}

.testimonials-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 56px;
    line-height: 68px;
    font-weight: 400;
    color: #0D1021;
    margin: 0;
}

/* شبكة البطاقات: 3 أعمدة بنفس الارتفاع */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 36px 32px 30px 32px;
    border: 1.5px solid #0D1021;
    border-radius: 18px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    background: rgba(13, 16, 33, 0.03);
}

.testimonial-quote {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 22px;
    font-weight: 400;
    color: #0D1021;
    text-align: center;
    max-width: 265px;
    margin: 0 auto 28px auto;
    padding: 0;
}

/* علامة الزاوية + بيانات صاحب الشهادة */
.testimonial-author-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 34px;
}

.testimonial-corner-mark {
    display: inline-block;
    width: 22px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    border-top: 2px solid #0D1021;
    border-right: 2px solid #0D1021;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial-author-name {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
    font-style: normal;
    font-weight: 400;
    color: #0D1021;
}

.testimonial-author-role {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 17px;
    font-weight: 400;
    color: #1A1F36;
    padding-left: 14px;
}

/* تجاوب الشاشات */
@media screen and (max-width: 1024px) {
    .testimonials-section {
        padding: 80px 30px 110px 30px;
    }
    .testimonials-title {
        font-size: 40px;
        line-height: 48px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card {
        height: auto;
        padding: 30px 22px 26px 22px;
    }
    .testimonial-quote {
        max-width: 100%;
    }
    .testimonial-author-row {
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-section.reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* تثبيت نهاية التدرج بدون تلاشي ضبابي قبل الفوتر */
.home-gradient-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #1B1F3F 28%,
        #232860 36%,
        #232860 47%,
        #4450B3 60%,
        #6C7EF8 74%,
        #8FA8FF 88%,
        #8FA8FF 99.6%,
        #000000 99.6%,
        #000000 100%
    );
}

/* إزالة أي blur أو backdrop-filter على القسم أو الكروت */
.testimonials-section,
.testimonials-section::before,
.testimonials-section::after,
.testimonial-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* تقليل المساحة السفلية للقسم ليتطابق مع قفلة المرجع */
.testimonials-section {
    padding-bottom: 64px;
}