/* Global Styles */
:root {
    --primary-color: #8e6c88;
    --secondary-color: #d4a5c4;
    --dark-color: #333;
    --light-color: #f8f8f8;
    --accent-color: #e67e22;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    direction: ltr;
    padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 5px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--primary-color);
    background-color: rgba(142, 108, 136, 0.1);
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styles */
.logo-container {
    position: absolute;
    left: 20px;
    z-index: 100;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.name-en {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.name-ar {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2px;
    font-family: 'Tajawal', sans-serif;
}

/* For Arabic version */
body[dir="rtl"] .logo-container {
    left: auto;
    right: 20px;
}

body[dir="rtl"] .company-name {
    text-align: right;
}

/* Navigation Styles */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 6px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 200px;
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(142, 108, 136, 0.1);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .main-header {
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .name-en {
        font-size: 1rem;
    }
    
    .name-ar {
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        transform: none;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 20px 0;
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        height: auto;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
        height: auto;
    }
    
    .nav-link {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 20px;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh; /* كانت 100vh */
    min-height: 420px; /* كانت 700px */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* يركز على الجزء العلوي من الصورة */
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    transition: transform 5s ease;
}

.hero:hover .hero-image img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*كل قسم له تنسيق الشاشات الصغيرة لوحده*/
@media (max-width: 768px) {
    .hero {
        min-height: 360px; /* كانت 600px */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image img {
        object-position: 60% center;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 300px; /* كانت 600px */
    }
}

/* باقي الأقسام (About, Products, Manufacturing, Gallery, Contact, Footer) تبقى كما هي بدون تغيير */
/* يمكنك إضافتها هنا كما هي في ملفك الأصلي */

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    padding: 20px 20px 0;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Manufacturing Section */
.manufacturing-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: #f8f8f8;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 108, 136, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--white);
    padding: 0 5px;
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.footer-logo {
    text-align: center; /* توسيط جميع المحتويات */
    margin: 0 auto; /* توسيط العنصر نفسه */
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط أفقي */
}
.footer-logo img {
    max-width: 90px; /* كانت 180px (تصغير بحوالي 33%) */
    margin-bottom: 15px;
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05); /* تكبير بسيط عند التحويم */
}
.footer-logo p {
    color: #aaa;
    font-size: 0.85rem; /* تصغير الخط قليلاً */
    margin-top: 10px;
    text-align: center; /* توسيط النص */
    margin: 1px auto 0; /* تعديل المسافات */
}

.logo-link {
    display: inline-block; /* للسماح بتأثيرات الحركة */
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05); /* تأثير تكبير بسيط عند التحويم */
}

.logo-link:active {
    transform: scale(0.95); /* تأثير ضغط عند النقر */
}

body[dir="rtl"] .footer-logo {  /*تنسيق اللوقو في اللغة العربية */
    text-align: right;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-logo img {
        max-width: 80px; /* أصغر على الموبايل */
    }

    .footer-logo {
        width: 100%; /* استخدام كامل العرض */
    }
}

.footer-links h3,
.footer-products h3,
.footer-newsletter h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-products ul {
    list-style: none;
}

.footer-links li,
.footer-products li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-products a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-products a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* تنسيق قسم الفروع */
.footer-branches {
    padding: 0 15px;
}

.footer-branches h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-branches ul {
    list-style: none;
    padding: 0;
}

.footer-branches li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-branches a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-branches a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* تنسيق قسم الوظائف في الفوتر */
.footer-careers {
    padding: 0 20px;
    text-align: right; /* للنسخة العربية */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* خط فاصل */
}

.footer-careers h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.career-cta p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.career-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.career-email:hover {
    color: var(--white);
    text-decoration: underline;
}

/* للنسخة الإنجليزية */
body[dir="ltr"] .footer-careers {
    text-align: left;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-careers {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        margin-top: 20px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 15px;
}

.footer-legal a {
    color: #aaa;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

@media (min-width: 992px) {
    .footer-branches li {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 998;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0 0 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 0 0 20px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}