/* Modern Storex Design - RTL/LTR Compatible */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #2f55d4;
    --primary-hover: #284bc1;
    --text-muted: #8492a6;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --shadow-soft: 0 10px 25px rgba(60, 72, 88, 0.15);
    --shadow-hover: 0 20px 40px rgba(60, 72, 88, 0.2);
}

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

[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

/* =========================================
   1. UI Modernization & Logical Properties
   ========================================= */

/* Cards & Containers */
.card, .feature-box, .service-box {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.card:hover, .feature-box:hover, .service-box:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-md) !important;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-pills {
    border-radius: 30px !important;
}

/* Spacing using Logical Properties */
.mb-3 { margin-block-end: 1rem !important; }
.mt-4 { margin-block-start: 1.5rem !important; }
.pt-2 { padding-block-start: 0.5rem !important; }
.ml-auto { margin-inline-start: auto !important; margin-inline-end: 0 !important; }
.mr-auto { margin-inline-end: auto !important; margin-inline-start: 0 !important; }

/* Text Alignment */
.text-left { text-align: start !important; }
.text-right { text-align: end !important; }

/* =========================================
   2. Header & Navigation
   ========================================= */
#topnav {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#topnav .logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

[dir="rtl"] #topnav .logo {
    font-family: 'Tajawal', sans-serif;
}

/* Menu Items */
#topnav .navigation-menu > li > a {
    font-weight: 600;
    color: #3c4858;
    padding-inline: 7px;
    font-family: inherit !important;
}

[dir="ltr"] #topnav .navigation-menu > li > a {
    font-family: 'Inter', sans-serif !important;
}

/* Menu Container Alignment */
@media (min-width: 992px) {
    #navigation {
        float: right;
    }
    [dir="rtl"] #navigation {
        float: left;
    }
}

#topnav .navigation-menu > li > a:hover,
#topnav .navigation-menu > li.active > a {
    color: var(--primary-color);
}

/* =========================================
   3. Hero Section
   ========================================= */
.bg-home {
    padding-block: 100px;
    background-color: #f8f9fc; /* Lighter, cleaner background */
    position: relative;
    overflow: hidden;
}

.title-heading .heading {
    font-weight: 700;
    line-height: 1.4;
    color: #3c4858;
}

.title-heading .para-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
}

/* Logic helpers */
.float-inline-end {
    float: right;
}

[dir="ltr"] .float-inline-end {
    float: left;
}

/* Icon flipping for LTR (since default is RTL-optimized icons) */
[dir="ltr"] .rtl-flip {
    transform: scaleX(-1);
    display: inline-block; /* Required for transform to work on inline elements */
}

/* Logical Helpers for Text Align and Margins */
.text-start-logical {
    text-align: right;
}
[dir="ltr"] .text-start-logical {
    text-align: left;
}

.mr-logical-15 {
    margin-right: 15px;
}
[dir="ltr"] .mr-logical-15 {
    margin-right: 0;
    margin-left: 15px;
}

.mr-logical-10 {
    margin-right: 10px;
}
[dir="ltr"] .mr-logical-10 {
    margin-right: 0;
    margin-left: 10px;
}

/* Logical Margin Helper for Language Switcher */
.mx-logical-10 {
    margin-right: 10px;
    margin-left: 10px;
}
/* Flip Icons in Feature Lists if needed */
.feature-list i {
    /* Ensure icons are correctly spaced */
}

@media (min-width: 576px) {
    .text-sm-start-logical {
        text-align: right;
    }
    [dir="ltr"] .text-sm-start-logical {
        text-align: left;
    }

    .text-sm-end-logical {
        text-align: left;
    }
    [dir="ltr"] .text-sm-end-logical {
        text-align: right;
    }
}
.subcribe-form form {
    position: relative;
    max-width: 600px;
    margin-inline: auto;
}

.subcribe-form input.form-control {
    padding-block: 14px;
    padding-inline-start: 30px;
    padding-inline-end: 140px; /* Increased space for button */
    border-radius: 30px;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-soft);
    font-size: 16px;
    height: auto; /* Ensure height adjusts to padding */
}

.subcribe-form .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 5px; /* Replaces right: 5px for LTR and left: 5px for RTL */
    padding: 8px 25px;
    border-radius: 25px !important;
    z-index: 10;
}

/* Images */
.img-fluid {
    border-radius: var(--border-radius-lg);
}

/* Features List */
.section-title .title {
    font-weight: 700;
}

.features .content .title {
    font-weight: 600;
}

.features .icon {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
