/* --- Variables & Reset --- */
:root {
    --primary-dark: #0a0822;
    --accent-purple: #311b92;
    --accent-hover: #4527a0;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #FFF;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navigation (Sticky) --- */
header {
    background: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; text-decoration: none; color: var(--primary-dark); font-weight: 700; z-index: 1002; }
.logo img { height: 80px; margin-right: 15px; transition: var(--transition-smooth); }
.logo:hover img { transform: scale(1.05); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; gap: 30px; }

.nav-links a {
    text-decoration: none; color: var(--primary-dark);
    font-weight: 500; position: relative; transition: var(--transition-smooth);
}

.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent-purple);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- Language Switcher --- */
.lang-picker { position: relative; z-index: 1002; }
.lang-btn {
    background: #f4f4f4; border: none; width: 35px; height: 35px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
    transition: var(--transition-smooth);
}
.lang-btn:hover { background: #e0e0e0; }

.lang-dropdown {
    position: absolute; top: 120%; right: 0;
    background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px; display: none; flex-direction: column;
    overflow: hidden; min-width: 80px;
}
.lang-dropdown.show { display: flex; animation: fadeInDropdown 0.3s ease; }
@keyframes fadeInDropdown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.lang-dropdown a { padding: 10px 20px; text-decoration: none; color: #333; font-size: 0.9rem; text-align: center; transition: 0.3s; }
.lang-dropdown a:hover { background: #f0f0f0; color: var(--accent-purple); }
.lang-dropdown a.active { background: var(--accent-purple); color: white; }

/* --- Hamburger --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
.hamburger span { width: 25px; height: 3px; background: var(--primary-dark); transition: 0.3s; }

/* --- General Sections --- */
.section-tracker { position: relative; }
.hero .full-width-img { width: 100%; display: block; }
.reveal { opacity: 0; transform: translateY(50px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 30px; color: var(--primary-dark); }

/* --- About (UPDATED FOR LARGER TEXT) --- */
.about { 
    padding-top: 0 !important;
    padding-bottom: 80px; /* Keep the bottom breathing room */
}
.about-flex-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.video-wrapper { width: 100%; max-width: 600px; margin: 0 auto; position: relative; }
.video-wrapper video { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.about-content { max-width: 900px; margin: 0 auto; } /* Increased width for better flow */

.about-subtitle { 
    font-size: 2.2rem; /* Was 1.5rem */
    color: #2c3e50; 
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 700; 
}

.about-text { 
    margin-bottom: 20px; 
    line-height: 1.8; /* Increased line spacing */
    font-size: 1.35rem; /* Was 1.05rem */
    color: #444; 
    justify-content: center;
}

/* --- 3D Carousel (Home) --- */
.products { padding: 60px 0; margin-bottom: 100px; }
.carousel-3d-container { position: relative; width: 100%; max-width: 1000px; margin: 50px auto; height: 520px; display: flex; justify-content: center; align-items: center; overflow: hidden; direction: ltr !important; }
.carousel-3d-track { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.product-card-3d { position: absolute; width: 300px; transition: var(--transition-smooth); opacity: 0; transform: translateX(0) scale(0.8); z-index: 0; pointer-events: none; }
.card-inner { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; }
.product-card-3d img { width: 100%; border-radius: 12px; margin-bottom: 20px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.product-card-3d.active { opacity: 1; transform: translateX(0) scale(1.1); z-index: 10; filter: blur(0px); pointer-events: auto; }
.product-card-3d.next { opacity: 0.6; transform: translateX(340px) scale(0.85); z-index: 5; filter: blur(2px); }
.product-card-3d.prev { opacity: 0.6; transform: translateX(-340px) scale(0.85); z-index: 5; filter: blur(2px); }
.slider-btn { background: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 20; font-size: 1.2rem; transition: 0.3s; position: absolute; transform: rotate(0deg) !important; }
.slider-btn:hover { background: var(--accent-purple); color: white; }
.prev-3d { left: 20px !important; right: auto !important; }
.next-3d { right: 20px !important; left: auto !important; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; }
.dot { width: 10px; height: 10px; background: #ddd; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent-purple); width: 25px; border-radius: 10px; }
.view-more-btn { display: block; width: fit-content; margin: 60px auto 0; background: var(--accent-purple); color: white; padding: 15px 55px; border: none; border-radius: 30px; cursor: pointer; font-weight: bold; font-size: 1rem; text-decoration: none; text-align: center; transition: var(--transition-smooth); box-shadow: 0 5px 15px rgba(49, 27, 146, 0.2); }
.view-more-btn:hover { background: var(--accent-hover); transform: translateY(-5px) scale(1.03); box-shadow: 0 10px 20px rgba(49, 27, 146, 0.4); }

/* --- Products Page --- */
.page-header { background-color: #f9f9f9; padding: 60px 0; text-align: center; border-bottom: 1px solid #eaeaea; }
.page-header h1 { font-size: 3rem; color: var(--primary-dark); margin-bottom: 10px; }
.page-header p { color: #666; font-size: 1.1rem; }
.product-gallery-section { padding: 60px 0; background-color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f0f0f0; }
.gallery-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.gallery-img-wrapper { width: 100%; height: 250px; background-color: white; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-img-wrapper img { transform: scale(1.05); }
.gallery-content { padding: 25px; }
.gallery-content h3 { color: var(--primary-dark); font-size: 1.4rem; margin-bottom: 10px; }
.gallery-content .desc { color: #666; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; height: 45px; overflow: hidden; }
.nutrition-box { background-color: #f8f9fa; padding: 15px; border-radius: 8px; font-size: 0.85rem; display: flex; justify-content: space-between; color: #444; border-top: 2px solid var(--accent-purple); }
.nutrition-box span { display: block; }

/* --- Contact Page --- */
.contact-page-section { padding: 120px 0 80px; background-color: #f8f9fa; min-height: 80vh; }
.contact-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.map-container { width: 100%; min-height: 500px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 5px solid white; }
.contact-info-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: center; }
.contact-info-card h2 { color: var(--primary-dark); font-size: 2rem; margin-bottom: 5px; }
.contact-list { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; align-items: center; gap: 20px; }
.icon-circle { width: 50px; height: 50px; background-color: #f0f2f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-purple); font-size: 1.2rem; transition: 0.3s; }
.contact-item:hover .icon-circle { background-color: var(--accent-purple); color: white; }
.details span { display: block; font-size: 0.85rem; color: #888; font-weight: 500; }
.details a { text-decoration: none; color: #333; font-weight: bold; font-size: 1.1rem; transition: color 0.2s; }
.details a:hover { color: var(--accent-purple); }
.divider { border: 0; height: 1px; background: #eaeaea; margin: 30px 0; }
.social-icons-row { display: flex; gap: 15px; margin-bottom: 30px; }
.social-btn { width: 45px; height: 45px; background: #fff; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #555; font-size: 1.2rem; transition: 0.3s ease; }
.social-btn.instagram:hover { background: #E1306C; color: white; border-color: #E1306C; }
.social-btn.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.social-btn.tiktok:hover { background: #000000; color: white; border-color: #000000; }
.address-plain-text { background-color: #f9f9f9; padding: 15px; border-radius: 10px; border-left: 4px solid var(--accent-purple); color: #555; font-size: 0.95rem; line-height: 1.6; }

/* --- Footer --- */
footer { background: var(--primary-dark); color: white; padding: 80px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 15px; }
.footer-links a, .footer-social a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: white; padding-left: 5px; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-grid-layout { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }
}
@media (max-width: 992px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: -100vh; left: 0; width: 100%; height: auto; padding: 50px 0; background: rgba(255, 255, 255, 0.98); flex-direction: column; justify-content: center; align-items: center; gap: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 1001; }
    .nav-links.active { top: var(--header-height); }
    .carousel-3d-container { height: 420px; }
    .product-card-3d { width: 220px; }
    .product-card-3d.next { transform: translateX(170px) scale(0.8); }
    .product-card-3d.prev { transform: translateX(-170px) scale(0.8); }
    .prev-3d { left: 5px; }
    .next-3d { right: 5px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .product-grid { grid-template-columns: 1fr; }

    /* About Text Mobile Adjustment */
    .about-subtitle { font-size: 1.6rem; margin-top: 30px; }
   .about-text { 
    margin-bottom: 20px; 
    line-height: 1.8; 
    font-size: 1.35rem; 
    color: #444; 
    
    /* 1. Turn Justify ON */
    text-align: justify !important;
    
    /* 2. Enable Hyphens (Fixes the big gaps) */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
    .about-content { padding: 0 10px; }
}

/* =========================================
   RTL SUPPORT (ARABIC & KURDISH)
   ========================================= */
html[dir="rtl"] { 
    direction: rtl; 
    text-align: right; 
}

html[dir="rtl"] body { 
    font-family: 'Noto Sans Arabic', 'Montserrat', sans-serif; 
}

/* --- Navigation & Header --- */
html[dir="rtl"] .nav-right { 
    flex-direction: row-reverse; 
}

html[dir="rtl"] .logo img { 
    margin-right: 0; 
    margin-left: 15px; 
}

html[dir="rtl"] .nav-links a::after { 
    left: auto; 
    right: 0; 
}

/* --- FIX: Dropdown Menu Overflow --- */
/* This aligns the dropdown to the left edge so it opens INWARDS, not off-screen */
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* --- Contact Section --- */
html[dir="rtl"] .contact-item { 
    flex-direction: row; 
}

html[dir="rtl"] .address-plain-text { 
    border-left: none; 
    border-right: 4px solid var(--accent-purple); 
}

/* --- Footer --- */
html[dir="rtl"] .footer-links a:hover { 
    padding-left: 0; 
    padding-right: 5px; 
}


/* --- Mobile Menu (Slide from Right instead of Left) --- */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        /* Optional: If you want the mobile menu text aligned right */
        text-align: right;
    }
}
}