:root {
    --primary-color: #cc1e15;
    --secondary-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #222;
    --gray-color: #6c757d;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
}

.rtl {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.company-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('../images/photo-1586528116311-ad8dd3c8310db.avif');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #a81810;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 30, 21, 0.3);
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-divider {
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-subtitle, .mission-title, .presence-title {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.mission-text, .presence-text {
    font-weight: 600;
    font-style: italic;
    background-color: rgba(204, 30, 21, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.rtl .mission-text, .rtl .presence-text {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.about-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    background-color: white;
}

.service-card {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    background-color: rgba(204, 30, 21, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.rtl .service-icon {
    margin-right: 0;
    margin-left: 20px;
}

.service-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.industries-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.industries-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.industry-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.industry-item:hover {
    background-color: rgba(204, 30, 21, 0.05);
}

.industry-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.industry-item p {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Branches Section */
.branches-section {
    background-color: var(--light-color);
}

.branch-selector {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.form-select {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    width: 100%;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(204, 30, 21, 0.25);
}

.branch-details {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.branch-details h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-choose-us {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.why-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.why-list i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.rtl .why-list i {
    margin-right: 0;
    margin-left: 10px;
}

.branch-map-container {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#branchMap {
    height: 100%;
    width: 100%;
}

/* Portfolio Section */
.portfolio-section {
    background-color: white;
}

.portfolio-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.stats-row {
    margin-top: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-color);
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    background-color: rgba(204, 30, 21, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.rtl .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

.contact-item h5 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(204, 30, 21, 0.25);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer .logo {
    height: 40px;
    margin-right: 15px;
}

.footer .company-name {
    color: white;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .rtl .service-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

/* Language Switcher in Navbar */
.language-switcher-nav {
    margin-right: 20px;
    display: flex;
    gap: 5px;
}

.language-switcher-nav .lang-btn {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    min-width: 45px;
}

.language-switcher-nav .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.language-switcher-nav .lang-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* RTL adjustments for language switcher */
.rtl .language-switcher-nav {
    margin-right: 0;
    margin-left: 20px;
}

/* Mobile responsiveness for language switcher */
@media (max-width: 992px) {
    .language-switcher-nav {
        margin-right: 15px;
    }
    
    .rtl .language-switcher-nav {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .language-switcher-nav {
        position: absolute;
        top: 15px;
        right: 60px;
    }
    
    .rtl .language-switcher-nav {
        left: 60px;
        right: auto;
    }
}

/* Form Status Messages */
.form-status {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    display: none;
}

.form-status.alert-success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #155724;
}

.form-status.alert-danger {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #721c24;
}

.form-status i {
    margin-right: 10px;
}

.rtl .form-status i {
    margin-right: 0;
    margin-left: 10px;
}

/* Form Validation Styles */
.invalid-feedback {
    display: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-control.is-invalid,
.form-check-input.is-invalid {
    border-color: var(--primary-color);
}

.form-control.is-invalid:focus,
.form-check-input.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(204, 30, 21, 0.25);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Submit Button Spinner */
.spinner-border {
    vertical-align: middle;
    margin-left: 8px;
}

.rtl .spinner-border {
    margin-left: 0;
    margin-right: 8px;
}