/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Tajawal', 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    direction: rtl;
}
body[dir="ltr"] {
    direction: ltr;
    font-family: 'Roboto', 'Tajawal', sans-serif;
}
h1, h2, h3, h4 {
    font-family: 'Orbitron', 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    .section-container { padding: 0 2rem; }
}
@media (min-width: 1200px) {
    .section-container { padding: 0 3rem; }
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* --- Header --- */
.main-header {
    padding: 0.8rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
    .main-header { padding: 1rem 2rem; }
}
.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
}
@media (max-width: 767px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo name toggle"
            "nav nav nav";
    }
}
.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
    grid-area: logo;
}
.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }
@media (min-width: 768px) {
    .logo { height: 50px; }
}
.company-name {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #ff4d4d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
    text-align: center;
    justify-self: center;
}
@media (max-width: 767px) {
    .company-name {
        grid-area: name;
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }
}
@media (min-width: 768px) {
    .company-name { font-size: 1.8rem; }
}
.mobile-menu-toggle {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    display: none;
    flex-shrink: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    justify-self: end;
    grid-area: toggle;
}
.mobile-menu-toggle:hover {
    background-color: rgba(255, 77, 77, 0.2);
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .mobile-menu-toggle { display: block; }
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}
@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        flex-direction: column;
        padding: 4rem 0 2rem 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        grid-area: nav;
    }
    body[dir="ltr"] .main-nav {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }
    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }
}
.main-nav ul {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}
@media (min-width: 768px) {
    .main-nav ul { gap: 1rem; }
}
@media (max-width: 767px) {
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        padding: 0 1rem;
        gap: 0.5rem;
    }
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
@media (max-width: 767px) {
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }
}
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.2), transparent);
    transition: left 0.5s ease;
}
.nav-btn:hover::before,
.nav-btn:active::before {
    left: 100%;
}
.nav-btn:hover,
.nav-btn:active {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.3);
}
@media (max-width: 767px) {
    .nav-btn:hover,
    .nav-btn:active {
        transform: translateX(-5px);
    }
    body[dir="ltr"] .nav-btn:hover,
    body[dir="ltr"] .nav-btn:active {
        transform: translateX(5px);
    }
}
.nav-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.nav-btn:hover .nav-icon,
.nav-btn:active .nav-icon {
    transform: scale(1.1);
}
@media (min-width: 768px) {
    .nav-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}
.close-nav-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
@media (max-width: 767px) {
    .close-nav-btn { display: flex; }
}
.close-nav-btn:hover,
.close-nav-btn:active {
    background: rgba(255, 77, 77, 0.2);
    transform: rotate(90deg);
}
.nav-language-selector {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
@media (max-width: 767px) {
    .nav-language-selector { display: block; }
}
.nav-language-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ff4d4d;
}
.nav-language-selector select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Tajawal', 'Roboto', sans-serif;
    transition: all 0.3s ease;
}
.nav-language-selector select:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.3);
}
.desktop-lang-selector {
    flex-shrink: 0;
    position: relative;
}
@media (max-width: 767px) {
    .desktop-lang-selector { display: none; }
}
.desktop-lang-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Tajawal', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}
.desktop-lang-selector select:hover,
.desktop-lang-selector select:active {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.4);
}
.desktop-lang-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.5);
}
.selector-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #f0f0f0;
    pointer-events: none;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
body[dir="ltr"] .selector-icon {
    right: 1rem;
    left: auto;
}
.desktop-lang-selector:hover .selector-icon,
.desktop-lang-selector:active .selector-icon {
    transform: translateY(-50%) rotate(180deg);
}
/* --- Glassmorphism Effect --- */
.glass-header, .glass-footer, .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 1rem 2rem 1rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%),
        url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="truck-pattern" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><rect width="200" height="200" fill="%23000"/><path d="M20 100h40v20h20v-40h40v20h20v-20h20v40h20v-20h40v40h-40v20h-20v20h-40v-20h-20v20h-20v-40h-20v20h-40z" fill="%23ff4d4d" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23truck-pattern)"/></svg>') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 77, 77, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 77, 77, 0.1) 0%, transparent 50%);
    z-index: 1;
}
.hero-content {
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff4d4d;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.feature-item:hover,
.feature-item:active {
    background: rgba(255, 77, 77, 0.1);
    transform: translateY(-5px);
}
.feature-item i {
    font-size: 1.5rem;
    color: #ff4d4d;
}
.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
}
@media (min-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}
/* --- Partners Section --- */
.partners-section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #ff4d4d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* تحسين العرض */
    gap: 1.2rem; /* تقليل الفجوة قليلاً */
    padding: 1rem 0;
    justify-items: center; /* توسيط العناصر داخل الشبكة */
}
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem; /* تقليل التباعد الداخلي */
    border-radius: 12px; /* تقليل نصف القطر */
    text-align: center;
    transition: all 0.3s ease;
    width: 100%; /* ملء خلية الشبكة */
    max-width: 160px; /* تحديد عرض أقصى */
    aspect-ratio: 1 / 1; /* جعل البطاقة مربعة لضمان الاتساق */
}
.partner-card h3 {
    font-size: 1rem; /* تقليل حجم الخط */
    font-weight: 600;
    color: #f0f0f0;
    margin-top: 0.8rem; /* تقليل المسافة من الشعار */
    /* إضافة تعدد أسطر إذا كان الاسم طويلًا */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* --- New Styles for Logos --- */
/* مُغلف جديد للشعار لضمان التحكم الأفضل */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* عرض ثابت */
    height: 60px; /* ارتفاع ثابت */
    /* background: rgba(255, 255, 255, 0.05); */ /* خلفية خفيفة اختيارية */
    /* border-radius: 8px; */ /* زوايا مدورة اختيارية */
    /* padding: 5px; */ /* تباعد داخلي اختياري */
}
.partner-logo {
    /* تحديد ارتفاع ثابت للشعار */
    height: 50px;
    width: auto; /* السماح للعرض بالتكيف */
    max-width: 100%; /* منع تجاوز عرض المُغلف */
    object-fit: contain; /* ضمان عرض الشعار بالكامل دون تشويه */
    transition: transform 0.3s ease;
}
.partner-card:hover .partner-logo,
.partner-card:active .partner-logo {
    transform: scale(1.05);
}
/* --- Services Section --- */
.services-section {
    padding: 4rem 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.service-category {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.service-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ff4d4d;
}
.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.service-list i {
    font-size: 0.6rem;
    color: #ff4d4d;
}
.extra-services-section {
    margin-top: 3rem;
}
.extra-services-section h3 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ff4d4d;
}
.extra-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.extra-service {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}
.extra-service h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ff4d4d;
}
.extra-service p {
    font-size: 0.9rem;
    opacity: 0.9;
}
/* --- Footer --- */
.main-footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col {
    padding: 1rem;
}
.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #ff4d4d;
}
.map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.map-link:hover,
.map-link:active {
    background: rgba(255, 77, 77, 0.1);
    transform: translateX(-5px);
    border-color: rgba(255, 77, 77, 0.3);
}
body[dir="ltr"] .map-link:hover,
body[dir="ltr"] .map-link:active {
    transform: translateX(5px);
}
.address-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}
.en-address {
    display: none;
}
.company-info ul li {
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.contact-link:hover,
.contact-link:active {
    background: rgba(255, 77, 77, 0.1);
    transform: translateX(-5px);
    border-color: rgba(255, 77, 77, 0.3);
}
body[dir="ltr"] .contact-link:hover,
body[dir="ltr"] .contact-link:active {
    transform: translateX(5px);
}
.contact-icon {
    width: 24px;
    text-align: center;
    color: #ff4d4d;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.social-media {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-media h4 {
    margin-bottom: 1rem;
    color: #ff4d4d;
    font-size: 1.1rem;
}
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #f0f0f0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-link:hover,
.social-link:active {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}
.email-section {
    display: flex;
    flex-direction: column;
}
.email-form {
    padding: 2rem;
    border-radius: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
}
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Tajawal', 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
    background: rgba(0, 0, 0, 0.4);
}
.submit-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}
.submit-btn:hover,
.submit-btn:active {
    background: linear-gradient(135deg, #ff1a1a, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}
.submit-btn:active {
    transform: translateY(0);
}
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.footer-bottom-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.footer-slogan {
    color: #ff4d4d;
    font-weight: 500;
    font-style: italic;
}
/* --- Responsive Design --- */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-content { padding: 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .service-category { padding: 2rem; }
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* تقليل الحد الأدنى للعرض */
        gap: 1rem;
    }
    .partner-card {
        padding: 1rem;
        max-width: 140px; /* تقليل العرض الأقصى */
    }
    .logo-wrapper {
        width: 70px; /* تقليل عرض المُغلف */
        height: 50px; /* تقليل ارتفاع المُغلف */
    }
    .partner-logo {
        height: 40px; /* تقليل ارتفاع الشعار */
    }
    .partner-card h3 {
        font-size: 0.9rem; /* تقليل حجم الخط */
        margin-top: 0.6rem;
    }
    .nav-btn span { display: none; }
    .nav-btn { padding: 0.8rem; justify-content: center; }
}
/* --- Scroll Animations --- */
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}
.animate-slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}
/* --- Performance Optimizations --- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
/* --- Print Styles --- */
@media print {
    .main-header,
    .mobile-menu-toggle,
    .desktop-lang-selector,
    .nav-language-selector {
        display: none !important;
    }
    .hero-section {
        background: none !important;
        color: black !important;
    }
    .glass-card,
    .glass-header,
    .glass-footer {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}
/* --- Form Validation Styles --- */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}
.form-group.error .error-message {
    display: block;
}
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}
.form-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    display: block;
}
.form-status.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    display: block;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.submit-btn.loading {
    position: relative;
    color: transparent;
}
.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* --- Enhanced RTL/LTR Support --- */
[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }
[dir="rtl"] .hero-features { direction: rtl; }
[dir="ltr"] .hero-features { direction: ltr; }
[dir="rtl"] .partners-grid { direction: rtl; }
[dir="ltr"] .partners-grid { direction: ltr; }
[dir="rtl"] .services-grid { direction: rtl; }
[dir="ltr"] .services-grid { direction: ltr; }
[dir="rtl"] .extra-services-grid { direction: rtl; }
[dir="ltr"] .extra-services-grid { direction: ltr; }
[dir="rtl"] .footer-container { direction: rtl; }
[dir="ltr"] .footer-container { direction: ltr; }
[dir="rtl"] .main-nav ul { direction: rtl; }
[dir="ltr"] .main-nav ul { direction: ltr; }
[dir="rtl"] .nav-btn { text-align: right; }
[dir="ltr"] .nav-btn { text-align: left; }
[dir="rtl"] .email-form { direction: rtl; }
[dir="ltr"] .email-form { direction: ltr; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea { text-align: right; }
[dir="ltr"] .form-group input,
[dir="ltr"] .form-group textarea { text-align: left; }
[dir="rtl"] .service-list { text-align: right; }
[dir="ltr"] .service-list { text-align: left; }
[dir="rtl"] .service-list li { flex-direction: row; }
[dir="ltr"] .service-list li { flex-direction: row; }
[dir="rtl"] .contact-link { flex-direction: row; }
[dir="ltr"] .contact-link { flex-direction: row; }
[dir="rtl"] .social-links { direction: rtl; }
[dir="ltr"] .social-links { direction: ltr; }
[dir="rtl"] .header-container { direction: rtl; }
[dir="ltr"] .header-container { direction: ltr; }
@media (max-width: 767px) {
    [dir="rtl"] .main-nav {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }
    [dir="ltr"] .main-nav {
        left: 0;
        right: auto;
        transform: translateX(-100%);
    }
    [dir="rtl"] .main-nav.active { transform: translateX(0); }
    [dir="ltr"] .main-nav.active { transform: translateX(0); }
    [dir="rtl"] .close-nav-btn { right: 1rem; left: auto; }
    [dir="ltr"] .close-nav-btn { left: 1rem; right: auto; }
}
[dir="rtl"] .desktop-lang-selector select {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
}
[dir="ltr"] .desktop-lang-selector select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
}
[dir="rtl"] .selector-icon {
    left: 1rem;
    right: auto;
}
[dir="ltr"] .selector-icon {
    right: 1rem;
    left: auto;
}
@media (max-width: 767px) {
    .header-container {
        grid-template-areas:
            "logo name toggle"
            "nav nav nav";
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    .company-name {
        grid-area: name;
        justify-self: center;
        align-self: center;
        margin: 0;
    }
    .logo-link {
        grid-area: logo;
        justify-self: start;
    }
    .mobile-menu-toggle {
        grid-area: toggle;
        justify-self: end;
    }
    .main-nav {
        grid-area: nav;
        grid-column: 1 / -1;
    }
    .main-nav {
        padding: 2rem 0;
    }
    .main-nav ul {
        padding: 0 1.5rem;
    }
    .nav-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin-bottom: 0.8rem;
    }
    .nav-language-selector {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
}
/* --- Enhanced glassmorphism effects --- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3);
}
.glass-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3);
}
.glass-footer {
    background:
        linear-gradient(135deg, rgba(44, 44, 44, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* --- Enhanced hover effects --- */
.partner-card:hover,
.partner-card:active {
    transform: translateY(-8px) scale(1.03); /* تقليل التأثير قليلاً */
    box-shadow:
        0 12px 35px rgba(255, 77, 77, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12); /* تغيير لون الخلفية قليلاً */
}
.service-category:hover,
.service-category:active {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(255, 77, 77, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}
.extra-service:hover,
.extra-service:active {
    transform: translateY(-5px);
    background: rgba(255, 77, 77, 0.1);
    box-shadow:
        0 10px 30px rgba(255, 77, 77, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
}
