/* ============================================
   HBMS Frontend - Modern Dark/Light Theme Design
   Full Redesign from Scratch
   ============================================ */

/* منع السكرول العرضي وضبط المقاسات على كل الأجهزة */
html {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-en-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    padding-top: 80px;
}

.container {
    max-width: var(--site-max-width);
    padding-left: var(--site-side-padding);
    padding-right: var(--site-side-padding);
}

main,
#main-content {
    overflow-x: hidden;
    max-width: 100%;
}

#main-navbar .site-logo,
.site-header__logo-img {
    max-width: 100%;
}

:root {
    /* Typography */
    --font-ar-primary: 'Almarai', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-en-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Tech Accent Colors (Same for both themes) */
    --tech-blue: #3b82f6;
    --tech-blue-dark: #2563eb;
    --tech-blue-light: #60a5fa;
    --tech-purple: #8b5cf6;
    --tech-purple-dark: #7c3aed;
    --tech-purple-light: #a78bfa;

    /* Status Colors (Same for both themes) */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --site-max-width: 1200px;
    --site-side-padding: clamp(16px, 4vw, 56px);
}

/* ============================================
   Dark Theme (Default)
   ============================================ */
:root,
[data-theme="dark"],
.theme-dark,
html[data-theme="dark"],
body[data-theme="dark"] {
    /* Dark Tech Color Palette */
    --dark-primary: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --dark-accent: #475569;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;

    /* Borders & Shadows */
    --border-primary: rgba(148, 163, 184, 0.2);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(148, 163, 184, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   Light Theme - Pure White Gradients
   ============================================ */
[data-theme="light"],
.theme-light,
html[data-theme="light"],
body[data-theme="light"] {
    /* Light Color Palette - Light Gray (Darkened from white) */
    --dark-primary: #f5f5f5;
    --dark-secondary: #eeeeee;
    --dark-tertiary: #e8e8e8;
    --dark-accent: #e0e0e0;

    /* Text Colors - Soft Gray */
    --text-primary: #2c2c2c;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --text-dark: #5a5a5a;

    /* Background Colors - Light Gray Gradients */
    --bg-primary: #f8f8f8;
    --bg-secondary: #f0f0f0;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f5;
    --bg-dark: #f0f0f0;
    --bg-dark-secondary: #eeeeee;

    /* Borders & Shadows - Very Soft */
    --border-primary: rgba(0, 0, 0, 0.06);
    --border-secondary: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ============================================
   RTL/LTR Support
   ============================================ */

[dir="rtl"] {
    font-family: var(--font-ar-primary);
    text-align: right;
}

[dir="ltr"] {
    font-family: var(--font-en-primary);
    text-align: left;
}

/* RTL Margin/Padding Utilities */
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ps-2 { padding-right: 0.5rem !important; padding-left: 0 !important; }
[dir="rtl"] .pe-2 { padding-left: 0.5rem !important; padding-right: 0 !important; }

/* ============================================
   Global Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body {
    font-family: var(--font-en-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    padding-top: 80px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}

[dir="rtl"] body {
    font-family: var(--font-ar-primary);
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.6;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

[dir="rtl"] p {
    line-height: 1.8;
}

a {
    color: var(--tech-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--tech-blue-light);
}

/* ============================================
   Header - من الصفر (يعمل إنجليزي وعربي، ديسكتوب وجوال)
   ============================================ */

.site-header,
#main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 0.75rem 0;
    max-width: 100vw;
    overflow-x: hidden;
}

[data-theme="light"] .site-header,
[data-theme="light"] #main-navbar {
    background: var(--bg-dark-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* الديسكتوب: صف واحد — شعار | روابط في الوسط | أزرار */
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.site-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.site-header__logo-img {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.site-header__logo-svg {
    max-width: 220px;
}

.site-header__toggler {
    display: none;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    background: transparent;
    padding: 0.5rem;
    border-radius: 6px;
}

@media (min-width: 992px) {
    .site-header__nav-wrap {
        display: flex !important;
    }
}

.site-header__nav-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.site-header__link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.site-header__link:hover,
.site-header__link.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.site-header__link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-purple));
    border-radius: 2px;
}

[dir="rtl"] .site-header__link.active::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header__btn {
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    background: transparent;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.site-header__btn:hover,
.lang-switcher:hover,
.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--tech-blue);
    background: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

/* العربية: الشعار أقصى اليمين — في RTL المحور يبدأ من اليمين فلا نستخدم row-reverse */
[dir="rtl"] .site-header__inner,
.site-header--rtl .site-header__inner {
    flex-direction: row;
    gap: 1.5rem;
}

[dir="rtl"] .site-header__logo,
.site-header--rtl .site-header__logo {
    justify-content: flex-start;
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    min-width: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

[dir="rtl"] .site-header__logo-img,
[dir="rtl"] .site-header__logo-svg,
.site-header--rtl .site-header__logo-img,
.site-header--rtl .site-header__logo-svg {
    max-width: 100%;
    height: 50px;
    max-height: 50px;
    object-fit: contain;
}

[dir="rtl"] .site-header__nav-wrap,
.site-header--rtl .site-header__nav-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-end: 0;
}

/* الجوال: إخفاء القائمة وعرض البورغر */
@media (max-width: 991px) {
    .site-header,
    #main-navbar {
        padding: 0.5rem 0;
    }

    .site-header__inner {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .site-header__logo {
        height: 44px;
    }

    .site-header__toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 10px;
        flex: 0 0 auto;
    }

    .site-header__nav-wrap {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid var(--border-primary);
    }

    .site-header__nav-wrap:not(.show) {
        display: none !important;
    }

    .site-header__nav-wrap.show {
        display: flex !important;
    }

    .site-header__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header__link {
        padding: 0.75rem 1rem;
    }

    .site-header__actions {
        justify-content: center;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border-primary);
    }

    .site-header__logo-img,
    .site-header__logo-svg {
        height: 44px;
        max-height: 44px;
        max-width: 160px;
    }

    [dir="rtl"] .site-header__logo,
    .site-header--rtl .site-header__logo {
        flex: 0 0 160px;
        width: 160px;
        max-width: 160px;
    }
}

.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(248,250,252,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .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(45,55,72,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* ============================================
   Hero Section - Dark Tech Gradient
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 50%, var(--dark-tertiary) 100%);
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    transition: background var(--transition-normal);
}


[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 50%, #e8e8e8 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="light"] .hero-section::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.hero-site-name {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.hero-site-name .hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-site-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: var(--spacing-xs);
}

[dir="rtl"] .hero-site-name .hero-title {
    font-size: 3.5rem;
    line-height: 1.5;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.hero-subtitle span {
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir="rtl"] .hero-subtitle {
    font-size: 2.5rem;
    line-height: 1.5;
    font-weight: 800;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

[dir="rtl"] .hero-description {
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--text-primary);
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #5a5a5a, #6a6a6a);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--tech-blue);
    color: var(--tech-blue);
    background-color: transparent;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

[data-theme="light"] .btn-outline-primary {
    border: 2px solid #4a4a4a;
    color: #4a4a4a;
}

.btn-outline-primary:hover {
    background-color: var(--tech-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-outline-primary:hover {
    background-color: #4a4a4a;
    color: #ffffff;
}

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

.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-icon {
    font-size: 12rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ============================================
   Stats Section - Dark Cards with Glow
   ============================================ */

.stats-section {
    background-color: var(--bg-dark-secondary);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-purple));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
    position: relative;
}

.stat-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.section-header-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
}

.section-header-icon-inline i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Featured Projects Section
   ============================================ */

.featured-projects-section {
    background-color: var(--bg-dark);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .featured-projects-section {
    background-color: var(--bg-dark-secondary);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .project-card:hover {
    border-color: #6b6b6b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-placeholder i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.project-card .card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.project-card .card-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

[data-theme="light"] .project-card .badge {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b);
}

.project-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--tech-blue);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

[data-theme="light"] .project-card-category {
    color: #6b6b6b;
}

.project-card .btn-primary {
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    border: none;
}

[data-theme="light"] .project-card .btn-primary {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b);
}

.project-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .project-card-price {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    gap: var(--spacing-sm);
}

[dir="rtl"] .project-card-footer {
    flex-direction: row-reverse;
}

/* ============================================
   Why Choose Us Section
   ============================================ */

.why-choose-us-section {
    background-color: var(--bg-dark-secondary);
    padding: var(--spacing-xl) 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-blue), var(--tech-purple));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
}

.feature-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   Custom Order CTA Section
   ============================================ */

.custom-order-cta-section {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    transition: background var(--transition-normal);
}

.section-title-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Breadcrumb Hero */
.breadcrumb-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin: 0;
}

.breadcrumb-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.breadcrumb-hero .breadcrumb-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.breadcrumb-hero .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

/* Light Theme Breadcrumb */
[data-theme="light"] .breadcrumb-hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .breadcrumb-hero .breadcrumb-item a {
    color: var(--text-primary);
}

[data-theme="light"] .breadcrumb-hero .breadcrumb-item a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .breadcrumb-hero .breadcrumb-item.active {
    color: var(--text-primary);
}

[data-theme="light"] .breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.custom-order-cta-section .btn-primary {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* ============================================
   Newsletter Section
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 50%, var(--dark-tertiary) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-normal);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="light"] .newsletter-section::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
}

.newsletter-section .section-title-inline {
    justify-content: center;
    color: var(--text-primary);
}

.newsletter-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
}

[data-theme="light"] .newsletter-icon {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.2), rgba(123, 123, 123, 0.2));
}

.newsletter-section form {
    position: relative;
    z-index: 2;
}

.newsletter-section .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .newsletter-section .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.newsletter-section .form-control::placeholder {
    color: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .newsletter-section .form-control::placeholder {
    color: var(--text-muted);
}

/* Placeholder - أصغر وأوضح في الثيم المعتم (فورم طلب مخصص، اتصل بنا، إلخ) */
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-control-lg::placeholder,
body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-control-lg::placeholder {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.5);
    opacity: 1;
}

.newsletter-section .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--tech-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .newsletter-section .form-control:focus {
    background-color: #ffffff;
    border-color: #6b6b6b;
    box-shadow: 0 0 0 0.2rem rgba(107, 107, 107, 0.15);
}

.newsletter-section .btn-light {
    background-color: var(--text-primary);
    color: var(--dark-primary);
    border: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

[data-theme="light"] .newsletter-section .btn-light {
    background-color: #4a4a4a;
    color: #ffffff;
}

.newsletter-section .btn-light:hover {
    background-color: var(--tech-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .newsletter-section .btn-light:hover {
    background-color: #5a5a5a;
    color: #ffffff;
}

/* ============================================
   SweetAlert2 Customization
   ============================================ */

.swal2-popup-custom {
    border-radius: 16px !important;
    font-family: var(--font-en-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2rem !important;
}

[dir="rtl"] .swal2-popup-custom {
    font-family: var(--font-ar-primary) !important;
    direction: rtl !important;
}

.swal2-icon-custom {
    margin: 1.5rem auto 1.25rem !important;
    width: 5rem !important;
    height: 5rem !important;
    border-width: 4px !important;
}

.swal2-icon-custom.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.swal2-icon-custom.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-icon-custom .swal2-success-line {
    background-color: #10b981 !important;
}

.swal2-icon-custom .swal2-error-line {
    background-color: #ef4444 !important;
}

.swal2-title-custom {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    padding: 0 !important;
}

[data-theme="light"] .swal2-title-custom {
    color: #2c2c2c !important;
}

[dir="rtl"] .swal2-title-custom {
    font-weight: 700 !important;
    text-align: right !important;
}

.swal2-content-custom {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7 !important;
    margin: 1rem 0 1.5rem !important;
    padding: 0 !important;
}

[data-theme="light"] .swal2-content-custom {
    color: #4a4a4a !important;
}

[dir="rtl"] .swal2-content-custom {
    text-align: right !important;
}

.swal2-confirm-custom {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    transition: all var(--transition-normal) !important;
}

[dir="rtl"] .swal2-confirm-custom {
    font-family: var(--font-ar-primary) !important;
}

/* Dark Theme SweetAlert */
.swal2-popup {
    background: var(--dark-primary) !important;
    color: #ffffff !important;
}

[data-theme="light"] .swal2-popup {
    background: #f0f0f0 !important;
    color: #2c2c2c !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .swal2-title {
    color: #2c2c2c !important;
}

[data-theme="light"] .swal2-content {
    color: #4a4a4a !important;
}

/* RTL Support */
[dir="rtl"] .swal2-popup {
    direction: rtl !important;
}

[dir="rtl"] .swal2-title {
    text-align: right !important;
}

[dir="rtl"] .swal2-content {
    text-align: right !important;
}

[dir="rtl"] .swal2-actions {
    flex-direction: row-reverse !important;
}

/* ============================================
   Footer - Dark Tech Style
   ============================================ */

.footer {
    background-color: var(--dark-primary);
    border-top: 1px solid var(--border-primary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .footer {
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-primary);
}

.footer h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer ul li a:hover {
    color: var(--tech-blue);
    padding-left: 0.5rem;
}

[dir="rtl"] .footer ul li a:hover {
    padding-left: 0;
    padding-right: 0.5rem;
}

.footer ul li a i {
    font-size: 0.875rem;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.footer-contact-list li i {
    font-size: 1rem;
    color: var(--tech-blue);
    width: 20px;
    flex-shrink: 0;
}

[data-theme="light"] .footer-contact-list li i {
    color: #6b6b6b;
}

.footer-contact-list li span {
    color: var(--text-secondary);
}

.footer-contact-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-contact-list li a:hover {
    color: var(--tech-blue);
    padding: 0;
}

[data-theme="light"] .footer-contact-list li a:hover {
    color: #5a5a5a;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer hr {
    border-color: var(--border-primary);
    margin: var(--spacing-lg) 0 var(--spacing-md);
    opacity: 0.3;
}

.footer .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-dark-secondary) !important;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

/* ============================================
   Animations
   ============================================ */

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[dir="rtl"] [data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[dir="rtl"] [data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ============================================
   Short Hero Section for Pages (Projects, Contact, Custom Order, Project Show)
   ============================================ */

.hero-section-short {
    min-height: auto !important;
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0 !important;
    display: block !important;
}

.hero-section-short .container {
    display: block !important;
}

.hero-section-short .row {
    display: block !important;
}

/* ============================================
   Page Content Section
   ============================================ */

.page-content-section {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-xl) 0;
    margin-top: 0;
    transition: background var(--transition-normal);
}

[data-theme="light"] .page-content-section {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ============================================
   Page Article (Content Card)
   ============================================ */

.page-article {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--spacing-xl) var(--spacing-xl);
    transition: all var(--transition-normal);
}

[data-theme="light"] .page-article {
    background: var(--bg-card);
    border-color: var(--border-primary);
}

@media (max-width: 768px) {
    .page-article {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ============================================
   Page Meta Bar (Meta Information)
   ============================================ */

.page-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-primary);
}

.meta-item-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.meta-item-card:hover {
    background: var(--bg-hover);
    border-color: var(--tech-blue);
}

.meta-item-card .meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.meta-item-card .meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item-card .meta-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item-card .meta-content span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

[data-theme="light"] .meta-item-card .meta-icon {
    background: linear-gradient(135deg, #6b6b6b, #8b8b8b);
}

/* ============================================
   Page Body (Content Typography)
   ============================================ */

.page-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-en-primary);
}

[dir="rtl"] .page-body {
    font-family: var(--font-ar-primary);
    line-height: 1.9;
}

.page-body h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--tech-blue);
    line-height: 1.3;
}

.page-body h1:first-child {
    margin-top: 0;
}

.page-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--tech-blue);
    line-height: 1.4;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.page-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.page-body h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.page-body h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.page-body p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

[dir="rtl"] .page-body ul,
[dir="rtl"] .page-body ol {
    padding-left: 0;
    padding-right: 2rem;
}

.page-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-body ul li {
    list-style-type: disc;
}

.page-body ol li {
    list-style-type: decimal;
}

.page-body a {
    color: var(--tech-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.page-body a:hover {
    color: var(--tech-purple);
    border-bottom-color: var(--tech-purple);
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-primary);
}

.page-body blockquote {
    border-left: 4px solid var(--tech-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
}

[dir="rtl"] .page-body blockquote {
    border-left: none;
    border-right: 4px solid var(--tech-blue);
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-md);
}

.page-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.page-body table th,
.page-body table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-primary);
}

[dir="rtl"] .page-body table th,
[dir="rtl"] .page-body table td {
    text-align: right;
}

.page-body table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.page-body table td {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.page-body code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--tech-purple);
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    border: 1px solid var(--border-primary);
}

.page-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.page-body pre code {
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    border: none;
    font-size: 0.875rem;
}

.page-body hr {
    border: none;
    border-top: 2px solid var(--border-primary);
    margin: 2rem 0;
}

.page-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.page-body em {
    font-style: italic;
    color: var(--text-secondary);
}

[data-theme="light"] .page-body h1,
[data-theme="light"] .page-body h2,
[data-theme="light"] .page-body h3,
[data-theme="light"] .page-body h4,
[data-theme="light"] .page-body h5,
[data-theme="light"] .page-body h6 {
    border-bottom-color: #8b8b8b;
}

[data-theme="light"] .page-body a {
    color: #6b6b6b;
}

[data-theme="light"] .page-body a:hover {
    color: #8b8b8b;
    border-bottom-color: #8b8b8b;
}

[data-theme="light"] .page-body blockquote {
    border-left-color: #8b8b8b;
}

[dir="rtl"][data-theme="light"] .page-body blockquote {
    border-right-color: #8b8b8b;
}

[data-theme="light"] .page-body code {
    color: #6b6b6b;
}

/* ============================================
   Share Section (Page Sharing)
   ============================================ */

.share-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-primary);
}

.share-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.share-title i {
    color: var(--tech-blue);
    font-size: 1.25rem;
}

[data-theme="light"] .share-title i {
    color: #6b6b6b;
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.share-facebook:hover {
    background: #166fe5;
    color: #ffffff;
    transform: translateY(-2px);
}

.share-twitter {
    background: #1da1f2;
    color: #ffffff;
}

.share-twitter:hover {
    background: #1a91da;
    color: #ffffff;
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.share-whatsapp:hover {
    background: #22c55e;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .page-body {
        font-size: 1rem;
    }

    .page-body h1 {
        font-size: 1.875rem;
    }

    .page-body h2 {
        font-size: 1.5rem;
    }

    .page-body h3 {
        font-size: 1.25rem;
    }

    .page-body h4 {
        font-size: 1.125rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .meta-item-card {
        flex: 1 1 100%;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .hero-site-name .hero-title {
        font-size: 3rem;
    }

    [dir="rtl"] .hero-site-name .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 2.25rem;
    }

    [dir="rtl"] .hero-subtitle {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title-inline {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        height: 48px;
        min-width: 0;
    }

    #main-navbar .navbar-brand .site-logo,
    .navbar-brand .site-logo,
    .site-header__logo-img,
    .site-header__logo-svg {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 160px !important;
    }

    .hero-site-name .hero-title {
        font-size: 2rem;
    }

    [dir="rtl"] .hero-site-name .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    [dir="rtl"] .hero-subtitle {
        font-size: 1.375rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-icon {
        font-size: 8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title-inline {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: var(--spacing-sm);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon i {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .feature-card {
        padding: var(--spacing-sm);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-lg) 0;
    }

    .featured-projects-section,
    .why-choose-us-section,
    .custom-order-cta-section,
    .newsletter-section {
        padding: var(--spacing-lg) 0;
    }

    .project-card .card-title {
        font-size: 1.125rem;
    }

    .project-card .card-body {
        padding: var(--spacing-sm);
    }

    .project-image {
        height: 180px;
    }

    .project-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }

    .project-card-footer .btn-primary {
        width: 100%;
    }

    .newsletter-section form {
        flex-direction: column;
    }

    .newsletter-section .form-control {
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    [dir="rtl"] body {
        font-size: 15px;
    }
}

/* ============================================
   Light Theme - Remove All Blue Colors
   ============================================ */

/* Hero Icon */
[data-theme="light"] .hero-icon {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Stat Icons */
[data-theme="light"] .stat-icon {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.2), rgba(123, 123, 123, 0.2)) !important;
}

[data-theme="light"] .stat-icon i {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Feature Icons */
[data-theme="light"] .feature-icon {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.2), rgba(123, 123, 123, 0.2)) !important;
}

[data-theme="light"] .feature-icon i {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Section Header Icons */
[data-theme="light"] .section-header-icon-inline {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.2), rgba(123, 123, 123, 0.2)) !important;
}

[data-theme="light"] .section-header-icon-inline i {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Navbar / Header Links */
[data-theme="light"] .navbar-nav .nav-link:hover,
[data-theme="light"] .navbar-nav .nav-link.active,
[data-theme="light"] .site-header__link:hover,
[data-theme="light"] .site-header__link.active {
    background-color: rgba(107, 107, 107, 0.1) !important;
}

[data-theme="light"] .navbar-nav .nav-link::after,
[data-theme="light"] .site-header__link.active::after {
    background: linear-gradient(90deg, #6b6b6b, #7b7b7b) !important;
}

/* Stat Item Hover */
[data-theme="light"] .stat-item:hover {
    border-color: #6b6b6b !important;
}

[data-theme="light"] .stat-item::before {
    background: linear-gradient(90deg, #6b6b6b, #7b7b7b) !important;
}

/* Feature Card Hover */
[data-theme="light"] .feature-card:hover {
    border-color: #6b6b6b !important;
}

[data-theme="light"] .feature-card::before {
    background: linear-gradient(90deg, #6b6b6b, #7b7b7b) !important;
}

/* Project Card Badge */
[data-theme="light"] .project-card .badge {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
}

/* Social Links */
[data-theme="light"] .social-links a:hover {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b) !important;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-info-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    color: var(--tech-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
    align-self: flex-start;
}

[data-theme="light"] .contact-icon {
    background: linear-gradient(135deg, rgba(107, 107, 107, 0.1), rgba(123, 123, 123, 0.1));
    color: #6b6b6b;
}

.contact-icon i {
    display: block;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-details strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link,
.contact-text {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 1rem;
}

.contact-link:hover {
    color: var(--tech-blue);
    text-decoration: underline;
}

[data-theme="light"] .contact-link:hover {
    color: #5a5a5a;
}

.business-hours {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-primary);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (max-width: 576px) {
    .hero-site-name .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-buttons .btn i {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Loading States & Transitions
   ============================================ */

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--tech-blue);
    color: var(--text-primary);
}

::-moz-selection {
    background-color: var(--tech-blue);
    color: var(--text-primary);
}

[data-theme="light"] ::selection {
    background-color: #6b6b6b;
    color: #ffffff;
}

[data-theme="light"] ::-moz-selection {
    background-color: #6b6b6b;
    color: #ffffff;
}

/* ============================================
   Additional Styles for Home Page
   ============================================ */

.min-vh-50 {
    min-height: 50vh;
}

/* Hero Section Image Container */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

/* Project Card Price Alignment */
.project-card .d-flex.justify-content-between {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

/* Section Title Centering Fix */
.section-title {
    justify-content: center;
}

/* Custom Order CTA Section Alignment */
.custom-order-cta-section .row {
    align-items: center;
}

/* Newsletter Section Text Color */
.newsletter-section p {
    color: var(--text-secondary);
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

[dir="rtl"] .back-to-top-btn {
    right: auto;
    left: 2rem;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--tech-purple), var(--tech-blue));
}

[data-theme="light"] .back-to-top-btn {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .back-to-top-btn:hover {
    background: linear-gradient(135deg, #7b7b7b, #6b6b6b);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.125rem;
    }

    [dir="rtl"] .back-to-top-btn {
        right: auto;
        left: 1.5rem;
    }
}

/* Stats Section Background */
.stats-section {
    background-color: var(--bg-dark-secondary);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-lg) 0;
}

.how-it-works-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--spacing-md);
    padding-top: 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-lg);
}

.how-it-works-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.15;
    color: var(--tech-blue);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

[dir="rtl"] .how-it-works-number {
    left: auto;
    right: 20px;
}

.how-it-works-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.how-it-works-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.how-it-works-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.how-it-works-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Systems & Modules Section
   ============================================ */

.systems-modules-section {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-lg) 0;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-md);
}

.module-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
}

.module-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.module-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.module-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* ============================================
   Target Audience Section
   ============================================ */

.target-audience-section {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-lg) 0;
}

.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audience-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-purple);
    box-shadow: var(--shadow-lg);
}

.audience-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 16px;
}

.audience-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--tech-purple), var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audience-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.audience-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Advanced Technical Features Section
   ============================================ */

.technical-features-section {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-lg) 0;
}

.tech-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tech-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
}

.tech-feature-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.tech-feature-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* ============================================
   Use Cases Section
   ============================================ */

.use-cases-section {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-lg) 0;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.use-case-card:hover {
    transform: translateX(5px);
    border-color: var(--tech-blue);
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .use-case-card:hover {
    transform: translateX(-5px);
}

.use-case-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
}

.use-case-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.use-case-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-lg) 0;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: var(--spacing-md);
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
}

[dir="rtl"] .accordion-button {
    text-align: right;
}

.accordion-button::after {
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    order: 2;
}

[dir="rtl"] .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
    order: 2;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-card-hover);
    color: var(--tech-blue);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.accordion-body {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: var(--spacing-md);
    line-height: 1.7;
}

/* Light Theme Adjustments */
[data-theme="light"] .how-it-works-card:hover,
[data-theme="light"] .module-card:hover,
[data-theme="light"] .audience-card:hover,
[data-theme="light"] .tech-feature-card:hover,
[data-theme="light"] .use-case-card:hover {
    border-color: #6b6b6b;
}

[data-theme="light"] .how-it-works-icon i,
[data-theme="light"] .module-icon i,
[data-theme="light"] .audience-icon i,
[data-theme="light"] .tech-feature-icon i,
[data-theme="light"] .use-case-icon i {
    background: linear-gradient(135deg, #6b6b6b, #7b7b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .how-it-works-number {
        font-size: 2.5rem;
        top: 10px;
    }

    .how-it-works-card {
        padding-top: 2rem;
    }

    .how-it-works-icon,
    .audience-icon {
        width: 60px;
        height: 60px;
    }

    .how-it-works-icon i,
    .audience-icon i {
        font-size: 2rem;
    }

    .module-icon,
    .tech-feature-icon,
    .use-case-icon {
        width: 60px;
        height: 60px;
    }

    .module-icon i,
    .tech-feature-icon i,
    .use-case-icon i {
        font-size: 1.75rem;
    }
}
