/* ==========================================================================
   CSS Variables & Themes
   ========================================================================== */
   :root {
    /* Fonts */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;

    /* Transition speed */
    --transition-speed: 0.4s;
    --transition-fast: 0.2s;

    /* Light Theme (Default) */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary-color: #e05300; /* Vibrant Brand Orange from logo */
    --primary-hover: #c44700;
    --primary-rgb: 224, 83, 0;
    --accent-color: #f9a000; /* Warm Brand Amber/Gold from logo */
    --accent-rgb: 249, 160, 0;
    
    --primary-gradient: linear-gradient(135deg, #e05300 0%, #f9a000 100%);
    --primary-gradient-hover: linear-gradient(135deg, #c44700 0%, #d58800 100%);

    /* Bootstrap theme overrides */
    --bs-primary: #e05300;
    --bs-primary-rgb: 224, 83, 0;
    
    /* Glassmorphism variables - Light */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(224, 83, 0, 0.06);
    --card-shadow: 0 8px 32px 0 var(--glass-shadow);
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(255, 255, 255, 0.8);
    --toast-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #080d19;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary-color: #ff781e; /* Brighter Orange for dark mode */
    --primary-hover: #ff914d;
    --primary-rgb: 255, 120, 30;
    --accent-color: #ffb732; /* Brighter Amber */
    --accent-rgb: 255, 183, 50;
    
    --primary-gradient: linear-gradient(135deg, #ff781e 0%, #ffb732 100%);
    --primary-gradient-hover: linear-gradient(135deg, #ff914d 0%, #ffc55a 100%);

    /* Bootstrap theme overrides for dark mode */
    --bs-primary: #ff781e;
    --bs-primary-rgb: 255, 120, 30;

    /* Glassmorphism variables - Dark */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-bg-hover: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.35);
    --card-shadow: 0 8px 32px 0 var(--glass-shadow);
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(15, 23, 42, 0.8);
    --toast-bg: rgba(15, 23, 42, 0.9);
}

/* Bootstrap color overrides to brand orange */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ==========================================================================
   General Styles & Resets
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Apply Fonts based on language */
html[lang="ar"], html[lang="ar"] body {
    font-family: var(--font-ar);
}

html[lang="en"], html[lang="en"] body {
    font-family: var(--font-en);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.6);
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
section {
    padding: 80px 0;
    position: relative;
}

.section-title-wrapper {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--text-primary);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

section:hover .section-title::after {
    width: 100px;
}

.section-subtitle {
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 10px auto 0 auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glass-panel-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.glass-panel-hover:hover {
    transform: translateY(-8px);
    background: var(--glass-bg-hover);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--primary-rgb), 0.25);
}

/* ==========================================================================
   Navigation Bar (Floating Glass Navbar)
   ========================================================================== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.floating-navbar {
    margin: 0 auto;
    width: calc(100% - 30px);
    max-width: 1200px;
    /* border-radius: 16px; */
    padding: 10px 24px !important;
    border: 1px solid var(--glass-border);
    background: #f38e1f52;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.floating-navbar.scrolled {
    padding: 6px 24px !important;
    background: #ef7a1d70;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-primary) !important;
    font-size: 1.4rem;
}

.navbar-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    position: relative;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 20px;
}

/* Controls inside Navbar */
.floating-navbar .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .floating-navbar .navbar-brand {
        order: 1;
    }

    .floating-navbar .navbar-collapse {
        order: 2;
        flex-grow: 1;
    }

    .floating-navbar .nav-controls {
        order: 3;
        gap: 12px;
    }

    .floating-navbar .navbar-toggler {
        order: 4;
    }
}

.theme-toggle, .lang-toggle {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover, .lang-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

.lang-toggle {
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-en);
}

/* ==========================================================================
   Inner Pages
   ========================================================================== */
.page-hero {
    padding: 130px 0 50px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, var(--bg-primary) 55%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-hero .page-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.page-hero .page-hero-subtitle.hero-subtitle,
.page-hero .hero-subtitle {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffb060;
    color: #ffb060;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.page-hero .page-hero-desc {
    max-width: 640px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.page-hero .page-hero-desc,
.page-hero .page-hero-desc p,
.page-hero .page-hero-desc * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.page-hero .page-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero .page-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.page-hero .page-breadcrumb a:hover {
    color: #ffb060;
}

.page-hero .page-breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--primary-color);
}

.page-breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 8px;
    color: var(--text-muted);
}

.inner-page-section {
    padding: 60px 0;
}

.home-hub-section {
    padding: 70px 0 90px;
}

.home-hub-card {
    display: block;
    height: 100%;
    padding: 28px 24px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.home-hub-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.home-hub-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.home-hub-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 36px;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

    .inner-page-section {
        padding: 45px 0;
    }

    .home-hub-section {
        padding: 50px 0 80px;
    }
}

.floating-navbar .navbar-toggler {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-primary);
}

.floating-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.floating-navbar .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .floating-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 250, 252, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 150px;
    color: #ffffff;
}

/* Background Carousel Wrapper */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 6s ease-in-out;
}

/* Add zoom effect to active slide for premium cinematic feel */
.carousel-item.active .hero-slide-img {
    transform: scale(1.06);
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-glass-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Hero Articles Bar */
.hero-articles-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgb(242 139 30 / 36%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-articles-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    padding: 14px 0 4px;
}

.hero-articles-slider-wrap {
    position: relative;
}

.hero-articles-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-articles-track::-webkit-scrollbar {
    display: none;
}

html[dir="rtl"] .hero-articles-track {
    direction: ltr;
}

html[dir="rtl"] .hero-articles-track .hero-article-item {
    direction: rtl;
}

.hero-article-item {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    padding: 20px 24px 24px;
    color: #ffffff;
    text-align: center;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
    scroll-snap-align: start;
}

.hero-article-item:first-child {
    border-inline-start: none;
}

.hero-article-date {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.hero-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #ffffff;
}

.hero-article-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hero-article-link:hover {
    color: var(--accent-color);
}

.hero-articles-nav {
    display: none;
    justify-content: center;
    gap: 10px;
    padding: 0 0 14px;
}

.hero-articles-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-articles-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px 0 rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px 0 rgba(var(--primary-rgb), 0.45);
}

.btn-outline-custom {
    background: transparent;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Adjustments for buttons in body/light modes */
body .btn-outline-body {
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color);
}
body .btn-outline-body:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

/* ==========================================================================
   About Section & Stats
   ========================================================================== */
.about-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px 0 rgba(var(--primary-rgb), 0.25);
}

html[lang="ar"] .about-experience-badge {
    right: auto;
    left: 25px;
}

.about-experience-badge .years {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about-experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-item {
    text-align: center;
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 4px;
    margin-bottom: 5px;
    white-space: nowrap; /* Prevent number suffixes from wrapping */
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   Products Catalog
   ========================================================================== */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--accent-rgb), 0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

html[lang="ar"] .product-badge {
    right: auto;
    left: 15px;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-link {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-link i {
    transition: transform 0.2s ease;
}

.product-link:hover i {
    transform: translateX(3px);
}

html[lang="ar"] .product-link:hover i {
    transform: translateX(-3px);
}

/* ==========================================================================
   Partners Section & Infinite Logo Slider
   ========================================================================== */
.partners-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--primary-rgb), 0.03) 100%);
    padding: 60px 0;
    overflow: hidden;
}

.partners-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Gradient overlays for the slider ends to fade the transition */
.partners-slider-container::before,
.partners-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(var(--bg-primary), 0) 100%);
}

.partners-slider-container::after {
    right: 0;
    background: linear-gradient(90deg, rgba(var(--bg-primary), 0) 0%, var(--bg-primary) 100%);
}

/* Handle directions for RTL and LTR smoothly */
html[dir="rtl"] .partners-slider-container::before {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(var(--bg-primary), 0) 100%);
}

html[dir="rtl"] .partners-slider-container::after {
    right: auto;
    left: 0;
    background: linear-gradient(270deg, rgba(var(--bg-primary), 0) 0%, var(--bg-primary) 100%);
}

.partners-slider-track {
    display: flex;
    gap: 30px;
    /* (Width of slide (220px) + gap (30px)) * 12 elements */
    width: calc((220px + 30px) * 12);
    animation: scrollSlider 25s linear infinite;
}

/* Pause scroll animation on hover */
.partners-slider-track:hover {
    animation-play-state: paused;
}

.partner-slide {
    width: 220px;
    flex-shrink: 0;
}

.partner-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-logo {
    max-height: 45px;
    max-width: 80%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: all 0.3s ease;
}

[data-theme="dark"] .partner-logo {
    filter: grayscale(1) invert(1) opacity(0.65);
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
    background: var(--glass-bg-hover);
}

.partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0) opacity(1);
}

[data-theme="dark"] .partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0) invert(0) opacity(1);
}

/* Infinite Scroll Keyframes (LTR default) */
@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by half of total width (width of original 6 elements + their gaps) */
        transform: translateX(calc(-250px * 6));
    }
}

/* Infinite Scroll Keyframes (RTL) */
html[dir="rtl"] .partners-slider-track {
    animation: scrollSliderRTL 25s linear infinite;
}

@keyframes scrollSliderRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by half of total width positive for RTL */
        transform: translateX(calc(250px * 6));
    }
}

/* Custom form fields utility (used in contact forms) */
.calc-form-group {
    margin-bottom: 24px;
}

.calc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* ==========================================================================
   Production Process (Timeline)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.6);
}

.timeline-card {
    padding: 30px;
}

.timeline-step {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* RTL Specific adjustments for timeline */
html[lang="ar"] .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
}
html[lang="ar"] .timeline-item:nth-child(even) {
    left: 50%;
    text-align: right;
}
html[lang="ar"] .timeline-item:nth-child(odd) {
    left: -50%;
}

html[lang="ar"] .timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

/* Responsive Styles & Mobile Overrides */
@media (max-width: 768px) {
    /* Prevent horizontal page stretch */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Hide glowing accents to prevent mobile overflow */
    .glowing-accent, .glowing-accent-left {
        display: none !important;
    }

    /* Navbar mobile styling adjustments */
    .floating-navbar {
        width: calc(100% - 20px);
        padding: 8px 12px !important;
    }

    .navbar-logo {
        height: 52px;
    }

    .nav-controls {
        gap: 6px;
        margin-inline-start: 4px;
    }

    .theme-toggle, .lang-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lang-toggle {
        font-size: 0.75rem;
    }
    
    /* Hero section overrides */
    .hero-section {
        min-height: 92dvh;
        min-height: 92vh;
        display: flex;
        align-items: flex-end;
        padding-top: 88px;
        padding-bottom: 210px;
    }

    .hero-article-item {
        flex: 0 0 85%;
        min-width: 85%;
    }

    .hero-articles-nav {
        display: flex;
    }

    .hero-articles-label {
        padding: 10px 0 2px;
        font-size: 0.75rem;
    }

    .hero-article-item {
        padding: 16px 18px 18px;
    }

    .hero-article-title {
        font-size: 0.88rem;
    }

    .hero-carousel::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.1) 45%,
            rgba(0, 0, 0, 0.65) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    .hero-content-container {
        width: 100%;
    }

    .hero-glass-card {
        padding: 18px 16px;
        border-radius: 16px;
        margin: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-glass-card.animated-float {
        animation: none;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .hero-glass-card .btn-primary-custom,
    .hero-glass-card .btn-outline-custom {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-title-wrapper {
        margin-bottom: 35px;
    }

    /* Gallery mobile slider */
    .gallery-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-bottom: 24px;
        padding-bottom: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .gallery-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-inline: -0.75rem;
        padding-inline: 0.75rem;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding-inline: 0.75rem;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    html[dir="rtl"] .gallery-grid {
        direction: ltr;
    }

    html[dir="rtl"] .gallery-grid .gallery-card {
        direction: rtl;
    }

    .gallery-grid > .gallery-item {
        flex: 0 0 min(82vw, 300px);
        width: min(82vw, 300px) !important;
        max-width: none !important;
        margin-bottom: 0;
        scroll-snap-align: start;
    }

    .gallery-card {
        height: 240px;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.85) 100%);
    }

    .gallery-title {
        font-size: 1rem;
    }

    /* About: image first on mobile, content below */
    #about .row > [class*="col-"]:first-child {
        order: 2;
    }

    #about .row > [class*="col-"]:last-child {
        order: 1;
    }

    /* Responsive Timeline */
    .timeline-container::before {
        left: 30px;
    }
    
    html[lang="ar"] .timeline-container::before {
        left: auto;
        right: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
        left: 0;
    }
    
    html[lang="ar"] .timeline-item,
    html[lang="ar"] .timeline-item:nth-child(odd),
    html[lang="ar"] .timeline-item:nth-child(even) {
        padding-right: 60px;
        padding-left: 20px;
        text-align: right !important;
        left: 0;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }

    html[lang="ar"] .timeline-item:nth-child(odd) .timeline-dot,
    html[lang="ar"] .timeline-item:nth-child(even) .timeline-dot {
        left: auto;
        right: 20px;
    }
}

/* ==========================================================================
   Filterable Project Gallery
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.gallery-item {
    margin-bottom: 30px;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    box-shadow: var(--card-shadow);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gallery-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

@media (min-width: 769px) {
    .gallery-nav {
        display: none !important;
    }
}

.gallery-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--card-shadow);
}

.gallery-nav-btn:hover,
.gallery-nav-btn:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.gallery-nav-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   Contact & Location
   ========================================================================== */
.contact-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.contact-section .section-title-wrapper {
    margin-bottom: 40px;
}

.contact-section .section-desc {
    max-width: 560px;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.7;
}

.contact-info-card,
.contact-form-card {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.contact-form-lead {
    margin: -6px 0 22px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.contact-quick-btn {
    flex: 1 1 140px;
    justify-content: center;
    min-height: 44px;
}

.contact-section .contact-quick-btn.btn-outline-body {
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary-color) !important;
}

.contact-section .contact-quick-btn.btn-outline-body:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.contact-section .contact-quick-btn.btn-whatsapp-custom {
    background: #25d366 !important;
    color: #fff !important;
}

.contact-section .contact-quick-btn.btn-whatsapp-custom:hover {
    background: #1ebe57 !important;
    color: #fff !important;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.contact-info-item:hover {
    border-color: rgba(var(--primary-rgb), 0.22);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-1px);
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.22);
}

.contact-info-text h5 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.contact-info-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form .form-control,
.contact-form .calc-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .calc-input:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary-custom,
.contact-form .btn-primary,
.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient) !important;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.25);
}

.contact-form .btn-primary-custom:hover,
.contact-form .btn-primary:hover,
.contact-form button[type="submit"]:hover {
    background: var(--primary-gradient-hover) !important;
    color: #fff !important;
    opacity: 0.98;
    transform: translateY(-1px);
}

.contact-form .btn-primary-custom:focus,
.contact-form .btn-primary:focus,
.contact-form button[type="submit"]:focus {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.map-placeholder {
    height: 220px;
    margin-top: auto;
    padding-top: 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 991.98px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 22px;
    }

    .map-placeholder {
        height: 200px;
        margin-top: 18px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: linear-gradient(
292deg, #e05300bd, #f9a0006b);
    padding: 60px 0 30px 0;
    border-top: none;
    color: rgba(255, 255, 255, 0.88);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

html[lang="ar"] .footer-title::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    transition: padding 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.82);
}

html[lang="ar"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

footer .text-primary {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ==========================================================================
   Micro-animations & Utility Classes
   ========================================================================== */
.glowing-accent {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.glowing-accent-left {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Modal overrides for premium look */
.modal-content.glass-panel {
    background: var(--bg-secondary);
    border-radius: 24px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.btn-close {
    transition: filter 0.2s ease;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Toast container positioning */
.toast-container {
    z-index: 1060;
}

.toast {
    background: var(--toast-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animated-float {
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Sticky Quick Contact (mobile bar / desktop side rail)
   ========================================================================== */
.site-quick-contact {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
}

.mobile-bottom-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.mobile-bottom-link i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.mobile-bottom-link:hover,
.mobile-bottom-link:focus,
.mobile-bottom-link:active {
    color: var(--primary-color);
}

.mobile-bottom-link:hover i {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.mobile-bottom-link:hover i.fa-whatsapp {
    color: #25D366;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 75px !important;
    }
}

/* Desktop / laptop: vertical side rail */
@media (min-width: 992px) {
    .site-quick-contact {
        top: 50%;
        bottom: auto;
        left: auto;
        inset-inline-end: 0;
        width: auto;
        height: auto;
        transform: translateY(-50%);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
        background: rgba(15, 23, 42, 0.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-inline-start: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px 0 0 14px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    }

    html[dir="ltr"] .site-quick-contact {
        border-radius: 0 14px 14px 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        border-inline-start: none;
        border-inline-end: 1px solid rgba(15, 23, 42, 0.08);
    }

    .site-quick-contact .mobile-bottom-item {
        flex: 0 0 auto;
        width: 72px;
    }

    .site-quick-contact .mobile-bottom-link {
        min-height: 72px;
        padding: 10px 6px;
        border-radius: 10px;
        background: #e35d00b8;
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 600;
        gap: 6px;
    }

    .site-quick-contact .mobile-bottom-link i {
        margin-bottom: 0;
        font-size: 1.25rem;
        color: #ffffff;
    }

    .site-quick-contact .mobile-bottom-link:hover,
    .site-quick-contact .mobile-bottom-link:focus,
    .site-quick-contact .mobile-bottom-link:active {
        background: var(--primary-color);
        color: #ffffff;
        transform: translateX(-3px);
    }

    html[dir="ltr"] .site-quick-contact .mobile-bottom-link:hover,
    html[dir="ltr"] .site-quick-contact .mobile-bottom-link:focus,
    html[dir="ltr"] .site-quick-contact .mobile-bottom-link:active {
        transform: translateX(3px);
    }

    .site-quick-contact .mobile-bottom-link:hover i,
    .site-quick-contact .mobile-bottom-link:focus i {
        color: #ffffff;
        transform: none;
    }

    .site-quick-contact .mobile-bottom-link:hover i.fa-whatsapp {
        color: #ffffff;
    }
}

/* ==========================================================================
   Mobile Offcanvas Sidebar Menu
   ========================================================================== */
.mobile-sidebar-offcanvas {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: var(--text-primary) !important;
    border-right: 1px solid var(--glass-border) !important;
    border-left: 1px solid var(--glass-border) !important;
    width: 300px !important;
    transition: transform 0.4s ease-in-out !important;
}

.mobile-sidebar-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 20px !important;
}

.mobile-sidebar-offcanvas .offcanvas-body {
    padding: 30px 24px !important;
}

/* Link list inside sidebar */
.mobile-sidebar-links .navbar-nav {
    gap: 15px;
}

.mobile-sidebar-links .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 10px 15px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.mobile-sidebar-links .nav-link:hover,
.mobile-sidebar-links .nav-link.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding-left: 20px !important;
}

html[dir="rtl"] .mobile-sidebar-links .nav-link:hover,
html[dir="rtl"] .mobile-sidebar-links .nav-link.active {
    padding-left: 15px !important;
    padding-right: 20px !important;
}

/* Footer Details */
.mobile-sidebar-contact {
    color: var(--text-primary);
}

.mobile-sidebar-contact a,
.mobile-sidebar-contact span,
.mobile-sidebar-contact .text-secondary {
    color: var(--text-primary) !important;
}

.mobile-sidebar-contact i {
    width: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.mobile-sidebar-social .social-icon-hover {
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-primary) !important;
}

.mobile-sidebar-social .social-icon-hover:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   Service Detail Page (reference layout)
   ========================================================================== */
.svc-detail {
    padding: 40px 0 70px;
}

.svc-detail-cover {
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--card-shadow);
}

.svc-detail-cover img {
    display: block;
    width: 100%;
    height: clamp(240px, 36vw, 420px);
    object-fit: cover;
}

.svc-detail-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

.svc-detail-content {
    color: var(--text-secondary);
    line-height: 1.85;
}

.svc-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1rem 0;
}

.svc-detail-content h2,
.svc-detail-content h3,
.svc-detail-content h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.svc-detail-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.svc-detail-block-title i {
    color: var(--primary-color);
}

.svc-detail-block-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.svc-detail-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
}

.svc-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.svc-detail-thumb:hover img {
    transform: scale(1.05);
}

.svc-cta-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .svc-cta-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

@media (min-width: 992px) {
    .svc-cta-card {
        position: sticky;
        top: 110px;
    }
}

.svc-cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.svc-cta-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.svc-cta-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 14px;
}

.svc-cta-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.98rem;
}

.svc-cta-features i {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.svc-cta-card .btn {
    width: 100%;
}

.btn-whatsapp-custom {
    background: #25d366;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp-custom:hover {
    background: #1ebe57;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.other-services-section,
.page-cta-section {
    padding: 60px 0 80px;
}

.page-cta-panel {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, var(--glass-bg) 55%);
}

.page-cta-desc {
    max-width: 720px;
    line-height: 1.7;
}

.page-cta-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

html[dir="rtl"] .page-cta-section .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.faq-grid {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-answer {
    padding: 0 20px 18px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .svc-detail {
        padding: 24px 0 50px;
    }

    .other-services-section,
    .page-cta-section {
        padding: 40px 0 55px;
    }
}