:root {
    --primary: #2563eb;
    --primary-dk: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light-bg: #f8fafc;
    --dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body { color: var(--dark); background: #fff; }
html[lang="ar"] body { font-family: 'Cairo', sans-serif; }
html[lang="en"] body { font-family: 'Inter', sans-serif; }
.navbar-arkan { background: rgba(15, 23, 42, 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 1rem 0; }
.navbar-arkan .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; }
.navbar-arkan .nav-link.active, .navbar-arkan .nav-link:hover { color: var(--accent) !important; }
.navbar-arkan .navbar-brand-logo { width: 100px; height: 65px; -o-object-fit: contain; object-fit: contain; border-radius: 6px; }
.lang-btn { background: var(--primary); color:#fff !important; border-radius: 6px; padding: .35rem .9rem !important; font-size: .85rem; font-weight: 600; }
.hero-section { min-height: 100vh; background: linear-gradient(135deg,#0f172a 0%,#1e3a5f 60%,#2563eb 100%); display:flex; align-items:center; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight:800; color:#fff; line-height:1.15; margin-bottom:1.5rem; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight:800; color: var(--dark); margin-bottom:.5rem; }
.section-subtitle { color: var(--text-muted); font-size:1rem; margin-bottom:3rem; }
.section-label { display:inline-block; color:var(--primary); font-weight:700; font-size:.85rem; letter-spacing:1.5px; margin-bottom:.75rem; }
.service-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:2rem; transition:all .3s; height:100%; }
.service-card:hover { border-color: var(--primary); box-shadow:0 12px 40px rgba(37,99,235,.1); transform:translateY(-4px); }
.service-icon { width:60px; height:60px; background:linear-gradient(135deg,#dbeafe,#bfdbfe); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:var(--primary); margin-bottom:1.25rem; }
.btn-primary-arkan { background: var(--primary); color:#fff; padding:.65rem 1.6rem; border-radius:8px; font-weight:600; text-decoration:none; }
.btn-outline-arkan { border:2px solid var(--primary); color:var(--primary); padding:.6rem 1.5rem; border-radius:8px; font-weight:600; text-decoration:none; }
.testimonial-card { background:#fff; border:1px solid var(--border); border-radius:20px; padding:2rem; }
.cta-section { background: linear-gradient(135deg,var(--primary) 0%,#1d4ed8 100%); padding:5rem 0; color:#fff; }
.footer-arkan { background: var(--secondary); color: rgba(255,255,255,.7); padding:4rem 0 2rem; }
.footer-arkan a { color: rgba(255,255,255,.6); text-decoration:none; }
.page-hero { background: linear-gradient(135deg,var(--dark) 0%,#1e3a5f 100%); padding:5rem 0 3rem; color:#fff; }

/* Blog single */
.blog-page .service-card { height: auto; }
.blog-article-body { line-height: 2; font-size: 1rem; color: #374151; }
.blog-article-body img { max-width: 100%; height: auto; }
.blog-article-body p { margin-bottom: 1rem; }
.blog-article-body h2, .blog-article-body h3, .blog-article-body h4 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }

html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

.navbar-arkan { transition: all .3s; }
.navbar-arkan.scrolled { padding: .1rem 0; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.navbar-arkan .navbar-brand { font-size: 1.6rem; font-weight: 800; color: #fff !important; display: inline-flex; align-items: center; gap: .55rem; }
.navbar-arkan .navbar-brand span { color: var(--accent); }
.lang-btn:hover { background: var(--primary-dk); }

.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 31l-8 8 8 8'/%3E%3Cpath d='M61 31l8 8-8 8'/%3E%3Cpath d='M48 24l-12 30'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    color: var(--accent);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    padding: .85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-hero-primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-2px); }
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    padding: .85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-hero-secondary:hover { border-color: #fff; color: #fff; }

.service-card h5 { font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .9rem; }

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #eee;
}
.portfolio-card img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; transition: transform .5s; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.blog-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light-bg); }
.blog-card-img img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem; }

.testimonial-stars { color: var(--accent); margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; }

.cta-section h2 { color: #fff; font-weight: 800; }
.cta-section p { color: rgba(255,255,255,.8); }
.btn-cta {
    background: var(--accent);
    color: var(--dark);
    padding: .9rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
}
.btn-cta:hover { background: #d97706; color: var(--dark); transform: translateY(-2px); }

.footer-arkan .footer-brand { font-size: 1.6rem; font-weight: 800; color: #fff; }
.footer-arkan .footer-brand span { color: var(--accent); }
.footer-arkan h6 { color: #fff; font-weight: 700; margin-bottom: 1.25rem; }
.footer-arkan a:hover { color: var(--accent); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all .2s;
    margin: 0 .2rem .5rem 0;
    font-size: 1rem;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: .85rem;
    text-align: center;
}

.breadcrumb-item.active, .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.btn-primary-arkan:hover { background: var(--primary-dk); color: #fff; }
.btn-outline-arkan:hover { background: var(--primary); color: #fff; }

.category-filter .btn { border-radius: 50px; padding: .4rem 1.2rem; font-size: .88rem; font-weight: 600; }
.category-filter .btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.home-portfolio-slider-wrap { position: relative; padding: .5rem .25rem 2.5rem; }
.home-portfolio-swiper .swiper-slide { height: auto; }
.home-portfolio-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}
.home-portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
    border-color: #bfdbfe;
}
.home-portfolio-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    -o-object-fit: cover;
       object-fit: cover;
    background: linear-gradient(135deg, #ffffff, #e6e8eb);
}
.home-portfolio-card-body { padding: 1rem 1.1rem 1.15rem; }
.home-portfolio-card-category {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1d4ed8;
    padding: .25rem .65rem;
    margin-bottom: .65rem;
}
.home-portfolio-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}
.home-portfolio-swiper-pagination { position: static; margin-top: 1rem; }
.home-portfolio-swiper-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    opacity: .45;
    background: #94a3b8;
}
.home-portfolio-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #2563eb;
    transform: scale(1.15);
}
.home-portfolio-swiper-nav {
    position: absolute;
    top: calc(50% - 18px);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.home-portfolio-swiper-nav:hover { background: #2563eb; color: #fff; }
.home-portfolio-swiper-prev { left: -12px; }
.home-portfolio-swiper-next { right: -12px; }

@media (max-width: 991.98px) {
    .navbar-arkan .container { padding-inline: 1rem; }
    .navbar-arkan .navbar-collapse {
        margin-top: .75rem;
        padding: .9rem;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.98);
    }
    .navbar-arkan .navbar-nav { gap: .25rem !important; }
    .home-portfolio-swiper-nav { display: none; }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding-top: 6.2rem; padding-bottom: 3rem; }
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: .95rem; margin-bottom: 1.4rem; }
    .hero-badge { font-size: .75rem; padding: .3rem .75rem; margin-bottom: 1rem; }
    .hero-section .container { padding-inline: 1rem; }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: .8rem 1rem;
        font-size: .95rem;
    }
}

/* Portfolio / project single */
.project-page .service-card { height: auto; }
.project-page .project-main-image { max-height: 500px; -o-object-fit: cover; object-fit: cover; }
.project-page .project-description-content p { margin-bottom: .9rem; }
.project-page .project-description-content ul,
.project-page .project-description-content ol {
    -webkit-padding-start: 1.2rem;
            padding-inline-start: 1.2rem;
    margin-bottom: .9rem;
}
.project-page .project-description-content a { color: #2563eb; text-decoration: underline; }
.project-page .lightbox-trigger { cursor: zoom-in; }
.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 2000;
}
.project-lightbox.is-open { display: flex; }
.project-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}
.project-lightbox-close:hover {
    background: #e2e8f0;
}
.project-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 95vw);
    max-height: 85vh;
}
.project-lightbox-inner img {
    max-width: min(1100px, 95vw);
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    -o-object-fit: contain;
       object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.project-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d4ed8;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.project-lightbox-nav:hover {
    background: #2563eb;
    color: #fff;
}
.project-lightbox-prev {
    left: 12px;
}
.project-lightbox-next {
    right: 12px;
}
html[dir="rtl"] .project-lightbox-prev {
    left: auto;
    right: 12px;
}
html[dir="rtl"] .project-lightbox-next {
    right: auto;
    left: 12px;
}
.project-lightbox-counter {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
}
@media (max-width: 768px) {
    .project-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .project-lightbox-prev {
        left: 6px;
    }
    .project-lightbox-next {
        right: 6px;
    }
    html[dir="rtl"] .project-lightbox-prev {
        right: 6px;
    }
    html[dir="rtl"] .project-lightbox-next {
        left: 6px;
    }
}
@media (max-width: 768px) {
    .project-page .project-main-image { max-height: 320px; }
}

/* Portfolio show — gallery slider */
.portfolio-gallery-wrap { position: relative; padding: 0.25rem 0.25rem 2.25rem; }
.portfolio-gallery-swiper .swiper-slide { height: auto; }
.portfolio-gallery-swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}
.portfolio-gallery-pagination { position: static; margin-top: 1rem; }
.portfolio-gallery-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    opacity: .45;
    background: #94a3b8;
}
.portfolio-gallery-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #2563eb;
    transform: scale(1.15);
}
.portfolio-gallery-nav {
    position: absolute;
    top: calc(50% - 22px);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.portfolio-gallery-nav:hover { background: #2563eb; color: #fff; }
.portfolio-gallery-prev { left: -8px; }
.portfolio-gallery-next { right: -8px; }
@media (max-width: 991.98px) {
    .portfolio-gallery-nav { display: none; }
}

/* About — intro + stats */
.about-intro-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
}
.about-intro-copy {
    position: relative;
    -webkit-padding-start: 0;
            padding-inline-start: 0;
}
@media (min-width: 992px) {
    .about-intro-copy {
        -webkit-padding-start: 1.25rem;
                padding-inline-start: 1.25rem;
        -webkit-border-start: 4px solid var(--primary);
                border-inline-start: 4px solid var(--primary);
    }
}
.about-intro-lead {
    line-height: 1.9;
    color: #475569;
    font-size: 1.05rem;
    max-width: 38rem;
    white-space: pre-line;
}
.about-stats-panel {
    position: relative;
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2rem);
    min-height: 280px;
    color: #fff;
    background: linear-gradient(145deg, #0c1222 0%, #1e3a5f 38%, #1d4ed8 72%, #2563eb 100%);
    box-shadow:
        0 24px 48px -12px rgba(37, 99, 235, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    overflow: hidden;
}
.about-stats-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M42 10v64M10 42h64'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.about-stats-panel::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 90%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.about-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.about-stats-grid:has(> .about-stat-tile:only-child) {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-inline: auto;
}
@media (max-width: 575.98px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    .about-stats-grid:has(> .about-stat-tile:only-child) {
        max-width: none;
    }
}
.about-stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.about-stat-tile:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.about-stat-tile-icon {
    font-size: 1.15rem;
    color: rgba(245, 158, 11, 0.95);
    margin-bottom: 0.5rem;
    opacity: 0.95;
}
.about-stat-value {
    font-size: clamp(1.65rem, 4.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.about-stat-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

/* Service detail: avoid hover lift + stacking for demo blocks (prevents overlap/ghosting) */
.service-detail-section {
    position: relative;
    z-index: 1;
    background: #fff;
}
.service-detail-main,
.service-detail-sidebar {
    position: relative;
    z-index: 1;
}
.service-card.service-card--static {
    height: auto;
    transform: none !important;
    isolation: isolate;
}
.service-card.service-card--static:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--border);
}
.demo-feature-text {
    color: #374151;
}
.demo-cred-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.demo-cred-role {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}
.demo-cred-field + .demo-cred-field {
    margin-top: 0.85rem;
}
.demo-cred-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.demo-cred-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}
@media (min-width: 576px) {
    .demo-cred-row {
        flex-wrap: nowrap;
    }
}
.demo-cred-value {
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    word-break: break-word;
}
.demo-cred-copy {
    flex-shrink: 0;
    white-space: nowrap;
}

