/* ========================================================================== */
/* Hero Section Styles                                                        */
/* ========================================================================== */

/* قسم الترحيب المتجاوب */
.main {
    padding-top: 120px;
}

.home {
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

/* توزيع الكتل في الصفحة الرئيسية */
.hero {
    display: grid;
    position: relative;
    align-items: center;
    gap: 30px;
    padding-top: 120px;
    padding-bottom: 3%;
}

.hero-section {
    /* التنسيقات الخاصة بالكلاس المذكور في الهيكل */
}

.hero-content {
    /* التنسيقات الخاصة بمحتوى الهيرو */
}

/* تنسيق العناصر داخل section */
section {
    padding: 40px 0;
    text-align: center;
}

section h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.impact-line {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.2;
}

.hero-title {
    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #FFD01B;
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    font-size: inherit;
    font-weight: bold;
    line-height: 1.7;
}

section p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* --- Badge (الشارة الإبداعية) --- */
.creative-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 9999px;
    margin-bottom: 32px;
    direction: rtl;
    animation: floatAnimation 3s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFD01B;
    animation: pulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-text {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #DCDCDC;
}

/* --- Animations (الحركات) --- */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #FFD01B; }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulseAnimation {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* --- Responsive (التجاوب) --- */

@media (max-width: 1194px) {
    .hero {
        grid-template-columns: 60% 40%;
        text-align: right;
        gap: 10px;
    }

    section h1 {
        font-size: 2.8rem;
    }

    section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: right;
        gap: 10px;
    }

    section {
        padding: 20px 0;
    }

    section h1 {
        font-size: 1.7rem;
    }

    section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .badge-text {
        font-size: 12px;
    }
}



/* ========================================================================== */
/* Services Section Styles                                                    */
/* ========================================================================== */

.services {
    text-align: center;
    position: relative;
    padding: 100px 20px 150px;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 10px;
}

.services h2 {
    color: #ffffff;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    margin-top: 0;
}

/* الحاوية: التخطيط العمودي */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* تصميم البطاقات وتأثير الانزلاق */
.service {
    position: sticky;
    background: linear-gradient(135deg, #141414, #2C2C2C);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ترتيب تكدس البطاقات */
.service:nth-child(1) { top: 120px; z-index: 1; }
.service:nth-child(2) { top: 140px; z-index: 2; }
.service:nth-child(3) { top: 160px; z-index: 3; }
.service:nth-child(4) { top: 180px; z-index: 4; }

/* تأثير الإطار المتوهج عند التمرير */
.service::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.service:hover::before {
    opacity: 1;
}

.service:hover {
    border-color: rgba(255, 208, 27, 0.4);
    box-shadow: 0 -15px 40px rgba(255, 208, 27, 0.15);
}

/* تنسيق النصوص والعناوين */
.service h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.service h3 a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.service:hover h3 a {
    opacity: 0.9;
}

.service p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #DCDCDC;
    line-height: 1.8;
    margin: 0;
}

/* التجاوب (Responsive) */
@media (max-width: 992px) {
    .services-container { max-width: 90%; }
    .services h2 { font-size: 2.5rem; }
    .service h3 a { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .services { padding: 80px 20px; }
    .services h2 { font-size: 2rem; margin-bottom: 50px; }
    .service { padding: 35px 25px; }
    .service p { font-size: 0.95rem; }
    
    .service:nth-child(1) { top: 80px; }
    .service:nth-child(2) { top: 95px; }
    .service:nth-child(3) { top: 110px; }
    .service:nth-child(4) { top: 125px; }
}




/* ========================================================================== */
/* Clients Section Styles                                                     */
/* ========================================================================== */

.clients-section {
    padding: 80px 40px;
    padding-bottom: 10rem;
    text-align: center;
    overflow: hidden;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 10px;
}

.clients-section .section-title {
    color: #ffffff;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    margin-top: 0;
}

/* الكاروسيل */
.clients-carousel {
    position: relative;
    left: -50%;
    transform: translateX(50%);
    width: 100vw;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--standard-shadow);
    padding: 20px 0;
}

/* المسار المتحرك */
.clients-track {
    display: flex;
    width: max-content;
    gap: 5rem;
    animation: scroll-infinite 45s linear infinite;
}

.clients-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    flex-shrink: 0;
}

.clients-track img:hover {
    filter: grayscale(0%);
}

.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* --- Animations (الحركات) --- */
@keyframes scroll-infinite {
    0% { transform: translateX(40%); }
    100% { transform: translateX(-10%); }
}

/* تأثير تلاشي الحواف (Fade Effect) */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(31, 31, 31, 1), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(31, 31, 31, 1), transparent);
}

/* --- Responsive (التجاوب) --- */

@media (max-width: 1200px) {
    .clients-section .section-title {
        font-size: 3rem;
    }

    .clients-track img {
        height: 50px;
    }

    .clients-track {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding-bottom: 5rem;
    }

    .clients-section .section-title {
        font-size: 2rem;
        margin-bottom: 8%;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .clients-track img {
        height: 40px;
    }

    .clients-track {
        gap: 3rem;
        animation-duration: 25s;
    }

    .clients-carousel::before,
    .clients-carousel::after {
        width: 50px;
    }
}




/* ========================================================================== */
/* Achievements Section Styles                                                */
/* ========================================================================== */

.achievements {
    text-align: center;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-bottom: 10rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 10px;
}

.achievements-title {
    color: #ffffff;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    margin-top: 0;
}

.achievements-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6%;
}

.achievement-item {
    width: 320px;
    height: 355px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-standard);
    background-color: var(--bg-darker);
    border: 1px solid var(--border-light);
    box-shadow: var(--standard-shadow);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* تأثير الإطار المتوهج عند التمرير */
.achievement-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color), #ffa41b);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.achievement-item:hover::before {
    opacity: 1;
}

/* الخلفية ولون النص عند التمرير */
.achievement-item:hover {
    background: linear-gradient(135deg, var(--primary-color), #ffa41b);
    color: var(--bg-dark);
    transform: translateY(-5px);
    border: none;
}

.achievement-number {
    font-size: 64px;
    font-weight: bold;
    margin: 60px 0 0 0;
    color: var(--primary-color);
}

.achievement-item:hover .achievement-number {
    color: var(--bg-dark);
}

.achievement-text {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 60px;
}

/* --- Responsive Styles (التجاوب) --- */

@media (max-width: 1200px) {
    .achievements-title {
        font-size: 4rem;
    }

    .achievements-container {
        width: 99%;
        gap: 3%;
    }

    .achievement-item {
        width: 280px;
        height: 320px;
    }

    .achievement-number {
        font-size: 55px;
    }

    .achievement-text {
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .achievements {
        padding-bottom: 8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .achievements-title {
        font-size: 2rem !important;
        padding-bottom: 5%;
    }

    .achievements-container {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .achievement-item {
        width: 100%;
        max-width: 400px;
        height: auto;
        padding: var(--spacing-md);
    }

    .achievement-number {
        font-size: 2rem !important;
        margin-top: var(--spacing-lg);
    }

    .achievement-text {
        font-size: 1.2rem !important;
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .achievements-title {
        font-size: 3rem;
        margin-bottom: 8%;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .achievement-text {
        font-size: 1.2rem;
    }
}





/* --- Testimonials Section (SwiperJS) --- */

/* الهيكل العام للقسم */
.testimonials {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.testimonials .container {
    position: relative;
    max-width: 1300px;
}

/* العناوين */
.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 10px;
}

.testimonials .section-title {
    color: #ffffff;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    margin-top: 0;
}

/* حاوية السلايدر */
.testimonials-wrapper {
    position: relative;
    padding: 0 60px; 
    box-sizing: border-box;
}

.testimonials-swiper {
    width: 100%;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    overflow: visible;
}

.testimonials-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* بطاقة العميل */
.shadow-effect {
    background-color: var(--bg-darker);
    padding: 30px; 
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--standard-shadow);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    box-sizing: border-box;
    margin-bottom: var(--spacing-md);
}

.shadow-effect p {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    align-content: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    flex-grow: 1;
}

.img-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin: 0 auto var(--spacing-md) auto;
    display: block;
}

.testimonial-name {
    display: inline-block;
    color: var(--primary-color);
    padding: var(--spacing-sm) 25px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    margin-bottom: 0px;
    text-align: center;
}

/* الترقيم (Pagination) */
.swiper-pagination {
    position: static;
    transform: none;
    width: 100% !important;
    text-align: center;
    margin-top: 0;
    margin-bottom: -30px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color) !important;
    opacity: 0.5;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
    transform: scale(1.3);
    opacity: 1;
}

/* أزرار التنقل (Navigation) */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 20px !important;
    height: 20px !important;
    stroke: var(--text-light);
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--primary-color);
}

.swiper-button-prev:hover svg,
.swiper-button-next:hover svg {
    stroke: var(--bg-dark);
}

.swiper-button-prev {
    left: 0px;
}

.swiper-button-next {
    right: 0px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* --- Responsive Styles --- */

@media (max-width: 1200px) {
    .testimonials .section-title {
        font-size: 4rem;
    }
    .testimonials-wrapper {
        padding: 0 40px; 
    }
}

@media (max-width: 992px) {
    .testimonials-wrapper {
        padding: 0 30px; 
    }
    .swiper-button-prev {
        left: 10px;
    }
    .swiper-button-next {
        right: 10px; 
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding-bottom: 5rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .testimonials .section-title {
        font-size: 3rem;
        margin-bottom: 8%; 
    }
    .shadow-effect {
        padding: var(--spacing-md);
        min-height: 220px;
    }
    .img-circle {
        margin-top: var(--spacing-md);
    }
    .shadow-effect p {
        font-size: 1rem;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important; 
    }
    .testimonials-wrapper {
        padding: 0 var(--spacing-md);
    }
    .testimonials-swiper {
        padding-bottom: var(--spacing-sm);
    }
    .testimonial-name {
        margin-bottom: var(--spacing-md);
    }
    .swiper-pagination {
        padding-bottom: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .testimonials .section-title {
        font-size: 2rem; 
    }
    .shadow-effect {
        padding: var(--spacing-sm); 
        min-height: 200px; 
    }
    .shadow-effect p {
        font-size: 0.9rem; 
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important; 
    }
    .img-circle {
        width: 60px;
        height: 60px;
    }
    .testimonial-name {
        font-size: 0.9rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}