/* CSS Variables for Colors */
:root {
    --deep-mocha: #543d31;
    --golden-earth: #a15c02;
    --light-mocha: #8b6b5c;
    --light-gold: #d4a55a;
    --dark-brown: #3a2c23;
    --light-bg: #f9f5f2;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --medium-gray: #888;
    --dark-gray: #333;
    
    /* Typography */
    --font-heading: 'Almarai', sans-serif;
    --font-body: 'Vazirmatn', 'Noto Kufi Arabic', sans-serif;
    --font-special: 'Almarai', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--deep-mocha);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--golden-earth);
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--golden-earth);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--deep-mocha);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--deep-mocha);
    color: var(--white);
    transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-light);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--deep-mocha);
}

.logo img {
    width: 65px;
    height: 65px;
    object-fit: contain; 
    margin-left: 10px; 
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 15px;
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--golden-earth);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--golden-earth);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--deep-mocha);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(84, 61, 49, 0.15), rgba(161, 92, 2, 0.1)), url('cover.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(84, 61, 49, 0.8), rgba(161, 92, 2, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--light-gold);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--deep-mocha);
    margin-bottom: 20px;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.vision, .mission {
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--golden-earth);
}

.vision h4, .mission h4 {
    color: var(--deep-mocha);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vision h4 i, .mission h4 i {
    margin-left: 10px;
    color: var(--golden-earth);
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-mocha);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.about-image .image-placeholder span {
    font-size: 1.2rem;
    margin-top: 15px;
}

.about-image img {
    width: 100%; 
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px; 
}


/* Products Section */
.products-section {
    background-color: var(--white);
}

.products-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين */
    grid-template-rows: repeat(2, 1fr);    /* صفين */
    gap: 5px;                              /* المسافة بين الصور */
    margin-bottom: 20px;                    /* مسافة تحت الصور */
}

.product-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;                      /* لتغطية الخلية بالكامل */
    border-radius: 5px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.product-images-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}


.category-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border-top: 4px solid var(--golden-earth);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    font-size: 3rem;
    color: var(--golden-earth);
    margin-bottom: 20px;
}

.category-card h3 {
    color: var(--deep-mocha);
    margin-bottom: 15px;
}

.category-card ul {
    text-align: right;
    margin-top: 15px;
}

.category-card li {
    margin-bottom: 8px;
    position: relative;
    padding-right: 20px;
}

.category-card li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--golden-earth);
    font-size: 1.5rem;
}

/* Partners Section */
.partners-section {
    background-color: var(--light-bg);
}

.partners-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.partner-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-medium);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.partner-logo {
    margin-bottom: 25px;
}

.partner-logo .logo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--deep-mocha), var(--golden-earth));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.partner-logo .logo-placeholder span {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.partner-card h3 {
    color: var(--deep-mocha);
    margin-bottom: 15px;
}

.partner-logo .partner-img {
    width: 95px;      /* عرض الصورة */
    height: auto;     /* للحفاظ على النسبة */
    display: block;
    margin: 0 auto 25px;  /* مركزي ومسافة من النص أسفله */
}


/* Stats Section */
.stats-section {
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition-medium);
}

.stat-item:hover {
    background-color: var(--golden-earth);
    color: white;
}

.stat-item:hover .stat-number {
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--golden-earth);
    margin-bottom: 10px;
    transition: var(--transition-medium);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3, .contact-form h3 {
    color: var(--deep-mocha);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--golden-earth);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--deep-mocha);
    margin-bottom: 5px;
}

.contact-form form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--golden-earth);
    box-shadow: 0 0 0 2px rgba(161, 92, 2, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-brown);
    color: var(--light-gray);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-img-placeholder {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4, .footer-social h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--golden-earth);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--golden-earth);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--golden-earth);
    transform: translateY(-3px);
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-heavy);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        margin: 0 0 20px 0;
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .vision-mission {
        grid-template-columns: 1fr;
    }
    
    .products-categories {
        grid-template-columns: 1fr;
    }
    
    .partners-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }
}

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    bottom: 105px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--deep-mocha);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 5px;
}

.language-toggle span {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
}

.language-toggle:hover {
    background-color: var(--golden-earth);
    transform: scale(1.1);
}

/* Responsive adjustments for language toggle */
@media (max-width: 768px) {
    .language-toggle {
        bottom: 100px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .language-toggle span {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .language-toggle {
        bottom: 85px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .language-toggle span {
        font-size: 9px;
    }
}