:root {
    --primary: #EC1C24;
    --primary-dark: #C41017;
    --secondary: #58595B;
    --dark: #231F20;
    --light: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #6C757D;
}

* {
    transition: all 0.3s ease;
}

body {
    background-color: var(--light);
    color: var(--dark);
    padding-top: 80px;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

body.ltr {
    font-family: 'Roboto', sans-serif;
    direction: ltr;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 8px 15px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    color: var(--dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/Elmarwa-Main.avif');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--light);
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 28, 36, 0.2);
}

.btn-outline-light {
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-title.center::after {
    right: 50%;
    transform: translateX(50%);
}

.section-padding {
    padding: 100px 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Services */
.service-card {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(236, 28, 36, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(236, 28, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary);
}

/* Portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 25px;
    height: 300px;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 28, 36, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--light);
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

/* Stats */
.stats {
    background: linear-gradient(rgba(35, 31, 32, 0.9), rgba(35, 31, 32, 0.9)), url('https://images.unsplash.com/photo-1588196749597-9ff075ee6b5b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1930&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(236, 28, 36, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
}

/* Contact */
.contact-form .form-control {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(236, 28, 36, 0.25);
}

.contact-info {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(236, 28, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-left: 15px;
    flex-shrink: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(236, 28, 36, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--light);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 70px 0 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .lang-switcher {
        top: 80px;
        right: 10px;
        padding: 5px 10px;
    }
}

/* English specific styles */
body.ltr .section-title::after {
    right: auto;
    left: 0;
}

body.ltr .section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

body.ltr .nav-link::after {
    right: auto;
    left: 0;
}

body.ltr .footer-links h5::after {
    right: auto;
    left: 0;
}

body.ltr .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

body.ltr .client-img {
    margin-left: 0;
    margin-right: 15px;
}

body.ltr .contact-icon {
    margin-left: 0;
    margin-right: 15px;
}

body.ltr .testimonial-card::before {
    right: auto;
    left: 30px;
}

body.ltr .social-links a {
    margin-left: 0;
    margin-right: 10px;
}

body.ltr .whatsapp-float {
    left: auto;
    right: 30px;
}