@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Kodchasan';
    src: url('../fonts/Kodchasan-Bold.woff2') format('woff2');
    font-display: swap; /* تحسين سرعة العرض */
    font-weight: bold;
}

.logo a {
    font-family: 'Kodchasan', Arial, sans-serif;
    font-weight: bold; /* تأكد من تطابق الوزن مع ملف الخط */
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-display: swap;
}

.header {
    background-color: #18181b;
    color: white;
    padding: 3px 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: transform;
}

/* بقية الأنماط هنا */
.header a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}
.nav-links:hover a:hover, .user-links a:hover {
    background-color: #ffffff1f;
    color: #fff;
}
.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: none !important; /* إزالة التأثيرات */
    font-family: 'Kodchasan', system-ui, -apple-system, sans-serif;
    font-weight: bold;

}

.header .nav-links {
    display: flex;
    align-items: center;
}
.header .user-links {
    display: flex;
    align-items: center;
}
.header .user-links .freelancer-btn {
    background-color: #ffffff1f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
}
.header .user-links a:hover {
    background-color: #ffffff2a;
}
.header .nav-links a.active {
    background-color: #ffffff1f;
    color: #fff;
}
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.main-content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}
.main-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}
.freelancer-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.freelancer-card:hover {
    transform: translateY(-5px);
}
.content-card {
    background-color: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;

}
.freelancer-card h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}
.freelancer-card p {
    margin: 5px 0;
    font-size: 16px;
    color: #666;
}
.freelancer-card .price {
    font-size: 18px;
    color: #ffcc00;
    font-weight: bold;
}
.trusted-by {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #666;
}
.hero-section {
    display: flex;
    height: 700px;
    background: linear-gradient(to right, #18181b, #000);
    color: white;
    flex-direction: row-reverse;
}
.hero-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-text h1 {
    font-size: 58px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-text h1 span.gradient-text {
    background: linear-gradient(to bottom, #55c1a5, #1dbae7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: none;
}
.hero-text p {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-images {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.hero-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-images img.active {
    opacity: 1;
}
.burger-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(24, 24, 27, 0.9); /* شفافية مع تأثير blur */
    backdrop-filter: blur(10px); /* تأثير blur */
    padding: 20px;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    z-index: 1000;
}
.burger-menu.open {
    transform: translateX(0);
}
.burger-menu a {
    color: white;
    text-decoration: none;
    margin: 20px 0;
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
}
.burger-menu a:hover {
    background-color: #ffffff1f;
}
.burger-menu-btn {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.burger-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}
@media (max-width: 768px) {
    .header .nav-links {
        display: none;
    }
    .burger-menu-btn {
        display: block;
    }
    .main-content {
        padding: 20px;
    }
}
@media (max-width: 1024px) {
    .header {
        padding: 3px 20px;
    }
    .hero-section {
        flex-direction: column;
        height: 670px;
    }
    .hero-images {
        height: 300px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text p {
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    .header .nav-links,
    .header .user-links {
        display: none;
    }
    .burger-menu-btn {
        display: block;
    }
    .main-content {
        padding: 20px;
    }
    .burger-menu {
        display: flex;
    }
    .hero-section {
        position: relative;
        height: 670px;
    }
    .hero-images {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .hero-text {
        position: relative;
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 40px;
    }
}
.logo {
    display: flex;
    align-items: center;
}
.logo i {
    margin-right: 10px;
    font-size: 24px;
}
.about-us {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    background: linear-gradient(to right, #27272a, #18181b);
    color: #fff;
}
.about-us-column {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
.about-us-column i {
    font-size: 48px;
    color: #55c1a5;
    margin-bottom: 20px;
}
.companies-trust {
    padding: 40px 20px;
    background-color: #f4f4f4;
    overflow: hidden;
}
.companies-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
    animation: scroll 30s linear infinite;
    direction: row-reverse;
}
.companies-logos img {
    height: 50px;
    margin: 0 20px;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.explore-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card-content {
    padding: 20px;
}
.service-card h3 {
    margin: 0 0 10px 0;
}
.service-card p {
    margin: 0 0 10px 0;
}
.service-card .price {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}
.service-card button {
    background-color: #27272a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.service-card button:hover {
    background-color: #666;
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .about-us {
        flex-direction: column;
    }
    .about-us-column {
        margin-bottom: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}
.about-us-column i {
    font-size: 48px;
    color: #fff; /* لون الأيقونات */
    margin-bottom: 20px;
}
.language-dropdown {
display: none;
position: absolute;
background-color: #18181b;
border-radius: 8px;
padding: 10px;
z-index: 1000;
top: 55px;
right: 100px;
position: sticky; /* جعل الهيدر sticky */
    top: 0; /* التصاق الهيدر بأعلى الصفحة */
    z-index: 1000; /* التأكد من أن الهيدر يظهر فوق العناصر الأخرى */


}

.language-dropdown a {
color: white;
text-decoration: none;
display: block;
padding: 8px 16px;
border-radius: 4px;
margin: 5px 0;

}

.language-dropdown a:hover {
background-color: #ffffff1f;
}

@media (max-width: 768px) {
.language-dropdown {
top: 50px;
right: 10px;
position: sticky; /* جعل الهيدر sticky */
    top: 0; /* التصاق الهيدر بأعلى الصفحة */
    z-index: 1000; /* التأكد من أن الهيدر يظهر فوق العناصر الأخرى */

}

.burger-menu-btn {
display: flex;
align-items: center;
gap: 10px; /* Add space between globe icon and burger icon */
}

.burger-menu-btn i {
margin-right: 10px;
}

.user-links .fa-globe {
display: none; /* Hide the globe icon in the user-links for mobile */
}

/* Ensure the dropdown is not hidden behind other elements */
.language-dropdown {
z-index: 1001; /* Higher than the burger menu */
}
}
/* Add this to your styles.css or within a <style> tag in the <head> */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 3px 14px; /* زيادة التباعد الداخلي */
    border-radius: 50px; /* تقليل حدة الحواف */
    background-color: rgba(255, 255, 255, 0.1); /* خلفية شفافة */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* تحسين الظل */
    color: #ffffff;
    border: 2px solid rgba(221, 221, 221, 0.5); /* إضافة بوردر شفاف */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* إضافة انتقال */
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.2); /* تغيير الخلفية عند التحويم */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التحويم */
}

.user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    padding: 2px; /* إضافة padding للصورة */
}

.user-info span {
    font-size: 14px;
    font-weight: bold;
    padding-left: 8px;
    border-left: 2px solid rgba(221, 221, 221, 0.5); /* إضافة بوردر على اليسار من الاسم */
    margin-left: 8px;
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    width: 180px;
    border-radius: 10px; /* زيادة حدة الحواف */
    padding: 10px;
    color: #000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease; /* إضافة انتقال */
    align-items: center; /* محاذاة العناصر في المنتصف */
}

.dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu p {
    font-size: 14px;
    margin: 5px 0;
    text-align: center; /* محاذاة النص في المنتصف */
}

.dropdown-menu a, .dropdown-menu button {
    text-decoration: none;
    padding: 8px;
    text-align: center; /* محاذاة النص في المنتصف */
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    color: #000;
    border-radius: 5px; /* إضافة حواف مستديرة */
    transition: none; /* إزالة الانتقالات */
}

/* إزالة تأثيرات الـ Hover */
.dropdown-menu a:hover, .dropdown-menu button:hover {
    background: none; /* إزالة تغيير الخلفية */
    color: #000; /* إبقاء اللون كما هو */
}

/* تحسينات للـ footer */
footer a:hover {
    color: #007BFF; /* تغيير اللون عند التحويم */
    transition: color 0.3s ease; /* إضافة انتقال */
}

.footer-icons a:hover {
    transform: scale(1.1); /* تكبير الأيقونات عند التحويم */
    transition: transform 0.3s ease; /* إضافة انتقال */
}

/* تحسينات للـ burger-menu */
.burger-menu {
    transition: transform 0.3s ease; /* إضافة انتقال */
}

.burger-menu.show {
    transform: translateX(0);
}
/* Add this to your styles.css or within a <style> tag in the <head> */
    .user-profile {
            position: relative;
            display: flex;
            align-items: center;
            cursor: pointer;
            margin-left: 20px;
        }
    
        .user-info {
            display: flex;
            align-items: center;
            padding: 3px 14px; /* زيادة التباعد الداخلي */
            border-radius: 50px; /* تقليل حدة الحواف */
            background-color: rgba(255, 255, 255, 0.1); /* خلفية شفافة */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* تحسين الظل */
            color: #ffffff;
            border: 2px solid rgba(221, 221, 221, 0.5); /* إضافة بوردر شفاف */
            transition: background-color 0.3s ease, box-shadow 0.3s ease; /* إضافة انتقال */
        }
    
        .user-info:hover {
            background-color: rgba(255, 255, 255, 0.2); /* تغيير الخلفية عند التحويم */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التحويم */
        }
    
        .user-info img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 8px;
            padding: 2px; /* إضافة padding للصورة */
        }
    
        .user-info span {
            font-size: 14px;
            font-weight: bold;
            padding-left: 8px;
            border-left: 2px solid rgba(221, 221, 221, 0.5); /* إضافة بوردر على اليسار من الاسم */
            margin-left: 8px;
            color: #ffffff;
        }
    
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            display: none;
            flex-direction: column;
            width: 180px;
            border-radius: 10px; /* زيادة حدة الحواف */
            padding: 10px;
            color: #000;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease; /* إضافة انتقال */
            align-items: center; /* محاذاة العناصر في المنتصف */
        }
    
        .dropdown-menu.show {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }
    
        .dropdown-menu p {
            font-size: 14px;
            margin: 5px 0;
            text-align: center; /* محاذاة النص في المنتصف */
        }
    
        .dropdown-menu a, .dropdown-menu button {
            text-decoration: none;
            padding: 8px;
            text-align: center; /* محاذاة النص في المنتصف */
            display: block;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            width: 100%;
            color: #000;
            border-radius: 5px; /* إضافة حواف مستديرة */
            transition: none; /* إزالة الانتقالات */
        }
