/* Main Styles */
:root {
    --primary-color: #ffd700;
    --secondary-color: #333;
    --text-color: #fff;
    --background-color: #222;
    --card-background: rgba(50, 50, 50, 0.7);
    --section-background: rgba(40, 40, 40, 0.8);
    --hover-color: #e6c200;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.language-switch {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.language-switch:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gold-divider {
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gold-line {
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    text-align: center;
}

.contact-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-description {
    max-width: 300px;
    margin: 0 auto;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-right: 2rem; /* إزاحة لليسار في النسخة الإنجليزية */
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

/* تعديل للنسخة العربية */
html[dir="rtl"] .footer-links {
    margin-right: 0;
    margin-left: 2rem; /* إزاحة لليمين في النسخة العربية */
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Full width class for text content */
.full-width {
    width: 100%;
}

/* تحسينات دعم RTL/LTR */
/* RTL Support - Arabic */
html[dir="rtl"] nav ul li a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .contact-icon,
html[dir="rtl"] .footer-contact-icon {
    margin-left: 0.5rem;
    margin-right: 0;
}

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

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

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

/* LTR Support - English */
html[dir="ltr"] .contact-icon,
html[dir="ltr"] .footer-contact-icon {
    margin-right: 0.5rem;
    margin-left: 0;
}

html[dir="ltr"] .service-card {
    text-align: left;
}

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

/* Media Queries */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        height: auto;
        min-height: 70vh;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* تحسينات RTL/LTR للهواتف */
    html[dir="rtl"] .footer-contact-item,
    html[dir="rtl"] .contact-item {
        justify-content: center;
    }
    
    html[dir="ltr"] .footer-contact-item,
    html[dir="ltr"] .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
