

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1a6b3a;
    --light-green: #2d8f54;
    --accent-green: #4caf50;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-gray: #555;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--light-gray);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
}

/* Page Transition */
.page {
    display: none;
    animation: fadeIn 0.5s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

   header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Section */
/* ============================================
   HEADER & NAVIGATION - تصميم احترافي محسّن
   ============================================ */

   header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

header:hover {
    box-shadow: 0 4px 30px rgba(26, 107, 58, 0.15);
}

/* تأثير الظل عند السكرول */
header.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 3rem;
}

/* Nav Top - للموبايل */
.nav-top {
    display: contents;
}

/* Logo Section - محسّن */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    order: 1;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 65px;
    width: 65px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-green), var(--light-green)) border-box;
    box-shadow: 0 5px 20px rgba(26, 107, 58, 0.25);
    transition: all 0.4s ease;
    padding: 5px;
}

.logo img:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 107, 58, 0.4);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.logo:hover .logo-text {
    letter-spacing: 1px;
}

/* Navigation Links - تحسينات احترافية */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 2;
    background: rgb(31 39 34 / 10%);
    
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* تأثير الخلفية المتحركة */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 107, 58, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 200%;
    height: 200%;
}

/* خط سفلي متحرك */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    color: var(--primary-green);
    background: rgba(26, 107, 58, 0.12);
    box-shadow: 0 4px 15px rgba(26, 107, 58, 0.15);
}

/* Language Switch Button - محسّن */
.lang-switch {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(26, 107, 58, 0.3);
    position: relative;
    overflow: hidden;
}

/* تأثير Shimmer */
.lang-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.lang-switch:hover::before {
    left: 100%;
}

.lang-switch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 107, 58, 0.4);
}

.lang-switch:active {
    transform: translateY(-1px);
}

/* زر الهمبرجر - محسّن */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    background: rgba(26, 107, 58, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(26, 107, 58, 0.1);
    border-color: var(--primary-green);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثير X عند الفتح */
.hamburger.active {
    background: var(--primary-green);
}

.hamburger.active span {
    background: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 107, 58, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE NAVIGATION للموبايل
   ============================================ */

@media (max-width: 968px) {
    nav {
        padding: 1rem 3%;
        justify-content: space-between;
        gap: 0;
    }

    .nav-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        order: 0;
    }

    .logo::after {
        display: none;
    }

    /* إظهار زر الهمبرجر */
    .hamburger {
        display: flex;
    }

    /* القائمة المنسدلة */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,245,245,0.98));
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        overflow-y: auto;
        border-radius: 0;
    }

    /* للغة العربية */
    dir.rtl .nav-links {
        right: auto;
        left: -100%;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* عند فتح القائمة */
    .nav-links.active {
        right: 0;
    }

    dir.rtl .nav-links.active {
        left: 0;
        right: auto;
    }

    /* تنسيق الروابط داخل القائمة */
    .nav-links a {
        width: 100%;
        padding: 16px 20px;
        border-radius: 12px;
        margin-bottom: 8px;
        font-size: 1.05rem;
        border: 2px solid transparent;
        background: rgba(26, 107, 58, 0.02);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-green), var(--light-green));
        transform: scaleY(0);
        transition: transform 0.3s ease;
        border-radius: 0 4px 4px 0;
    }

    body.rtl .nav-links a::before {
        right: auto;
        left: 0;
        border-radius: 4px 0 0 4px;
    }

    .nav-links a:hover {
        background: rgba(26, 107, 58, 0.1);
        border-color: rgba(26, 107, 58, 0.2);
        transform: translateX(-5px);
    }

    dir.rtl .nav-links a:hover {
        transform: translateX(5px);
    }

    .nav-links a:hover::before,
    .nav-links a.active::before {
        transform: scaleY(1);
    }

    .nav-links a.active {
        background: rgba(26, 107, 58, 0.15);
        border-color: var(--primary-green);
    }

    /* زر تغيير اللغة في القائمة */
    .lang-switch {
        width: 100%;
        margin-top: 20px;
        padding: 14px;
        text-align: center;
        font-size: 1rem;
    }

    /* Animation للروابط */
    .nav-links.active a {
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }

    .nav-links.active a:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active a:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active a:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active a:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active .lang-switch { 
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        animation-delay: 0.35s;
        opacity: 0;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    dir.rtl .nav-links.active a,
    dir.rtl .nav-links.active .lang-switch {
        animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 2%;
    }

    .logo img {
        height: 55px;
        width: 55px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .nav-links {
        width: 280px;
        padding: 80px 25px 25px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 2%;
    }

    .logo {
        gap: 0.7rem;
    }

    .logo img {
        height: 50px;
        width: 50px;
        border-width: 2px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 260px;
        padding: 75px 20px 20px;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 13px 15px;
    }

    .hamburger {
        padding: 10px;
    }

    .hamburger span {
        width: 25px;
        height: 2.5px;
    }

    .lang-switch {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* تأثير Pulse للشعار */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(26, 107, 58, 0.25);
    }
    50% {
        box-shadow: 0 5px 30px rgba(26, 107, 58, 0.4);
    }
}

.logo img {
    animation: pulse 3s ease-in-out infinite;
}

/* Smooth Scrolling للصفحة */
html {
    scroll-behavior: smooth;
}

/* إضافة Shadow للقائمة عند السكرول */
.nav-links {
    transition: all 0.3s ease;
}

header.scrolled .nav-links {
    box-shadow: 0 5px 20px rgba(26, 107, 58, 0.1);
}

/* ============================================
   ALTERNATIVE CIRCULAR LOGO STYLES
   ============================================ */

/* Style 1: Glow Effect */
.logo img.glow-style {
    box-shadow: 0 0 20px rgba(26, 107, 58, 0.6);
}

.logo img.glow-style:hover {
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
}

/* Style 2: Double Border */
.logo img.double-border {
    border: 2px solid var(--primary-green);
    outline: 2px solid var(--light-green);
    outline-offset: 2px;
}

/* Style 3: Gradient Border */
.logo img.gradient-border {
    border: 3px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary-green), var(--light-green)) border-box;
}

.lang-switch {
    background: rgba(255,255,255,0.15);
    border: 2px solid var(--white);
    color: #2d8f54;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.lang-switch:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: scale(1.05);
}


/* Hero Section */
.hero {
    /* The green overlay is kept to ensure text is readable */
    background: linear-gradient(135deg, rgba(26, 107, 58, 0.95), rgba(45, 143, 84, 0.9)),
                url('img/9.jpg'); /* The path to your new image */
    background-size: cover;      /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;/* Prevents the image from repeating */
    color: var(--white);
    padding: 160px 2rem 120px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
   
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    
    line-height: 1.8;
}

/* Form Sections */
.form-hero {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 140px 2rem 80px;
    text-align: center;
    margin-top: 70px;
}

.form-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}


.form-container {
    max-width: 800px;
    margin: -40px auto 80px;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 107, 58, 0.3);
}

/* Sections */
section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 2px;
}

/* Product Images Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 107, 58, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background: linear-gradient(to bottom, transparent, rgba(26, 107, 58, 0.05));
    text-align: center;
    font-weight: 600;
    color: var(--primary-green);
}

/* Quality Control */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quality-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 5px solid var(--accent-green);
    position: relative;
    overflow: hidden;
}

.quality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(26, 107, 58, 0.2);
}

.quality-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.quality-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* About Section */
.about-content {
    background: linear-gradient(135deg, #f8f9fa, var(--white));
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(26, 107, 58, 0.1);
}

.about-content p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-gray);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 107, 58, 0.3);
}

.product-header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
}

.product-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-body {
    padding: 3rem 2rem 2rem;
}

.product-body ul {
    list-style: none;
    padding: 0;
}

.product-body li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 35px;
    transition: all 0.3s;
}

.product-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.4rem;
}

body.rtl .product-body li {
    padding-left: 0;
    padding-right: 35px;
}

body.rtl .product-body li::before {
    left: auto;
    right: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 107, 58, 0.2);
    border-color: var(--accent-green);
}

.contact-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin: 0.5rem 0;
}

.contact-card a:hover {
    color: var(--accent-green);
}

/* Footer */
/* ======================================= */
/* أنماط الفوتر الجديد            */
/* ======================================= */
.site-footer {
    background-color: var(--dark-bg);
    color: #a9a9a9;
    padding: 60px 0 0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.footer-column .logo {
    margin-bottom: 1.5rem;
    align-items: center;
}

.footer-logo {
    height: 45px;
    width: auto;
}

.footer-column .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.footer-about-text {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-green);
}

body.rtl .footer-title::after {
    left: auto;
    right: 0;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links a, .footer-contact a {
    color: #a9a9a9;
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0;
    transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--white);
    transform: translateX(5px);
}

body.rtl .footer-links a:hover, body.rtl .footer-contact a:hover {
    transform: translateX(-5px);
}

.footer-contact li {
    padding: 0.3rem 0;
}
.social-media {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* تأثير الخلفية المتحركة */
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-green);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* الأيقونات نفسها */
.social-icon i {
    color: var(--accent-green);
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover i {
    color: white;
    transform: scale(1.2) rotate(360deg);
}

.social-icon:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* ألوان مميزة لكل منصة */
.social-icon:nth-child(1):hover::before {
    background: #1877f2; /* Facebook */
}

.social-icon:nth-child(2):hover::before {
    background: #1da1f2; /* Twitter */
}

.social-icon:nth-child(3):hover::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Instagram */
}

.social-icon:nth-child(4):hover::before {
    background: #0077b5; /* LinkedIn */
}

/* تأثير Pulse */
@keyframes pulse-social {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.social-icon:hover {
    animation: pulse-social 1.5s infinite;
}

/* للموبايل */
@media (max-width: 768px) {
    .social-media {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .social-icon i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon i {
        font-size: 16px;
    }
}

/* ======================================= */
/* تطوير قسم الـ Hero الاحترافي         */
/* ======================================= */

/* إضافة حاوية للمحتوى لتطبيق الأنيميشن بشكل أفضل */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* تحديث حركة ظهور النصوص والأزرار بشكل متتالي */
.hero h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero p {
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* تصميم الأزرار التفاعلية */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}


/* تصميم سهم التمرير للأسفل */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
}

.scroll-down-arrow svg {
    width: 48px;
    height: 48px;
}

/* حركة السهم */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -15px);
    }
    60% {
        transform: translate(-50%, -8px);
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 
#manufacturing {
    padding: 80px 2rem;
    background-color: var(--light-gray);
}

.slider-container {
    max-width: 1100px;
    height: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageFade 15s infinite;
}

.slider-img:nth-child(2) {
    animation-delay: 5s;
}
.slider-img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes imageFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 107, 58, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.slider-text {
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
} */

/* ======================================= */
/* أنماط قسم الكروت المتحركة         */
/* ======================================= */

#features {
    background-color: var(--white); /* خلفية بيضاء للقسم */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 5px solid var(--accent-green);
    /* إضافة حركة ناعمة عند التحويل */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الحركة عند تمرير الماوس فوق الكارت */
.feature-card:hover {
    transform: translateY(-12px); /* يرتفع الكارت للأعلى قليلاً */
    box-shadow: 0 15px 35px rgba(26, 107, 58, 0.2); /* ظل أكثر وضوحاً */
}

.feature-card img {
    height: 70px; /* ارتفاع ثابت للصور */
    width: auto;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}


/* ======================================= */
/* Our Clients Logo Scroller Styles   */
/* ======================================= */

#clients {
    padding-bottom: 80px;
    background: var(--white);
}

.logo-scroller {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    /* A soft gradient on the edges to fade the logos in and out */
    -webkit-mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
    mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
}

.logo-list {
    display: flex;
    gap: 40px;
    /* The animation magic */
    animation: scroll 30s linear infinite;
}

.logo-scroller:hover .logo-list {
    /* Optional: Pause animation on hover */
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(-100%);
    }
}

.logo-item {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the container circular */
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Prevents logos from shrinking */
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
   
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%); /* Shows original colors on hover */
    opacity: 1;
}


/* ======================================= */
/* أنماط صفحة "من نحن" المطورة      */
/* ======================================= */

/* قسم التمهيد (صورة مع نص) */
.about-intro {
    background: var(--white);
}
.about-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}
.about-intro-text h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.about-intro-text p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 1rem;
}
.about-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* قسم القيم (الرؤية والمهمة) */
.about-values {
    background: var(--light-gray);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-green);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.value-card h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.value-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* قسم تكنولوجيا التصنيع */
.manufacturing-tech {
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.gallery-image-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}
.gallery-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-image-item:hover img {
    transform: scale(1.1);
}
.gallery-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26, 107, 58, 0.9), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* قسم الدعوة لاتخاذ إجراء (CTA) */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    text-align: center;
    color: var(--white);
    padding: 80px 2rem;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-button {
    background: var(--white);
    color: var(--primary-green);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Product Sizes Styling */
.product-sizes,
.product-types {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.sizes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c5f2d;
    font-size: 16px;
}

.size-icon {
    font-size: 20px;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.size-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #2c5f2d 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.size-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Product Types Styling */
.product-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.type-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.type-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-badge.pn16 {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.type-badge.pn20 {
    background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.type-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}


   .view-products-btn {
              font-family: 'Cairo', sans-serif;
            background: linear-gradient(135deg, #2c5f2d 0%, #4a9d4e 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: auto;
        }

        .view-products-btn:hover {
            background: linear-gradient(135deg, #234d24 0%, #3a8a3e 100%);
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
        }


        
/* خاص باراء العملاء  */

/* نهاية اراء العملاء  */


/* Responsive Design */
@media (max-width: 768px) {
    .sizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .size-badge {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .type-card {
        padding: 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-sizes,
.product-types {
    animation: fadeInUp 0.6s ease;
}


/* Chairman Message */
        .chairman-section {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 3rem;
            align-items: start;
            background: linear-gradient(135deg, rgba(26, 107, 58, 0.05), rgba(76, 175, 80, 0.05));
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .chairman-photo {
            position: relative;
        }

        .chairman-photo img {
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .chairman-placeholder {
            width: 100%;
           height: 20rem;
            background: linear-gradient(135deg, var(--primary-green), var(--light-green));
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 4rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .chairman-content {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .chairman-title {
            font-size: 2rem;
            color: var(--primary-green);
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .chairman-text {
            font-size: 1.1rem;
            line-height: 1.9;
            color: var(--text-gray);
            text-align: justify;
        }

        .chairman-signature {
            margin-top: 1rem;
        }

        .chairman-regards {
            font-style: italic;
            color: var(--text-gray);
            margin-bottom: 0.5rem;
        }

        .chairman-name {
            font-size: 1.5rem;
            color: var(--primary-green);
            font-weight: bold;
            margin-bottom: 0.3rem;
        }

        .chairman-position {
            color: var(--text-gray);
            font-size: 1.1rem;
        }

        @media (max-width: 968px) {
            .chairman-section {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .chairman-photo {
                max-width: 300px;
                margin: 0 auto;
            }
        }

@media (max-width: 768px) {
    .hero h1, .form-hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 40px;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    
}

