﻿:root {
    --container-max: 1200px;
    --gutter: clamp(16px,4vw,32px);
    --radius: 18px;
    --bg: #ffffff;
    --text: #0b1220;
    --muted: #5b6473;
    --border: #e8ebf0;
    --primary: #0f2a5f;
    --s1: 8px;
    --s2: 12px;
    --s3: 16px;
    --s4: 24px;
    --s5: 32px;
    --s6: 48px;
    --s7: 72px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,"Segoe UI",Arial;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(var(--container-max),calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

h1 {
    font-size: clamp(28px,3.5vw,52px);
    line-height: 1.1;
    margin: 0;
}

h2 {
    font-size: clamp(22px,2.4vw,34px);
    line-height: 1.2;
    margin: 0;
}

h3 {
    font-size: clamp(18px,1.8vw,24px);
    line-height: 1.3;
    margin: 0;
}

p {
    font-size: clamp(14px,1.2vw,16px);
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.brand {
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav a {
        text-decoration: none;
        opacity: .96;
        font-size: clamp(15px,1.1vw,17px);
        font-weight: 500;
        letter-spacing: .2px;
        padding: 8px 6px;
        border-radius: 10px;
        transition: background .2s ease, opacity .2s ease;
    }

        .nav a:hover {
            opacity: 1;
            background: #f5f6f8;
        }

        .nav a.active {
            background: #eef2f7;
            font-weight: 700;
            border-radius: 999px;
            opacity: 1;
            padding: 8px 12px;
        }

.lang-link {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
}

.menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 1.15rem;
}

@media (max-width:900px) {
    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 68px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

        .nav.is-open {
            display: flex;
        }

        .nav a {
            font-size: 16px;
            width: 100%;
            padding: 12px 12px;
        }

    .lang-link {
        width: fit-content;
        align-self: flex-start;
    }

    .logo {
        height: 38px;
    }
}

.main-content {
    padding: var(--s6) 0;
}

.section {
    padding: var(--s7) 0;
}

@media (max-width:768px) {
    .section {
        padding: var(--s6) 0;
    }
}

.section-alt {
    background: #fafbfc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.grid {
    display: grid;
    gap: clamp(12px,2vw,24px);
}

.grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.grid-2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

@media (max-width:900px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(16px,2vw,24px);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 40px rgba(0,0,0,.08);
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0,0,0,.08);
    }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}
.btn-cert-red {
    background: #E80207 !important;
    border-color: #E80207 !important;
    color: #fff !important;
}

    .btn-cert-red:hover {
        background: #c80106 !important;
        border-color: #c80106 !important;
    }


.hero {
    padding: clamp(36px,6vw,70px) 0;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(16px,3vw,36px);
    align-items: center;
}

@media (max-width:900px) {
    .hero-wrap {
        grid-template-columns: 1fr;
    }
}

.hero-kicker {
    font-size: .95rem;
    color: var(--muted);
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: var(--s3);
}

.hero-title {
    margin-bottom: var(--s3);
}

.hero-desc {
    margin-bottom: var(--s4);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
}

@media (max-width:768px) {
    .hero-img {
        aspect-ratio: 4/3;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--muted);
    margin-top: 40px;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms ease;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (prefers-reduced-motion:reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
.highlight-card p {
    margin-top: 10px;
}

.highlight-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    flex: 0 0 auto;
    padding: 0;
}

    .highlight-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        display: block;
    }

.highlight-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.inline-ico {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 900px) {
    .highlight-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-icon img,
    .inline-ico {
        width: 42px;
        height: 42px;
    }
}

/* ===== Stats Section (clean + equal height) ===== */
.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 46px);
    margin-top: 22px;
}

@media (max-width: 900px) {
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .stats-section .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stats-section .stat {
    text-align: center;
    padding: clamp(22px, 2.2vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px; 
}

.stats-section .stat-value,
.stats-section .stat-value .counter {
    font-weight: 700;
    color: #E80207;
    font-size: clamp(42px, 4.6vw, 78px);
    line-height: 1;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    white-space: nowrap;
}

.stats-section .stat-text {
    margin-top: 14px;
    color: var(--text);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    opacity: .92;
    line-height: 1.35;
}

.stats-section .note {
    margin-top: 12px;
}
.services2 .sv-wrap {
    display: grid;
    gap: 18px;
}

.services2 .sv-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.services2 .sv-tab {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .services2 .sv-tab:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(0,0,0,.06);
    }

    .services2 .sv-tab.is-active {
        background: var(--primary);
        color: #fff;
        border-color: transparent;
    }

.services2 .sv-panels {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(16px, 2vw, 22px);
    background: #fff;
}

.services2 .sv-content {
    display: none;
}

    .services2 .sv-content.is-active {
        display: block;
    }

    .services2 .sv-content h3 {
        margin-bottom: 8px;
    }

.projects-featured .projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

    .projects-featured .projects-head p {
        margin-top: 10px;
        max-width: 820px;
    }

.projects-controls {
    display: flex;
    gap: 10px;
}

    .projects-controls .pbtn {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #fff;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
        transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

        .projects-controls .pbtn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 26px rgba(0,0,0,.08);
            background: #f6f7f9;
        }

.projects-rail {
    margin-top: 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: clamp(14px, 2vw, 22px);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .projects-rail::-webkit-scrollbar {
        height: 10px;
    }

    .projects-rail::-webkit-scrollbar-thumb {
        background: #e6e9ef;
        border-radius: 999px;
    }

.project-card2 {
    scroll-snap-align: start;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .project-card2:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 50px rgba(0,0,0,.10);
    }

.project-thumb2 {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .project-thumb2::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0));
        opacity: .9;
    }

.project-body2 {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-top2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .project-top2 h3 {
        font-size: clamp(18px, 1.5vw, 22px);
    }

.project-chip {
    border: 1px solid var(--border);
    background: #f7f8fb;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.project-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .project-cta .arrow {
        display: inline-block;
        transition: transform .2s ease;
    }

.project-card2:hover .project-cta .arrow {
    transform: translateX(-4px); /* RTL: سهم يروح لليسار */
}

.projects-footer {
    margin-top: 16px;
}

/* ===== Certifications CTA (single box, no nested section box) ===== */
.cert-cta {
    background: transparent;
    border: 0;
}

.cert-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    padding: clamp(22px, 3vw, 40px);
    background: linear-gradient(135deg, #f6f8fc 0%, #fff 55%, #fff5f5 100%);
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: center;
}

@media (max-width: 900px) {
    .cert-card {
        grid-template-columns: 1fr;
    }
}

.cert-content h2 {
    margin: 0;
}

.cert-desc {
    margin-top: 12px;
    max-width: 900px;
    line-height: 1.9;
    color: var(--muted);
}

.cert-chips {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.cert-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cert-side {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .cert-side {
        justify-content: center;
        margin-top: 10px;
    }
}

.cert-badge {
    width: min(320px, 100%);
    border-radius: 22px;
    background: rgba(255,255,255,.75);
    border: 1px solid var(--border);
    padding: 18px 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.cert-badge-top {
    font-weight: 900;
    letter-spacing: .6px;
    color: var(--primary);
    font-size: 24px;
}

.cert-badge-sub {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

