 :root {
            --bg-color: #0d1117;
            --card-bg: #161b22;
            --text-color: #c9d1d9;
            --text-bright: #f0f6fc;
            --accent-color: #58a6ff;
            --accent-purple: #8a2be2;
            --accent-purple-light: #9d4edd;
            --accent-success: #238636;
            --border-color: #30363d;
            --whatsapp-color: #25d366;
            --call-color: #007bff;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
        body { background-color: var(--bg-color); color: var(--text-color); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.6; width: 100%; overflow-x: hidden; }

        .section-wrapper { width: 100%; padding: 5rem 5%; }
        .section-wrapper.alt-bg { background-color: #12161f; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
        .container { max-width: 1400px; margin: 0 auto; width: 100%; }

        header { position: fixed; top: 0; width: 100%; background-color: rgba(13, 17, 23, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; }
        .nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
        .logo { font-size: 1.4rem; font-weight: 700; color: var(--text-bright); text-decoration: none; letter-spacing: 0.5px; }
        .logo span { color: var(--accent-color); }
        nav { display: flex; gap: 1.5rem; }
        nav a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s; }
        nav a:hover { color: var(--accent-color); }

        .section-title { font-size: 2.2rem; color: var(--text-bright); margin-bottom: 0.5rem; text-align: center; position: relative; }
        .section-subtitle { text-align: center; color: var(--text-color); margin-bottom: 3rem; font-size: 1.1rem; }
        .section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--accent-color); margin: 10px auto 0 auto; border-radius: 2px; }

        .btn { display: inline-block; background-color: var(--accent-color); color: #ffffff; padding: 0.85rem 1.8rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
        .btn:hover { opacity: 0.9; transform: translateY(-2px); }
        .btn-purple { background-color: var(--accent-purple); }
        .btn-purple:hover { background-color: var(--accent-purple-light); }
        .btn-outline { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-bright); margin-left: 0.75rem; }
        .btn-outline:hover { border-color: var(--accent-color); color: var(--accent-color); }

        .hero { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 85vh; padding-top: 8rem; }
        .hero h1 { font-size: 3.2rem; color: var(--text-bright); margin-bottom: 1rem; line-height: 1.2; max-width: 900px; }
        .hero h1 span { color: var(--accent-color); }
        .hero p { font-size: 1.25rem; max-width: 750px; margin-bottom: 2rem; }

        .slider-container { width: 100%; max-width: 1100px; height: 450px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 2.5rem; position: relative; box-shadow: 0 12px 35px rgba(0,0,0,0.6); }
        .slider-wrapper { display: flex; width: 300%; height: 100%; transition: transform 0.8s ease-in-out; }
        .slide { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; }
        .slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(13, 17, 23, 0.95)); color: var(--text-bright); padding: 1.5rem; font-size: 1.2rem; font-weight: 600; }

        .saas-banner { background: linear-gradient(135deg, #090c10 0%, #16102b 100%); border: 1px solid var(--accent-purple); border-radius: 16px; padding: 3rem 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; box-shadow: 0 15px 40px rgba(138, 43, 226, 0.15); }
        .saas-tag { background-color: rgba(138, 43, 226, 0.2); color: var(--accent-purple-light); padding: 0.35rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 1rem; border: 1px solid var(--accent-purple); }
        .saas-content h2 { font-size: 2.4rem; color: var(--text-bright); margin-bottom: 1rem; line-height: 1.2; }
        .saas-content p { font-size: 1.05rem; margin-bottom: 1.5rem; color: var(--text-color); }
        .saas-features-list { list-style: none; margin-bottom: 2rem; }
        .saas-features-list li { margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
        .saas-features-list li::before { content: '✓'; color: var(--accent-purple-light); font-weight: bold; }
        .saas-preview-box { background-color: #0b0d14; border-radius: 12px; border: 1px solid var(--border-color); padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.7); }
        .saas-preview-header { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
        .dot { width: 10px; height: 10px; border-radius: 50%; }
        .dot-red { background-color: #ff5f56; } .dot-yellow { background-color: #ffbd2e; } .dot-green { background-color: #27c93f; }
        .saas-mock-cart { background-color: #12151f; border-radius: 8px; padding: 1.25rem; font-family: monospace; }
        .cart-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
        .cart-total { border-top: 1px dashed var(--border-color); padding-top: 0.75rem; margin-top: 0.75rem; font-weight: bold; color: var(--accent-color); }
        .zatca-badge { background-color: rgba(35, 134, 54, 0.2); border: 1px solid var(--accent-success); color: #56d364; padding: 0.5rem 1rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin-top: 1rem; }

        .grid, .blog-grid, .mvp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
        .mvp-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
        .card, .mvp-card, .blog-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s, border-color 0.3s; }
        .card:hover, .blog-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
        .card h3, .mvp-card h3, .blog-card h3 { color: var(--text-bright); font-size: 1.3rem; margin-bottom: 0.75rem; }
        .card p, .mvp-card p, .blog-card p { font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
        .card-link { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.3rem; }
        .card-link:hover { text-decoration: underline; }

        .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
        .tag { background-color: rgba(88, 166, 255, 0.1); color: var(--accent-color); font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 4px; font-weight: 600; }

        .mvp-card { text-align: left; padding: 1.75rem; }
        .mvp-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 1rem; }

        .services-list { max-width: 900px; margin: 0 auto; }
        .service-item { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 1.25rem 1.75rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: center; }
        .service-item strong { color: var(--text-bright); margin-right: 0.5rem; }

        .blog-card { padding: 0; overflow: hidden; }
        .blog-card-body { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .blog-date { font-size: 0.8rem; color: var(--accent-color); margin-bottom: 0.5rem; }
        .blog-link { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-top: 1rem; display: inline-block; }
        .blog-link:hover { text-decoration: underline; }

        .article-wrapper { max-width: 850px; margin: 0 auto; padding-top: 8rem; padding-bottom: 4rem; }
        .article-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; }
        .article-title { font-size: 2.5rem; color: var(--text-bright); line-height: 1.3; margin-bottom: 1rem; }
        .article-meta { color: var(--accent-color); font-size: 0.95rem; display: flex; gap: 1.5rem; }
        .article-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-color); }
        .article-body p { margin-bottom: 1.5rem; }
        .article-body h3 { color: var(--text-bright); font-size: 1.5rem; margin: 2rem 0 1rem 0; }
        .article-body ul { margin: 0 0 1.5rem 1.5rem; }
        .article-body li { margin-bottom: 0.5rem; }
        .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-color); text-decoration: none; margin-bottom: 2rem; font-weight: 500; }
        .back-link:hover { color: var(--accent-color); }

        .contact-container { max-width: 700px; margin: 0 auto; background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 10px; }
        .form-group { margin-bottom: 1.25rem; }
        .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-bright); font-weight: 500; }
        .form-control { width: 100%; padding: 0.85rem; background-color: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-bright); border-radius: 6px; font-family: inherit; font-size: 1rem; }
        .form-control:focus { outline: none; border-color: var(--accent-color); }
        .checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
        .checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; }
        .alert-success { background-color: rgba(35, 134, 54, 0.15); border: 1px solid var(--accent-success); color: #56d364; padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; text-align: center; }

        .floating-widget { position: fixed; bottom: 25px; right: 25px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
        .widget-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; }
        .widget-btn:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.6); }
        .widget-btn.whatsapp { background-color: var(--whatsapp-color); }
        .widget-btn.call { background-color: var(--call-color); }
        .widget-btn svg { width: 24px; height: 24px; fill: currentColor; }

        footer { text-align: center; padding: 2.5rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; }

        @media (max-width: 992px) { .saas-banner { grid-template-columns: 1fr; } }
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.2rem; }
            nav { display: none; }
            .checkbox-group { grid-template-columns: 1fr; }
            .slider-container { height: 240px; }
            .btn-outline { margin-left: 0; margin-top: 0.75rem; display: block; }
            .article-title { font-size: 2rem; }
        }
        /* Clickable Portfolio Card with Background Image */
a.card-bg-image {
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark gradient overlay for text legibility over screenshots */
a.card-bg-image.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.7) 0%, rgba(13, 17, 23, 0.95) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Hover state: slight card lift and image brightness boost */
a.card-bg-image:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

a.card-bg-image.has-bg:hover::before {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.5) 0%, rgba(13, 17, 23, 0.92) 100%);
}

/* Ensure card text and tags remain above the background overlay */
.card-content, .card-footer {
    position: relative;
    z-index: 2;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}
/* Embedded Handbill Card Styles */
.handbill-card {
    width: 100%;
    max-width: 720px; /* Expanded slightly to accommodate larger fonts */
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 40px;
    color: #24292e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.handbill-logo { 
    font-size: 2.6rem; /* Increased from 2.2rem */
    font-weight: 800; 
    color: #0d1117; 
    letter-spacing: -0.5px; 
}

.handbill-tagline { 
    color: #57606a; 
    font-size: 1.15rem; /* Increased from 0.95rem */
    margin-top: 6px; 
    font-weight: 500; 
}

.h-badge { 
    background: rgba(138, 43, 226, 0.1); 
    border: 1px solid #8a2be2; 
    color: #6f42c1; 
    font-size: 0.9rem; /* Increased from 0.75rem */
    padding: 6px 14px; 
    border-radius: 20px; 
    font-weight: 600; 
}

.handbill-box-title { 
    font-size: 1.3rem; /* Increased from 1.1rem */
    color: #0d1117; 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 700; 
}

.handbill-box p { 
    font-size: 1.05rem; /* Increased from 0.9rem */
    color: #57606a; 
    line-height: 1.6; 
    margin-top: 4px; 
}

.handbill-list li { 
    font-size: 1.02rem; /* Increased from 0.88rem */
    color: #24292e; 
    margin-bottom: 6px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.handbill-contact h4 { 
    color: #0d1117; 
    font-size: 1.25rem; /* Increased from 1.1rem */
    margin-bottom: 10px; 
}

.contact-line { 
    font-size: 1.05rem; /* Increased from 0.9rem */
    margin-bottom: 8px; 
    color: #57606a; 
}

.cta-btn { 
    font-size: 1rem; /* Increased from 0.85rem */
    padding: 10px 20px; 
}

.qr-label { 
    font-size: 0.8rem; /* Increased from 0.7rem */
}
/* Language Switcher Button */
.lang-switch-btn {
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid #007bff;
    color: #007bff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/* Global RTL Adjustments */
html[dir="rtl"] body {
    text-align: right;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] .handbill-box,
html[dir="rtl"] .handbill-footer,
html[dir="rtl"] .handbill-contact {
    text-align: right;
}

html[dir="rtl"] .handbill-list li::before {
    margin-left: 8px;
    margin-right: 0;
}

/* Prevent phone numbers from reversing in RTL */
[dir="ltr"] {
    unicode-bidi: embed;
}
