/* ===== متغيرات الألوان والخطوط ===== */
:root {
    --primary-color: #2e2b4a;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}



/* ===== الإعدادات الأساسية ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'El Messiri', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* ===== تخصيصات اللغة ===== */
[lang="ar"] {
    font-family: 'El Messiri', 'DM Sans', sans-serif;
}

[lang="en"] {
    font-family: 'DM Sans', sans-serif;
}

[lang="th"] {
    font-family: 'Sarabun', 'DM Sans', sans-serif;
}

/* ===== الهيدر العلوي ===== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    padding: 8px 0;
    font-size: 0.9rem;
}

.site-header-ico {
    color: #fff !important;
}

.site-header .social-icon {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .social-icon li {
    margin-left: 15px;
}

.site-header .social-icon a {
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.site-header .social-icon a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== مبدل اللغة ===== */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* ===== التنقل الرئيسي ===== */
.navbar-brand {
    font-family: 'Lemonada', cursive !important;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-nav {
    font-family: 'Lemonada', cursive !important;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

/* ===== زر الواتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-link:hover {
    transform: scale(1.05);
    color: white;
    background: #128C7E;
}

.whatsapp-text {
    margin-right: 8px;
    font-weight: 500;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== الفوتر ===== */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright-text {
    color: #ccc;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* ===== أقسام عامة ===== */
.section-padding {
    padding: 80px 0;
}

.small-title {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.custom-btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-block;
}

.custom-btn:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* ===== هيرو سيكشن ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Lemonada', cursive;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== قسم الخدمات ===== */
.services-grid {
   
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ===== قسم المشاريع ===== */
.projects-grid {
  
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* ===== نموذج الاتصال ===== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}
@media (min-width: 992px){
		.booox{
	width: 31.333%;
}

.bxooox{
	
	width: 100%;

}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

}
/* ===== التجاوب مع الشاشات ===== */
@media (max-width: 768px) {


    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .site-header .row {
        text-align: center;
    }
    
    .lang-switcher {
        justify-content: center;
        margin-top: 10px;
    }
    
    .site-footer-wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* ===== تأثيرات إضافية ===== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* أنماط إضافية لصفحة المشاريع والاتصال */

/* صفحة المشاريع */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    background: white;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 600;
}

.project-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* الإحصائيات */
.stat-item {
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* صفحة الاتصال */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.contact-form .btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.contact-info-card {
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.contact-info-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

.map-container {
    margin-top: 40px;
}

.google-map {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* رسائل الخطأ */
.error-message {
    font-size: 0.8rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

/* التجاوب مع الشاشات */
@media (max-width: 768px) {
    .projects-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .project-overlay {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .contact-info-card {
        padding: 20px 15px;
    }
}