:root {
    --primary: #2E7D32;
    --secondary: #D32F2F;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    text-align: right;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
/* إخفاء عناصر الموبايل في النسخة المكتبية */
.menu-toggle, .mobile-only { display: none; }

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%; /* القائمة مخفية جهة اليمين */
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 40px 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0; /* تظهر عند الضغط */
    }

    .nav-links li { margin: 15px 0; }
    
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    /* شكل زر الثلاث شرطات */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary);
        transition: 0.3s;
    }

    /* زر الواتساب في الموبايل */
    .btn-whatsapp-mob {
        background: #25D366;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
    }
}
/* تنسيق الشعار المطور */
.site-logo {
    height: 70px;    /* يمكنك تغيير هذا الرقم لزيادة أو تقليل الحجم */
    width: auto;      /* للحفاظ على تناسق أبعاد الصورة ومنع تمططها */
    display: block;
    object-fit: contain; /* يضمن احتواء الصورة داخل الإطار المحدد */
    transition: transform 0.3s ease;
}

/* إضافة لمسة احترافية عند مرور الماوس فوق الشعار */
.site-logo:hover {
    transform: scale(1.05);
}

/* تأكد من أن الحاوية لا تضغط الشعار */
.logo-container {
    display: flex;
    align-items: center;
}

/* --- Hero Section --- */
.hero-section {
    height: 85vh;
    background: url('hero.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- About Modern Section --- */
.about-modern {
    padding: 100px 0;
    background: #fff;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    color: var(--primary);
    background: rgba(46, 125, 50, 0.1);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-right: 5px solid var(--primary);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-visuals {
    position: relative;
}

.main-img img {
    width: 90%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.floating-img {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 250px;
    border: 10px solid white;
    border-radius: 25px;
}

.experience-badge {
    position: absolute;
    top: -20px;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Products Section --- */
.bg-light-modern {
    background: #f8fcf9;
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.product-card-premium {
    background: white;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    /* تغيير الارتفاع ليكون تلقائيًا أو تحديد ارتفاع كافٍ */
    height: auto; /* أو جرب ارتفاعًا محددًا مثل 350px إذا لزم الأمر */
    border-radius: 20px;
    /* overflow: hidden;  -- يمكن إزالة هذا السطر إذا كان يسبب قطعًا للعلبة */
    
    /* إضافة تنسيقات لتمركز الصورة (العلبة) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* إضافة مسافة بادئة حول الصورة لتعطي مساحة للعلبة */
}

.product-img-wrapper img {
    /* التأكد من أن الصورة لا تتجاوز عرض الحاوية */
    max-width: 100%;
    /* الحفاظ على تناسب الأبعاد */
    height: auto;
    /* إزالة object-fit: cover إذا كانت تسبب تمددًا غير مرغوب فيه للعلبة */
    object-fit: contain; /* هذا الخيار أفضل للحفاظ على شكل العلبة كاملاً داخل الإطار */
    display: block;
    margin: 0 auto; /* تمركز الصورة أفقيًا */
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 20px 10px;
}

.btn-text {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* --- Simple & Elegant Gallery --- */
.gallery-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* توزيع متساوي آلي */
    gap: 20px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    height: 300px; /* توحيد الطول لجميع الصور */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان عدم تمدد الصورة */
    transition: transform 0.6s ease;
}

.gallery-content {
    position: absolute;
    inset: 0;
    background: rgba(46, 125, 50, 0.85); /* طبقة خضراء شفافة عند الوقوف */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0; /* مخفي افتراضياً */
    transition: all 0.4s ease;
}

.content-inner {
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* تأثيرات عند الوقوف (Hover) */
.gallery-card:hover .gallery-content {
    opacity: 1;
}

.gallery-card:hover .content-inner {
    transform: translateY(0);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* تنسيق النصوص داخل الصورة */
.gallery-content i {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.gallery-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
/* إضافة مساحة تفصل الجاليري عن الفوتر */
.gallery-modern {
    padding-bottom: 100px; /* زيادة المسافة الداخلية من الأسفل */
    margin-bottom: 50px;   /* إضافة مسافة خارجية فاصلة */
}
/* --- Footer --- */
.footer-premium {
    background: #0d1e0e;
    color: #cbd5e0;
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.social-pills {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.pill-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
}

.pill-link:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.footer-quick-links ul {
    list-style: none;
}

.footer-quick-links li {
    margin-bottom: 12px;
}

.footer-quick-links a {
    color: #cbd5e0;
    text-decoration: none;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* --- Utilities --- */
.container {
    width: 85%;
    margin: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.center { text-align: center; }

.section-subtitle {
    color: var(--gray);
    margin-bottom: 50px;
}

.btn-main {
    background: var(--secondary);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper, .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .floating-img { display: none; }
}
/* --- تنسيقات قسم المدير العام --- */
.ceo-section {
    padding: 100px 0;
    background: #fdfdfd; /* خلفية فاتحة جداً للتميز عن باقي الأقسام */
    border-bottom: 1px solid #eee;
}

.ceo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* توزيع المساحة بين النص والفيديو */
    gap: 60px;
    align-items: center;
}

/* أيقونة الاقتباس */
.quote-icon {
    font-size: 3rem;
    color: var(--primary); /* اللون الأخضر الأساسي */
    opacity: 0.2;
    margin-bottom: -20px;
    display: block;
}

.ceo-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    margin: 30px 0;
    position: relative;
    font-weight: 500;
}

/* توقيع المدير */
.ceo-signature h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.ceo-signature span {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* حاوية الفيديو الاحترافية */
.video-container {
    position: relative;
    border-radius: 25px; /* حواف دائرية فخمة */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); /* ظل عميق */
    padding-top: 56.25%; /* نسبة عرض 16:9 */
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* لمسة جمالية خلف الفيديو */
.video-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

/* استجابة التصميم للهواتف */
@media (max-width: 992px) {
    .ceo-wrapper {
        grid-template-columns: 1fr; /* جعل العناصر تحت بعضها في الشاشات الصغيرة */
        text-align: center;
        gap: 40px;
    }
    .quote-icon {
        margin: 0 auto -20px auto;
    }
    .ceo-quote {
        font-size: 1.2rem;
    }
}
.footer-logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary); /* سيظهر باللون الأخضر الخاص بالشركة */
    margin-bottom: 20px;
    display: block;
    letter-spacing: 1px;
}

/* إذا أردت أن يكون النص بلون أبيض ليتناسب مع خلفية الفوتر الداكنة */
.footer-brand .footer-logo-text {
    color: #ffffff;
    border-right: 4px solid var(--primary); /* خط عمودي جمالي بجانب الاسم */
    padding-right: 15px;
}
.video-container {
    background: #000; /* خلفية سوداء تظهر أثناء تحميل الفيديو */
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

video:focus {
    outline: none; /* إزالة الإطار عند النقر على الفيديو */
}