/* ============================================
   شركة المسيرة الرائدة - ملف التصميم
   ============================================ */

/* إعدادات عامة */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --dark-blue: #0f3460;
    --light-gray: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(26, 26, 46, 0.98) !important;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.navbar-collapse {
    order: 2;
}

.navbar-nav {
    margin-left: 0 !important;
}

/* العربية: اسم الشركة على اليسار، القوائم على اليمين */
html[dir="rtl"] .navbar-brand {
    order: 1;
}

html[dir="rtl"] .navbar-collapse {
    order: 2;
}

/* الإنجليزية: اسم الشركة على اليمين، القوائم على اليسار */
html[dir="ltr"] .navbar-brand {
    order: 2;
}

html[dir="ltr"] .navbar-collapse {
    order: 1;
}

@media (max-width: 991px) {
    .navbar-brand {
        order: 1 !important;
    }
    
    .navbar-collapse {
        order: 2 !important;
    }
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: inline-block;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Language Switcher Button */
#lang-switch {
    margin-right: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
}

#lang-switch:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section[style*="background-image"] {
    background-color: var(--primary-color);
    background-blend-mode: overlay;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    position: relative;
    z-index: 2;
}

.hero-logo-img {
    max-height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-section h2 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

.hero-tagline {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.4s ease;
}

.hero-buttons {
    animation: fadeInUp 1.6s ease;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
}

.btn-primary:hover {
    background: #d63952;
}

.btn-success {
    background: #25d366;
    border: none;
}

.btn-success:hover {
    background: #20ba5a;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.about-content .lead {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.about-image img {
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-color), #d63952);
    transform: rotate(360deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* IVECO Section */
.iveco-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.parts-list {
    list-style: none;
    padding: 0;
}

.parts-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parts-list i {
    font-size: 1rem;
}

.iveco-images img {
    transition: transform 0.3s ease;
}

.iveco-images img:hover {
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

/* Gallery Grid - معرض الصور */
.gallery-grid .gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid .gallery-item {
        height: 200px;
    }
}

/* Why Us Section */
.why-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #d63952);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Clients Section */
.client-category {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.client-category:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.client-category h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.client-logo-placeholder {
    background: var(--light-gray);
    padding: 3rem 2rem;
    border-radius: 10px;
    border: 2px dashed var(--text-light);
    transition: all 0.3s ease;
}

.client-logo-placeholder:hover {
    border-color: var(--accent-color);
    background: var(--white);
}

/* Contact Section */
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-icon {
    color: var(--accent-color);
}

.contact-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.contact-card .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Location Section */
.location-info {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    height: 100%;
}

.location-info h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.location-features p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    border-radius: 15px;
}

/* Footer */
.footer {
    background: var(--primary-color) !important;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card,
    .why-card {
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .why-card,
    .contact-card {
        padding: 1.5rem 1.5rem;
    }
    
    .hero-logo-img {
        max-height: 80px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .social-links {
        display: none;
    }
}

/* Phone Numbers - LTR Direction */
[dir="ltr"],
[style*="direction: ltr"] {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

