/* Import Arabic Font */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700;900&display=swap');

/* Custom Properties for Colors */

:root {
    --primary-color: #3573b0;
    --primary-dark: #2a5a8a;
    --primary-light: #4a8bc8;
    --secondary-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(53, 115, 176, 0.15);
    --shadow-hover: 0 20px 40px rgba(53, 115, 176, 0.25);
}


/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 0 80px;
    }
}


/* Header Styles */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(53, 115, 176, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* RTL Layout - Arabic */
[dir="rtl"] .nav-container {
    grid-template-columns: auto 1fr auto;
}

/* LTR Layout - English */
[dir="ltr"] .nav-container {
    grid-template-columns: auto 1fr auto;
}

/* Large Screen Nav Container */
@media (min-width: 1400px) {
    .nav-container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .nav-container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

@media (min-width: 1920px) {
    .nav-container {
        max-width: 1800px;
        padding: 0 80px;
    }
}

.nav-logo {
    justify-self: start;
    text-align: center;
}

/* Logo position for RTL (Arabic) */
[dir="rtl"] .nav-logo {
    justify-self: end;
    grid-column: 3;
}

/* Logo position for LTR (English) */
[dir="ltr"] .nav-logo {
    justify-self: start;
    grid-column: 1;
}

.nav-menu {
    justify-self: center;
}

/* Menu position for RTL (Arabic) */
[dir="rtl"] .nav-menu {
    justify-self: center;
    grid-column: 2;
}

/* Menu position for LTR (English) */
[dir="ltr"] .nav-menu {
    justify-self: center;
    grid-column: 2;
}

.language-switch {
    justify-self: start;
    margin: 0;
}

/* Language switch position for RTL (Arabic) */
[dir="rtl"] .language-switch {
    justify-self: start;
    grid-column: 1;
}

/* Language switch position for LTR (English) */
[dir="ltr"] .language-switch {
    justify-self: end;
    grid-column: 3;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-direction: row;
}


/* Menu items order for LTR (English) */
[dir="ltr"] .nav-menu {
    flex-direction: row-reverse;
}


/* Ensure proper spacing and alignment for both directions */

.nav-menu {
    align-items: center;
    justify-content: flex-start;
}

[dir="rtl"] .nav-menu {
    justify-content: flex-start;
}

[dir="ltr"] .nav-menu {
    justify-content: flex-end;
}


/* Smooth transition for direction changes */

.nav-menu {
    transition: all 0.3s ease;
}


/* Ensure nav items maintain proper spacing */

.nav-item {
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(53, 115, 176, 0.1);
    transform: translateY(-2px);
}


/* .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
} */

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.language-switch {
    margin-right: 1rem;
}

.lang-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(53, 115, 176, 0.3);
}

.lang-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 115, 176, 0.4);
}


/* Hero Section with Slider */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.slider-container {
    height: 100%;
    position: relative;
}

.slider {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(53, 115, 176, 0.85), rgba(42, 90, 138, 0.85));
    z-index: 1;
    transition: opacity 0.8s ease;
}

.slide.active::before {
    opacity: 1;
}

.slide:not(.active)::before {
    opacity: 0.7;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    color: white;
    z-index: 2;
    text-align: center;
    position: relative;
    animation: slideContentFadeIn 1s ease-out;
}

/* Large Screen Hero Content */
@media (min-width: 1400px) {
    .slide-content {
        max-width: 900px;
    }
    
    .slide-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-description {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1600px) {
    .slide-content {
        max-width: 1000px;
    }
    
    .slide-title {
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }
    
    .slide-description {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1920px) {
    .slide-content {
        max-width: 1200px;
    }
    
    .slide-title {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-description {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Slide background images will be set via JavaScript */

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Slider Controls */

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}


/* Services Section */

.services {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

/* Large Screen Section Titles */
@media (min-width: 1400px) {
    .section-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .section-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1920px) {
    .section-title {
        font-size: 4rem;
        margin-bottom: 2.5rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Large Screen Services Grid */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3rem;
    }
}

@media (min-width: 1920px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 3.5rem;
    }
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 400px;
    transform-style: preserve-3d;
    cursor: pointer;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px) rotateY(180deg);
    box-shadow: var(--shadow-hover);
}

.service-card:hover .service-card-front {
    transform: rotateY(-180deg);
    opacity: 0;
}

.service-card:hover .service-card-back {
    transform: rotateY(0deg);
    opacity: 1;
}

.service-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(53, 115, 176, 0.05), rgba(42, 90, 138, 0.05));
    pointer-events: none;
    z-index: 1;
}

.service-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 20px;
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

.service-description {
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: #00BFFF;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}


/* Service Card Back Side */

.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(53, 115, 176, 0.9), rgba(42, 90, 138, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-back::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.service-card-back .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(53, 115, 176, 0.85), rgba(42, 90, 138, 0.85));
    z-index: 1;
    border-radius: 20px;
}

.service-card-back>*:not(.overlay) {
    position: relative;
    z-index: 2;
}

.service-card-back h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-back h3 {
    transform: scale(1.05);
}

.service-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-back p {
    opacity: 1;
}

.service-card-back .service-features {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-back .service-features {
    transform: scale(1.02);
}

.service-card-back img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover .service-card-back img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.service-feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-feature:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}


/* About Section */

.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Large Screen About Content */
@media (min-width: 1400px) {
    .about-content {
        gap: 5rem;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-description {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

@media (min-width: 1600px) {
    .about-content {
        gap: 6rem;
    }
    
    .about-text h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    
    .about-description {
        font-size: 1.2rem;
        line-height: 1.9;
    }
}

@media (min-width: 1920px) {
    .about-content {
        gap: 7rem;
    }
    
    .about-text h2 {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }
    
    .about-description {
        font-size: 1.3rem;
        line-height: 2;
    }
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image i {
    font-size: 20rem;
    color: var(--primary-color);
    opacity: 0.1;
}


/* Contact Section */

.contact {
    padding: 5rem 0;
    background: var(--secondary-color);
}


/* Contact Section Layout */

.contact-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.multi-step-form {
    flex: 1 1 600px;
    max-width: 600px;
    min-width: 320px;
}

.contact-info {
    flex: 1 1 340px;
    min-width: 260px;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(53, 115, 176, 0.07);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 2.1rem;
    color: #3573b0;
    background: #e3eaf3;
    border-radius: 50%;
    padding: 0.7rem;
}

.contact-item h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    color: #3573b0;
}

.contact-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    .multi-step-form,
    .contact-info {
        max-width: 100%;
        min-width: 0;
    }
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 115, 176, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(53, 115, 176, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 115, 176, 0.4);
}


/* Footer */


/* Footer Styles */

.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Large Screen Footer */
@media (min-width: 1400px) {
    .footer .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .footer .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

@media (min-width: 1920px) {
    .footer .container {
        max-width: 1800px;
        padding: 0 80px;
    }
}


/* Footer Content Grid */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}


/* Company Info Section */

.company-info {
    padding-right: 30px;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-description {
    color: #e0e7ff;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}


/* Company Stats */

.company-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
}


/* Footer Sections */

.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 2px;
}


/* Footer Links */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #60a5fa;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}


/* Contact Info Footer */

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-item-footer:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-item-footer i {
    color: #60a5fa;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item-footer div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.contact-value {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}


/* Social Media Section */

.social-description {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-name {
    font-size: 0.85rem;
    font-weight: 500;
}


/* Social Media Colors */

.social-link.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-color: #1877f2;
}

.social-link.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0ea5e9);
    border-color: #1da1f2;
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #0ea5e9);
    border-color: #0077b5;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #e4405f, #f09433);
    border-color: #e4405f;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #dc2626);
    border-color: #ff0000;
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #16a34a);
    border-color: #25d366;
}


/* Newsletter Section */

.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.newsletter-text p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.newsletter-input-group input::placeholder {
    color: #94a3b8;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.newsletter-input-group button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-input-group button:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}


/* Footer Bottom */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.copyright strong {
    color: #60a5fa;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #60a5fa;
}

.separator {
    color: #64748b;
    font-size: 0.8rem;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .company-info {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .company-stats {
        justify-content: center;
    }
    .social-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-section h4 {
        font-size: 1.1rem;
    }
    .company-logo h3 {
        font-size: 1.5rem;
    }
    .newsletter-section {
        padding: 20px;
    }
    .stat-item {
        min-width: 70px;
        padding: 12px;
    }
    .stat-number {
        font-size: 1.3rem;
    }
}


/* Animation for stats */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}


/* Hover effects for newsletter */

.newsletter-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}


/* Focus styles for accessibility */

.footer-links a:focus,
.social-link:focus,
.newsletter-input-group input:focus,
.newsletter-input-group button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}


/* Map Section */

.map-section {
    background: var(--secondary-color);
    padding: 4rem 0;
    margin-bottom: 0;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.map-overlay h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.map-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

[dir="ltr"] .map-overlay {
    right: auto;
    left: 20px;
}


/* Responsive Design */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .slide {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .slide-title {
        font-size: 2.5rem;
    }
    .slide-content {
        max-width: 600px;
    }
    .slider-controls {
        bottom: 20px;
        gap: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-text {
        padding-right: 0;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    .slide-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 2rem;
    }
    .slide-content {
        max-width: 400px;
    }
}


/* Language Direction Support */

[dir="ltr"] {
    direction: ltr;
}

[dir="ltr"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="ltr"] .about-text {
    padding-right: 0;
    padding-left: 2rem;
}

[dir="ltr"] .slider-btn.prev-btn i {
    transform: rotate(180deg);
}

[dir="ltr"] .slider-btn.next-btn i {
    transform: rotate(180deg);
}


/* Fix text alignment for LTR */

[dir="ltr"] .slide-content {
    text-align: center;
}

[dir="ltr"] .section-header {
    text-align: center;
}

[dir="ltr"] .section-title::after {
    text-align: center;
}

[dir="ltr"] .service-card {
    text-align: left;
}

[dir="ltr"] .about-content {
    direction: ltr;
}

[dir="ltr"] .contact-content {
    direction: ltr;
}

[dir="ltr"] .contact-info {
    order: 2;
}

[dir="ltr"] .contact-form {
    order: 1;
}

[dir="ltr"] .footer-section h3::after,
[dir="ltr"] .footer-section h4::after {
    left: 0;
    right: auto;
}

[dir="ltr"] .footer-section ul li::before {
    right: auto;
    left: -20px;
}

[dir="ltr"] .footer-section ul li a:hover {
    transform: translateX(5px);
}

[dir="ltr"] .client-item {
    text-align: center;
}

[dir="ltr"] .portfolio-content {
    text-align: center;
}

[dir="ltr"] .map-overlay {
    right: auto;
    left: 20px;
}


/* Additional Professional Enhancements */

.service-card {
    transform-style: preserve-3d;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
}


/* Smooth scrolling for better UX */

html {
    scroll-behavior: smooth;
}


/* Enhanced button hover effects */

.slide-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
}


/* Professional loading animation */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}


/* Enhanced form styling */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-family: 'Rubik', sans-serif;
}


/* Professional shadows and borders */

.contact-form {
    border: 1px solid rgba(53, 115, 176, 0.1);
}

.contact-item {
    border: 1px solid rgba(53, 115, 176, 0.05);
}


/* Portfolio Section */

.portfolio {
    padding: 5rem 0;
    background: #f7f8f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Large Screen Portfolio Grid */
@media (min-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
        gap: 3rem;
    }
}

@media (min-width: 1920px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 3.5rem;
    }
}

.portfolio-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(40, 103, 178, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 32px rgba(40, 103, 178, 0.13);
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.1);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(53, 115, 176, 0.8) 0%, rgba(42, 90, 138, 0.8) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card::after {
    content: '👁️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
}

.portfolio-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-card-info {
    padding: 1.2rem;
}

.portfolio-card-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 0.5rem;
}

.portfolio-card-meta {
    color: #3573b0;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.portfolio-card-date {
    color: #888;
    font-size: 0.95rem;
}


/* Portfolio Modal Styles */

.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40, 103, 178, 0.12);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 700px;
    width: 95vw;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(40, 103, 178, 0.18);
    max-height: 90vh;
    overflow-y: auto;
}

.portfolio-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #2867b2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-modal-close:hover {
    background: #1e4a7a;
    transform: scale(1.1);
}

.portfolio-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2867b2;
    margin-bottom: 0.5rem;
    padding-right: 50px;
}

.portfolio-modal-meta {
    color: #3573b0;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.portfolio-modal-date {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-modal-main-image {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
    background: #f7f8f9;
    border: 1px solid #eee;
}

.portfolio-modal-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.portfolio-modal-gallery img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border 0.2s;
    flex-shrink: 0;
}

.portfolio-modal-gallery img.active,
.portfolio-modal-gallery img:hover {
    border: 2px solid #2867b2;
}


/* LTR Support for Portfolio */

[dir="ltr"] .portfolio-modal-close {
    left: auto;
    right: 18px;
}

[dir="ltr"] .portfolio-modal-title {
    padding-right: 0;
    padding-left: 50px;
}


/* Mobile Responsive for Portfolio */

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .portfolio-card-image {
        height: 120px;
    }
    .portfolio-modal-content {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        margin: 1rem;
    }
    .portfolio-modal-main-image {
        max-height: 80vh;
        width: auto;
        max-width: 95vw;
    }
    .portfolio-modal-gallery img {
        width: 70px;
        height: 50px;
    }
    .portfolio-modal-title {
        font-size: 1.2rem;
        padding-right: 40px;
    }
    [dir="ltr"] .portfolio-modal-title {
        padding-right: 0;
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portfolio-card-image {
        height: 100px;
    }
    .portfolio-modal-content {
        width: 98vw;
        margin: 0.5rem;
    }
    .portfolio-modal-gallery img {
        width: 60px;
        height: 45px;
    }
}


/* Clients Section */

.clients {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.clients-grid {
    display: flex;
    overflow: hidden;
    margin-top: 3rem;
    position: relative;
    padding: 1rem 0;
}

.clients-track {
    display: flex;
    gap: 2rem;
    animation: scrollClients 30s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(53, 115, 176, 0.1);
    min-width: 280px;
    flex-shrink: 0;
}

.client-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Client item animations */

.client-item {
    animation: fadeInUp 0.6s ease forwards;
}

.client-item:nth-child(1) {
    animation-delay: 0.1s;
}

.client-item:nth-child(2) {
    animation-delay: 0.2s;
}

.client-item:nth-child(3) {
    animation-delay: 0.3s;
}

.client-item:nth-child(4) {
    animation-delay: 0.4s;
}

.client-item:nth-child(5) {
    animation-delay: 0.5s;
}

.client-item:nth-child(6) {
    animation-delay: 0.6s;
}

.client-logo {
    margin-bottom: 1.5rem;
}

.client-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.client-item:hover .client-logo i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.client-logo h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Rubik', sans-serif;
}

.client-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}


/* Floating Download Button - Vertical Center */

.floating-download {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    animation: floatButton 3s ease-in-out infinite;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 8px 25px rgba(53, 115, 176, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 120px;
}

.download-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(53, 115, 176, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.download-btn i {
    font-size: 1.2rem;
    animation: downloadPulse 2s ease-in-out infinite;
}


/* Floating Contact Buttons */

.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    background: white;
    color: var(--text-dark);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 140px;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.phone-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.phone-btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
}

.contact-btn i {
    font-size: 1.1rem;
    animation: contactPulse 2s ease-in-out infinite;
}

@keyframes floatButton {
    0%,
    100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

@keyframes downloadPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes contactPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Download Button for LTR */

[dir="ltr"] .floating-download {
    right: auto;
    left: 30px;
}


/* Contact Buttons for LTR */

[dir="ltr"] .floating-contact {
    left: auto;
    right: 30px;
}

[dir="ltr"] .notification {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="ltr"] .notification.show {
    transform: translateX(0);
}


/* Enhanced mobile responsiveness */

@media (max-width: 768px) {
    .service-card {
        height: 350px;
    }
    .service-card-back img {
        width: 80px;
        height: 80px;
    }
    .service-card-back h3 {
        font-size: 1.1rem;
    }
    .service-card-back p {
        font-size: 0.85rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .clients-grid {
        overflow: hidden;
    }
    .clients-track {
        animation-duration: 20s;
    }
    .client-item {
        min-width: 250px;
        padding: 2rem 1.5rem;
    }
    .portfolio-image {
        height: 200px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .map-container {
        height: 300px;
    }
    .map-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        text-align: center;
    }
    .floating-download {
        right: 15px;
    }
    .download-btn {
        padding: 1rem 0.6rem;
        font-size: 0.6rem;
        min-height: 80px;
    }
    .floating-contact {
        bottom: 15px;
        left: 15px;
        gap: 0.6rem;
    }
    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        min-width: 100px;
    }
    [dir="ltr"] .floating-download {
        right: auto;
        left: 15px;
    }
    [dir="ltr"] .floating-contact {
        right: auto;
        right: 15px;
    }
    /* Additional mobile improvements */
    .footer {
        padding: 3rem 0 1rem;
    }
    .footer-section h3::after,
    .footer-section h4::after {
        width: 30px;
        height: 2px;
    }
    .social-links {
        justify-content: center;
    }
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

.section-title,
.section-subtitle,
.section-description {
    text-align: center !important;
    justify-content: center !important;
}


/* Multi-step Form Styling */

.multi-step-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(53, 115, 176, 0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.multi-step-form .form-step {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 0.5s;
}

.multi-step-form .form-step.active {
    display: flex;
}

.multi-step-form .form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.multi-step-form input,
.multi-step-form select,
.multi-step-form textarea {
    border: 1.5px solid #e3eaf3;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    background: #f9fbfd;
    transition: border 0.2s;
    outline: none;
}

.multi-step-form input:focus,
.multi-step-form select:focus,
.multi-step-form textarea:focus {
    border-color: #3573b0;
    background: #fff;
}

.multi-step-form label {
    font-weight: 500;
    color: #3573b0;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    align-self: flex-start;
}

.multi-step-form select {
    appearance: none;
    background: #f9fbfd url('data:image/svg+xml;utf8,<svg fill="%233573b0" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 1rem center/1.2em auto;
}

.multi-step-form .form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.multi-step-form .progress-step {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e3eaf3;
    border: 2.5px solid #e3eaf3;
    transition: background 0.3s, border 0.3s;
    position: relative;
}

.multi-step-form .progress-step.active {
    background: #3573b0;
    border-color: #3573b0;
    box-shadow: 0 0 0 4px #3573b022;
}

.multi-step-form .next-btn,
.multi-step-form .prev-btn,
.multi-step-form .submit-btn {
    background: #3573b0;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    margin: 0.5rem 0.3rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(53, 115, 176, 0.08);
}

.multi-step-form .next-btn:hover,
.multi-step-form .prev-btn:hover,
.multi-step-form .submit-btn:hover {
    background: #285a8c;
    transform: translateY(-2px) scale(1.04);
}

.multi-step-form .next-btn,
.multi-step-form .submit-btn {
    float: right;
}

.multi-step-form .prev-btn {
    float: left;
    background: #e3eaf3;
    color: #3573b0;
}

.multi-step-form textarea {
    min-height: 100px;
    resize: vertical;
}

.multi-step-form ::placeholder {
    color: #b0b8c1;
    opacity: 1;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .multi-step-form {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 98vw;
    }
    .multi-step-form .form-progress {
        gap: 0.7rem;
    }
}


/* RTL/LTR support */

[dir="rtl"] .multi-step-form input,
[dir="rtl"] .multi-step-form select,
[dir="rtl"] .multi-step-form textarea {
    text-align: right;
}

[dir="ltr"] .multi-step-form input,
[dir="ltr"] .multi-step-form select,
[dir="ltr"] .multi-step-form textarea {
    text-align: left;
}

.multi-step-form .form-step {
    min-height: 220px;
}

.multi-step-form .form-group label {
    margin-bottom: 0.3rem;
}

.multi-step-form .form-step .next-btn,
.multi-step-form .form-step .prev-btn,
.multi-step-form .form-step .submit-btn {
    min-width: 120px;
    margin-top: 1.2rem;
}

.multi-step-form .form-step .next-btn,
.multi-step-form .form-step .submit-btn {
    float: none;
    display: inline-block;
}

.multi-step-form .form-step .prev-btn {
    float: none;
    display: inline-block;
    margin-right: 1rem;
}

.multi-step-form .form-step {
    align-items: stretch;
}

.customers-section {
    background: linear-gradient(to bottom, #2867b2 0%, #f7f8f9 40%);
    padding: 40px 0 0 0;
    margin-bottom: 0;
}

.customers-title {
    text-align: center;
    color: #222;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 0;
    letter-spacing: 1px;
}

.customers-desc {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}


/* Old customers marquee styles removed - replaced with new clients slider */


/* service page styling*/

.service-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-details {
    padding: 4rem 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.support-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card .price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.support-card ul {
    list-style: none;
    padding: 0;
}

.support-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.support-card ul li:last-child {
    border-bottom: none;
}

.support-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 0.5rem;
}

.back-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(53, 115, 176, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.cta-section {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(53, 115, 176, 0.3);
}

.support-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.response-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.response-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.response-time {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}


/* Additional service page styling */

.network-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.network-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.solution-card ul {
    list-style: none;
    padding: 0;
}

.solution-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.solution-card ul li:last-child {
    border-bottom: none;
}

.solution-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 0.5rem;
}


/* Service page responsive design */

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    .service-hero p {
        font-size: 1rem;
    }
    .service-features {
        grid-template-columns: 1fr;
    }
    .support-levels {
        grid-template-columns: 1fr;
    }
    .network-solutions {
        grid-template-columns: 1fr;
    }
    .support-stats,
    .network-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .response-times {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.5rem;
    }
    .support-stats,
    .network-stats {
        grid-template-columns: 1fr;
    }
    .back-btn {
        top: 80px;
        right: 15px;
        padding: 0.8rem;
    }
}


/* Hero Content and Gallery Styles */

.hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 20px auto;
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}


/* Security Gallery */

.security-gallery {
    padding: 60px 0;
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(53, 115, 176, 0.9));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}


/* Responsive Design for Hero and Gallery */

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin: 40px auto;
        padding: 0 20px;
    }
    .hero-text {
        text-align: center;
        margin-bottom: 1rem;
    }
    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    .gallery-item {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 1.5rem;
        margin: 30px auto;
        padding: 0 15px;
    }
    .hero-text {
        margin-bottom: 0.5rem;
    }
    .hero-image {
        margin-bottom: 0.5rem;
    }
    .hero-image img {
        height: 200px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 180px;
    }
}


/* Mega Menu Styles */

.nav-services-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 800px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(53, 115, 176, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(53, 115, 176, 0.1);
    padding: 2rem;
    margin-top: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Large Screen Mega Menu */
@media (min-width: 1400px) {
    .mega-menu {
        width: 900px;
        padding: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .mega-menu {
        width: 1000px;
        padding: 3rem;
    }
}

@media (min-width: 1920px) {
    .mega-menu {
        width: 1200px;
        padding: 3.5rem;
    }
}

.nav-services-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Disable hover on mobile */

@media (max-width: 768px) {
    .nav-services-mega:hover .mega-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
    z-index: 1;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Mega menu grid direction for RTL (Arabic) */
[dir="rtl"] .mega-menu-grid {
    direction: rtl;
}

/* Mega menu grid direction for LTR (English) */
[dir="ltr"] .mega-menu-grid {
    direction: ltr;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(53, 115, 176, 0.02);
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: rgba(53, 115, 176, 0.08);
    border-color: rgba(53, 115, 176, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(53, 115, 176, 0.15);
}

.mega-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(53, 115, 176, 0.3);
}

.mega-icon i {
    color: white;
    font-size: 1.2rem;
}

.mega-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-title {
    color: var(--primary-color);
}


/* LTR Support for Mega Menu */

[dir="ltr"] .mega-menu {
    left: 0;
    right: auto;
}

[dir="ltr"] .mega-menu::before {
    right: auto;
    left: 30px;
}


/* Mobile Responsive for Mega Menu */

@media (max-width: 1024px) {
    .mega-menu {
        width: 600px;
        padding: 1.5rem;
    }
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: none;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: rgba(53, 115, 176, 0.05);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        display: block;
    }
    .nav-services-mega.active .mega-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 1rem;
        overflow-y: auto;
        display: block;
    }
    .mega-menu::before {
        display: none;
    }
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .mega-menu-item {
        padding: 1rem 0.5rem;
    }
    .mega-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    .mega-icon i {
        font-size: 1rem;
    }
    .mega-title {
        font-size: 0.75rem;
    }
    /* Fix Floating Contact on Mobile */
    .floating-contact {
        bottom: 15px;
        left: 15px;
        gap: 0.6rem;
        width: auto;
    }
    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        min-width: 100px;
        width: auto;
        max-width: 120px;
    }
    .contact-text {
        display: none;
    }
    .contact-btn i {
        font-size: 1rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .mega-menu-item {
        flex-direction: row;
        text-align: right;
        padding: 0.8rem;
    }
    .mega-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
        margin-left: 1rem;
    }
    .mega-title {
        font-size: 0.8rem;
        text-align: right;
    }
    /* Further fix Floating Contact on small screens */
    .floating-contact {
        bottom: 10px;
        left: 10px;
        gap: 0.5rem;
    }
    .contact-btn {
        padding: 0.5rem;
        min-width: 50px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
    }
    .contact-btn i {
        font-size: 1.2rem;
    }
}

[dir="ltr"] .mega-menu-item {
    text-align: left;
}

[dir="ltr"] .mega-icon {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="ltr"] .mega-title {
    text-align: center;
}


/* Load More Buttons */

.services-load-more,
.portfolio-load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 103, 178, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Rubik', sans-serif;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 103, 178, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Hidden items */

.service-card.hidden,
.portfolio-card.hidden {
    display: none;
}


/* Responsive */

@media (max-width: 768px) {
    .load-more-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    .services-load-more,
    .portfolio-load-more {
        margin-top: 2rem;
    }
}


/* Careers Page Styles */

.careers-hero {
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
    padding: 120px 0 20px;
    text-align: center;
}

.careers-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Rubik', sans-serif;
}

.careers-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Open Positions Section */

.open-positions {
    padding: 80px 0;
}

.positions-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #2867b2;
    background: transparent;
    color: #2867b2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2867b2;
    color: white;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.position-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.position-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.position-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.position-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.position-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.position-detail i {
    color: #2867b2;
}

.position-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.apply-btn {
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 103, 178, 0.3);
}


/* Application Form Section */

.application-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.application-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2867b2;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #2867b2;
    background: #f8f9fa;
    text-align: center;
}


/* Partners Page Styles */

.partners-hero {
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
    padding: 120px 0 20px;
    text-align: center;
}

.partners-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Rubik', sans-serif;
}

.partners-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Partners Categories */

.partners-categories {
    padding: 80px 0;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.category-tab {
    padding: 1rem 2rem;
    border: 2px solid #2867b2;
    background: transparent;
    color: #2867b2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab.active,
.category-tab:hover {
    background: #2867b2;
    color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid #eee;
}

.partner-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.partner-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.partner-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.partner-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.partner-link {
    color: #2867b2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #1e4a8a;
}


/* Partnership Benefits */

.partnership-benefits {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefit-item .benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-item .benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}


/* Become Partner Section */

.become-partner {
    padding: 80px 0;
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
}

.become-partner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.become-partner-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Rubik', sans-serif;
}

.become-partner-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.partner-requirements {
    margin-bottom: 2rem;
}

.partner-requirements h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.partner-requirements ul {
    list-style: none;
    padding: 0;
}

.partner-requirements li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.partner-requirements li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #ffd700;
    font-weight: bold;
}

.partner-btn {
    background: #ffd700;
    color: #333;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.partner-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.become-partner-image {
    text-align: center;
}

.become-partner-image i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}


/* Responsive Design */

@media (max-width: 768px) {
    .careers-hero-title,
    .partners-hero-title {
        font-size: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .become-partner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .become-partner-image i {
        font-size: 4rem;
    }
    .positions-filter,
    .categories-tabs {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn,
    .category-tab {
        width: 200px;
    }
}


/* ====== أقسام الشركاء ====== */

.partners-sections {
    background: #fff;
    padding: 3rem 0 2rem;
}

.partner-block {
    margin-bottom: 2.8rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2rem;
}

.partner-block:last-child {
    border-bottom: none;
}

.partner-block-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.partner-block-number {
    background: #222c3a;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 6px;
    padding: 0.3em 1em;
    letter-spacing: 2px;
    min-width: 48px;
    text-align: center;
    display: inline-block;
}

.partner-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222c3a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem 2.5rem;
    align-items: center;
    margin-top: 1.2rem;
}

.partner-logos img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.2s, transform 0.2s;
    background: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(40, 103, 178, 0.06);
}

.partner-logos img:hover {
    filter: grayscale(0) contrast(1.2) drop-shadow(0 2px 8px #3573b033);
    transform: scale(1.07);
}

.partner-logos-multi {
    gap: 1.2rem 2rem;
}

.partner-block-desc {
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    color: #222c3a;
}

.partner-block-desc strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #3573b0;
}

.partner-block-desc ul {
    margin: 0.5rem 0 0 0;
    padding: 0 1.5rem;
    color: #444;
    font-size: 1rem;
}

.partner-block-desc ul li {
    margin-bottom: 0.2rem;
    list-style: disc inside;
}

@media (max-width: 900px) {
    .partner-logos {
        gap: 1.2rem 1.2rem;
    }
    .partner-logos img {
        max-width: 100px;
        max-height: 38px;
    }
}

@media (max-width: 600px) {
    .partner-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .partner-block-title {
        font-size: 1.1rem;
    }
    .partner-logos {
        gap: 0.7rem 0.7rem;
        justify-content: flex-start;
    }
    .partner-logos img {
        max-width: 80px;
        max-height: 28px;
        padding: 0.2rem 0.3rem;
    }
}


/* ====== صفحة من نحن ====== */

.page-hero {
    background: linear-gradient(135deg, #2867b2, #1e4a8a);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.page-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.about-page {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-section {
    margin-bottom: 5rem;
}

.about-section:last-child {
    margin-bottom: 0;
    padding: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: translateY(-10px);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.1;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vision-card,
.mission-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.vision-card h3,
.mission-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.vision-card p,
.mission-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.team-member:hover .member-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 6rem 2rem 5rem 2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin: 60px 0 50px 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.07)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0 0 0 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.13);
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    min-width: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 24px rgba(53, 115, 176, 0.10);
    margin-bottom: 0;
}

.stat-item:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 16px 40px rgba(53, 115, 176, 0.18);
    background: rgba(255, 255, 255, 0.18);
}

.stat-number {
    display: block;
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: #e0e7ef;
    font-weight: 600;
    opacity: 0.97;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3.5rem 1rem 2.5rem 1rem;
        margin: 40px 0 30px 0;
    }
    .stats-grid {
        gap: 2rem;
    }
    .stat-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 2.2rem 1rem 1.5rem 1rem;
        margin: 25px 0 18px 0;
        border-radius: 14px;
    }
    .stats-grid {
        gap: 1.2rem;
    }
    .stat-item {
        padding: 1rem 0.5rem;
        border-radius: 12px;
    }
    .stat-number {
        font-size: 2rem;
    }
}


/* ====== صفحة اتصل بنا ====== */

.contact-page {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-info-section {
    margin-bottom: 5rem;
}

.contact-info-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.info-icon i {
    font-size: 2rem;
    color: white;
}

.contact-info-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-card p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-form-map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.contact-form {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(96, 165, 250, 0.4);
}

.map-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.map-container h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.map-wrapper {
    margin-bottom: 2rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: none;
}

.map-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.map-info p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.social-media-section {
    margin-bottom: 5rem;
}

.social-media-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.social-media-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.social-card:hover {
    transform: translateY(-10px);
    color: var(--text-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.social-card.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    color: white;
}

.social-card.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0ea5e9);
    color: white;
}

.social-card.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #0ea5e9);
    color: white;
}

.social-card.instagram:hover {
    background: linear-gradient(45deg, #e4405f, #f09433);
    color: white;
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.1);
}

.social-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.faq-section {
    margin-bottom: 5rem;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.faq-grid {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.faq-question:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 300px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

.text-center {
    text-align: center;
}


/* ====== التجاوب ====== */

@media (max-width: 768px) {
    .page-hero {
        padding: 5rem 0;
    }
    .page-hero .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .page-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .about-grid,
    .vision-mission-grid,
    .contact-form-map-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .social-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 3rem 0;
    }
    .page-hero .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    .page-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .about-page,
    .contact-page {
        padding: 2rem 0;
    }
    .contact-form,
    .map-container {
        padding: 1.5rem 1rem;
    }
}


/* ====== Animations ====== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section,
.contact-info-section,
.social-media-section,
.faq-section {
    animation: fadeInUp 0.8s ease;
}

@media (max-width: 480px) {
    .page-hero {
        margin-top: 90px;
        padding-top: 2rem !important;
    }
}


/* ====== دعم RTL و LTR لصفحات about و contact ====== */

[dir="ltr"] .about-text,
[dir="ltr"] .about-section,
[dir="ltr"] .about-page,
[dir="ltr"] .vision-card,
[dir="ltr"] .mission-card,
[dir="ltr"] .value-card,
[dir="ltr"] .team-member,
[dir="ltr"] .stats-section,
[dir="ltr"] .stat-item,
[dir="ltr"] .contact-info-section,
[dir="ltr"] .contact-info-card,
[dir="ltr"] .contact-page,
[dir="ltr"] .contact-form,
[dir="ltr"] .map-container,
[dir="ltr"] .social-media-section,
[dir="ltr"] .social-card,
[dir="ltr"] .faq-section,
[dir="ltr"] .faq-item {
    text-align: left;
    direction: ltr;
}

[dir="rtl"] .about-text,
[dir="rtl"] .about-section,
[dir="rtl"] .about-page,
[dir="rtl"] .vision-card,
[dir="rtl"] .mission-card,
[dir="rtl"] .value-card,
[dir="rtl"] .team-member,
[dir="rtl"] .stats-section,
[dir="rtl"] .stat-item,
[dir="rtl"] .contact-info-section,
[dir="rtl"] .contact-info-card,
[dir="rtl"] .contact-page,
[dir="rtl"] .contact-form,
[dir="rtl"] .map-container,
[dir="rtl"] .social-media-section,
[dir="rtl"] .social-card,
[dir="rtl"] .faq-section,
[dir="rtl"] .faq-item {
    text-align: right;
    direction: rtl;
}


/* عكس ترتيب الأعمدة في about-grid عند LTR */

[dir="ltr"] .about-grid {
    direction: ltr;
}

[dir="rtl"] .about-grid {
    direction: rtl;
}


/* ====== دعم RTL و LTR للفوتر ====== */

[dir="ltr"] .footer,
[dir="ltr"] .footer * {
    text-align: left;
    direction: ltr;
}

[dir="rtl"] .footer,
[dir="rtl"] .footer * {
    text-align: right;
    direction: rtl;
}


/* Clients Slider Styles - New Continuous Animation */

.clients-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem 0;
}

.clients-slider {
    display: flex;
    width: max-content;
    animation: scrollLogos 60s linear infinite;
    will-change: transform;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    margin: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(53, 115, 176, 0.2);
    border: 2px solid rgba(53, 115, 176, 0.1);
}

.client-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s ease;
    opacity: 0.7;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-75%);
    }
}


/* Alternative animation for better performance */

@keyframes scrollLogosSmooth {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Enhanced slider properties for seamless animation */

.clients-slider {
    display: flex;
    width: max-content;
    animation: scrollLogos 60s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure logos are always visible */
    min-width: 100vw;
    /* Prevent any clipping */
    overflow: visible;
    /* Smooth animation */
    transition: opacity 0.3s ease;
    /* Ensure continuous flow */
    animation-fill-mode: both;
    /* Prevent animation from stopping */
    animation-iteration-count: infinite;
}


/* Ensure container doesn't clip the animation */

.clients-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem 0;
    /* Prevent any clipping issues */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .client-logo {
        width: 120px;
        height: 60px;
        margin: 0 1rem;
    }
    .clients-slider {
        animation-duration: 40s;
    }
    .clients-slider-container {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .client-logo {
        width: 100px;
        height: 50px;
        margin: 0 0.8rem;
    }
    .clients-slider {
        animation-duration: 35s;
    }
    .clients-slider-container {
        padding: 1rem 0;
    }
}


/* Company Profile Section Styles */

.company-profile-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.company-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 103, 178, 0.05) 0%, rgba(40, 103, 178, 0.02) 100%);
    pointer-events: none;
}

.company-profile-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-text h2 {
    color: #2867b2;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.profile-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 103, 178, 0.15);
}

.feature-item i {
    font-size: 1.5rem;
    color: #2867b2;
    background: linear-gradient(135deg, #2867b2, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item span {
    font-weight: 600;
    color: #333;
}

.profile-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2867b2, #4a90e2);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 103, 178, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 103, 178, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: #2867b2;
    border: 2px solid #2867b2;
    box-shadow: 0 4px 15px rgba(40, 103, 178, 0.1);
}

.btn-secondary:hover {
    background: #2867b2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 103, 178, 0.2);
}

.btn i {
    font-size: 1.2rem;
}

.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed #2867b2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdf-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(40, 103, 178, 0.05), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pdf-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(40, 103, 178, 0.2);
}

.pdf-preview i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.pdf-preview h4 {
    color: #2867b2;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.pdf-preview p {
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}


/* Download Animation */

.btn-primary {
    animation: downloadPulse 2s infinite;
}

@keyframes downloadPulse {
    0%,
    100% {
        box-shadow: 0 6px 20px rgba(40, 103, 178, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 103, 178, 0.5), 0 0 0 10px rgba(40, 103, 178, 0.1);
    }
}


/* Responsive Design */

@media (max-width: 1024px) {
    .company-profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .profile-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .company-profile-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    .profile-text h2 {
        font-size: 2rem;
    }
    .profile-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .pdf-preview {
        padding: 2rem;
    }
    .pdf-preview i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .company-profile-section {
        padding: 1.5rem;
    }
    .profile-text h2 {
        font-size: 1.8rem;
    }
    .profile-features {
        gap: 1rem;
    }
    .feature-item {
        padding: 0.8rem;
    }
    .pdf-preview {
        padding: 1.5rem;
    }
}


/* إصلاح بداية السلايدر - إزالة الفراغ من اليسار */

.clients-slider {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* Enhanced Navigation Direction Support */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


/* Ensure logo stays in correct position */

.nav-logo {
    flex-shrink: 0;
}


/* Language switch positioning */

.language-switch {
    flex-shrink: 0;
}


/* Mobile menu adjustments */

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    [dir="rtl"] .nav-menu {
        align-items: flex-end !important;
    }
    [dir="ltr"] .nav-menu {
        align-items: flex-start !important;
    }
}


/* Ensure smooth transitions for all navigation changes */

.nav-menu,
.nav-item,
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Optimize for better performance */

.nav-menu {
    will-change: transform;
    backface-visibility: hidden;
}


/* Ensure proper spacing in both directions */

.nav-item {
    margin: 0;
    padding: 0;
}


/* Fix for mega menu positioning in both directions */

[dir="rtl"] .mega-menu {
    right: 0;
    left: auto;
}


/* Ensure consistent navigation behavior across all pages */

.nav-container {
    position: relative;
}


/* Fix for language switch positioning */

.language-switch {
    position: relative;
    z-index: 1000;
}


/* Ensure proper text alignment in both directions */

[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="ltr"] .nav-link {
    text-align: left;
}


/* Smooth animation for direction changes */

.nav-menu {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.clients-slider .client-logo:first-child {
    margin-left: 0 !important;
}


/* تأكد أن الحاوية لا تضيف padding جانبي */

.clients-slider-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.clients-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 32px 24px;
    justify-items: center;
    align-items: center;
    margin: 40px 0;
}

.clients-simple-grid img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.9);
    transition: filter 0.3s, transform 0.3s;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40, 103, 178, 0.08);
    padding: 10px 18px;
}

.clients-simple-grid img:hover {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(40, 103, 178, 0.18);
}

@media (max-width: 700px) {
    .clients-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 10px;
    }
    .clients-simple-grid img {
        max-width: 80px;
        max-height: 40px;
        padding: 6px 8px;
    }
}

@media (max-width: 600px) {
    .portfolio-card {
        aspect-ratio: unset !important;
        height: auto !important;
        min-height: 180px;
    }
    .portfolio-card-image {
        height: 200px !important;
        object-fit: cover !important;
        width: 100% !important;
        background: #fff;
    }
}