/* =================================================================
   DEVINTIME — style.css
   Light / Dark Mode · EN / AR (RTL) · Bootstrap 5
   ================================================================= */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    --primary:        #4f46e5;
    --primary-dark:   #3730a3;
    --primary-light:  #818cf8;
    --secondary:      #7c3aed;
    --accent:         #06b6d4;
    --success:        #10b981;
    --warning:        #f59e0b;
    --danger:         #ef4444;

    /* Light mode surface */
    --bg-body:        #ffffff;
    --bg-section-alt: #f8fafc;
    --bg-card:        #ffffff;
    --bg-dark-sec:    #0f172a;

    /* Light mode text */
    --text-heading:   #0f172a;
    --text-body:      #374151;
    --text-muted:     #64748b;
    --text-dark-sec:  rgba(255,255,255,0.65);

    /* Borders */
    --border:         #e2e8f0;
    --border-card:    #f1f5f9;

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-accent:    linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
    --grad-hero:      linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0a0f1e 100%);
    --grad-stats:     linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0a0f1e 100%);

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(15,23,42,.08);
    --shadow-md:   0 8px 30px rgba(15,23,42,.12);
    --shadow-lg:   0 20px 60px rgba(15,23,42,.15);
    --shadow-glow: 0 8px 40px rgba(79,70,229,.3);

    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 9999px;

    --transition:  all 0.3s ease;
    --font-en:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ar:     'Tajawal', 'Segoe UI', sans-serif;
}

/* ─── Dark Mode Overrides ──────────────────────────────────── */
[data-theme="dark"] {
    --bg-body:        #0a0f1e;
    --bg-section-alt: #111827;
    --bg-card:        #1e293b;
    --border:         #334155;
    --border-card:    #334155;
    --text-heading:   #f1f5f9;
    --text-body:      #cbd5e1;
    --text-muted:     #94a3b8;
    --shadow-md:      0 8px 30px rgba(0,0,0,.4);
    --shadow-lg:      0 20px 60px rgba(0,0,0,.5);
    --shadow-glow:    0 8px 40px rgba(79,70,229,.4);
}

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

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

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; padding: 0; margin: 0; }

.section-padding   { padding: 90px 0; }
.bg-light-section  { background-color: var(--bg-section-alt) !important; }
.bg-dark-section   { background-color: var(--bg-dark-sec)    !important; }

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

/* ─── Section Header ─────────────────────────────────────────── */
.section-header { margin-bottom: 20px; }

.section-tag {
    display: inline-block;
    background: rgba(79,70,229,.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(79,70,229,.2);
    margin-bottom: 14px;
}
.section-tag-light { background: rgba(255,255,255,.1); color: var(--primary-light); border-color: rgba(255,255,255,.15); }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-heading);
    margin-bottom: 14px;
    transition: color 0.25s ease;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.25s ease;
}
.text-muted-light { color: rgba(255,255,255,.6) !important; }

/* ─── Scroll Animations ──────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-right"] { transform: translateX(-36px); }
[data-animate="fade-left"]  { transform: translateX(36px);  }
[data-animate].animated { opacity: 1; transform: translate(0); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 26px;
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79,70,229,.4);
    display: inline-flex;
    align-items: center;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.5); color: #fff; }
.btn-primary-custom:active { transform: translateY(0); }
.navbar .btn-primary-custom { padding: 6px 14px; font-size: .78rem; box-shadow: 0 2px 8px rgba(79,70,229,.35); }

.btn-purple-custom {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-weight: 600;
    font-size: .875rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(124,58,237,.4);
    display: inline-flex;
    align-items: center;
}
.btn-purple-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.5); color: #fff; }

.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: var(--radius-pill);
    padding: 12px 26px;
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline-custom:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }

.btn-outline-purple {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-pill);
    padding: 9px 20px;
    font-weight: 600;
    font-size: .85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline-purple:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }

.btn-white-custom {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-white-custom:hover { background: transparent; color: #fff; transform: translateY(-2px); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; transform: translateY(-2px); }

.btn-product {
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: .83rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-product:hover { transform: translateY(-2px); }

.btn-portfolio {
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    background: #82B540;
    border: 2px solid #82B540;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(130,181,64,.35);
}
.btn-portfolio:hover { background: #6fa02e; border-color: #6fa02e; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(130,181,64,.45); }
[data-theme="dark"] .btn-portfolio { background: #82B540; border-color: #82B540; color: #fff; }

/* ─── NAVBAR ──────────────────────────────────────────────────── */
#mainNav {
    background: transparent;
    padding: 16px 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    z-index: 1050;
}
#mainNav.scrolled {
    background: rgba(10,15,30,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
}
.navbar-logo, .footer-logo { display: block; image-rendering: crisp-edges; }
.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--grad-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
}
.brand-text { color: #fff; }
.brand-accent { color: var(--primary-light); }

.navbar-nav .nav-link {
    color: rgba(255,255,255,.82) !important;
    font-weight: 500;
    font-size: .88rem;
    padding: 8px 13px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.07);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 55%; }

.navbar-toggler { border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; }
.navbar-toggler:focus { box-shadow: none; }

/* Nav controls: theme + lang */
.nav-controls { flex-wrap: nowrap; }

.nav-icon-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.lang-switcher {
    display: flex;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lang-flag { font-size: .95rem; line-height: 1; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-btn.active-lang { background: var(--primary); color: #fff; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: var(--grad-hero);
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.hero-particles span {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(129,140,248,.4);
    border-radius: 50%;
    animation: particle-rise 9s infinite linear;
}
.hero-particles span:nth-child(1)  { left: 8%;  top: 30%; animation-duration:10s; width:6px; height:6px; }
.hero-particles span:nth-child(2)  { left: 22%; top: 65%; animation-duration:8s;  animation-delay:1s; }
.hero-particles span:nth-child(3)  { left: 48%; top: 18%; animation-duration:12s; animation-delay:2s; width:8px; height:8px; }
.hero-particles span:nth-child(4)  { left: 68%; top: 42%; animation-duration:9s;  animation-delay:.5s; }
.hero-particles span:nth-child(5)  { left: 84%; top: 72%; animation-duration:11s; animation-delay:3s; width:5px; height:5px; }
.hero-particles span:nth-child(6)  { left: 14%; top: 80%; animation-duration:10s; animation-delay:1.5s; }
.hero-particles span:nth-child(7)  { left: 38%; top: 38%; animation-duration:8s;  animation-delay:4s; width:3px; height:3px; }
.hero-particles span:nth-child(8)  { left: 58%; top: 82%; animation-duration:13s; animation-delay:2.5s; }
.hero-particles span:nth-child(9)  { left: 90%; top: 22%; animation-duration:9s;  animation-delay:0s; width:5px; height:5px; }
.hero-particles span:nth-child(10) { left: 4%;  top: 52%; animation-duration:11s; animation-delay:3.5s; }

@keyframes particle-rise {
    0%   { transform: translateY(0) rotate(0deg);   opacity:0; }
    10%  { opacity:1; }
    90%  { opacity:.5; }
    100% { transform: translateY(-220px) rotate(360deg); opacity:0; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    line-height: 1.78;
    max-width: 520px;
}

.hero-stats { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.52); font-weight: 500; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.14); align-self: center; }

/* ─── Hero Product Previews ──────────────────────────────────── */
.hero-previews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-preview-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: float-card 5s ease-in-out infinite;
}
.hero-preview-card-2 { animation-delay: -2.5s; }
.hero-preview-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
@keyframes float-card {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hpc-chrome {
    background: rgba(30,30,50,.98);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hpc-chrome-purple { background: rgba(20,10,40,.98); }
.hpc-dots { display: flex; gap: 5px; }
.hpc-dots .d-red    { width:10px; height:10px; border-radius:50%; background:#ff5f57; display:inline-block; }
.hpc-dots .d-yellow { width:10px; height:10px; border-radius:50%; background:#ffbd2e; display:inline-block; }
.hpc-dots .d-green  { width:10px; height:10px; border-radius:50%; background:#28c840; display:inline-block; }
.hpc-title { font-size:.82rem; font-weight:700; color:rgba(255,255,255,.8); flex:1; }
.hpc-tag {
    font-size: 9px; font-weight: 700;
    background: rgba(79,70,229,.25);
    color: var(--primary-light);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}
.hpc-tag-purple { background: rgba(124,58,237,.25); color:#c4b5fd; }

.hpc-img { overflow: hidden; background: #0d1117; }
.hpc-img img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}
.hero-preview-card:hover .hpc-img img { transform: scale(1.03); }

/* Single-card hero variant */
.hero-previews-single { justify-content: center; }
.hero-preview-card-link { display: block; text-decoration: none; }
.hpc-img-tall img {
    height: 420px;
    object-fit: cover;
    object-position: top center;
}

.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { display: block; }
.wave-fill { fill: var(--bg-body); transition: fill 0.25s ease; }

/* ─── PRODUCT CARDS ──────────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(79,70,229,.2);
}
.product-card-purple:hover { box-shadow: 0 8px 40px rgba(124,58,237,.3); border-color: rgba(124,58,237,.2); }

/* Banner image header */
.product-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #0d1117;
}
.product-banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}
.product-card:hover .product-banner-img { transform: scale(1.04); }
.product-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,30,.1) 30%, rgba(10,15,30,.75) 100%);
}
.overlay-purple { background: linear-gradient(to bottom, rgba(30,10,60,.1) 30%, rgba(30,10,60,.75) 100%); }
.product-img-meta {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.product-icon-wrap {
    width: 46px; height: 46px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.4);
}
.icon-purple { background: linear-gradient(135deg,#7c3aed,#a855f7); box-shadow: 0 4px 14px rgba(124,58,237,.4); }
.product-badge {
    background: #fef3c7; color: #92400e;
    font-size: 10px; font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.badge-purple { background: #ede9fe; color: #5b21b6; }

.product-card-body { padding: 22px 24px 26px; }
.product-name { font-size: 1.55rem; font-weight: 800; color: var(--text-heading); margin-bottom: 3px; transition: color 0.25s ease; }
.product-tagline { font-size: .88rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.product-tagline-purple { color: var(--secondary); }
.product-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 14px; transition: color 0.25s ease; }

.feature-item {
    display: flex; align-items: center; gap: 8px;
    font-size: .83rem; color: var(--text-body);
    padding: 4px 0; font-weight: 500;
    transition: color 0.25s ease;
}
.feature-item i { color: var(--primary); font-size: .72rem; flex-shrink: 0; }
.feature-purple i { color: var(--secondary); }

.tech-tag {
    display: inline-block;
    background: var(--bg-section-alt);
    color: var(--text-body);
    font-size: 10px; font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    margin: 0 3px 3px 0;
    transition: background 0.25s ease, color 0.25s ease;
}
.tech-purple { background: rgba(124,58,237,.08); color: var(--secondary); }

/* ─── WHY CARDS ──────────────────────────────────────────────── */
.why-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    height: 100%;
    border: 1px solid var(--border-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.3s ease;
    position: relative; overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card:hover::before { transform: scaleX(1); }

.why-icon-wrap {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}
.why-card:hover .why-icon-wrap { transform: scale(1.08) rotate(-3deg); }
.why-blue   { background: rgba(59,130,246,.12);  color: #3b82f6; }
.why-orange { background: rgba(245,158,11,.12);  color: #f59e0b; }
.why-purple { background: rgba(124,58,237,.12);  color: #7c3aed; }
.why-green  { background: rgba(16,185,129,.12);  color: #10b981; }
.why-cyan   { background: rgba(6,182,212,.12);   color: #06b6d4; }
.why-red    { background: rgba(239,68,68,.12);   color: #ef4444; }
.why-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; transition: color 0.25s ease; }
.why-card p  { font-size: .87rem; color: var(--text-muted); line-height: 1.7; margin: 0; transition: color 0.25s ease; }

/* ─── SERVICES ───────────────────────────────────────────────── */
.service-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: default;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79,70,229,.4);
    box-shadow: 0 8px 30px rgba(79,70,229,.18);
}
.service-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.06); }
.svc-blue   { background: rgba(79,70,229,.15);  color: #818cf8; }
.svc-purple { background: rgba(124,58,237,.15); color: #c4b5fd; }
.svc-green  { background: rgba(16,185,129,.15); color: #6ee7b7; }
.svc-cyan   { background: rgba(6,182,212,.15);  color: #67e8f9; }
.svc-orange { background: rgba(245,158,11,.15); color: #fcd34d; }
.svc-yellow { background: rgba(234,179,8,.15);  color: #fde047; }
.svc-red    { background: rgba(239,68,68,.15);  color: #fca5a5; }
.svc-teal   { background: rgba(20,184,166,.15); color: #5eead4; }
.service-card:hover .svc-blue { background: var(--primary); color: #fff; }

.service-card h5 { font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 7px; }
.service-card p  { font-size: .83rem; color: rgba(255,255,255,.48); line-height: 1.65; margin: 0; }
.service-arrow {
    position: absolute; bottom: 18px; right: 20px;
    color: rgba(255,255,255,.15); font-size: .85rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-arrow { color: var(--primary-light); transform: translateX(4px); }

[dir="rtl"] .service-arrow { right: auto; left: 20px; }
[dir="rtl"] .service-card:hover .service-arrow { transform: translateX(-4px); }

/* ─── SCREENSHOT CAROUSEL ────────────────────────────────────── */
.carousel-outer {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-card);
}

.screenshot-frame {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 40px 80px;
    min-height: 480px;
}
.bg-frame-blue   { background: linear-gradient(135deg, #0d1117, #0f2447); }
.bg-frame-green  { background: linear-gradient(135deg, #0d1117, #032214); }
.bg-frame-orange { background: linear-gradient(135deg, #0d1117, #2d1300); }
.bg-frame-purple { background: linear-gradient(135deg, #0d1117, #1a0533); }
.bg-frame-indigo { background: linear-gradient(135deg, #0d1117, #1e1b4b); }
.bg-frame-cyan   { background: linear-gradient(135deg, #0d1117, #042d3c); }

.screenshot-img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.06);
}

.carousel-caption-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 32px 18px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 16px;
}
.caption-text { flex: 1; }
.caption-text h5 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 2px; }
.caption-text p  { font-size: .8rem; color: rgba(255,255,255,.6); margin: 0; }

.caption-tag {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.tag-blue   { background: rgba(59,130,246,.3);  color: #93c5fd; }
.tag-green  { background: rgba(16,185,129,.3);  color: #6ee7b7; }
.tag-orange { background: rgba(245,158,11,.3);  color: #fcd34d; }
.tag-purple { background: rgba(124,58,237,.3);  color: #c4b5fd; }
.tag-indigo { background: rgba(99,102,241,.3);  color: #a5b4fc; }
.tag-cyan   { background: rgba(6,182,212,.3);   color: #67e8f9; }

.caption-btn {
    background: var(--primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    display: inline-flex; align-items: center;
}
.caption-btn:hover { background: var(--primary-dark); color: #fff; transform: scale(1.03); }
.caption-btn-purple { background: var(--secondary); }
.caption-btn-purple:hover { background: #6d28d9; }

/* Carousel controls */
.carousel-ctrl {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s ease;
}
.carousel-ctrl:hover { background: rgba(255,255,255,.28); }
.carousel-ctrl-prev { left: 14px; }
.carousel-ctrl-next { right: 14px; }

[dir="rtl"] .carousel-ctrl-prev { left: auto; right: 14px; }
[dir="rtl"] .carousel-ctrl-next { right: auto; left: 14px; }

.carousel-indicators [data-bs-target] {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ─── STATISTICS ─────────────────────────────────────────────── */
.stats-section {
    background: var(--grad-stats);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stat-box { text-align: center; color: #fff; padding: 16px; }
.stat-icon { font-size: 2rem; opacity: .8; margin-bottom: 10px; }
.stat-number { font-size: clamp(2.4rem,4.5vw,3.4rem); font-weight: 900; line-height: 1; display: inline; }
.stat-suffix  { font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 800; display: inline; opacity: .8; }
.stat-title   { font-size: .85rem; font-weight: 600; opacity: .7; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    height: 100%;
    border: 1px solid var(--border-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tc-featured { background: var(--grad-primary); border-color: transparent; }
.tc-featured .tc-text,
.tc-featured .tc-name { color: #fff; }
.tc-featured .tc-role { color: rgba(255,255,255,.7); }
.tc-featured .tc-quote i { color: rgba(255,255,255,.28); }

.tc-quote i { font-size: 1.7rem; color: var(--border-card); display: block; margin-bottom: 12px; transition: color 0.25s ease; }
.tc-text { font-size: .88rem; color: var(--text-body); line-height: 1.78; margin-bottom: 14px; font-style: italic; transition: color 0.25s ease; }
.tc-rating { margin-bottom: 14px; }
.tc-rating i { color: #f59e0b; font-size: .78rem; margin-right: 1px; }
.tc-author { display: flex; align-items: center; gap: 11px; }
.tc-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.avatar-blue   { background:#3b82f6; }
.avatar-purple { background:#7c3aed; }
.avatar-green  { background:#10b981; }
.avatar-orange { background:#f59e0b; }
.avatar-cyan   { background:#06b6d4; }
.avatar-red    { background:#ef4444; }
.tc-name { font-size: .88rem; font-weight: 700; color: var(--text-heading); transition: color 0.25s ease; }
.tc-role { font-size: .78rem; color: var(--text-muted); transition: color 0.25s ease; }
.tc-source { display: inline-block; margin-top: 12px; font-size: .72rem; color: var(--primary); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.tc-source:hover { opacity: 1; text-decoration: underline; }
.tc-featured .tc-source { color: rgba(255,255,255,.75); }
.tc-featured .tc-source:hover { color: #fff; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-accordion .faq-item {
    background: var(--bg-card) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-card) !important;
    margin-bottom: 10px;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.faq-accordion .faq-item:hover { border-color: rgba(79,70,229,.25) !important; }

.faq-button {
    background: var(--bg-card) !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: .93rem;
    padding: 16px 22px;
    gap: 12px;
    box-shadow: none !important;
    transition: color 0.25s ease, background 0.25s ease;
}
.faq-button:not(.collapsed) { color: var(--primary) !important; border-bottom: 1px solid var(--border-card); }
.faq-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.faq-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.faq-icon {
    width: 30px; height: 30px;
    background: rgba(79,70,229,.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; flex-shrink: 0;
}
.faq-body {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.78;
    padding: 14px 22px 18px;
    transition: color 0.25s ease;
    background: var(--bg-card);
}
.faq-body strong { color: var(--text-heading); }

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-section {
    padding: 100px 0;
    background: var(--grad-hero);
    position: relative; overflow: hidden;
}
.cta-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(79,70,229,.3) 0%, transparent 70%);
}
.cta-icon-wrap {
    width: 70px; height: 70px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
    margin: 0 auto 20px;
    animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%,100% { transform:scale(1);   box-shadow:0 0 0 0 rgba(255,255,255,.2); }
    50%      { transform:scale(1.05); box-shadow:0 0 0 16px rgba(255,255,255,0); }
}
.cta-title { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-text  { font-size: 1rem; color: rgba(255,255,255,.72); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cta-trust span { font-size: .8rem; color: rgba(255,255,255,.58); font-weight: 500; }

/* ─── CONTACT ─────────────────────────────────────────────────── */
.contact-email-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    text-align: center;
    transition: background 0.25s ease;
}
.cec-icon-wrap {
    width: 64px; height: 64px;
    background: rgba(79,70,229,.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.cec-title    { font-size: 1.2rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; transition: color 0.25s ease; }
.cec-subtitle { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; transition: color 0.25s ease; }
.cec-email {
    font-size: 1.05rem; font-weight: 700;
    color: var(--primary);
    background: rgba(79,70,229,.07);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(79,70,229,.15);
    font-family: monospace;
    word-break: break-all;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; padding: 10px 0; }
.contact-item  { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0; margin-top: 2px;
}
.ci-email { background: rgba(79,70,229,.1);  color: var(--primary); }
.ci-web   { background: rgba(6,182,212,.1);  color: var(--accent); }
.ci-hours { background: rgba(16,185,129,.1); color: var(--success); }
.ci-docs  { background: rgba(79,70,229,.1);  color: var(--primary); }
.ci-store { background: rgba(245,158,11,.1); color: var(--warning); }
.ci-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; transition: color 0.25s ease; }
.ci-value { font-size: .88rem; color: var(--text-heading); font-weight: 500; transition: color 0.25s ease; }
a.ci-value:hover { color: var(--primary); }

.social-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.social-links { display: flex; gap: 8px; justify-content: center; }
.social-link {
    width: 38px; height: 38px;
    background: var(--bg-section-alt);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.social-link:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: #080d1a; color: rgba(255,255,255,.65); }
.footer-top  { padding: 68px 0 48px; border-bottom: 1px solid rgba(255,255,255,.06); }

.brand-text-footer { font-size: 1.35rem; font-weight: 800; color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-about { font-size: .86rem; color: rgba(255,255,255,.5); line-height: 1.78; max-width: 310px; margin-top: 8px; }

.footer-social { display: flex; gap: 8px; }
.footer-social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.48);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.07);
}
.footer-social-link:hover { background: var(--primary); color: #fff; border-color: transparent; transform: translateY(-3px); }

.footer-heading { font-size: .8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.48); transition: all 0.2s ease; display: inline-block; }
.footer-links a:hover { color: var(--primary-light); padding-inline-start: 5px; }

.footer-bottom { padding: 18px 0; background: rgba(0,0,0,.22); }
.footer-copy   { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.38); transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ─── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--grad-primary);
    color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(79,70,229,.5);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(79,70,229,.6); }

[dir="rtl"] .back-to-top { right: auto; left: 28px; }

/* ─── RTL Specific ───────────────────────────────────────────── */
[dir="rtl"] .hero-subtitle { margin-right: 0; }
[dir="rtl"] .footer-links a:hover { padding-inline-start: 5px; }
[dir="rtl"] .hero-stats { direction: rtl; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .section-padding { padding: 68px 0; }
    .hero-section { padding: 100px 0 0; text-align: center; }
    .hero-subtitle { margin: 0 auto; }
    .hero-stats    { justify-content: center; }
    .hero-actions  { justify-content: center; }
    .hero-badge    { display: inline-flex; }
    .screenshot-frame { padding: 20px 20px 76px; min-height: 380px; }
    .screenshot-img { max-height: 300px; }
    .nav-controls .btn-primary-custom { display: none !important; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 56px 0; }
    .section-title   { font-size: 1.65rem; }
    .hero-section    { padding: 90px 0 0; }
    .hero-title      { font-size: 1.85rem; }
    .stats-section   { padding: 60px 0; }
    .carousel-caption-bar { gap: 8px; padding: 10px 16px 14px; }
    .caption-btn { font-size: .75rem; padding: 6px 12px; }
    .product-card-img { height: 175px; }
    .contact-email-card { padding: 28px 20px; }
}

@media (max-width: 575.98px) {
    .hero-stats     { flex-direction: column; align-items: center; gap: 14px; }
    .hero-stat-divider { display: none; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-trust { gap: 10px; }
    .footer-bottom .d-flex { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
