:root {
    --primary-red: #e31837;
    --primary-silver: #C0C0C0;
    --white: #ffffff;
    --dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Specific Styles */
.ar {
    display: none;
    font-family: 'Noto Naskh Arabic', serif;
}

[dir="rtl"] .ar {
    display: inline-block;
}

[dir="rtl"] .en {
    display: none;
}

[dir="ltr"] .en {
    display: inline-block;
}

[dir="ltr"] .ar {
    display: none;
}

/* Language Display */
span.en, span.ar {
    display: block;
    line-height: 1.4;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-links a span {
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: var(--primary-red);
    position: relative;
    min-width: 80px;
    text-align: center;
}

.lang-toggle:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

[dir="rtl"] .lang-toggle {
    margin-right: 1rem;
    margin-left: 0;
}

/* Hide inactive language */
[dir="ltr"] .ar,
[dir="rtl"] .en {
    display: none;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Force column layout for both RTL and LTR */
    .nav-links,
    [dir="rtl"] .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column !important; /* Force column layout */
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column !important; /* Force column layout even when active */
    }

    /* Center all items and force block display */
    .nav-links a,
    [dir="rtl"] .nav-links a,
    .lang-toggle {
        display: block !important;
        width: 200px;
        max-width: 90%;
        margin: 0.5rem auto !important;
        padding: 0.5rem 0;
        text-align: center;
    }
}

/* RTL Support for Mobile Navigation */
[dir="rtl"] .nav-links {
    right: 0;
    left: auto;
}

/* RTL Specific Styles */
[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-text {
    text-align: right;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-links a {
    margin-right: 1rem;
    margin-left: 0;
}

/* Logo Styles */
.logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.centered-logo {
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c41530;
}

/* Image Slider */
.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-container img.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #ffffff;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #f9f9f9;
    width: 100%;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-red);
}

.about-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    width: 100%;
    padding: 0 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

[dir="rtl"] .about-text p {
    text-align: right;
}

[dir="ltr"] .about-text p {
    text-align: left;
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-text {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .about-text {
        padding: 0 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        width: 100%;
    }

    .footer-content p {
        width: 100%;
        text-align: center;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-text {
        padding: 0;
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-red);
}

.service-category {
    margin-bottom: 4rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-red);
}

.service-category h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.service-description {
    text-align: center;
}

.service-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.additional-services {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-red);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 1rem;
}

[dir="rtl"] .info-item i {
    margin-right: 0;
    margin-left: 1rem;
}

.info-details h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.info-details p {
    color: #666;
    line-height: 1.6;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Design for Services and Contact */
@media (max-width: 768px) {
    .service-category {
        padding: 1.5rem;
    }
    
    .additional-services {
        gap: 1rem;
    }
    
    .service-item {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .map-container {
        width: 100%;
    }
    
    .info-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .services, .contact {
        padding: 3rem 0;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin: 0 0 1rem 0;
    }
    
    [dir="rtl"] .info-item i {
        margin: 0 0 1rem 0;
    }
}
