/* إعدادات عامة */
:root {
    --primary-color: #1a2b4c; /* الأزرق الداكن */
    --secondary-color: #d4a343; /* الأصفر/الذهبي */
    --text-color: #333;
    --light-bg: #f4f6f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #c29235;
    transform: translateY(-3px);
}

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

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

/* شريط التنقل */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
    position: relative;
}

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

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

/* السلايدر */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px; /* لتعويض مساحة الناف بار */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.7); /* تعتيم الصورة */
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.8s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* أزرار السلايدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s;
}

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

.prev { right: 20px; }
.next { left: 20px; }

/* نقاط السلايدر */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: var(--secondary-color);
}

/* عناوين الأقسام */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* من نحن */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.about-features {
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* اتصل بنا */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: var(--light-bg);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: #555;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    background: var(--light-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* تذييل الصفحة */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-logo h2 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    line-height: 40px;
    margin: 0 5px;
    transition: background 0.3s;
}

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

/* التجاوب مع الشاشات (Responsive) */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .slide-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* يتم التحكم بها بالجافاسكريبت */
    }
    
    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}
/* =========================================
   معرض الصور (Gallery) & Lightbox
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px; /* ارتفاع ثابت للصور لتبدو متناسقة */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* تكبير الصورة عند تمرير الماوس */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.7); /* لون أزرق شفاف */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--secondary-color);
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* نافذة عرض الصورة (Lightbox) */
.lightbox {
    display: none; /* مخفية افتراضياً */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
    
}
/* =========================================
   لماذا تختارنا (بالصور) + الرؤية والرسالة
   ========================================= */

/* شبكة الصور */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.why-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

.why-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.why-card:hover img {
    transform: scale(1.1);
}

/* الطبقة النصية الشفافة */
.why-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 43, 76, 0.95) 0%, rgba(26, 43, 76, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px 20px;
    color: var(--white);
    transition: background 0.4s ease;
}

.why-card:hover .why-overlay {
    background: linear-gradient(to top, rgba(212, 163, 67, 0.95) 0%, rgba(212, 163, 67, 0.6) 60%, rgba(212, 163, 67, 0.2) 100%);
}

.why-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.why-card:hover .why-icon {
    color: var(--white);
}

.why-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.why-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* إظهار النص عند تمرير الماوس */
.why-card:hover .why-overlay p {
    opacity: 1;
    max-height: 100px;
    margin-top: 5px;
}

/* الرؤية والرسالة (نفس التصميم السابق) */
.vision-mission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    padding: 40px;
    border-radius: 15px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vm-card.vision {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a426e 100%);
}

.vm-card.mission {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8892f 100%);
}

.vm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vm-header i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.vm-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.vm-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* التجاوب مع الشاشات */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        height: 300px;
    }

    /* على الجوال، نظهر النص دائماً لأن الماوس غير موجود */
    .why-overlay p {
        opacity: 1;
        max-height: 100px;
        margin-top: 5px;
    }

    .vision-mission-wrapper {
        grid-template-columns: 1fr;
    }
    
    .vm-card {
        padding: 30px 20px;
    }
}
/* =========================================
   تذييل الصفحة (Footer)
   ========================================= */

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h2, 
.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h2 {
    font-size: 1.8rem;
}

.footer-col h2::after,
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-en {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-desc {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* روابط سريعة */
.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer-links i {
    font-size: 0.7rem;
    margin-left: 8px;
    color: var(--secondary-color);
}

/* تواصل معنا */
.footer-contact p {
    margin-bottom: 12px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-left: 10px;
    width: 20px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

/* شريط الحقوق والتصميم */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom > p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* تصميم وبرمجة هاي تك */
.hitech-credit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(212, 163, 67, 0.3);
    transition: all 0.3s;
}

.hitech-credit:hover {
    background: rgba(212, 163, 67, 0.1);
    border-color: var(--secondary-color);
}

.hitech-credit > span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.hitech-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hitech-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.hitech-name {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.hitech-name small {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
}

/* التجاوب مع الشاشات */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h2::after,
    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hitech-credit {
        justify-content: center;
    }
}
/* تنسيق شعار الشركة في الفوتر */
.footer-logo-img {
    max-width: 150px; /* يمكنك تكبير أو تصغير الرقم حسب رغبتك */
    height: auto;
    margin-bottom: 15px; /* مسافة بين الشعار والاسم */
    display: inline-block;
    /* إذا كان الشعار بخلفية بيضاء وتريد جعله شفافاً، أضف الكود التالي: */
    /* mix-blend-mode: screen; */ 
}