:root {
    /* 🎨 Brand Core Colors (Mandatory) */
    --main-color: #0D1D73;
    /* Primary Deep Blue */
    --secondary-color: #06113F;
    /* Secondary Darker Blue */

    /* 🎯 Supporting Colors */
    --accent-color: #0D1D73;
    /* Changed from Light Blue #3FA9F5 to Navy Blue #0D1D73 */

    /* Gradients (Cool Tones Only) */
    --main-gradient: linear-gradient(135deg, #0D1D73 0%, #06113F 100%);
    --accent-gradient: linear-gradient(135deg, #0D1D73 0%, #06113F 100%);
    --bg-hero-gradient: linear-gradient(180deg, rgba(13, 29, 115, 0.05) 0%, rgba(255, 255, 255, 1) 100%);

    /* Neutral & Background Colors */
    --bg-color: #FFFFFF;
    /* White */
    --second-bg-color: #F5F7FA;
    /* Light Gray Background */
    --border-color: #D1D5DB;
    /* Borders & Dividers */

    /* Typography Colors */
    --text-color: #111827;
    /* Primary Text */
    --text-muted: #9CA3AF;
    /* Secondary Text */
    --text-light: #FFFFFF;
    /* White Text */
    --heading-color: #0D1D73;
    /* Headings match Primary Blue */

    /* Shadows (Subtle Blue Tint) */
    --shadow-sm: 0 1px 2px rgba(13, 29, 115, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(13, 29, 115, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(13, 29, 115, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(13, 29, 115, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Almarai', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.75;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--main-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles - Strict Brand Colors */
.btn {
    background: var(--accent-color);
    /* #3FA9F5 */
    color: #FFFFFF;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    /* Darker Blue Overlay on Hover */
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #FFFFFF;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Secondary Button (Outline) */
.btn.btn-outline-light {
    background: transparent;
    border: 2px solid var(--border-color);
    /* Grey Border */
    color: var(--heading-color);
    box-shadow: none;
}

.btn.btn-outline-light:hover {
    background: var(--main-color);
    color: #FFFFFF;
    border-color: var(--main-color);
}

/* Secondary Button (Brand Style) */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--main-color);
    color: #FFFFFF;
}

/* Header Styles - Classic White */
/* =========================================
   New Header Styles - Clean & Modern
   ========================================= */

/* Header Container */
.main-header {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    /* White Background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
    /* Fixed height for consistency */
}

/* 1. Logo (Right) */
.logo-container {
    flex: 0 0 200px;
    /* ثابت العرض لضمان التوازن */
    order: 1;
    /* First in source, on Right in RTL */
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* 2. Navigation (Center) */

/* 2. Navigation (Center) */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center the navigation */
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    /* Generous spacing like the reference */
    align-items: center;
}

.main-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}



.nav-item {
    text-decoration: none;
    color: #555555;
    /* Dark Gray Text */
    font-weight: 700;
    /* Bold font to match image */
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
    /* Gold on Hover */
}

/* Hover Effect Line - optional based on "subtle" req */
/* Hover Effect Line */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    right: 0;
    background-color: var(--accent-color);
    /* Gold Underline */
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}


/* 3. Social Icons / Actions (Left) */
.header-actions {
    flex: 0 0 200px;
    /* نفس عرض الشعار لضمان التوسط المثالي للقائمة */
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* المحاذاة لليسار (النهاية في RTL هي اليسار) */
    gap: 15px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--main-color);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown>a i {
    font-size: 0.8em;
    margin-right: 5px;
    transition: transform 0.3s;
}

.nav-dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    /* Center dropdown */
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1100;
    text-align: right;
    /* RTL content */
    border: 1px solid #f0f0f0;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInName 0.3s ease;
}

.dropdown-content li {
    display: block;
    width: 100%;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    padding-right: 25px;
    /* Slight slide effect */
    color: var(--main-color);
}

@keyframes fadeInName {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

/* 3. Social Icons (Left) */
.header-actions {
    flex: 0 0 auto;
    order: 3;
    /* Last in source, on Left in RTL */
    display: flex;
    align-items: center;
    gap: 15px;
}



/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 992px) {

    /* Hide Socials on Tablet/Mobile to save space */


    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile Nav Drawer */




    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        width: 100%;
    }





    /* Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    background: #ffffff;
    /* White Background */
    overflow: hidden;
    margin-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: right;
    padding-left: 20px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    /* Extra Bold */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: #333333;
    /* Dark Gray/Black */
    line-height: 1.3;
    text-align: right;
}

.hero-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #555555;
    /* Medium Dark Gray */
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    opacity: 0.9;
    text-align: right;
}

.hero .description {
    font-style: normal;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background-color: var(--main-color);
    color: #333;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        display: inline-block;
        text-align: center;
    }

    .hero-text h1::after {
        width: 120px;
        height: 8px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 20px;
    }

    .hero-image-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h3 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f8f8f8;
    position: relative;
    margin-top: 60px;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
    text-align: right;
    padding-right: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    text-align: right;
    border-bottom: none;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    margin-top: 15px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: block;
}

.about-image img:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 1;
        text-align: center;
    }

    .about-image {
        order: 2;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: none;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px;
    scroll-behavior: smooth;
    margin-top: 50px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.services-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.service-card {
    min-width: 320px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    /* Smoother corners */
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(42, 50, 131, 0.18);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem !important;
    color: white !important;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(42, 50, 131, 0.28);
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}

.service-card:hover .service-icon i {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.read-more:hover {
    color: #e6e6a0;
}

.read-more:hover::after {
    width: 100%;
}

/* Why Us Section */
/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: #f8f9fa;
    /* Light Background */
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.svg');
    background-size: 600px;
    opacity: 0.03;
    z-index: 1;
}

.why-us .section-header h2 {
    color: var(--main-color);
    border-bottom: none;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.why-us-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: 15px;
    background-color: #ffffff;
    /* White Card */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.why-us-card:hover {
    background-color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--main-color);
}

.why-us-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--main-color);
}

.why-us-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.why-us-card::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--main-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: #f8f8f8;
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.svg');
    background-size: 500px;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-header-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: none;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.view-all-team-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.view-all-team {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background-color: rgba(230, 230, 160, 0.3);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.view-all-team i {
    margin-left: 12px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-all-team:hover {
    background-color: rgba(230, 230, 160, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-all-team:hover i {
    transform: translateX(-5px);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 40px;
    gap: 15px;
}

.filter-btn {
    background: #f5f5f5;
    color: #0a192f;
    border: none;
    transition: all 0.3s ease;
}

.filter-btn:not(.active):hover {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    color: #fff !important;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.filter-btn.active {
    background-color: rgba(230, 230, 160, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.portfolio-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-15px);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-img::before {
    opacity: 1;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1) rotate(2deg);
}

.portfolio-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-content {
    background: linear-gradient(145deg, #fff, #f8f8f8);
}

.portfolio-title {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-title {
    color: #000;
}

.portfolio-category {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: inline-block;
    background: rgba(230, 230, 160, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-category {
    background: rgba(230, 230, 160, 0.4);
}

.portfolio-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
}

.portfolio-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.portfolio-link:hover {
    color: #000;
}

.portfolio-link:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.portfolio-link::before {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 12px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    order: 2;
}

.portfolio-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Portfolio/Team Item Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
    opacity: 0;
}

.portfolio-item:nth-child(1) {
    --i: 1;
}

.portfolio-item:nth-child(2) {
    --i: 2;
}

.portfolio-item:nth-child(3) {
    --i: 3;
}

.portfolio-item:nth-child(4) {
    --i: 4;
}

.portfolio-item:nth-child(5) {
    --i: 5;
}

.portfolio-item:nth-child(6) {
    --i: 6;
}

/* Freelancers Modal Improvements */
.freelancers-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: none;
}

.freelancers-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1101;
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1102;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background-color: #1a1a1a;
}

.modal-title {
    margin: 0;
    font-size: 26px;
    color: #e6e6a0;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Freelancers Grid */
.freelancers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.freelancers-category {
    display: none;
}

.freelancers-category.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

/* Freelancer Card */
.freelancer-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.freelancer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.freelancer-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.freelancer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.freelancer-card:hover .freelancer-image img {
    transform: scale(1.1);
}

.freelancer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.freelancer-card:hover .freelancer-overlay {
    opacity: 1;
}

.freelancer-info {
    color: white;
}

.freelancer-info h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #e6e6a0;
}

.freelancer-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.freelancer-projects {
    text-align: right;
}

.freelancer-projects span {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #e6e6a0;
    font-size: 16px;
}

.freelancer-projects ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.freelancer-projects li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-right: 15px;
    position: relative;
}

.freelancer-projects li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #e6e6a0;
}

.freelancer-card h4 {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.freelancer-card>p {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 14px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {

    .freelancers-grid,
    .freelancers-category.active {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .freelancer-image {
        height: 200px;
    }

    .modal-container {
        width: 95%;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {

    .freelancers-grid,
    .freelancers-category.active {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats section */
.stats-section {
    text-align: center;
    padding: 80px 0;
    background: var(--main-color);
    position: relative;
    margin-bottom: 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.svg');
    background-size: 500px;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.stats-content {
    position: relative;
    z-index: 2;
}

.stats-title {
    color: white;
    margin-bottom: 20px;
    font-size: 36px;
}

.stats-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 18px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #e6e6a0 !important;
    margin-bottom: 10px;
}

.stat-text {
    color: white;
    font-size: 18px;
}

/* Blog section */
.blog-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
}

.blog-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section .section-title h2 {
    font-size: 36px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    border-bottom: none;
}

.blog-section .section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.blog-post {
    width: calc(33.33% - 20px);
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-post-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-post:hover .blog-post-img img {
    transform: scale(1.1);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-post-meta .author {
    display: flex;
    align-items: center;
}

.blog-post-meta .author i {
    margin-left: 12px;
    color: #e6e6a0;
}

.blog-post-meta .date {
    display: flex;
    align-items: center;
}

.blog-post-meta .date i {
    margin-left: 12px;
    color: #e6e6a0;
}

.blog-post-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.blog-post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.read-more-link:hover {
    color: #e6e6a0;
}

.read-more-link:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

@media (max-width: 991px) {
    .blog-post {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .blog-post {
        width: 100%;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.testimonials-slider {
    margin-top: 50px;
    overflow: hidden;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 100px;
    color: rgba(230, 230, 160, 0.2);
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #e6e6a0;
    bottom: 0;
    left: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h4 {
    margin: 0;
    color: #1a1a1a;
}

.author-info p {
    margin: 5px 0 0;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 230, 160, 0.3);
}

.contact-item:hover .contact-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(230, 230, 160, 0.4);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.2);
}

.contact-text h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.contact-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: #e6e6a0;
    box-shadow: 0 5px 15px rgba(230, 230, 160, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.contact .btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

/* Footer */
footer {
    background: #1e2a38 !important;
    color: white;
    padding: 38px 0 18px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.svg');
    background-size: 600px;
    opacity: 0.07;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.footer-logo img {
    height: 64px;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 12px !important;
}

.social-links {
    display: flex;
    margin-top: 14px !important;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1em !important;
}

.social-links a:hover {
    background-color: #0a192f !important;
    color: #fff !important;
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #e6e6a0;
    padding-left: 20px;
}

.footer-links a:hover::before {
    color: #e6e6a0;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i,
.footer-newsletter i,
.footer-info i,
.newsletter-btn i {
    color: #0a192f !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    font-size: 1.2em;
    vertical-align: middle;
}

/* دعم RTL */
[dir="rtl"] .footer-contact i,
[dir="rtl"] .footer-newsletter i,
[dir="rtl"] .footer-info i,
[dir="rtl"] .newsletter-btn i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-btn {
    background-color: #0a192f !important;
    color: #fff !important;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
}

.newsletter-btn i {
    color: #fff !important;
    font-size: 1.3em !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.social-links a,
.footer-contact i,
.footer-newsletter i,
.footer-info i,
.newsletter-btn i {
    font-size: 1.3em !important;
    min-width: 1.3em;
    min-height: 1.3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-contact i,
.footer-newsletter i,
.footer-info i {
    color: #0a192f !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    vertical-align: middle;
}

[dir="rtl"] .footer-contact i,
[dir="rtl"] .footer-newsletter i,
[dir="rtl"] .footer-info i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        order: 2;
        text-align: center;
    }

    .hero-image-container {
        order: 1;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 1;
        text-align: center;
    }

    .about-image {
        order: 2;
    }

    .language-switcher {
        margin-right: 15px;
    }

    nav {
        order: 4;
        flex: 0 0 100%;
        margin-top: 15px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .portfolio-item {
        width: 48%;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 48px;
        left: 0;
        width: 94vw;
        max-width: 420px;
        right: 0;
        margin: 0 auto;
        height: 0;
        background: #fff !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
        overflow: hidden;
        transition: height 0.35s cubic-bezier(.4, 0, .2, 1);
        z-index: 1100;
        padding: 0;
        border-radius: 0 0 28px 28px;
        display: block;
        font-family: 'Changa', 'Cairo', 'Tajawal', 'Almarai', 'Noto Kufi Arabic', sans-serif !important;
    }

    header nav.active {
        height: 62vh;
        padding: 56px 0 0 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-end;
        padding: 0 32px;
        margin: 0;
        gap: 0;
        width: 100%;
        display: flex;
    }

    header nav ul li {
        width: 100%;
        margin: 0;
        border: none !important;
    }

    header nav ul li a {
        display: block;
        width: 100%;
        padding: 20px 0 8px 0;
        color: #222 !important;
        font-size: 22px !important;
        font-family: 'Changa', 'Cairo', 'Tajawal', 'Almarai', 'Noto Kufi Arabic', sans-serif !important;
        font-weight: 800;
        text-align: right;
        border-radius: 0;
        background: none !important;
        transition: color 0.18s;
        border: none !important;
        box-shadow: none !important;
        letter-spacing: 0.01em;
        line-height: 1.2;
    }

    header nav ul li a:hover,
    header nav ul li a.active {
        color: #055392 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .close-menu {
        position: absolute;
        top: -38px;
        left: 18px;
        background: none;
        border: none;
        z-index: 1200;
        cursor: pointer;
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-circle {
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        color: #055392;
        border: 1px solid #eee;
        transition: box-shadow 0.2s;
    }

    .close-circle:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        background: #f5f5f5;
    }

    .menu-toggle {
        position: fixed;
        left: 25px !important;
        right: auto !important;
        top: 25px;
        z-index: 1300 !important;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 7px 5px;
        border: 1px solid #eee;
        transition: box-shadow 0.2s;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.13);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1099;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }


    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .portfolio-item {
        width: 100%;
    }

    .social-media {
        justify-content: center;
    }
}

/* تنسيق عام للقائمة */


/* أيقونة البرجر */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }



    /* تحويل أيقونة البرجر إلى X عند النقر */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 80px;
    }

    .service-card,
    .portfolio-item,
    .testimonial-card {
        margin-bottom: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Scroll Animations */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal.active.fade-bottom {
    transform: translateY(0);
}

.reveal.active.fade-left {
    transform: translateX(0);
}

.reveal.active.fade-right {
    transform: translateX(0);
}

.reveal.fade-bottom {
    transform: translateY(30px);
}

.reveal.fade-left {
    transform: translateX(-100px);
}

.reveal.fade-right {
    transform: translateX(100px);
}

/* Services Slider */
.services-slider-controls {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

.slider-arrow {
    background-color: #1a1a1a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-arrow:hover {
    background-color: #e6e6a0;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #e6e6a0;
    transform: scale(1.2);
}

/* Freelance Team Section styling */
.freelance-team-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.freelance-team-section::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(245, 245, 245, 0.5);
    z-index: 0;
    border-radius: 15px;
}

.freelance-team-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.freelance-team-title h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.freelance-team-title h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.freelance-team-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

.freelance-category {
    display: none;
    position: relative;
    z-index: 1;
}

.freelance-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.freelance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.freelance-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    transform: translateY(0);
}

.freelance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.freelance-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.freelance-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.freelance-card:hover .freelance-img::before {
    opacity: 1;
}

.freelance-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.freelance-card:hover .freelance-img img {
    transform: scale(1.1) rotate(2deg);
}

.freelance-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freelance-title {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.freelance-position {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: inline-block;
    background: rgba(230, 230, 160, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.freelance-description {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.freelance-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 15px;
}

.freelance-skills span {
    font-size: 12px;
    background-color: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.freelance-card:hover .freelance-skills span {
    background-color: #e6e6a0;
    color: #1a1a1a;
}

.freelance-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    align-self: flex-start;
}

.freelance-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.freelance-link:hover {
    color: #000;
}

.freelance-link:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.freelance-link::before {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 12px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    order: 2;
}

.freelance-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Freelancers Page Styles */
.freelancers-hero {
    padding: 120px 0 60px;
    background: #1e2a38 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.freelancers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern-bg.svg');
    background-size: 500px;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.freelancers-hero .section-header {
    position: relative;
    z-index: 1;
}

.freelancers-hero h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.freelancers-hero h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    border-radius: 2px;
}

.freelancers-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.freelancers-main {
    padding: 80px 0;
    background-color: #f8f8f8;
    position: relative;
}

.freelancers-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 15px;
}

.freelancers-filter .filter-btn {
    background-color: transparent;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.freelancers-filter .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.freelancers-filter .filter-btn:hover,
.freelancers-filter .filter-btn.active {
    color: #1a1a1a;
    background-color: rgba(230, 230, 160, 0.3);
    transform: translateY(-2px);
}

.freelancers-filter .filter-btn.active {
    background-color: rgba(230, 230, 160, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.freelancers-filter .filter-btn.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.freelance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
}

.freelance-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    transform: translateY(0);
}

.freelance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.freelance-card.animated {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.freelance-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.freelance-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.freelance-card:hover .freelance-img::before {
    opacity: 1;
}

.freelance-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.freelance-card:hover .freelance-img img {
    transform: scale(1.1) rotate(2deg);
}

.freelance-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freelance-title {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.freelance-position {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: inline-block;
    background: rgba(230, 230, 160, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.freelance-description {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.freelance-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 15px;
}

.freelance-skills span {
    font-size: 12px;
    background-color: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.freelance-card:hover .freelance-skills span {
    background-color: #e6e6a0;
    color: #1a1a1a;
}

.freelance-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    align-self: flex-start;
}

.freelance-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #e6e6a0;
    transition: width 0.3s ease;
}

.freelance-link:hover {
    color: #000;
}

.freelance-link:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.freelance-link::before {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 12px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    order: 2;
}

.freelance-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.back-to-home {
    text-align: center;
    padding: 40px 0 60px;
    background-color: #f8f8f8;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive styles for freelancers page */
@media (max-width: 992px) {
    .freelancers-hero {
        padding: 100px 0 50px;
    }

    .freelancers-hero h1 {
        font-size: 36px;
    }

    .freelance-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .freelancers-hero {
        padding: 80px 0 40px;
    }

    .freelancers-hero h1 {
        font-size: 32px;
    }

    .freelancers-hero p {
        font-size: 16px;
    }

    .freelancers-filter {
        gap: 10px;
    }

    .freelancers-filter .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .freelance-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .freelancers-hero h1 {
        font-size: 28px;
    }

    .freelancers-filter {
        flex-direction: column;
        align-items: center;
    }

    .freelancers-filter .filter-btn {
        width: 100%;
        max-width: 250px;
    }

    .freelance-grid {
        grid-template-columns: 1fr;
    }
}

/* Filter Instructions */
.filter-instruction {
    text-align: center;
    margin-bottom: 30px;
}

.instruction-text {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

/* تعديل المسافة بين الأسهم والنص */
.portfolio-link i,
.freelance-link i,
.view-all-team i {
    margin-left: 12px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* تنسيق عرض جميع المقالات */
.view-all-articles {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.view-all-articles i {
    margin-right: 10px;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-all-articles:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a192f 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.view-all-articles:hover i {
    transform: translateX(-5px);
}

/* تعديل أيقونات التواصل */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 230, 160, 0.3);
}

.contact-item:hover .contact-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(230, 230, 160, 0.4);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.2);
}

.contact-text h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.contact-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* تنسيق العودة للرئيسية من صفحة المدونة */
.blog-section a.view-all-articles {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.blog-section a.view-all-articles i {
    margin-right: 10px;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-section a.view-all-articles:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a192f 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.blog-section a.view-all-articles:hover i {
    transform: translateX(-5px);
}

.blog-search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-search-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.blog-search-btn:hover {
    background: linear-gradient(135deg, #333333, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

nav ul li a.active {
    color: #055392;
    font-weight: 700;
    position: relative;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #055392;
    bottom: -5px;
    left: 0;
    border-radius: 3px;
}

.category-filter {
    padding: 10px 25px;
    background-color: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-filter:hover {
    background-color: rgba(230, 230, 160, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.active-filter {
    background-color: rgba(230, 230, 160, 0.4) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Partner Page Styles */
.partner-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    position: relative;
}

.partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('images/about-pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.partner-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.partner-info {
    flex: 1;
    min-width: 300px;
}

.partner-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-color);
}

.partner-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}

.partner-info>p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 230, 160, 0.3);
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.benefit-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.benefit-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.partner-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.partner-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    opacity: 0.04;
    border-radius: 15px;
    z-index: -1;
}

.partner-form-container h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.partner-form-container>p {
    margin-bottom: 25px;
    font-size: 15px;
    color: #555;
}

.partner-form {
    margin-top: 20px;
}

.partner-form .form-group {
    margin-bottom: 20px;
}

.partner-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.partner-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 15px;
    transition: all 0.3s ease;
}

.partner-form .form-control:focus {
    border-color: var(--main-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(230, 230, 160, 0.15);
}

.partner-form button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.partner-testimonials {
    background-color: #eaf2fb !important;
    padding: 80px 0;
    position: relative;
}

.partner-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(248, 248, 232, 0.9), rgba(248, 248, 232, 0.9)), url('images/pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.cta-section {
    padding: 80px 0;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--main-color);
}

.cta-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.cta-content .btn {
    background-color: var(--main-color);
    color: var(--accent-color);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

.cta-content .btn:hover {
    background-color: white;
    color: var(--accent-color);
}

/* Responsive styles for partner page */
@media (max-width: 992px) {
    .partner-content {
        flex-direction: column;
    }

    .partner-benefits {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .benefit-item {
        padding: 15px;
    }
}

@media (max-width: 768px) {

    .partner-section,
    .partner-testimonials,
    .cta-section {
        padding: 60px 0;
    }

    .partner-benefits {
        grid-template-columns: 1fr;
    }

    .partner-info h2,
    .partner-form-container h2,
    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {

    .partner-section,
    .partner-testimonials,
    .cta-section {
        padding: 50px 0;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-icon i {
        font-size: 16px;
    }

    .partner-form-container {
        padding: 20px;
    }
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #4CAF50;
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.form-success i {
    margin-left: 10px;
    font-size: 20px;
}

@media (max-width: 576px) {

    .partner-section,
    .partner-testimonials,
    .cta-section {
        padding: 50px 0;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-icon i {
        font-size: 16px;
    }

    .partner-form-container {
        padding: 20px;
    }
}

/* Partners Grid Styles */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.partner-logo-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.partner-logo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 100px;
    height: 100px;
    background: #eaf2fb !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo-card:hover .partner-logo img {
    transform: scale(1.1);
}

.partner-logo i {
    font-size: 2.8rem !important;
    color: #055392 !important;
}

.partner-logo-card:hover .partner-logo i {
    transform: scale(1.1);
    background-color: rgba(230, 230, 160, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

/* Responsive styles for partners grid */
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Contact Button Styling */
.whatsapp-link {
    background-color: #25d366 !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 5px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
}

.whatsapp-link:hover {
    background-color: #128c7e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.whatsapp-link i {
    font-size: 16px !important;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.fixed-whatsapp i {
    font-size: 30px;
}

.fixed-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Top Left Social Media Icons */
.top-social-icons {
    position: fixed;
    top: 200px;
    left: 30px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    flex-direction: column;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.top-social-icons::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 80%;
    background-color: #e6e6a0;
    left: 0;
    top: 10%;
    border-radius: 3px;
}

.top-social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-social-icons i {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.top-social-icons .facebook {
    background-color: #3b5999;
}

.top-social-icons .twitter {
    background-color: #000000;
}

.top-social-icons .instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.top-social-icons .linkedin {
    background-color: #0077b5;
}

.top-social-icons i {
    font-size: 18px;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fixed-whatsapp i {
    font-size: 30px;
}

.fixed-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .top-social-icons {
        top: 160px;
        left: 15px;
        padding: 12px 8px;
    }

    .top-social-icons a {
        width: 35px;
        height: 35px;
    }

    .top-social-icons i {
        font-size: 16px;
    }

    .fixed-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .fixed-whatsapp i {
        font-size: 25px;
    }
}

/* إصلاحات شاملة للأيقونات */
i.fas,
i.fab,
i.far {
    font-size: inherit !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

/* إصلاح أيقونات الخدمات */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(42, 50, 131, 0.18);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem !important;
    color: white !important;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(42, 50, 131, 0.28);
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}

.service-card:hover .service-icon i {
    transform: scale(1.2);
}

/* إصلاح أيقونات وسائل التواصل الاجتماعي */
.top-social-icons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-social-icons::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    z-index: -1;
}

.top-social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.top-social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.top-social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.top-social-icons .facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.top-social-icons .twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.top-social-icons .instagram {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
}

.top-social-icons .linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.top-social-icons i {
    font-size: 1.1rem !important;
    color: white !important;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

/* إصلاح أيقونة واتساب الثابتة */
.fixed-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.fixed-whatsapp i {
    font-size: 1.8rem !important;
    color: white !important;
    transition: all 0.3s ease;
}

.fixed-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* إصلاح أيقونات الأسهم */
.slider-arrow i,
.view-all-team i,
.portfolio-link i,
.freelance-link i {
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

/* إصلاح أيقونة الإغلاق */
.close-menu i {
    font-size: 1.2rem !important;
    color: var(--dark-text) !important;
}

/* إصلاح أيقونات الفلتر */
.filter-btn i {
    font-size: 1rem !important;
    margin-left: 5px;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .top-social-icons {
        left: 10px;
        gap: 8px;
    }

    .top-social-icons a {
        width: 40px;
        height: 40px;
    }

    .top-social-icons i {
        font-size: 1rem !important;
    }

    .fixed-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .fixed-whatsapp i {
        font-size: 1.5rem !important;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 1.8rem !important;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.3rem !important;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-icon i {
        font-size: 1.3rem !important;
    }
}

/* إصلاح أيقونة الإغلاق - فقط للشاشات الصغيرة */
.close-menu i {
    font-size: 1.2rem !important;
    color: var(--dark-text) !important;
}

/* إخفاء زر الإغلاق في الشاشات الكبيرة */
@media (min-width: 769px) {
    .close-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* زر العودة للأعلى */
.back-to-home-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.back-to-home-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-to-home-btn span {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background: linear-gradient(135deg, #e6e6a0 0%, #d4d47a 100%);
    color: #1a1a1a;
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 6px 25px rgba(230, 230, 160, 0.3);
    border-color: #e6e6a0;
}

.back-to-home-btn:hover i {
    transform: translateX(5px);
}

.back-to-home-btn:hover span {
    opacity: 1;
    max-width: 120px;
    margin-left: 5px;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .back-to-home-btn {
        top: auto;
        bottom: 140px;
        right: 20px;
        transform: none;
        padding: 12px 15px;
        font-size: 12px;
    }

    .back-to-home-btn i {
        font-size: 14px;
    }

    .back-to-home-btn span {
        display: none;
    }

    .back-to-home-btn:hover {
        transform: translateX(-3px);
    }
}

@media (max-width: 480px) {
    .back-to-home-btn {
        bottom: 120px;
        right: 15px;
        padding: 10px 12px;
    }

    .back-to-home-btn i {
        font-size: 12px;
    }
}

.slider-arrow,
.filter-btn.active,
.filter-btn:hover,
.view-all-team,
.view-all-articles,
.blog-section a.view-all-articles,
.back-btn,
.category-filter.active,
.category-filter:hover {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(42, 50, 131, 0.13);
    border: none;
    transition: all 0.3s ease;
}

.slider-arrow:hover,
.view-all-team:hover,
.view-all-articles:hover,
.blog-section a.view-all-articles:hover,
.back-btn:hover,
.category-filter.active,
.category-filter:hover {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    color: #fff !important;
}

.filter-btn {
    background: #f5f5f5;
    color: #0a192f;
    border: none;
    transition: all 0.3s ease;
}

.filter-btn:not(.active):hover {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    color: #fff !important;
}

.freelancer-info h4,
.freelancer-info span,
.freelancer-projects span,
.freelancer-link,
.freelancer-link:visited {
    color: #0a192f !important;
    font-weight: 700;
}

.freelancer-link:hover {
    color: #112240 !important;
    text-decoration: underline;
}

.freelancer-projects span,
.freelancer-info span {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: #fff !important;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
    font-weight: 600;
}

.freelancer-card .back-btn,
.freelancer-card .btn,
.freelancer-card .view-projects-btn {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.freelancer-card .back-btn:hover,
.freelancer-card .btn:hover,
.freelancer-card .view-projects-btn:hover {
    background: linear-gradient(135deg, #112240 0%, #0a192f 100%) !important;
    color: #fff !important;
}

.section-header h2::after,
.about-text h2::after,
.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after,
.partner-info h2::after,
.freelancers-hero h1:after,
.testimonial-text::after {
    background: linear-gradient(135deg, #055392 0%, #17abe3 100%) !important;
}

.footer-info .social-links {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    justify-content: flex-start;
}

.footer-info p {
    margin-bottom: 10px !important;
}

/* ====== NAVBAR DROPDOWN OVERLAY ====== */
@media (max-width: 768px) {
    header nav {
        position: fixed;
        top: 40px;
        left: 0;
        width: 100vw;
        height: 0;
        background: #fff !important;
        box-shadow: none !important;
        overflow: hidden;
        transition: height 0.35s cubic-bezier(.4, 0, .2, 1);
        z-index: 1100;
        padding: 0;
        border-radius: 0 0 24px 24px;
        display: block;
    }

    header nav.active {
        height: 60vh;
        padding: 40px 0 0 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-end;
        padding: 0 32px;
        margin: 0;
        gap: 0;
        width: 100%;
        display: flex;
    }

    header nav ul li {
        width: 100%;
        margin: 0;
        border: none !important;
    }

    header nav ul li a {
        display: block;
        width: 100%;
        padding: 18px 0 10px 0;
        color: #222 !important;
        font-size: 22px !important;
        font-weight: 700;
        text-align: right;
        border-radius: 0;
        background: none !important;
        transition: color 0.2s;
        border: none !important;
        box-shadow: none !important;
    }

    header nav ul li a:hover,
    header nav ul li a.active {
        color: #055392 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .close-menu {
        position: absolute;
        top: -40px;
        left: 25px;
        background: none;
        border: none;
        z-index: 1200;
        cursor: pointer;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-circle {
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: #055392;
        border: 1px solid #eee;
    }

    .menu-toggle {
        position: fixed;
        left: 25px !important;
        right: auto !important;
        top: 25px;
        z-index: 1300 !important;
        background: #fff;
        border-radius: 8px;
        box-shadow: none !important;
        padding: 7px 5px;
        border: 1px solid #eee;
        transition: box-shadow 0.2s;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.18);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1099;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    header nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        display: flex;
        align-items: center;
    }

    header nav ul {
        display: flex;
        flex-direction: row;
        gap: 30px;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    header nav ul li a {
        color: #333;
        font-size: 16px;
        font-weight: 600;
        padding: 10px 0;
        transition: color 0.3s ease;
        background: none;
    }

    header nav ul li a:hover {
        color: #055392;
        background: none;
    }

    .close-menu {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }
}

/* Projects/Portfolio Section Updates */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    /* Deep Blue Overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #2563eb;
    /* Elegant Blue */
    color: #2563eb;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.project-info {
    padding: 20px;
}

.project-category {
    font-size: 0.8rem;
    color: #2563eb;
    background: rgba(10, 25, 47, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #0a192f;
    font-weight: 700;
}

.project-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Portfolio Filter Updates */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0a192f;
    color: #fff;
    border-color: #0a192f;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #f4f6f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid #0a192f;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.5rem;
}

.client-info h4 {
    margin: 0;
    color: #0a192f;
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.testimonial-text {
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* =========================================
   NEW SOFTWARE HOUSE STYLES
   ========================================= */

/* LTR Support & General Overrides */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .hero-text,
html[dir="ltr"] .about-text,
html[dir="ltr"] .section-header,
html[dir="ltr"] .service-card,
html[dir="ltr"] .footer-col,
html[dir="ltr"] .footer-bottom p {
    text-align: left;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .about-content {
    flex-direction: row;
    /* Un-reverse the RTL reverse */
}

html[dir="ltr"] .contact-grid {
    direction: ltr;
}

html[dir="ltr"] .hero-text {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="ltr"] .nav-link {
    font-family: 'Outfit', sans-serif;
}

/* Page Headers */
.page-header {
    background: var(--main-gradient);
    /* Strict Brand Gradient */
    color: white;
    padding: 140px 0 60px;
    /* Account for fixed header */
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #e6f1ff;
}

/* Service Details */
.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background-color: #f4f6f8;
}

.service-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-layout.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: translateY(-5px);
}

.problem-solution {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0a192f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ps-item h4 {
    color: #0a192f;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tech-stack-list {
    margin: 30px 0;
}

.tech-tag {
    display: inline-block;
    background: #eef2f7;
    color: #112240;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 10px;
}

.service-lead {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #eef2f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 1.5rem;
    color: #0a192f;
}

/* Projects / Case Studies */
.projects-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-sm {
    background: white;
    color: #0a192f;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    font-size: 0.8rem;
    color: #8892b0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.p-status {
    background: #eef2f7;
    padding: 2px 8px;
    border-radius: 4px;
    color: #0a192f;
    font-weight: 600;
}

.project-summary {
    margin-bottom: 20px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.project-details {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item strong {
    color: #0a192f;
    display: block;
    margin-bottom: 3px;
}

.tech-stack-mini {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-mini span {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Team */
.team-grid-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: #dbe2e8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* =========================================
   ANIMATED HERO & DARK THEME STYLES
   ========================================= */

/* Homepage body - no padding to allow hero to start from top */
body:has(.hero-animated) {
    padding-top: 0 !important;
}

.hero-animated {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #0a192f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    padding-top: 0;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0a192f 90%);
    z-index: 2;
    pointer-events: none;
}

.relative-z {
    position: relative;
    z-index: 3;
}

.hero-content-animated {
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-animated h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content-animated .description {
    font-size: 1.25rem;
    color: #8892b0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.justify-center {
    justify-content: center;
}

/* 2. New Buttons */
.btn-glow {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #0a192f;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
    color: #0a192f;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(100, 255, 218, 0.05);
}

/* 3. Entrance Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Fixes for New Hero */
@media (max-width: 768px) {
    .hero-content-animated h1 {
        font-size: 2.2rem;
    }

    .hero-content-animated .description {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 20px;
        padding: 0 40px;
    }

    .btn-glow,
    .btn-outline-light {
        width: 100%;
    }
}

.member-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 5px solid #f4f6f8;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    margin-bottom: 5px;
    color: #0a192f;
    font-size: 1.4rem;
}

.member-info .role {
    color: #0a192f;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.member-info .bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.global-network {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.global-network h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.global-network p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Process Timeline */
.process-section {
    padding: 100px 0;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #0a192f;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    opacity: 0.2;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Left side */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right side */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border-top: 4px solid #0a192f;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(42, 50, 131, 0.05);
    position: absolute;
    top: 10px;
    left: 20px;
    right: auto;
    line-height: 1;
}

.process-cta {
    text-align: center;
    margin-top: 80px;
}

/* Contact */
.contact-page-section {
    padding: 100px 0;
    background: #f9f9f9;
}

.contact-grid {
    display: flex;
    gap: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 2;
    background: #0a192f;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-form-wrapper {
    flex: 3;
    padding: 60px;
    background: white;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.info-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0a192f;
    background: white;
    outline: none;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer LTR override */
html[dir="ltr"] footer {
    text-align: left;
    direction: ltr;
}

/* Responsive Overrides */
@media (max-width: 992px) {

    .service-layout,
    .service-layout.reverse,
    html[dir="ltr"] .service-layout,
    html[dir="ltr"] .service-layout.reverse {
        gap: 40px;
    }

    .contact-grid,
    html[dir="ltr"] .contact-grid {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {

    .service-layout,
    .service-layout.reverse,
    html[dir="ltr"] .service-layout,
    html[dir="ltr"] .service-layout.reverse {
        flex-direction: column;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    html[dir="ltr"] .timeline-item:nth-child(odd),
    html[dir="ltr"] .timeline-item:nth-child(even) {
        text-align: left;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* =========================================
   PREMIUM ARABIC SOFTWARE HOUSE STYLES
   ========================================= */

/* 1. Global RTL & Typography Overrides */
:root {
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --main-color: #0a192f;
    --secondary-color: #112240;
    --accent-color: #1e3a8a;
    --text-color-dark: #1a1a1a;
    --text-color-light: #555;
    --light-bg: #f8f9fa;
    --border-color: #eaeaea;
}

html,
body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link {
    font-family: var(--font-heading);
}

/* 2. Premium UI Utilities */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 3. Header & Navigation */
header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 10px;
}

.nav-link.active {
    color: #0a192f;
}

/* Logo margin fix for RTL */
.logo {
    margin-left: 30px;
}

/* 4. Hero Section - Arabic Polished */
.hero-content {
    flex-direction: row;
    /* Ensure image is on left, text on right for RTL */
    align-items: center;
    gap: 50px;
}

.hero-text {
    text-align: right;
    padding-left: 30px;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.4;
    color: var(--main-color);
    margin-bottom: 20px;
}

.hero-text .description {
    font-size: 1.2rem;
    color: var(--text-color-light);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(10, 25, 47, 0.15));
}

/* 5. Page Headers (Subpages) */
.page-header {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 6. Service Cards (Premium) */
.service-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    background: #fff;
    transition: all 0.4s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 50, 131, 0.08);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(10, 25, 47, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--main-color);
}

.read-more i {
    margin-right: 8px;
    /* Arrow spacing in RTL */
    transform: rotate(180deg);
    /* Flip arrow for correct pointing in RTL if needed, but 'fa-arrow-left' points left which is 'forward' in RTL usually means 'back'. Let's trust fa-arrow-left implies direction */
}

/* Fix arrow rotation */
.read-more .fa-arrow-left {
    transform: none;
    /* Just keep it pointing left */
}

/* 7. Service Details Layouts */
.service-detail {
    padding: 100px 0;
}

.service-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-layout.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: 20px;
    box-shadow: -20px 20px 0 rgba(42, 50, 131, 0.05);
    /* Stylish offset shadow */
}

.problem-solution {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.ps-item {
    background: #fff;
    padding: 25px;
    border-right: 4px solid #0a192f;
    /* Right border for RTL */
    border-left: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.tech-tag {
    background: #eff2f7;
    color: #0a192f;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 10px;
    /* Space between tags */
    margin-bottom: 10px;
    display: inline-block;
}

/* 8. Projects Grid */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    text-align: right;
}

.project-image {
    height: 250px;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

.p-status {
    background: #e6f7ff;
    color: #0050b3;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.project-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-item strong {
    color: var(--main-color);
}

.tech-stack-mini span {
    font-size: 0.8rem;
    background: #f0f2f5;
    padding: 5px 12px;
    border-radius: 8px;
    color: #555;
    margin-left: 5px;
}

/* 9. Timeline (Process) - RTL Fixes */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::after {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -2px;
    /* Center rod */
}

.timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 50px;
    /* Space from rod */
    position: relative;
    right: 0;
}

/* Right Side Items (Odd in RTL logic usually means right side if we start from right.. wait. 
   Let's stick to standard flow: 
   Item 1: Right
   Item 2: Left
*/
.timeline-item:nth-child(odd) {
    left: auto;
    right: 0;
    /* Start from right edge */
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    left: 0;
    /* Snap to left edge */
    right: auto;
    text-align: left;
    /* Text aligns left?? No, Arabic text should align right always */
    padding-left: 50px;
    padding-right: 0;
    margin-right: 50%;
    /* Push it to the left half */
}

/* WAIT. Keep text-align right for ALL Arabic */
.timeline-item,
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even),
.timeline-item:nth-child(even) .timeline-content {
    text-align: right !important;
}

/* Fix Rod connectors */
.timeline-item::after {
    /* The dot */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #0a192f;
    border-radius: 50%;
    top: 25px;
    z-index: 2;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
    /* Position on rod which is at right: 0 relative to this 50% width box? No. Rod is at screen center */
    /* If item is width 50% and on right side. Its left edge is screen center. */
    left: -12px;
    right: auto;
}

.timeline-item:nth-child(even)::after {
    right: -12px;
    /* Its right edge is screen center */
}

/* 10. Forms & Contact */
.contact-grid {
    direction: rtl;
}

.contact-info {
    text-align: right;
    border-radius: 0 20px 20px 0;
}

.contact-form-wrapper {
    text-align: right;
}

.info-item {
    flex-direction: row;
    align-items: center;
}

.info-item i {
    margin-left: 20px;
    margin-right: 0;
}

.form-group label {
    text-align: right;
}

input,
select,
textarea {
    text-align: right;
}

/* 11. Responsive RTL Tweaks */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        padding: 0;
    }

    .hero-btns {
        justify-content: center;
    }

    .service-layout,
    .service-layout.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .service-image img {
        box-shadow: none;
        /* Simplify on mobile */
    }

    .timeline::after {
        right: 30px;
        /* Rod moves to right side */
    }

    .timeline-item {
        width: 100%;
        padding-right: 70px;
        /* Space for rod */
        padding-left: 0;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        right: 0;
        left: 0;
    }

    .timeline-item::after {
        right: 20px !important;
        /* Dot aligns with rod */
        left: auto !important;
    }
}

/* Projects Preview Grid (Homepage) */
.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Homepage Project Card */
.project-card-home {
    text-align: right;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card-home img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-home .content {
    padding: 20px;
}

.project-card-home h3 {
    margin-top: 5px;
    font-size: 1.25rem;
    color: var(--main-color);
}


/* Intro Video Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skip-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10000;
}

#skip-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   NEW HERO & UTILITY STYLES
   ========================================= */

/* =========================================
   CLASSIC HERO SECTION
   ========================================= */

/* Traditional Hero Container */
.hero-animated {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 140px 0 80px;
    /* Space for fixed header */
    background: #ffffff;
}

/* Canvas - Hidden */
#heroCanvas {
    display: none;
}

/* Hero Overlay - Hidden */
.hero-overlay {
    display: none;
}

/* Content */
.relative-z {
    position: relative;
    z-index: 10;
}

.hero-content-animated {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-animated h1 {
    color: var(--heading-color);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content-animated h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-content-animated p {
    color: var(--text-color);
}

/* Hide top-social-icons */
.top-social-icons {
    display: none !important;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--second-bg-color);
}

.video-wrapper {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-cta {
    text-align: center;
    margin-top: 30px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: right;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Mobile Menu - Professional Side Panel */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        /* Slide from Left */
        right: auto;
        width: 70%;
        /* Smaller Width */
        max-width: 300px;
        /* Max width constraint */
        height: 100vh;
        background: #ffffff;
        padding: 0;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        /* Shadow on right */
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        /* Rounded outer corners */
    }

    nav.active {
        left: 0;
        /* Slide in to Left */
        right: auto;
    }

    /* Backdrop Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* Semi-transparent black */
        z-index: 1040;
        /* Below nav (1050) */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    nav::before {
        content: '';
        width: 100%;
        height: 100px;
        background: url('images/logo-tech.png') center 30px/auto 50px no-repeat;
        border-bottom: 2px solid rgba(13, 29, 116, 0.08);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        margin: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-bottom: 1px solid rgba(13, 29, 116, 0.06);
    }

    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    nav.active ul li:nth-child(1) {
        transition-delay: 0.08s;
    }

    nav.active ul li:nth-child(2) {
        transition-delay: 0.12s;
    }

    nav.active ul li:nth-child(3) {
        transition-delay: 0.16s;
    }

    nav.active ul li:nth-child(4) {
        transition-delay: 0.2s;
    }

    nav.active ul li:nth-child(5) {
        transition-delay: 0.24s;
    }

    nav.active ul li:nth-child(6) {
        transition-delay: 0.28s;
    }

    nav .nav-link,
    nav .btn-nav {
        color: var(--heading-color) !important;
        font-size: 0.95rem;
        padding: 14px 30px;
        font-weight: 600;
        text-align: right;
        transition: all 0.3s ease;
        position: relative;
    }

    nav .nav-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 70%;
        background: var(--accent-gradient);
        border-radius: 0 4px 4px 0;
        transition: width 0.3s ease;
    }

    nav .nav-link:hover::before {
        width: 4px;
    }

    nav .nav-link:hover {
        color: var(--main-color) !important;
        background: rgba(13, 29, 116, 0.04);
        padding-right: 30px;
    }


}

/* Enhanced Mobile Menu Spacing */


/* FORCE Header Layout - Menu Left, Logo Right */
.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
}

.logo {
    order: 1 !important;
    margin-left: 0 !important;
}

nav {
    order: 2 !important;
    margin-right: 0 !important;
}

/* =========================================
   STANDARD SIDE MENU DESIGN (REVERTED)
   ========================================= */

/* Hide Mobile Elements on Desktop */
.mobile-menu-header {
    display: none;
}

@media (max-width: 992px) {

    /* 1. Hide Desktop-only elements */
    .header-socials {
        display: none !important;
    }

    /* 2. Show Mobile Toggle */
    .mobile-menu-btn {
        display: flex !important;
    }

    /* 3. Main Nav Wrapper - Side Drawer */


    /* 5. Navigation List and Items */
    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 40px 0 20px;
        /* Increased top padding since header is gone */
        gap: 0;
        margin: 0;
    }

    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        margin: 0;
        padding: 0;

        /* Force Visibility */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }

    .nav-item {
        display: block;
        width: 100%;
        padding: 15px 25px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1a1a1a !important;
        text-align: right;
        /* Right align for sidebar */
        text-decoration: none;
        font-family: 'Cairo', sans-serif;
        background: transparent;
    }


    @media (max-width: 992px) {
        .main-nav {
            display: none !important;
            position: static !important;
            height: auto !important;
            width: auto !important;
            background: transparent !important;
            transform: none !important;
            visibility: hidden !important;
        }
    }
}

/* =========================================
   Testimonials Section (High Credibility)
   ========================================= */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-color);
    /* White background */
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonials .section-header {
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    direction: rtl;
}

.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    /* Subtle border */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: right;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes author info to bottom */
    font-style: normal;
    /* Realistic, professional look */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid #F3F4F6;
    padding-top: 20px;
}

.author-info h4 {
    color: var(--main-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.author-info span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px;
    }
}

/* =========================================
   Project Detail Page Styles
   ========================================= */

/* Project Hero Section */
.project-detail-hero {
    padding: 180px 0 80px;
    background: var(--bg-hero-gradient);
    text-align: center;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    color: var(--accent-color);
}

.back-link i {
    font-size: 0.9rem;
}

.project-detail-hero h1 {
    font-size: 3rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.project-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-tags .tag {
    background: white;
    color: var(--main-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--main-color);
}

/* Project Overview Section */
.project-overview {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.overview-card {
    background: var(--second-bg-color);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.overview-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 20px;
    display: block;
}

.overview-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.overview-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Project Meta Info */
.project-meta-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px;
    background: var(--second-bg-color);
    border-radius: 12px;
    margin-top: 40px;
}

.meta-item {
    font-size: 1rem;
    color: #555;
}

.meta-item strong {
    color: var(--main-color);
    font-weight: 700;
}

/* Project Gallery Section */
.project-gallery {
    padding: 80px 0;
    background: var(--second-bg-color);
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Standard Gallery Grid (for Valma) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Ensures no cropping */
    max-height: 400px;
    min-height: 250px;
    background: #f9f9f9;
}

/* Before/After Section (for Sweetano) */
.before-after-section {
    margin-bottom: 60px;
}

.product-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.before-after-item {
    text-align: center;
}

.before-after-label {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.before-after-label.before {
    background: #e74c3c;
    color: white;
}

.before-after-label.after {
    background: #27ae60;
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--main-gradient);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .project-detail-hero {
        padding: 140px 0 60px;
    }

    .project-detail-hero h1 {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .project-meta-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-hero h1 {
        font-size: 1.6rem;
    }

    .project-tags .tag {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .overview-card {
        padding: 25px;
    }

    .overview-card i {
        font-size: 2.5rem;
    }

    .gallery-item img {
        max-height: 300px;
    }
}

/* ============================================
   VIDEO PROJECT STYLES - 16:9 ASPECT RATIO
   ============================================ */

/* Default: Regular images use fixed height */
.project-card .project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video container with 16:9 aspect ratio */
.project-card .project-image:has(video) {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    overflow: hidden;
    background: #000;
}

.project-card .project-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures video fills the container while maintaining aspect ratio */
}

/* For projects page specifically */
.projects-list .project-card .project-image {
    height: 240px;
    padding-top: 0;
}

.projects-list .project-card .project-image:has(video) {
    height: auto;
    padding-top: 56.25%;
    /* 16:9 ratio */
}

.projects-list .project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-list .project-card .project-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure grid layout shows videos properly */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .projects-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .projects-list {
        grid-template-columns: 1fr;
    }
}