/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: text-align 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* RTL Specific Styles */
[dir="rtl"] .main-menu {
    padding-right: 0;
}

[dir="rtl"] .service-features i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* LTR Specific Styles */
[dir="ltr"] .main-menu {
    padding-left: 0;
}

[dir="ltr"] .service-features i {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="ltr"] .dropdown-menu {
    text-align: left;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 180px;
    height: auto;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

/* Navigation Styles */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.main-menu a:hover {
    color: #3498db;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    top: 100%;
    right: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9));
    background-color: #34495e;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 9rem 0 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1rem;
    color: #2c3e50;
}

.service-card p {
    padding: 0 1rem;
    color: #666;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    margin: 1rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

#language-selector {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    background-color: #34495e;
    color: #fff;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Phone Styles */
.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.footer-phone i {
    font-size: 0.9rem;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    width: 1rem;
    text-align: center;
}

/* Service Details Styles */
.service-details {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

.service-details .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.service-content h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-features {
    list-style: none;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-features li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.service-features i {
    color: #27ae60;
    margin-left: 1rem;
    font-size: 1.2rem;
}

.service-description {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.service-description h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-section {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px;
}

.contact-section h4 {
    margin-bottom: 1rem;
}

.contact-section .btn {
    margin-top: 1rem;
    background-color: #fff;
    color: #2c3e50;
}

.contact-section .btn:hover {
    background-color: #f8f9fa;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn.active {
    color: #3498db;
}

/* Google Translate Styles */
.goog-te-gadget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0px !important;
}

.goog-te-gadget .goog-te-combo {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    background-color: #34495e;
    color: #fff;
    cursor: pointer;
    font-size: 14px !important;
    width: 100%;
    max-width: 200px;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value:hover {
    text-decoration: none !important;
}

.goog-te-menu-value span {
    display: none !important;
}

.goog-te-menu-value span:first-child {
    display: inline !important;
}

.goog-te-menu-value {
    color: #fff !important;
}

/* RTL Support for Google Translate */
[dir="rtl"] .goog-te-combo {
    text-align: right;
}

[dir="ltr"] .goog-te-combo {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 991px) {
    .primary-image {
        max-width: 100%;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .service-content {
        padding: 0 15px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .service-content {
        padding: 0 1rem;
    }
    
    .service-features li {
        padding: 0.8rem;
    }

    .service-phone {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .primary-image img {
        height: auto;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .service-description {
        padding: 1.5rem;
    }

    .logo img {
        max-width: 150px;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .primary-image img {
        height: auto;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-features li {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 0.5rem 15px;
    }

    .logo img {
        max-width: 120px;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-card {
        margin: 1rem 0;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.7rem 1.2rem;
    }

    .call-btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .primary-image img {
        height: auto;
    }
    
    .service-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .service-description {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-features li {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .primary-image img {
        height: auto;
    }
}

@media (max-width: 370px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .service-phone {
        padding: 0.3rem 0.7rem;
    }
    
    .phone-link {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Service Card Styles */
.service-image {
    position: relative;
    overflow: hidden;
}

.service-phone {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(52, 152, 219, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 2;
}

.phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-link i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
}

.call-btn {
    background-color: #27ae60;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.call-btn i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
}

.call-btn:hover {
    background-color: #219a52;
}

/* Footer Styles */
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Service Images Gallery */
.service-images {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

.primary-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
}

.primary-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .primary-image img {
        height: auto;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .service-description {
        padding: 1.5rem;
    }
    
    .service-phone {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-features li {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .primary-image img {
        height: auto;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    header .container {
        padding: 0.5rem 15px;
    }

    .logo img {
        max-width: 120px;
    }

    .service-card {
        margin: 1rem 0;
    }

    .service-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .service-description {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-features li {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.7rem 1.2rem;
    }

    .call-btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Language Selector */
.language-selector {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    background-color: #34495e;
    color: #fff;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 200px;
}

.language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.google-translate-container {
    display: none; /* Hide Google Translate widget but keep the functionality */
}

/* RTL/LTR Specific Styles */
.rtl {
    text-align: right !important;
    direction: rtl !important;
}

.ltr {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="rtl"] .service-features i {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[dir="ltr"] .service-features i {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .dropdown-menu {
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
}

html[dir="ltr"] .dropdown-menu {
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
}

html[dir="rtl"] .service-content,
html[dir="rtl"] .service-description,
html[dir="rtl"] .service-description p,
html[dir="rtl"] .service-features li {
    text-align: right !important;
}

html[dir="ltr"] .service-content,
html[dir="ltr"] .service-description,
html[dir="ltr"] .service-description p,
html[dir="ltr"] .service-features li {
    text-align: left !important;
}

/* Always center these elements regardless of language */
.service-content h3,
.service-description h4,
.contact-section h4 {
    text-align: center !important;
}

/* RTL Service Feature Styles */
html[dir="rtl"] .service-features li {
    text-align: right;
    padding-right: 1rem;
    flex-direction: row;
}

html[dir="rtl"] .service-features i {
    margin-left: 1rem;
    margin-right: 0;
}

/* LTR Service Feature Styles */
html[dir="ltr"] .service-features li {
    text-align: left;
    padding-left: 1rem;
    flex-direction: row;
}

html[dir="ltr"] .service-features i {
    margin-right: 1rem;
    margin-left: 0;
}

/* Enhanced LTR Support */
html[dir="ltr"] body,
html[dir="ltr"] div,
html[dir="ltr"] p,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] li,
html[dir="ltr"] span,
html[dir="ltr"] a {
    direction: ltr !important;
}

html[dir="ltr"] .service-content,
html[dir="ltr"] .service-description,
html[dir="ltr"] .service-features,
html[dir="ltr"] .service-features li {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="ltr"] .service-features i {
    float: left !important;
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

html[dir="ltr"] .service-content h3,
html[dir="ltr"] .service-description h4,
html[dir="ltr"] .contact-section h4,
html[dir="ltr"] .hero h2,
html[dir="ltr"] .hero p {
    text-align: center !important;
} 