/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    direction: rtl;
}

/* Explicit RTL (Arabic) direction */
html[dir="rtl"] body,
html[dir="rtl"] {
    direction: rtl;
}

/* Explicit LTR (English) direction */
html[dir="ltr"] body,
html[dir="ltr"] {
    direction: ltr;
}

/* Text center alignment works for both */
html[dir="ltr"] .text-center,
html[dir="rtl"] .text-center {
    text-align: center;
}

/* Form inputs - LTR (English) */
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    direction: ltr;
    text-align: left;
}

/* Form inputs - RTL (Arabic) */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

/* FAQ items alignment - LTR */
html[dir="ltr"] .faq-question {
    flex-direction: row;
}

/* FAQ items alignment - RTL */
html[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

/* Form labels alignment - LTR */
html[dir="ltr"] label {
    text-align: left;
}

/* Form labels alignment - RTL */
html[dir="rtl"] label {
    text-align: right;
}

/* Text alignment utilities - LTR */
html[dir="ltr"] .text-left {
    text-align: left;
}

html[dir="ltr"] .text-right {
    text-align: right;
}

/* Text alignment utilities - RTL */
html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

/* Ensure body and html respect direction properly */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

/* Ensure text alignment classes work correctly */
html[dir="rtl"] .text-center,
html[dir="ltr"] .text-center {
    text-align: center;
}

/* Paragraphs and headings should respect direction but not force alignment */
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    direction: rtl;
}

/* Product images styling */
.home-product-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-product-item .h-40 {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="ltr"] p,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
    direction: ltr;
}

/* Phone numbers should always display LTR regardless of page direction */
html[dir="rtl"] span[dir="ltr"],
html[dir="rtl"] a[dir="ltr"],
html[dir="ltr"] span[dir="ltr"],
html[dir="ltr"] a[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    display: inline-block;
}

/* Ensure phone numbers in headers and footers are always LTR */
html[dir="rtl"] .top-bar [dir="ltr"],
html[dir="rtl"] footer [dir="ltr"],
html[dir="rtl"] .top-bar a[href*="tel:"],
html[dir="rtl"] footer a[href*="tel:"] {
    direction: ltr !important;
    unicode-bidi: embed;
}


/* Loader Animation - positioning handled by JavaScript */
.loader-logo-animated {
    z-index: 10000;
}

/* Top Bar - Transparent with White Overlay - Modern Blended */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transition: opacity 0.3s ease;
    padding-bottom: 0.35rem;
    padding-top: 0.35rem;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1)) !important;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.35) 50%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.04) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

.nav-transparent {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

/* Background layer with circular transparent hole where video shows through */
.nav-transparent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 2px 12px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 0;
    pointer-events: none;
    /* Create circular transparent hole in the middle where video shows through clearly */
    mask-image: 
        radial-gradient(circle at 50% 50%, transparent 12px, black 14px),
        linear-gradient(black, black);
    -webkit-mask-image: 
        radial-gradient(circle at 50% 50%, transparent 12px, black 14px),
        linear-gradient(black, black);
    mask-composite: subtract;
    -webkit-mask-composite: source-out;
    mask-size: 100% 100%, 100% 100%;
    -webkit-mask-size: 100% 100%, 100% 100%;
    mask-position: center, center;
    -webkit-mask-position: center, center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}


.nav-transparent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 30%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.015) 100%);
    pointer-events: none;
    z-index: 1;
}

.nav-transparent-mobile {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border-radius: 0 0 20px 20px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-link-white {
    color: #ffffff !important;
    text-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.nav-link-white:hover {
    color: #d1fae5 !important;
    text-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Navigation Styles - Modern Blended */
.main-nav {
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .container {
    position: relative;
    z-index: 10;
}

.nav-container {
    position: relative;
    z-index: 10;
}

/* Coupon Decoration Layer - Visual effect only, doesn't clip content */
.coupon-decoration-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    /* Left side triangular cutouts */
    background-image: 
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 0, 0, 0.08) 4px,
            rgba(0, 0, 0, 0.08) 5px,
            transparent 5px,
            transparent 9px);
    background-size: 9px 100%;
    background-position: left, right;
    background-repeat: repeat-y;
    clip-path: polygon(
        0 0,
        6px 0,
        0 100%,
        0 100%
    );
}

.coupon-decoration-layer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    /* Right side triangular cutouts */
    background-image: 
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 0, 0, 0.08) 4px,
            rgba(0, 0, 0, 0.08) 5px,
            transparent 5px,
            transparent 9px);
    background-size: 9px 100%;
}

/* Circular cutout border ring in middle */
.coupon-decoration-layer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    z-index: 3;
    pointer-events: none;
}

/* Create circular transparent hole in header background where video shows through */
/* LTR Header Layout - Reverse the entire flex container */
html[dir="ltr"] nav .nav-container {
    flex-direction: row-reverse !important;
}

/* LTR Navigation Menu Items - Reverse order */
html[dir="ltr"] .nav-menu-items {
    flex-direction: row-reverse !important;
}

/* LTR Top Bar Layout */
html[dir="ltr"] .top-bar .flex {
    flex-direction: row-reverse !important;
}

/* LTR Navigation Link Underline */
html[dir="ltr"] .nav-link-main::after {
    left: 0;
    right: auto;
}

.nav-link-main {
    color: #ffffff;
    position: relative;
    text-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.nav-link-main:hover {
    color: #d1fae5;
    text-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(209, 250, 229, 0.4);
}

.nav-link-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #d1fae5;
    box-shadow: 0 0 8px rgba(209, 250, 229, 0.6);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 0 !important;
    padding-top: 60px !important; /* Space for transparent header (compact) */
}

/* Ensure hero section starts right after navbar with no gap */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 60px !important; /* 20px top bar + 40px navbar */
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px !important; /* Just navbar on mobile */
    }
    
    .main-nav {
        top: 0 !important;
    }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-main-title {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Home Products Filter */
.home-filter-btn {
    position: relative;
}

.home-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 93, 46, 0.08) 0%, rgba(45, 134, 89, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.home-filter-btn:hover::before {
    opacity: 1;
}

.home-filter-btn.active {
    background: linear-gradient(135deg, #1a5d2e 0%, #2d8659 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(26, 93, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(26, 93, 46, 0.4) !important;
}

.home-filter-btn.active span {
    color: white !important;
}

.home-filter-btn:not(.active):hover {
    background: white !important;
    box-shadow: 0 3px 10px rgba(26, 93, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
    border-color: rgba(26, 93, 46, 0.4) !important;
    color: #1a5d2e !important;
}

/* Warehouse Slider */
.warehouse-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

/* Warehouse images on mobile - ensure proper width and spacing */
@media (max-width: 767px) {
    .warehouse-slider {
        gap: 1rem;
    }
    
    .warehouse-slider > div {
        min-width: 66.67%;
    }
}

/* Image Modal */
#imageModal {
    backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 1.75rem;
    }
}

/* Language Switcher */
.lang-btn-top {
    transition: all 0.2s ease;
}

.lang-btn-top:hover {
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-nav-link {
    color: #1f2937;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mobile-nav-link:hover {
    color: #1a5d2e;
    background-color: rgba(26, 93, 46, 0.1);
}

/* Product Cards */
.home-product-item {
    transition: transform 0.2s ease;
}

.home-product-item:hover {
    transform: translateY(-2px);
}

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Fax Section */
.cta-fax-section {
    background: #fafafa;
    position: relative;
}

.cta-fax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    pointer-events: none;
    opacity: 0.5;
}

.cta-fax-container {
    background: #ffffff;
    position: relative;
}

.cta-fax-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 8px, #e5e7eb 8px, #e5e7eb 12px);
    opacity: 0.5;
}

.cta-fax-button {
    position: relative;
    overflow: hidden;
}

.cta-fax-button span {
    position: relative;
    z-index: 10;
}

/* CTA Section Modern Design */
.cta-text-content {
    text-align: right;
}

html[dir="ltr"] .cta-text-content {
    text-align: left;
}

.cta-text-content p {
    margin-right: 0;
    margin-left: auto;
}

html[dir="ltr"] .cta-text-content p {
    margin-left: 0;
    margin-right: auto;
}

/* CTA Section - Enhanced Styles */
.cta-title-enhanced {
    background: linear-gradient(135deg, #1a5d2e 0%, #2d8659 50%, #1a5d2e 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 4s ease infinite;
    letter-spacing: -0.5px;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.cta-text-enhanced {
    color: #4b5563;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* CTA Buttons - Futuristic Style */
.cta-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #1a5d2e) 0%, var(--secondary-color, #2d8659) 100%);
    box-shadow: 
        0 4px 15px rgba(26, 93, 46, 0.4),
        0 0 30px rgba(26, 93, 46, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn-primary::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;
}

.cta-btn-primary:hover::before {
    left: 100%;
}

.cta-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(26, 93, 46, 0.5),
        0 0 40px rgba(26, 93, 46, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.cta-btn-secondary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 
        0 4px 15px rgba(37, 211, 102, 0.4),
        0 0 30px rgba(37, 211, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn-secondary::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;
}

.cta-btn-secondary:hover::before {
    left: 100%;
}

.cta-btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(37, 211, 102, 0.5),
        0 0 40px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.cta-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* LTR arrow direction fix */
html[dir="ltr"] .cta-btn-primary .cta-arrow-icon {
    transform: scaleX(-1);
}

html[dir="ltr"] .cta-btn-primary:hover .cta-arrow-icon {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .cta-btn-primary:hover .cta-arrow-icon {
    transform: translateX(-4px);
}

/* CTA Button Navigation */
.btn-cta-nav {
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-title-enhanced {
        font-size: 2rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .nav-transparent {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.3)) !important;
        border-radius: 0 0 16px 16px;
    }
    
    .mobile-nav-link {
        color: #ffffff !important;
        text-shadow: 
            0 1px 4px rgba(0, 0, 0, 0.7),
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav {
        border-radius: 0 0 16px 16px;
    }
    
    .top-bar {
        border-radius: 0 0 16px 16px;
    }
    
    .top-bar::after {
        border-radius: 0 0 16px 16px;
    }
}

/* Process and Footer - Shared Extended Background */
.process-footer-extended-wrapper {
    position: relative;
    background-image: url('../warhouse8.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Feature Cards - Transparent Style */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Advantage Cards */
.advantage-card {
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(26, 93, 46, 0.3) !important;
}

.advantage-card:hover .w-10 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Process Cards - Transparent Professional Style */
.process-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.process-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(22, 101, 52, 0.3) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.12) !important;
}

.process-card:hover .absolute {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.process-card .absolute {
    transition: all 0.3s ease;
}


