/* الألوان المتفق عليها */
:root {
    --primary-color: #2C7A7B;       /* الأخضر التركوازي الداكن */
    --secondary-color: #D9804B;     /* البرتقالي الترابي */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --accent-hover: #E59C66;        /* البرتقالي الفاتح */
    --background-light: #F4F4F4;    /* للكتل الفاتحة */
    --background-white: #FFFFFF;
}

/* التنسيقات العامة والخط */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    direction: rtl; /* اتجاه الكتابة للصفحة بالكامل */
    background-color: var(--background-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* شريط التنقل (Navbar) */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
}

/* تنسيق الشعار والاسم في الأعلى */
.navbar .logo {
    display: flex; 
    align-items: center;
    gap: 10px; 
    color: var(--primary-color);
    font-weight: 900;
    margin: 0;
}

.navbar .logo .logo-image {
    height: 35px; /* حجم الشعار */
    width: auto;
}

.navbar .logo span {
    font-size: 1.5rem; /* حجم الخط المصغر للاسم */
    color: var(--primary-color);
    font-weight: 700;
}

.navbar nav ul {
    list-style: none;
    display: flex;
}

.navbar nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: var(--secondary-color);
}

/* الأزرار (Buttons) */
.btn {
    display: inline-block;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #3f999a; 
    transform: translateY(-2px);
}

/* 1. الكتلة الأولى: البداية القوية (Hero + Value Prop) */
.hero-block {
    position: relative;
    min-height: 90vh;
    background: url('tech-background-placeholder.jpg') center/cover no-repeat; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 100px; 
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    padding-top: 50px;
}

.super-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-headline { /* حجم الخط بعد التصغير */
    font-size: 3rem; 
    font-weight: 900;
    margin-bottom: 40px;
}

.value-cards {
    position: absolute;
    bottom: -75px; 
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-cards .card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: right;
    transition: transform 0.3s;
}

.value-cards .card:hover {
    transform: translateY(-5px);
}

.value-cards .card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-cards .card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* 2. الكتلة الثانية: معرض الصور البارز (Featured Gallery Block) - تصميم مقسوم */
.gallery-split-block {
    padding: 150px 0 100px; 
    background-color: var(--background-white);
}

.gallery-content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: right;
}

.gallery-text {
    flex: 2; 
}

.gallery-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.gallery-visual {
    flex: 3; 
}

/* --- تنسيق السلايدر القائم على التلاشي (Fade Slider) --- */
.product-carousel {
    position: relative;
    overflow: hidden; 
    height: 450px;
    background-color: var(--background-light);
    border: 3px solid var(--primary-color);
    border-radius: 10px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute; /* وضع جميع الشرائح فوق بعضها البعض */
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    opacity: 0; /* إخفاء جميع الشرائح بشكل افتراضي */
    transition: opacity 1s ease-in-out; /* إضافة تأثير التلاشي */
    object-fit: cover; 
    flex-shrink: 0;
}

.carousel-item.active {
    opacity: 1; /* عرض الشريحة النشطة فقط */
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%; /* استخدام Left بدلاً من Right للتوسيط في حاوية RTL */
    transform: translateX(-50%); 
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active {
    background-color: var(--secondary-color);
    border: 2px solid var(--text-light);
}
/* ----------------------------------------------------- */

/* 3. الكتلة الثالثة: التركيز على الثقة والنمو (Trust & Growth Block) */
.trust-bar-block {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
    color: var(--text-light);
}

.trust-item {
    flex: 1;
    padding: 10px;
}

.trust-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}


/* 4. الكتلة الرابعة: التواصل والوصول (Contact & Footer Block) */
.contact-block {
    background-color: var(--background-light);
    padding: 100px 0 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px;
    text-align: right;
}

.contact-info {
    padding-top: 15px;
}

.contact-info .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
}

.info-details {
    margin-top: 30px;
    font-size: 1.15rem;
}

.info-details i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.phone-number {
    font-weight: 700;
    color: var(--secondary-color);
}

.map-placeholder {
    height: 200px;
    background-color: #e0e0e0;
    margin-top: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    text-align: right;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    align-self: flex-end;
    width: auto;
    max-width: 200px;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #777;
}

/* استجابة الأجهزة الصغيرة (Media Queries) */
@media (max-width: 1024px) {
    .value-cards {
        position: relative;
        bottom: 0;
        grid-template-columns: 1fr;
        padding: 0 25px;
    }
    .hero-block {
        min-height: auto;
        padding-bottom: 50px;
    }
    .gallery-split-block {
        padding-top: 50px; 
    }
    .gallery-content-wrapper, .contact-grid {
        flex-direction: column;
        display: flex; 
        gap: 40px;
    }
    .gallery-text {
        order: 2; 
        text-align: center;
    }
    .gallery-visual {
        order: 1;
    }
    .hero-headline { 
        font-size: 2.2rem;
    }
    .trust-items {
        flex-direction: column;
        gap: 40px;
    }
    .contact-form .btn-primary {
        align-self: center; 
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .navbar .logo {
        margin-bottom: 5px;
    }
    .navbar nav ul {
        margin-top: 10px;
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .trust-bar-block {
        padding: 40px 0;
    }
}