/* ==========================================================================
   Balancr App Introductory Website - Bright & Modern SaaS Identity
   Brand Identity: Official Balancr Logo Colors
   - Primary: Deep Corporate Navy (#162a52 / #1b3569)
   - Brand Accent: Electric Lime Green (#8ec641 / #7cb534)
   - Surfaces: Crisp White (#ffffff) & Slate-50 (#f8fafc)
   ========================================================================== */

:root {
    /* Balancr Brand Palette */
    --primary: #162a52;            /* Balancr Deep Corporate Navy */
    --primary-dark: #0e1b36;
    --primary-light: #254582;
    --primary-subtle: rgba(22, 42, 82, 0.08);

    --accent: #8ec641;             /* Balancr Signature Lime Green */
    --accent-hover: #7cb534;
    --accent-dark: #6a9c29;
    --accent-light: #a6dc5e;
    --accent-subtle: rgba(142, 198, 65, 0.14);
    --accent-border: rgba(142, 198, 65, 0.35);

    --secondary: #2563eb;          /* High-Tech Royal Blue */
    --success: #10b981;            /* Mint Green */
    --warning: #f59e0b;            /* Amber */
    --danger: #ef4444;             /* Coral Red */
    
    /* Bright Theme Surfaces */
    --bg-body: #f8fafc;            /* Clean Slate-50 */
    --bg-surface: #ffffff;         /* Pure White */
    --bg-surface-alt: #f1f5f9;     /* Slate-100 */
    --card-bg: #ffffff;            /* Pure White */
    --border-color: #e2e8f0;       /* Slate-200 */
    --border-hover: #8ec641;       /* Lime Green */
    --border-subtle: #f1f5f9;

    /* Shadows & Elevation */
    --shadow-sm: 0 2px 4px rgba(22, 42, 82, 0.04);
    --shadow-md: 0 6px 16px rgba(22, 42, 82, 0.06);
    --shadow-lg: 0 15px 35px -5px rgba(22, 42, 82, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(22, 42, 82, 0.12), 0 8px 16px -4px rgba(142, 198, 65, 0.18);
    --shadow-btn: 0 8px 20px -4px rgba(142, 198, 65, 0.45);

    /* Text Colors */
    --text-heading: #162a52;       /* Deep Navy */
    --text-body: #334155;          /* Slate-700 */
    --text-slate: #475569;         /* Slate-600 */
    --text-muted: #64748b;         /* Slate-500 */
    --text-white: #ffffff;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #162a52 0%, #254582 100%);
    --grad-button: linear-gradient(135deg, #8ec641 0%, #77ad30 100%);
    --grad-badge: linear-gradient(135deg, rgba(142, 198, 65, 0.15) 0%, rgba(142, 198, 65, 0.05) 100%);
    --grad-hero: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 65%, #edf2f7 100%);
    --grad-glow: linear-gradient(135deg, rgba(142, 198, 65, 0.12), rgba(22, 42, 82, 0.05));
}

/* Global Reset & Base */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #162a52 0%, #1e3a8a 50%, #8ec641 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary-light {
    color: var(--accent) !important;
}

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

/* Layout Adjustments */
.main-wrapper {
    padding-top: 86px; /* Navbar clearance */
}

/* ==========================================================================
   Responsive Container & Wide-Screen Layout (1400px, 1600px, 1800px+)
   Fills the side margins gracefully while preserving optimal readability
   ========================================================================== */
.container-fluid.px-lg-5 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(20px, 4vw, 70px) !important;
    padding-right: clamp(20px, 4vw, 70px) !important;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 2200px) {
    .container-fluid.px-lg-5 {
        max-width: 2100px !important;
    }
}

/* ==========================================================================
   Background Grid & Glow Orbs
   ========================================================================== */
.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(22, 42, 82, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(22, 42, 82, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.orb-primary {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 198, 65, 0.25) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: orb-pulse 9s infinite alternate;
}

.orb-accent {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orb-pulse 11s infinite alternate-reverse;
}

@keyframes orb-pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
    50% { transform: scale(1.12) translate(25px, -15px); opacity: 0.38; }
    100% { transform: scale(0.92) translate(-20px, 20px); opacity: 0.25; }
}

/* ==========================================================================
   Navbar (Modern Light Frosted Glass)
   ========================================================================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.35s ease;
    z-index: 1050;
    padding: 14px 0;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px -5px rgba(22, 42, 82, 0.08);
}

/* Bullet & List Resets */
ul.navbar-nav,
.navbar-nav,
.navbar-nav li,
.navbar-nav .nav-item {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
}

.navbar-custom .navbar-brand {
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.balancr-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.balancr-logo-img:hover {
    transform: scale(1.03);
}

.navbar-custom .nav-link {
    color: #1e293b;
    font-weight: 600;
    padding: 8px 16px !important;
    transition: all 0.25s ease;
    position: relative;
    font-size: 0.96rem;
    border-radius: 8px;
}

.navbar-custom .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(22, 42, 82, 0.04);
}

.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 50%;
}

.navbar-toggler {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(22, 42, 82, 0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
    position: relative;
    padding: 70px 0 120px;
    background: var(--grad-hero);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

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

.hero-tagline {
    background: var(--accent-subtle);
    color: #3f6212;
    border: 1px solid var(--accent-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(142, 198, 65, 0.15);
}

.hero-tagline i {
    color: #65a30d;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.25;
    font-weight: 850;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-slate);
    margin-bottom: 38px;
    max-width: 850px;
}

/* ==========================================================================
   High-Fidelity Dashboard Mockup (Matching Balancr ERP Light Theme)
   ========================================================================== */
.browser-mockup {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 65px -12px rgba(22, 42, 82, 0.14), 0 0 0 1px rgba(22, 42, 82, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.browser-mockup:hover {
    transform: translateY(-6px) scale(1.008);
    box-shadow: 0 35px 80px -15px rgba(22, 42, 82, 0.18), 0 0 0 1px rgba(142, 198, 65, 0.4);
}

.browser-header {
    background: #f1f5f9;
    padding: 11px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-dot.red { background: #f87171; }
.browser-dot.yellow { background: #fbbf24; }
.browser-dot.green { background: #34d399; }

.browser-address-bar {
    background: #ffffff;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 25px;
    width: 55%;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ERP Replica Layout */
.erp-container {
    display: flex;
    background: #f8fafc;
    height: 430px;
    font-family: 'Cairo', sans-serif;
}

.erp-sidebar {
    width: 165px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    flex-shrink: 0;
    border-left: 1px solid #e2e8f0;
}

html[dir="rtl"] .erp-sidebar {
    border-left: 1px solid #e2e8f0;
    border-right: none;
}
html[dir="ltr"] .erp-sidebar {
    border-right: 1px solid #e2e8f0;
    border-left: none;
}

.erp-logo-mini {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.erp-logo-mini i {
    color: var(--accent);
}

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

.erp-menu-item {
    font-size: 0.73rem;
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.erp-menu-item.active {
    background: rgba(142, 198, 65, 0.15);
    color: #3f6212;
}

.erp-menu-item:hover:not(.active) {
    background: #f1f5f9;
    color: var(--primary);
}

.erp-menu-item i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.erp-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
}

.erp-header {
    background: #ffffff;
    height: 48px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.erp-search {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 5px 12px;
    width: 150px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

.erp-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-user-avatar {
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.erp-content-area {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Mini Cards inside Mockup */
.erp-card-mini {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(22, 42, 82, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.erp-card-title {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.erp-card-val {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--primary);
}

.erp-card-val.green { color: #15803d; }
.erp-card-val.blue { color: #1d4ed8; }
.erp-card-val.orange { color: #b45309; }
.erp-card-val.purple { color: var(--primary); }

.erp-badge-sub {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
    font-weight: 700;
}

.erp-badge-sub.purple { background: rgba(22, 42, 82, 0.08); color: var(--primary); }
.erp-badge-sub.green { background: rgba(142, 198, 65, 0.2); color: #3f6212; }

.erp-shortcut-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s;
    cursor: pointer;
}

.erp-shortcut-btn:hover {
    background: rgba(142, 198, 65, 0.12);
    border-color: var(--accent);
    color: var(--primary);
}

.erp-plus-float {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(142, 198, 65, 0.4);
    cursor: pointer;
}

html[dir="rtl"] .erp-plus-float { left: 16px; right: auto; }
html[dir="ltr"] .erp-plus-float { right: 16px; left: auto; }

@media (max-width: 991.98px) {
    .browser-mockup { margin-top: 40px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-custom-primary {
    background: var(--grad-button);
    border: none;
    color: #ffffff !important;
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 9px;
    text-decoration: none;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(142, 198, 65, 0.6);
    background: linear-gradient(135deg, #7cb534 0%, #689928 100%);
    color: #ffffff !important;
}

.btn-custom-outline {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--primary) !important;
    padding: 11px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 9px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-custom-outline:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -45px;
}

.stats-card-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: var(--shadow-lg);
}

.stat-box {
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 850;
    margin-bottom: 4px;
    display: block;
    line-height: 1.1;
    color: var(--primary);
}

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

@media (max-width: 767.98px) {
    .stats-card-wrapper { padding: 25px 15px; }
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 18px 0;
    }
    .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

html[dir="rtl"] .stat-box {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

html[dir="rtl"] .stat-box:last-child {
    border-left: none;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .stat-box {
        border-left: none;
    }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
    z-index: 5;
}

.section-tag {
    color: #4d7c0f;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 750;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title-large {
    font-size: 2.5rem;
    font-weight: 850;
    margin-bottom: 18px;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-slate);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
}

/* ==========================================================================
   Modules & Services Section
   ========================================================================== */
.modules-section {
    padding: 95px 0;
    position: relative;
}

.section-portfolio-bg {
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.module-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 5;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.module-icon-box {
    width: 64px;
    height: 64px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7c0f;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: all 0.35s ease;
}

.module-card:hover .module-icon-box {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 20px rgba(142, 198, 65, 0.4);
}

.module-title {
    font-size: 1.22rem;
    font-weight: 750;
    margin-bottom: 12px;
    color: var(--primary);
}

.module-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-slate);
    margin-bottom: 0;
}

/* ==========================================================================
   Enhanced Portfolio Showcase Cards
   ========================================================================== */
.portfolio-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 5;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.portfolio-img-container {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img-container img {
    transform: scale(1.04);
}

.portfolio-badge-live {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 750;
    padding: 4px 11px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[dir="rtl"] .portfolio-badge-live {
    right: auto;
    left: 12px;
}

.portfolio-client-info {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 18px 0;
}

.portfolio-tech-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 650;
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.portfolio-card:hover .portfolio-tech-pill {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: #3f6212;
}

/* ==========================================================================
   Features Section (Why Choose Us / About Us)
   ========================================================================== */
.features-section {
    padding: 95px 0;
    background: #ffffff;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.feature-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7c0f;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-item-title {
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--primary);
}

.feature-item-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-slate);
    margin-bottom: 0;
}

/* About Section Image Showcase */
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(22, 42, 82, 0.16), 0 0 0 1px rgba(22, 42, 82, 0.08);
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 75px -15px rgba(22, 42, 82, 0.22), 0 0 0 1px rgba(142, 198, 65, 0.4);
}

.about-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-showcase-img {
    transform: scale(1.02);
}

.about-badge-floating {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(142, 198, 65, 0.35);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 10px 25px -5px rgba(22, 42, 82, 0.12);
    z-index: 5;
}

html[dir="rtl"] .about-badge-floating {
    right: auto;
    left: 20px;
}

.about-badge-icon {
    width: 36px;
    height: 36px;
    background: rgba(142, 198, 65, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7c0f;
    font-size: 1.1rem;
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite alternate;
}

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0.55; }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    padding: 95px 0;
    position: relative;
    background: #f8fafc;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 32px 38px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 15px 40px -10px rgba(142, 198, 65, 0.25);
    background: #ffffff;
}

.pricing-card.popular::after {
    content: '★ الأكثر طلباً / Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-button);
    color: #ffffff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(142, 198, 65, 0.35);
}

.pricing-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.pricing-header {
    text-align: center;
    margin-bottom: 26px;
}

.pricing-name {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 750;
    margin-bottom: 12px;
}

.price-box {
    margin-bottom: 12px;
}

.price-currency {
    font-size: 1.3rem;
    font-weight: 750;
    vertical-align: super;
    color: var(--primary);
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
    flex-grow: 1;
}

.pricing-features-list li {
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-slate);
}

.pricing-features-list li:last-child {
    border-bottom: none;
}

.pricing-features-list li i {
    color: #16a34a;
    font-size: 1.05rem;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 95px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.faq-accordion .accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    border-radius: 14px !important;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-item:hover {
    border-color: var(--accent);
}

.faq-accordion .accordion-button {
    background: #ffffff;
    color: var(--primary);
    font-weight: 750;
    font-size: 1.05rem;
    padding: 22px 28px;
    box-shadow: none;
    border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(142, 198, 65, 0.08);
    color: var(--primary);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    padding: 0 28px 22px;
    color: var(--text-slate);
    line-height: 1.8;
    font-size: 0.98rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 95px 0;
    position: relative;
    background: #f8fafc;
}

.contact-card-info {
    background: linear-gradient(145deg, #162a52 0%, #0d1b36 100%);
    border: 1px solid #1e3a8a;
    border-radius: 24px;
    padding: 48px 38px;
    height: 100%;
    box-shadow: 0 15px 40px -10px rgba(22, 42, 82, 0.25);
    color: #ffffff;
}

.contact-card-info .section-tag {
    background: rgba(142, 198, 65, 0.2);
    color: #a3e635;
    border: 1px solid rgba(142, 198, 65, 0.4);
}

.contact-heading {
    color: #ffffff;
    font-size: 2.1rem;
}

.contact-subtext {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 35px 0 0;
}

.contact-details-list li {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(142, 198, 65, 0.15);
    border: 1px solid rgba(142, 198, 65, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.82rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-detail-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s;
}

a.contact-detail-val:hover {
    color: var(--accent);
}

.contact-form-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 38px;
    box-shadow: var(--shadow-lg);
}

.contact-form-container .form-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.contact-form-container .form-control {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 13px 18px;
    color: #0f172a;
    font-size: 0.96rem;
    transition: all 0.25s ease;
}

.contact-form-container .form-control:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(142, 198, 65, 0.2);
    outline: none;
}

.contact-form-container textarea.form-control {
    resize: vertical;
}

@media (max-width: 575.98px) {
    .contact-card-info, .contact-form-container {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   Footer (Executive Deep Navy)
   ========================================================================== */
.footer-custom {
    background: #0e182b;
    border-top: 1px solid #1e293b;
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
    color: #94a3b8;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 320px;
}

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

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(142, 198, 65, 0.4);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: 22px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
}

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

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

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

.footer-links-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.footer-links-list li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

html[dir="rtl"] .footer-links-list li a:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-bottom {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsapp-pulse 2s infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Wide-Screen & Ultra-Wide Responsive Enhancements (1400px, 1600px, 1800px+)
   Fills the screen comfortably, eliminates awkward margins, and balances typography
   ========================================================================== */
@media (min-width: 1400px) {
    /* Hero Section Scaling */
    .hero-wrapper {
        padding: 85px 0 140px;
    }
    
    .hero-title {
        font-size: 3.4rem;
        line-height: 1.25;
        margin-bottom: 26px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 900px;
        line-height: 1.85;
        margin-bottom: 42px;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        padding: 9px 24px;
        margin-bottom: 30px;
    }
    
    /* Mockup proportional expansion */
    .erp-container {
        height: 480px;
    }
    
    .erp-sidebar {
        width: 185px;
        padding: 18px 12px;
    }
    
    .erp-logo-mini {
        font-size: 1.05rem;
        margin-bottom: 22px;
    }
    
    .erp-menu-item {
        font-size: 0.8rem;
        padding: 9px 12px;
        margin-bottom: 6px;
    }
    
    .erp-header {
        height: 52px;
        padding: 0 22px;
    }
    
    .erp-content-area {
        padding: 20px;
    }
    
    .erp-card-mini {
        padding: 15px;
    }
    
    .erp-card-title {
        font-size: 0.74rem;
    }
    
    .erp-card-val {
        font-size: 1.3rem;
    }

    /* Stats Card */
    .stats-card-wrapper {
        padding: 44px 50px;
    }
    
    .stat-number {
        font-size: 3.4rem;
    }
    
    .stat-label {
        font-size: 1.05rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 65px;
    }
    
    .section-title-large {
        font-size: 2.85rem;
        margin-bottom: 20px;
    }
    
    .section-desc {
        max-width: 780px;
        font-size: 1.15rem;
    }
    
    .section-tag {
        font-size: 0.85rem;
        padding: 7px 18px;
    }
    
    /* Services / Module Cards */
    .modules-section {
        padding: 110px 0;
    }
    
    .module-card {
        padding: 44px 34px;
        min-height: 290px;
    }
    
    .module-icon-box {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 28px;
    }
    
    .module-title {
        font-size: 1.32rem;
    }
    
    .module-text {
        font-size: 1.02rem;
        line-height: 1.75;
    }
    
    /* Portfolio Cards */
    .portfolio-card {
        padding: 28px;
    }
    
    .portfolio-img-container {
        height: 250px;
        margin-bottom: 24px;
    }
    
    /* Features / About */
    .features-section {
        padding: 110px 0;
    }
    
    .feature-item-title {
        font-size: 1.25rem;
    }
    
    .feature-item-text {
        font-size: 1.02rem;
    }
    
    /* Contact */
    .contact-section {
        padding: 110px 0;
    }
    
    .contact-card-info, .contact-form-container {
        padding: 55px 45px;
    }
    
    .contact-heading {
        font-size: 2.4rem;
    }
    
    /* Navbar */
    .navbar-custom {
        padding: 18px 0;
    }
    
    .navbar-custom.scrolled {
        padding: 12px 0;
    }
    
    .navbar-custom .nav-link {
        font-size: 1.02rem;
        padding: 8px 18px !important;
    }
    
    .balancr-logo-img {
        height: 46px;
    }
}

@media (min-width: 1600px) {
    /* Ultra-wide Displays (Full HD+ / 2K) */
    .hero-title {
        font-size: 3.8rem;
        line-height: 1.22;
    }
    
    .hero-subtitle {
        font-size: 1.32rem;
        max-width: 950px;
        line-height: 1.9;
    }
    
    .erp-container {
        height: 520px;
    }
    
    .portfolio-img-container {
        height: 275px;
    }
    
    .module-card {
        padding: 48px 38px;
    }
    
    .stat-number {
        font-size: 3.8rem;
    }
}

/* ==========================================================================
   Comprehensive Arabic (RTL) Typography, Layout & Alignment System
   Ensures natural Right-to-Left reading flow, correct icon positions, and alignment
   ========================================================================== */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Headings and Paragraphs natural right alignment */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p {
    text-align: right;
}

/* Center aligned headers remain centered */
html[dir="rtl"] .section-header:not(.text-start) {
    text-align: center;
}

html[dir="rtl"] .section-header:not(.text-start) h2,
html[dir="rtl"] .section-header:not(.text-start) p {
    text-align: center;
}

/* Hero Section in RTL */
html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .hero-tagline {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .hero-content .d-flex {
    justify-content: flex-start;
}

/* About Us Section in RTL */
html[dir="rtl"] #about .section-header {
    text-align: right !important;
}

html[dir="rtl"] #about .section-header h2,
html[dir="rtl"] #about .section-header p,
html[dir="rtl"] #about .section-desc {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] #about .section-tag {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .feature-item {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .feature-item-title,
html[dir="rtl"] .feature-item-text {
    text-align: right !important;
}

html[dir="rtl"] .about-badge-floating {
    right: auto !important;
    left: 20px !important;
}

/* Services / Modules Cards in RTL */
html[dir="rtl"] .module-card {
    text-align: right;
}

html[dir="rtl"] .module-icon-box {
    margin-right: 0;
    margin-left: auto;
}

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

/* Portfolio Cards in RTL */
html[dir="rtl"] .portfolio-card {
    text-align: right;
}

html[dir="rtl"] .portfolio-badge-live {
    right: auto !important;
    left: 14px !important;
}

html[dir="rtl"] .portfolio-client-info {
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .portfolio-tech-stack {
    justify-content: flex-start;
}

html[dir="rtl"] .portfolio-card .module-title,
html[dir="rtl"] .portfolio-card .module-text {
    text-align: right;
}

/* Blog Cards in RTL */
html[dir="rtl"] #blog .module-card {
    text-align: right;
}

/* Stats Section in RTL */
html[dir="rtl"] .stat-box {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

html[dir="rtl"] .stat-box:last-child {
    border-left: none;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .stat-box {
        border-left: none;
    }
}

/* Contact Section in RTL */
html[dir="rtl"] .contact-card-info {
    text-align: right;
}

html[dir="rtl"] .contact-card-info h2,
html[dir="rtl"] .contact-card-info p {
    text-align: right;
}

html[dir="rtl"] .contact-details-list li {
    flex-direction: row;
    text-align: right;
}

html[dir="rtl"] .contact-detail-label,
html[dir="rtl"] .contact-detail-val {
    text-align: right;
}

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

html[dir="rtl"] .contact-form-container .form-label {
    text-align: right;
    display: block;
}

html[dir="rtl"] .contact-form-container .form-control {
    text-align: right;
    direction: rtl;
}

/* Footer in RTL */
html[dir="rtl"] .footer-custom {
    text-align: right;
}

html[dir="rtl"] .footer-desc {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

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

html[dir="rtl"] .footer-title::after {
    right: 0 !important;
    left: auto !important;
}

html[dir="rtl"] .footer-links-list li {
    text-align: right;
}

html[dir="rtl"] .footer-links-list li a:hover {
    padding-left: 0 !important;
    padding-right: 8px !important;
}

html[dir="rtl"] .footer-social-links {
    justify-content: flex-start;
}

/* Mockup in RTL */
html[dir="rtl"] .erp-container {
    direction: rtl;
}

html[dir="rtl"] .erp-sidebar {
    border-left: 1px solid #e2e8f0 !important;
    border-right: none !important;
}

html[dir="rtl"] .erp-plus-float {
    left: 16px !important;
    right: auto !important;
}

/* WhatsApp in RTL */
html[dir="rtl"] .whatsapp-float {
    left: 30px !important;
    right: auto !important;
}

/* ==========================================================================
   Hero Interactive Mockup & Real Screenshot Showcase
   ========================================================================== */
.browser-tabs-bar {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 12px 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.browser-tabs-bar::-webkit-scrollbar {
    display: none;
}

.browser-tab-btn {
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.browser-tab-btn:hover {
    color: var(--primary);
    background: rgba(226, 232, 240, 0.7);
}

.browser-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    border-color: #cbd5e1;
    border-bottom-color: #ffffff;
    margin-bottom: -1px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
    font-weight: 750;
}

.browser-tab-btn i {
    font-size: 0.85rem;
    color: #65a30d;
}

.mockup-display-area {
    position: relative;
    background: #ffffff;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .mockup-display-area {
        min-height: 420px;
    }
}

@media (min-width: 1600px) {
    .mockup-display-area {
        min-height: 460px;
    }
}

.mockup-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    width: 100%;
    height: 100%;
}

.mockup-slide.active {
    display: block;
    opacity: 1;
}

.screenshot-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    overflow: hidden;
    background: #ffffff;
}

.screenshot-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-wrapper:hover .screenshot-real-img {
    transform: scale(1.02);
}

.screenshot-live-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}

html[dir="rtl"] .screenshot-live-tag {
    right: auto;
    left: 14px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.screenshot-hover-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(22, 42, 82, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(142, 198, 65, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
}

.screenshot-wrapper:hover .screenshot-hover-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Portfolio Zoom Overlay */
.portfolio-img-container {
    cursor: zoom-in;
    position: relative;
}

.portfolio-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(22, 42, 82, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 14px;
}

.portfolio-img-container:hover .portfolio-zoom-hint {
    opacity: 1;
}

/* Lightbox Modal */
.glassmorphic-modal {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(22, 42, 82, 0.1);
    box-shadow: 0 25px 80px -15px rgba(22, 42, 82, 0.35);
    overflow: hidden;
}

.glassmorphic-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 22px;
}

.glassmorphic-modal .modal-title {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 750;
}

.glassmorphic-modal .modal-body {
    background: #090d16;
    padding: 18px !important;
}

.glassmorphic-modal #lightboxModalImg {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #ffffff;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* ==========================================================================
   Phone Numbers Strict LTR BiDi Alignment
   ========================================================================== */
a[href^="tel:"],
.contact-detail-val[href^="tel:"],
.text-ltr,
[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .contact-detail-val[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
    text-align: right;
}



