:root {
    /* Tradelix — vivid neon (deep violet base + electric fuchsia + cyan) */
    --bg-deep: #12041f;
    --bg-dark: #1a0b2e;
    --bg-muted: #2a1248;
    --bg-card: #361863;
    --bg-elevated: #4a2085;
    --bg-input: #5c2e9e;
    --bg-deep-rgb: 18, 4, 31;
    --header-bg: rgba(26, 11, 46, 0.9);
    --mega-bg: rgba(32, 14, 58, 0.98);
    --bar-bg: rgba(26, 11, 46, 0.94);
    --accent: #f0abfc;
    --accent-strong: #e879f9;
    --accent-bright: #fdf4ff;
    --accent-2: #22d3ee;
    --accent-glow: rgba(232, 121, 249, 0.38);
    --accent-rgb: 232, 121, 249;
    --accent-strong-rgb: 217, 70, 239;
    --accent-2-rgb: 34, 211, 238;
    --violet-bright-rgb: 192, 132, 252;
    --text-main: #ffffff;
    --text-muted: #e9d5ff;
    --border-color: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --fs-body: 16px;
    --fs-body-mobile: 15px;
    --fs-small: 0.92rem;
    --fs-h1: clamp(2rem, 5vw, 4rem);
    --fs-h2: clamp(1.55rem, 3.2vw, 2.55rem);
    --fs-h3: clamp(1.1rem, 2.2vw, 1.45rem);
    --header-h: 80px;
    --mobile-bottom-nav-h: 3.65rem;
}

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

html {
    height: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (max-width: 1024px) {
    html.has-mobile-bottom-nav {
        scroll-padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    }
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 110% 70% at 50% -20%, rgba(var(--accent-rgb), 0.2), transparent 58%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(var(--accent-2-rgb), 0.14), transparent 45%);
    color: var(--text-main);
    font-family: var(--font-secondary);
    font-size: var(--fs-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-top: var(--header-h);
}

/* Default anchors — avoid browser blue / system tint on mailto (especially mobile) */
a:link,
a:visited {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, .font-bold {
    font-family: var(--font-primary);
    font-weight: 700;
}

main p,
main li,
main label,
main input,
main textarea,
main button {
    font-size: var(--fs-small);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Particle Simulation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.32;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrap {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

header:has(.nav-links--minimal) .nav-wrap {
    justify-content: flex-start;
    gap: 0.85rem;
}

header:has(.nav-links--minimal) .lang-toggle {
    margin-inline-start: auto;
    margin-right: 0;
}

body.rtl header:has(.nav-links--minimal) .lang-toggle {
    margin-inline-start: 0;
    margin-inline-end: auto;
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.cta-btn {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 45%, var(--accent-2) 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 20px rgba(var(--accent-strong-rgb), 0.5);
    text-shadow: 0 1px 2px rgba(15, 5, 24, 0.35);
}

.cta-btn:hover {
    filter: brightness(1.06) saturate(1.08);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.55);
}

/* Mega Menu — Dark Theme */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--mega-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
}

.mega-menu-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.mega-sidebar {
    width: 28%;
    background: rgba(54, 24, 99, 0.55);
    padding: 3rem;
    border-right: 1px solid var(--border-color);
}

.mega-sidebar h3 { font-size: 2rem; color: #fff; margin-bottom: 1.5rem; }
.mega-sidebar h3 span { color: var(--accent); }
.mega-sidebar p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.mega-sidebar p a { color: #ffffff; text-decoration: underline; font-weight: 600; }

.models-list { list-style: none; margin-bottom: 3rem; }
.models-list li { margin-bottom: 1rem; }
.models-list a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; transition: color 0.2s; }
.models-list a:hover { color: var(--accent); }

.mega-case-mini { border-top: 1px solid var(--border-color); padding-top: 2rem; margin-top: auto; }
.rr-logo { font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px; margin-bottom: 1rem; }
.rr-logo span { font-size: 0.7rem; vertical-align: top; }
.mega-case-mini p { font-size: 0.85rem; }
.mega-case-mini p a { color: #ffffff; }

.mega-main { flex: 1; padding: 3rem 4rem; }
.mega-main-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.mega-main-col h6 { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.mega-main-col h6::before { content: ''; width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.mega-main-col ul { list-style: none; }
.mega-main-col ul li { margin-bottom: 0.8rem; }
.mega-main-col ul a { color: #ffffff; text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.45; transition: color 0.2s; }
.mega-main-col ul a:hover { color: var(--accent); }

.view-all-link { display: inline-flex; margin-top: 2rem; color: #ffffff; text-decoration: none; font-weight: 800; font-size: 1rem; line-height: 1.45; align-items: center; gap: 10px; }
.view-all-link:hover { text-decoration: underline; }

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nav Item Hover State */
.nav-links li a {
    position: relative;
    padding: 10px 0;
}

.nav-links li.has-mega-menu:hover > a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-2);
}
/* Mobile Navigation Styling */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Header Responsive Logic */
@media (max-width: 1024px) {
    :root {
        --header-h: 76px;
    }

    main {
        padding-top: calc(var(--header-h) + 18px);
    }

    .mobile-toggle { display: flex; }
    .nav-wrap {
        gap: 0.75rem;
        min-height: var(--header-h);
        height: auto;
        align-items: center;
    }

    /* App bar reading order: brand | [spacer] | language | menu */
    .logo-text {
        order: 1;
        flex-shrink: 0;
    }
    body:not(.rtl) .lang-toggle {
        order: 2;
        margin-inline-start: auto;
        margin-right: 0;
        margin-inline-end: 0.35rem;
    }
    body.rtl .lang-toggle {
        order: 2;
        margin-inline-start: 0.35rem;
        margin-inline-end: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .mobile-toggle {
        order: 3;
        flex-shrink: 0;
    }
    body.rtl .mobile-toggle {
        margin-inline-end: auto;
    }
    #nav-container {
        order: 10;
    }
    .nav-wrap > .cta-btn {
        order: 4;
    }
    
    #nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        z-index: 1002;
        background: var(--bg-dark);
        padding: 100px 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    #nav-container.active { right: 0; }

    /* Single About link — keep nav in the bar (no slide-out drawer) */
    #nav-container:has(.nav-links--minimal) {
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        z-index: auto;
        padding: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        background: transparent !important;
        transition: none !important;
    }

    #nav-container:has(.nav-links--minimal).active {
        right: auto !important;
    }

    header:has(.nav-links--minimal) .mobile-toggle {
        display: none !important;
    }

    #nav-container:has(.nav-links--minimal) .nav-links {
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
    }

    #nav-container:has(.nav-links--minimal) .nav-links li {
        width: auto;
    }

    #nav-container:has(.nav-links--minimal) .nav-links a {
        display: inline;
        width: auto;
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        line-height: 1.2;
    }

    header:has(.nav-links--minimal) .logo-text,
    header:has(.nav-links--minimal) #nav-container:has(.nav-links--minimal),
    header:has(.nav-links--minimal) .lang-toggle,
    header:has(.nav-links--minimal) .nav-wrap > .cta-btn {
        order: unset;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-links a { font-size: 1.2rem; }
    #nav-container .nav-links li {
        width: 100%;
    }
    #nav-container .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        line-height: 1.3;
        white-space: normal;
    }

    .has-mega-menu > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.75rem;
    }

    .has-mega-menu > a i.fa-chevron-down {
        flex-shrink: 0;
        font-size: 0.95rem;
        padding: 0.5rem;
        border-radius: 999px;
        border: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.04);
        line-height: 1;
        cursor: pointer;
    }

    .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 1rem 0;
        background: transparent;
        border-bottom: none;
    }

    .mega-menu-inner {
        display: block;
    }

    .mega-sidebar,
    .mega-main {
        width: 100%;
        padding: 1rem 0;
        border-right: none;
        background: transparent;
    }

    .mega-sidebar {
        display: none;
    }

    .mega-main-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .has-mega-menu.active .mega-menu { display: block; }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mega-featured { display: none; }
    
    .cta-btn { display: none; } /* Hide in nav-wrap, put in nav-container */

    #nav-container .cta-btn {
        display: block;
        margin-top: 2rem;
        text-align: center;
    }
}

/* Narrow phones: prevent wide grids from forcing horizontal scroll */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-grid,
    .case-studies-grid,
    .ai-capabilities-grid,
    .capabilities-grid-detailed,
    .services-lists-grid,
    .more-cases-grid,
    .testimonial-grid-detailed,
    .featured-case-study,
    .tech-stack-grid,
    .tools-grid-detailed {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-padding {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .trust-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .acceleration {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
        margin: 2rem 0;
    }
}

/* AI Page Specific Styling */
.tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero.ai-hero {
    background: radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 40%);
}

.contact-card-hero {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 48px rgba(8, 12, 24, 0.45);
}

.contact-card-hero h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-card-hero form {
    display: grid;
    gap: 1.2rem;
}

.contact-card-hero input, .contact-card-hero textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
}

.stats-mini {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.mini-stat {
    display: flex;
    flex-direction: column;
}

.mini-stat .val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.mini-stat .lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* AI Capabilities */
.ai-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.ai-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.ai-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.ai-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Testimonial */
.testimonial-section {
    padding: 8rem 0;
}

.testimonial-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 0;
    margin-bottom: 2rem;
}

.quote-text {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.author-info {
    text-align: left;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* AI Case Study Cards */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.case-card-ai {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.case-meta {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.case-tech span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.tech-category h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-icons span {
    background: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* FAQ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Backend Page Specific Styling */
.expert-card-featured {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: grid;
    gap: 2rem;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.expert-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.expert-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.expert-stats .exp-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.expert-prev {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expert-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.expert-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.expert-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.expert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.expert-skills span {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Capabilities Grid */
.capabilities-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cap-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cap-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Backend Cases */
.backend-cases {
    display: grid;
    gap: 3rem;
}

.b-case {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.b-case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.b-case-header .category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-row span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.featured-b-case {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 2px solid var(--accent);
}

.case-stats-row {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cs-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--accent);
}

.cs-stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Process Steps */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.p-step {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.p-step span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -1.5rem;
}

.p-step h6 {
    position: relative;
    font-size: 1rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .case-stats-row { gap: 2rem; flex-direction: column; }
}

/* Home: first screen fills the viewport (under fixed header), app-style */
body[data-page="home"] .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    padding-block: 2rem 2.75rem;
    box-sizing: border-box;
}

body[data-page="home"] .hero > .container {
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--accent-strong) 0%, var(--accent) 42%, var(--accent-bright) 78%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    opacity: 0.6;
    filter: grayscale(1);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Services */
.section-padding { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card h3,
.ai-service-item h4,
.mini-case h3,
.mini-case h4,
.case-card-ai h3,
.b-case h3 {
    font-size: var(--fs-h3);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

/* Detailed Services Styling */
.featured-case-study {
    background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 5rem;
    border: 1px solid var(--border-color);
}

.case-study-content {
    padding: 4rem;
}

.client-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.case-study-content h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.case-study-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.read-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s, color 0.2s;
}

.read-more:hover { gap: 15px; color: var(--accent); }

.case-study-image {
    background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.42), transparent 45%),
                radial-gradient(circle at 70% 80%, rgba(var(--accent-2-rgb), 0.32), transparent 40%),
                linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
    opacity: 0.95;
}

.services-lists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.column-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    display: inline-block;
}

.detailed-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.detailed-list li {
    padding: 0;
    margin: 0;
}

a.detailed-list-link {
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    cursor: pointer;
}

a.detailed-list-link i {
    width: 20px;
    color: var(--accent);
    text-align: center;
    flex-shrink: 0;
}

a.detailed-list-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.view-all {
    display: inline-block;
    margin-top: 2rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all:hover {
    color: var(--accent);
}

@media (max-width: 992px) {
    .featured-case-study, .services-lists-grid {
        grid-template-columns: 1fr;
    }
    .detailed-list {
        grid-template-columns: 1fr;
    }
    .case-study-image {
        height: 200px;
    }
}
.acceleration {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
    border-radius: 24px;
    padding: 5rem;
    margin: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.accel-content { flex: 1; }
.accel-visual { flex: 1; position: relative; }

/* Contact Section */
.contact-section {
    background: var(--bg-card);
    padding: 80px 0;
    border-radius: 24px 24px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input, .input-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-secondary);
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* Footer */
.site-footer,
footer {
    flex-shrink: 0;
    padding: 4.25rem 0 2.65rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 50%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-grid--main {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 3rem 3.5rem;
    align-items: start;
}

.footer-brand-lockup {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.footer-brand-img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px;
    box-sizing: border-box;
}

.footer-brand-lockup__text {
    min-width: 0;
}

.footer-col--brand .footer-brand {
    margin-bottom: 0.65rem;
}

.footer-tagline {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.68;
    max-width: 28rem;
    margin: 0;
}

.footer-heading {
    margin: 0 0 1.15rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-main);
}

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

.footer-list li {
    margin-bottom: 0.65rem;
}

.footer-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s;
    line-height: 1.45;
}

.footer-list a:hover {
    color: var(--accent);
}

.footer-col--location .footer-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 0.85rem;
}

.footer-email-row {
    margin: 0 0 0.5rem;
}

/* Email links — white (avoid mobile blue tint on mailto) */
a[href^="mailto:"] {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    -webkit-text-fill-color: #ffffff;
}

a[href^="mailto:"]:hover {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.footer-email {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    -webkit-text-fill-color: #ffffff;
}

.footer-email:hover {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.footer-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin: 0 0 1rem;
}

.footer-map-embed {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    aspect-ratio: 16 / 11;
    max-height: 268px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
}

.footer-map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-map-external {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.footer-map-external:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* Floating X — rounded rectangle, clear geometric X mark, gold plate */
.social-float-x,
.social-float-x:link,
.social-float-x:visited {
    position: fixed;
    top: 50%;
    left: auto;
    right: auto;
    inset-inline-end: 0.85rem;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.55rem;
    margin: 0;
    transform: translateY(-50%);
    border: 2px solid rgba(120, 74, 8, 0.9);
    border-radius: 18px;
    background: linear-gradient(155deg, #a67420 0%, #d4a03a 32%, #f0c85a 58%, #ffe9a8 100%);
    box-shadow:
        0 6px 28px rgba(212, 165, 60, 0.5),
        0 2px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(120, 74, 8, 0.25);
    color: #140a02;
    -webkit-text-fill-color: #140a02;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.social-float-x__plate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Bold “X” from two crossed bars */
.social-float-x__x {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.social-float-x__x::before,
.social-float-x__x::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.22rem;
    height: 1.45rem;
    margin-left: -0.11rem;
    margin-top: -0.725rem;
    background: #0a0503;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.social-float-x__x::before {
    transform: rotate(45deg);
}

.social-float-x__x::after {
    transform: rotate(-45deg);
}

.social-float-x:hover,
.social-float-x:link:hover,
.social-float-x:visited:hover {
    filter: brightness(1.07) saturate(1.06);
    transform: translateY(-50%) scale(1.04);
    box-shadow:
        0 8px 32px rgba(245, 210, 120, 0.55),
        0 3px 14px rgba(0, 0, 0, 0.42),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(120, 74, 8, 0.2);
}

.social-float-x:focus-visible {
    outline: 3px solid #fff4c8;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .social-float-x,
    .social-float-x:link,
    .social-float-x:visited {
        top: auto;
        bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 2.85rem);
        transform: none;
        inset-inline-end: 0.75rem;
        padding: 0.42rem 0.48rem;
    }

    .social-float-x__plate {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 12px;
    }

    .social-float-x__x {
        width: 1.2rem;
        height: 1.2rem;
    }

    .social-float-x__x::before,
    .social-float-x__x::after {
        height: 1.28rem;
        margin-top: -0.64rem;
    }

    .social-float-x:hover,
    .social-float-x:link:hover,
    .social-float-x:visited:hover {
        transform: scale(1.05);
    }
}

.footer-bottom {
    margin-top: 3.15rem;
    padding-top: 1.65rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-dot {
    opacity: 0.45;
    user-select: none;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul a:hover { color: var(--accent); }

/* Cookie consent */
#cookie-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    background: var(--mega-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.cookie-consent-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.cookie-consent-inner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.cookie-consent-inner p a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-inner p a:hover {
    color: var(--accent);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    color: white;
    background: var(--bg-elevated);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
}

/* Mobile bottom tab bar (app-style) */
@media (max-width: 1024px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav #cookie-consent-banner {
        bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 0.45rem);
    }
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1600;
        justify-content: space-around;
        align-items: stretch;
        gap: 0.15rem;
        min-height: var(--mobile-bottom-nav-h);
        padding: 0.28rem 0.35rem calc(0.28rem + env(safe-area-inset-bottom, 0px));
        margin: 0;
        list-style: none;
        background: var(--header-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.42);
    }

    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.2rem 0.15rem;
        border-radius: 10px;
        color: var(--text-muted);
        font-size: 0.62rem;
        font-weight: 700;
        font-family: var(--font-primary);
        letter-spacing: 0.02em;
        text-decoration: none;
        text-transform: uppercase;
        line-height: 1.15;
        transition: color 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav__item i {
        font-size: 1.05rem;
        opacity: 0.92;
        color: inherit;
    }

    .mobile-bottom-nav__item span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus-visible {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.06);
        outline: none;
    }

    .mobile-bottom-nav__item.is-active {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.12);
    }

    .mobile-bottom-nav__item.is-active i {
        color: var(--accent);
    }
}

.checkout-payments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.checkout-pay-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 0.85rem;
}

.checkout-pay-item input {
    accent-color: var(--accent);
}

.payment-details-panel {
    display: none;
    margin-top: 0.6rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.payment-details-panel.is-active {
    display: block;
}

.checkout-note {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.checkout-legal-note {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.checkout-legal-note a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.checkout-legal-note a:hover {
    color: var(--accent);
}

/* Home — policy shortcut buttons */
.hero-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.hero-legal-links--below-hero {
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}

.btn-legal-outline--compact {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
}

.home-legal-cta {
    padding: 2.5rem 0 3.5rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(var(--bg-deep-rgb), 0.35) 0%, rgba(var(--accent-rgb), 0.08) 100%);
}

.home-legal-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.home-legal-cta__panel {
    padding: 2rem 1.5rem 2.25rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.home-legal-cta__title {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--text-main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-legal-cta__lead {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.home-legal-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
}

a.btn-legal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.35rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

a.btn-legal-outline i {
    color: var(--accent);
    font-size: 1rem;
}

a.btn-legal-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-2px);
}

body.rtl .home-legal-cta__title {
    letter-spacing: 0;
    text-transform: none;
}

.footer-legal-links {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-legal-links span {
    margin: 0 0.35rem;
    opacity: 0.65;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 45%, var(--accent-2) 100%);
    border-color: transparent;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(15, 5, 24, 0.35);
}

.bot-trap-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Full AI Page Styling Updates */
.tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.clutch-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.clutch-logo {
    background: #e11d48;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 800;
    border-radius: 4px;
}

.star-row i { color: #f59e0b; margin-right: 2px; }

.reviews { font-size: 0.85rem; color: var(--text-muted); }

.hero-contact-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-contact-card h3 { margin-bottom: 0.5rem; }
.hero-contact-card p { margin-bottom: 2rem; color: var(--text-muted); font-size: 0.9rem; }

.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 6px;
    color: white;
}

.trusted-by-logos { margin-top: 5rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.logo-row { display: flex; flex-wrap: wrap; gap: 3rem; opacity: 0.5; font-weight: 700; margin-top: 1rem; }

/* AI Detailed Grid */
.ai-services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ai-service-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s;
}

.ai-service-item:hover { transform: translateY(-5px); }
.ai-service-item h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.ai-service-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.ai-service-item p a[href^="mailto:"] {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* Dynamic visual system (applies across all pages) */
.section-visual {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin: 0.85rem auto 0;
    min-height: 190px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.card-visual {
    width: 100%;
    height: 115px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    background-size: cover;
    background-position: center;
    opacity: 0.98;
    position: relative;
    overflow: hidden;
}

/* Placeholder panels (gradient + icon) on service pages — inline min-heights are overridden below */
.case-image {
    box-sizing: border-box;
    flex-shrink: 0;
}

.section-visual::after,
.card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, hsla(var(--v-h, 292), 92%, 62%, var(--v-o1, 0.26)), transparent 45%),
        radial-gradient(circle at 80% 75%, hsla(var(--v-h2, 188), 90%, 58%, var(--v-o2, 0.22)), transparent 48%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.visual-tech {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.32), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-tech.svg'),
        radial-gradient(circle at 18% 28%, rgba(var(--accent-2-rgb), 0.48), transparent 40%),
        radial-gradient(circle at 85% 72%, rgba(var(--violet-bright-rgb), 0.38), transparent 38%),
        linear-gradient(140deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}

.visual-cloud {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.34), rgba(var(--bg-deep-rgb), 0.46)),
        url('assets/images/visual-cloud.svg'),
        radial-gradient(circle at 75% 20%, rgba(var(--accent-2-rgb), 0.4), transparent 35%),
        radial-gradient(circle at 24% 78%, rgba(96, 165, 250, 0.34), transparent 32%),
        linear-gradient(145deg, var(--bg-muted) 0%, var(--bg-deep) 100%);
}

.visual-mobile {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.28), rgba(var(--bg-deep-rgb), 0.5)),
        url('assets/images/visual-mobile.svg'),
        radial-gradient(circle at 50% 10%, rgba(var(--accent-rgb), 0.4), transparent 30%),
        radial-gradient(circle at 15% 88%, rgba(var(--accent-2-rgb), 0.3), transparent 35%),
        linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-card) 60%, var(--bg-deep) 100%);
}

.visual-data {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.3), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-data.svg'),
        radial-gradient(circle at 20% 20%, rgba(var(--accent-strong-rgb), 0.45), transparent 33%),
        radial-gradient(circle at 78% 66%, rgba(var(--violet-bright-rgb), 0.32), transparent 35%),
        linear-gradient(155deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}

.visual-team {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.34), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-team.svg'),
        radial-gradient(circle at 82% 22%, rgba(52, 211, 153, 0.38), transparent 35%),
        radial-gradient(circle at 20% 74%, rgba(var(--accent-rgb), 0.3), transparent 38%),
        linear-gradient(130deg, var(--bg-card) 0%, var(--bg-muted) 100%);
}

.visual-delivery {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.3), rgba(var(--bg-deep-rgb), 0.5)),
        url('assets/images/visual-delivery.svg'),
        radial-gradient(circle at 74% 18%, rgba(var(--violet-bright-rgb), 0.32), transparent 30%),
        radial-gradient(circle at 24% 80%, rgba(var(--accent-rgb), 0.4), transparent 40%),
        linear-gradient(145deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}

.visual-frontend {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.3), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-tech.svg'),
        linear-gradient(135deg, var(--bg-card) 0%, var(--bg-muted) 100%);
}

.visual-backend {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.34), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-delivery.svg'),
        linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-deep) 100%);
}

.visual-security {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.36), rgba(var(--bg-deep-rgb), 0.52)),
        url('assets/images/visual-cloud.svg'),
        linear-gradient(140deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}

.visual-enterprise {
    background-image:
        linear-gradient(rgba(var(--bg-deep-rgb), 0.32), rgba(var(--bg-deep-rgb), 0.48)),
        url('assets/images/visual-team.svg'),
        linear-gradient(145deg, var(--bg-muted) 0%, var(--bg-deep) 100%);
}

/* Testimonial Large */
.testimonial-large {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark { font-size: 8rem; color: var(--accent); opacity: 0.1; line-height: 0; margin-bottom: 3rem; }
.quote-content { font-size: 1.8rem; font-weight: 600; line-height: 1.4; margin-bottom: 3rem; }

.author-block { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.author-block img { width: 80px; height: 80px; border-radius: 50%; }
.author-details { text-align: left; }
.btn-video { color: var(--accent); text-decoration: none; font-weight: 700; border: 1px solid var(--accent); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem; }

/* Why Us Section */
.why-tech-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.why-points { display: flex; flex-direction: column; gap: 2.5rem; }
.why-item h5 { font-size: 1.2rem; color: var(--accent); margin-bottom: 0.8rem; }

/* AI Case List */
.ai-case-list { display: flex; flex-direction: column; gap: 6rem; margin-bottom: 6rem; }
.ai-case-item { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.ai-case-item:nth-child(even) { direction: rtl; }
.ai-case-item:nth-child(even) .case-info { direction: ltr; }

.case-cat { color: var(--accent); font-weight: 800; font-size: 0.7rem; letter-spacing: 2px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.tech-tags span { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); padding: 0.4rem 0.8rem; font-size: 0.75rem; border-radius: 4px; }

.more-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mini-case { background: var(--bg-card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); }
.mini-case h6 { color: var(--accent); font-size: 0.75rem; margin-bottom: 0.5rem; }

/* Tools Grid */
.tools-grid-detailed { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.tool-group h5 { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1.5rem; }

/* Testimonial Detailed */
.testimonial-grid-detailed { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.testi-card { background: var(--bg-card); padding: 3rem; border-radius: 16px; border: 1px solid var(--border-color); }
.testi-header { display: flex; justify-content: space-between; margin-bottom: 2rem; color: var(--accent); }
.testi-card .quote { font-size: 1.1rem; font-style: italic; margin-bottom: 2.5rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.testi-author img { width: 50px; height: 50px; border-radius: 50%; }
.testi-metrics { display: flex; gap: 3rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.m-item strong { display: block; color: var(--accent); font-size: 1.5rem; }
.m-item span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* FAQ Full */
.faq-accordion-full { max-width: 900px; margin: 0 auto; }

/* Footer Full */
.footer-grid-full { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border-color); }
.footer-links-col h6 { color: white; margin-bottom: 1.5rem; }
.footer-links-col ul { list-style: none; }
.footer-links-col ul li { margin-bottom: 0.8rem; }
.footer-links-col ul a { color: #ffffff; text-decoration: none; font-size: 0.9rem; }

@media (max-width: 1024px) {
    .why-tech-leaders, .ai-case-item, .footer-grid-full { grid-template-columns: 1fr; }
    .ai-case-item:nth-child(even) { direction: ltr; }

    .ai-case-item {
        gap: 1.5rem;
    }

    .ai-case-list {
        gap: 3rem;
        margin-bottom: 3rem;
    }

    /* Tighter placeholder tiles (overrides inline min-height on many *-services.html pages) */
    .case-image {
        min-height: 168px !important;
        max-height: 240px;
    }

    .case-image i[class*="fa-"] {
        font-size: 3.25rem !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-contact-card {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer-grid--main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Django page refinements */
.logo-cloud {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.logo-cloud > span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.logo-row-tight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo-row-tight div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.toc-card h3 {
    margin-bottom: 1rem;
}

.toc-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 2rem;
}

.toc-card a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.toc-card a:hover {
    color: var(--accent);
}

.testimonial-inline {
    margin-top: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2.5rem;
}

.testimonial-inline .quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.6rem;
}

.testimonial-inline .quote-content {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.center-cta-wrap {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.center-cta-wrap p {
    color: var(--text-muted);
}

.process-mini {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.process-mini h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 992px) {
    .toc-card ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: var(--fs-body-mobile);
    }

    main h1 {
        font-size: clamp(1.55rem, 6.8vw, 2.25rem) !important;
        line-height: 1.2;
    }

    main h2 {
        font-size: clamp(1.3rem, 5.8vw, 1.95rem) !important;
        line-height: 1.25;
    }

    main h3 {
        font-size: clamp(1.05rem, 4.8vw, 1.4rem) !important;
        line-height: 1.3;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-wrap {
        height: 72px;
    }

    #nav-container {
        width: 88%;
        padding: 90px 1.2rem 2rem;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.4rem) !important;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.3rem, 5.8vw, 1.85rem) !important;
    }

    .text-white[style*="font-size:3rem"],
    .text-white[style*="font-size: 3rem"] {
        font-size: clamp(1.35rem, 6.2vw, 2rem) !important;
    }

    .service-card,
    .ai-service-item,
    .hero-contact-card {
        padding: 1.2rem;
    }

    .section-visual {
        min-height: 132px;
        margin-top: 0.65rem;
    }

    .card-visual {
        height: 86px;
        margin-bottom: 0.65rem;
    }

    .case-image {
        min-height: 128px !important;
        max-height: 200px;
    }

    .case-image i[class*="fa-"] {
        font-size: 2.35rem !important;
    }

    .case-study-image {
        height: 160px !important;
    }

    .ai-case-list {
        gap: 2.25rem;
        margin-bottom: 2.25rem;
    }

    .ai-case-item {
        gap: 1.15rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .section-padding {
        padding: 64px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid--main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-map-embed {
        min-height: 220px;
        max-height: 320px;
        aspect-ratio: 16 / 10;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .checkout-payments {
        grid-template-columns: 1fr;
    }

    .testimonial-inline {
        padding: 1.5rem;
    }

    .testimonial-inline .quote-content {
        font-size: 1rem;
    }
}

/* ============================================================
   Bilingual support (Arabic RTL)
   - English is the default (LTR).
   - body.rtl is toggled by i18n.js when Arabic is active.
   - Imports the Cairo font for Arabic typography.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* Language switcher button (lives inside the header next to the CTA) */
.lang-toggle {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-right: 0.75rem;
}
.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}
@media (min-width: 1025px) {
    body.rtl .lang-toggle {
        margin-right: 0;
        margin-left: 0.75rem;
    }
}

/* ===== RTL global ===== */
body.rtl {
    direction: rtl;
    font-family: 'Cairo', 'Open Sans', sans-serif;
}
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl .font-bold,
body.rtl .logo-text {
    font-family: 'Cairo', 'Montserrat', sans-serif;
}

/* The brand mark itself stays Latin to preserve the brand wordmark */
body.rtl .logo-text a,
body.rtl .logo-text span {
    font-family: 'Montserrat', sans-serif;
    direction: ltr;
    unicode-bidi: isolate;
}

/* Header - keep mobile toggle on the correct side */
body.rtl .nav-wrap {
    direction: rtl;
}
body.rtl .nav-links {
    direction: rtl;
}
body.rtl .nav-links li a i.fa-chevron-down {
    margin-right: 4px;
    margin-left: 0;
}

/* Mega menu RTL */
body.rtl .mega-menu,
body.rtl .mega-menu-inner,
body.rtl .mega-main-grid {
    direction: rtl;
    text-align: right;
}
body.rtl .view-all-link i,
body.rtl .read-more i,
body.rtl .view-all i {
    transform: scaleX(-1);
}

/* Hero / sections */
body.rtl .hero-grid,
body.rtl .contact-grid,
body.rtl .acceleration {
    direction: rtl;
}
body.rtl .hero-text,
body.rtl .about-text,
body.rtl .accel-content,
body.rtl .case-study-content,
body.rtl .section-header {
    text-align: right;
}
body.rtl .section-header {
    text-align: center;
}

/* Stats and lists */
body.rtl .stats-grid,
body.rtl .services-grid,
body.rtl .services-lists-grid,
body.rtl .footer-grid {
    direction: rtl;
}
body.rtl a.detailed-list-link i,
body.rtl .detailed-list li i,
body.rtl ul li i.fas,
body.rtl ul li i.fab {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl a.detailed-list-link:hover {
    transform: translateX(-5px);
}

/* About bullets used inline-style margin-right - override here */
body.rtl .about-text ul li i.fa-check-circle {
    margin-right: 0 !important;
    margin-left: 10px;
}

/* Forms */
body.rtl .input-group,
body.rtl .form-group,
body.rtl .contact-form {
    text-align: right;
}
body.rtl input,
body.rtl textarea,
body.rtl select {
    text-align: right;
}
body.rtl input[type="email"],
body.rtl input[name="card_last4"],
body.rtl input[name="paypal_email"],
body.rtl input[name="wise_email"] {
    direction: ltr;
    text-align: left;
}

/* Footer */
body.rtl footer,
body.rtl .site-footer {
    direction: rtl;
    text-align: right;
}

body.rtl .footer-brand-lockup {
    flex-direction: row-reverse;
}
body.rtl .footer-col h4,
body.rtl .footer-heading {
    text-align: right;
}
body.rtl .footer-bottom {
    flex-direction: row-reverse;
}
body.rtl .footer-legal-links {
    direction: rtl;
}

/* Cookie banner */
body.rtl #cookie-consent-banner,
body.rtl .cookie-consent-inner {
    direction: rtl;
}
body.rtl .cookie-consent-actions {
    flex-direction: row-reverse;
}

/* Pricing cards CTA arrows */
body.rtl .service-card .view-all-link i {
    transform: scaleX(-1);
}

/* FAQ */
body.rtl .faq-item,
body.rtl .faq-question,
body.rtl .faq-answer {
    text-align: right;
}

/* Mobile drawer */
@media (max-width: 1024px) {
    body.rtl #nav-container.active {
        direction: rtl;
    }
}

/* ============================================================
   Machine translation UI cleanup (Google Translate element)
   Keeps full-page auto translation without showing Google bar.
   ============================================================ */
#google_translate_element {
    display: none !important;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-logo-link {
    display: none !important;
}

body {
    top: 0 !important;
}

