/*
 * Homepage redesign only.
 * A fresh architectural interface layered after the global 2026 design.
 */

body.home-page {
    --home-ink: #071a33;
    --home-muted: #5f7189;
    --home-blue: #166fe8;
    --home-cyan: #53c2ff;
    --home-gold: #d8af58;
    --home-line: rgba(22, 111, 232, .13);
    --home-glass: rgba(255, 255, 255, .76);
    --home-shadow: 0 28px 90px rgba(13, 49, 95, .13);
    color: var(--home-ink);
    background:
        radial-gradient(circle at 86% 6%, rgba(83, 194, 255, .22), transparent 28rem),
        radial-gradient(circle at 8% 24%, rgba(22, 111, 232, .13), transparent 31rem),
        linear-gradient(180deg, #eef6ff 0%, #f9fbff 45%, #edf4fb 100%);
}

body.home-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .58;
    background-image:
        linear-gradient(rgba(22, 111, 232, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 111, 232, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000, transparent 72%);
}

body.home-page .header {
    top: 18px;
    min-height: 70px;
    border-radius: 28px;
    border-color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 70px rgba(10, 45, 91, .10);
}

body.home-page .header.scrolled {
    top: 9px;
    min-height: 62px;
}

body.home-page .main-content {
    width: min(100% - 34px, 1560px);
    padding-top: 10px;
}

body.home-page .hero {
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(560px, 1.15fr) minmax(360px, .85fr);
    gap: clamp(22px, 3vw, 48px);
    align-items: stretch;
    min-height: min(760px, calc(100svh - 128px));
    padding: clamp(24px, 4vw, 58px);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: clamp(28px, 4vw, 56px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .52)),
        radial-gradient(circle at 82% 12%, rgba(83, 194, 255, .26), transparent 26rem),
        radial-gradient(circle at 26% 90%, rgba(22, 111, 232, .13), transparent 28rem);
    box-shadow: var(--home-shadow);
    overflow: hidden;
}

body.home-page .hero::before {
    content: '';
    position: absolute;
    inset: auto -8% -18% auto;
    width: min(55vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(83, 194, 255, .22), transparent 64%),
        conic-gradient(from 160deg, transparent, rgba(22, 111, 232, .16), transparent 62%);
    filter: blur(4px);
    z-index: -1;
}

body.home-page .hero::after {
    content: '2000';
    inset: auto auto 18px 36px;
    width: auto;
    height: auto;
    font-size: clamp(5rem, 13vw, 14rem);
    line-height: .8;
    font-weight: 900;
    color: rgba(8, 32, 65, .045);
    letter-spacing: -.08em;
    background: none;
    opacity: 1;
    transform: none;
    pointer-events: none;
}

body.home-page .hero-slides {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    min-height: 100%;
    border-radius: clamp(24px, 3vw, 42px);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(7, 34, 72, .22);
    transform: rotate(-1.4deg);
}

body.home-page .hero-slides::before {
    content: '';
    position: absolute;
    inset: 18px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: inherit;
    pointer-events: none;
}

body.home-page .hero-slides::after {
    background:
        linear-gradient(180deg, rgba(5, 22, 48, .05), rgba(5, 22, 48, .55)),
        linear-gradient(90deg, rgba(5, 22, 48, .62), transparent 62%);
}

body.home-page .hero-slide {
    filter: saturate(1.08) contrast(1.04);
}

body.home-page .hero-content {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(8px, 2vw, 24px) 0;
    text-align: right;
}

body.home-page .hero .eyebrow {
    width: fit-content;
    color: var(--home-blue) !important;
    border: 1px solid rgba(22, 111, 232, .16);
    background: rgba(255, 255, 255, .72) !important;
    box-shadow: 0 10px 35px rgba(22, 111, 232, .08);
}

body.home-page .hero .eyebrow::before {
    background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
    box-shadow: 0 0 0 7px rgba(22, 111, 232, .09);
}

body.home-page .hero h1 {
    max-width: 980px;
    margin: 22px 0 16px;
    color: var(--home-ink);
    font-size: clamp(2.15rem, 4.1vw, 4.65rem);
    line-height: .98;
    letter-spacing: -.075em;
    white-space: nowrap;
    text-shadow: none;
    background: linear-gradient(120deg, #071a33 0%, #0c3a78 52%, #1686ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.home-page .hero p {
    max-width: 760px;
    margin: 0;
    color: #3b506b;
    font-size: clamp(1rem, 1.25vw, 1.24rem);
    line-height: 2.08;
    font-weight: 700;
}

body.home-page .hero-actions {
    justify-content: flex-start;
    margin-top: 30px;
    gap: 12px;
}

body.home-page .cta-button {
    min-width: 150px;
    border-radius: 18px;
    border: 1px solid rgba(22, 111, 232, .14);
    background: linear-gradient(135deg, var(--home-blue), #39a0ff);
    box-shadow: 0 18px 38px rgba(22, 111, 232, .22);
}

body.home-page .cta-button.secondary {
    color: var(--home-blue);
    border-color: rgba(22, 111, 232, .18);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 34px rgba(13, 49, 95, .08);
}

body.home-page .hero-stats {
    width: min(100%, 860px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: clamp(26px, 4vw, 44px);
}

body.home-page .hero-stat {
    min-width: 0;
    padding: 17px 16px;
    border: 1px solid rgba(22, 111, 232, .11) !important;
    border-radius: 22px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 14px 38px rgba(13, 49, 95, .07);
    text-align: right;
}

body.home-page .hero-stat .num {
    color: var(--home-gold);
    font-size: clamp(1.55rem, 2.4vw, 2.55rem);
    text-shadow: none;
}

body.home-page .hero-stat .label {
    color: var(--home-muted);
    font-size: .78rem;
    font-weight: 800;
}

body.home-page .section,
body.home-page .band {
    position: relative;
    border-radius: clamp(26px, 3vw, 44px);
    border: 1px solid rgba(255, 255, 255, .84);
    background: rgba(255, 255, 255, .66);
    box-shadow: 0 18px 58px rgba(13, 49, 95, .075);
}

body.home-page #about {
    display: grid;
    grid-template-columns: .72fr 1fr;
    gap: clamp(18px, 3vw, 44px);
    align-items: center;
    overflow: hidden;
}

body.home-page #about::after {
    content: '';
    position: absolute;
    inset: 18px auto 18px 18px;
    width: min(36%, 440px);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(8, 31, 66, .05), rgba(8, 31, 66, .28)),
        url('images/projects/تطوير_مركز__الملك/image_1.jpg') center/cover;
    opacity: .9;
}

body.home-page #about h2,
body.home-page #about p {
    grid-column: 2;
}

body.home-page #about h2 {
    margin-bottom: 8px;
}

body.home-page #about p {
    font-weight: 700;
}

body.home-page .section-head {
    max-width: 880px;
    margin-inline: auto 0;
}

body.home-page .section-head .eyebrow {
    color: var(--home-blue);
    background: rgba(22, 111, 232, .065);
}

body.home-page .services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

body.home-page .service-card {
    grid-column: span 4;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    align-items: start;
    min-height: 185px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--home-line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .66)),
        radial-gradient(circle at 0 0, rgba(83, 194, 255, .16), transparent 12rem);
    box-shadow: 0 16px 44px rgba(13, 49, 95, .07);
}

body.home-page .service-card::before {
    height: 100%;
    width: 4px;
    transform: scaleY(.35);
    transform-origin: top;
    background: linear-gradient(180deg, var(--home-blue), var(--home-cyan));
}

body.home-page .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(13, 49, 95, .12);
}

body.home-page .service-card .icon {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px rgba(22, 111, 232, .1);
}

body.home-page .service-card h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.03rem;
}

body.home-page .service-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: .92rem;
    line-height: 1.8;
}

body.home-page .featured-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 214px;
    gap: 14px;
}

body.home-page .featured-card {
    grid-column: span 4;
    min-height: 214px;
    border-radius: 30px;
    box-shadow: 0 22px 62px rgba(6, 28, 63, .16);
}

body.home-page .featured-card:nth-child(1) {
    grid-column: span 6;
    grid-row: span 2;
}

body.home-page .featured-card:nth-child(2),
body.home-page .featured-card:nth-child(3) {
    grid-column: span 3;
}

body.home-page .featured-card:nth-child(4) {
    grid-column: span 5;
}

body.home-page .featured-card:nth-child(5),
body.home-page .featured-card:nth-child(6) {
    grid-column: span 3;
}

body.home-page .featured-card::after {
    background:
        linear-gradient(0deg, rgba(4, 20, 44, .88), rgba(4, 20, 44, .08) 68%),
        radial-gradient(circle at 14% 18%, rgba(83, 194, 255, .25), transparent 18rem);
}

body.home-page .featured-card .overlay {
    padding: 24px;
}

body.home-page .featured-card .tag {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .14);
}

body.home-page .featured-card h3 {
    font-size: clamp(1rem, 1.35vw, 1.42rem);
}

body.home-page .why-grid,
body.home-page .values-grid {
    gap: 14px;
}

body.home-page .why-card,
body.home-page .value-card {
    border-color: var(--home-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 46px rgba(13, 49, 95, .065);
}

body.home-page #partners-clients {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5)),
        radial-gradient(circle at 100% 0, rgba(22, 111, 232, .12), transparent 24rem);
}

body.home-page .partners-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

body.home-page .partner-item {
    min-height: 96px;
    border-radius: 22px;
    border: 1px solid rgba(22, 111, 232, .09);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 34px rgba(13, 49, 95, .055);
}

body.home-page .footer {
    margin-top: 18px;
    border-radius: 36px 36px 0 0;
}

@media (max-width: 1180px) {
    body.home-page .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    body.home-page .hero-content,
    body.home-page .hero-slides {
        grid-column: 1;
    }

    body.home-page .hero-content {
        grid-row: 1;
    }

    body.home-page .hero-slides {
        grid-row: 2;
        min-height: 430px;
        transform: none;
    }

    body.home-page .service-card {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    body.home-page .main-content {
        width: min(100% - 18px, 1560px);
        padding-top: 4px;
    }

    body.home-page .hero {
        gap: 18px;
        padding: 18px;
        border-radius: 30px;
    }

    body.home-page .hero h1 {
        font-size: clamp(1.42rem, 8vw, 2.35rem);
        line-height: 1.08;
        letter-spacing: -.055em;
    }

    body.home-page .hero p {
        font-size: .91rem;
        line-height: 1.9;
    }

    body.home-page .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    body.home-page .cta-button {
        min-width: 0;
        padding-inline: 12px;
        font-size: .86rem;
    }

    body.home-page .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body.home-page .hero-stat {
        padding: 12px;
        border-radius: 18px;
    }

    body.home-page .hero-slides {
        min-height: 300px;
        border-radius: 24px;
    }

    body.home-page #about {
        display: block;
        padding-bottom: 230px;
    }

    body.home-page #about::after {
        inset: auto 16px 16px 16px;
        width: auto;
        height: 190px;
        border-radius: 24px;
    }

    body.home-page .services-grid,
    body.home-page .featured-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    body.home-page .service-card,
    body.home-page .featured-card,
    body.home-page .featured-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    body.home-page .featured-card {
        min-height: 260px;
    }

    body.home-page .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home-page .partner-item {
        min-height: 76px;
        border-radius: 17px;
    }
}

@media (max-width: 430px) {
    body.home-page .hero h1 {
        font-size: clamp(1.2rem, 6.85vw, 1.74rem);
    }

    body.home-page .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/*
 * Bold concept: live projects command center.
 * This deliberately overrides the softer first homepage concept.
 */

body.home-page {
    --logo-deep: #052bbf;
    --logo-royal: #083bd7;
    --logo-blue: #1260df;
    --logo-sky: #35afea;
    --logo-ice: #eaf8ff;
    --home-ink: #071f56;
    --home-muted: #607189;
    --home-blue: var(--logo-royal);
    --home-cyan: var(--logo-sky);
    --home-gold: #e7bf68;
    --home-dark: #06184a;
    background:
        radial-gradient(circle at 72% 8%, rgba(53, 175, 234, .24), transparent 30rem),
        radial-gradient(circle at 15% 24%, rgba(5, 43, 191, .13), transparent 29rem),
        linear-gradient(180deg, #eef9ff 0%, #ffffff 44%, #eef6ff 100%);
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
    letter-spacing: 0;
}

body.home-page h1,
body.home-page h2,
body.home-page h3 {
    font-family: 'Noto Kufi Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;
}

body.home-page .nav-link,
body.home-page .cta-button,
body.home-page .hero-stat .num,
body.home-page .eyebrow {
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

body.home-page .hero {
    display: block;
    min-height: min(790px, calc(100svh - 118px));
    padding: clamp(28px, 4.6vw, 70px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: clamp(30px, 4.6vw, 64px);
    background:
        radial-gradient(circle at 84% 18%, rgba(53, 175, 234, .35), transparent 24rem),
        linear-gradient(135deg, #06154a 0%, #052bbf 46%, #35afea 132%);
    box-shadow: 0 42px 110px rgba(5, 43, 191, .24);
    overflow: hidden;
}

body.home-page .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    width: auto;
    aspect-ratio: auto;
    border-radius: inherit;
    filter: none;
    background:
        linear-gradient(90deg, rgba(5, 43, 191, .28) 0%, rgba(5, 43, 191, .18) 42%, rgba(53, 175, 234, .08) 76%, rgba(5, 43, 191, .16) 100%),
        linear-gradient(180deg, rgba(53, 175, 234, .05), rgba(5, 43, 191, .24));
    pointer-events: none;
}

body.home-page .hero::after {
    content: 'MASAKEN';
    position: absolute;
    inset: auto 4vw 2vw auto;
    z-index: 3;
    font-size: clamp(4.6rem, 14vw, 14rem);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.09em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .10);
    opacity: 1;
    pointer-events: none;
}

body.home-page .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: auto;
    border-radius: inherit;
    transform: none;
    box-shadow: none;
}

body.home-page .hero-slides::before {
    inset: clamp(18px, 2.6vw, 36px);
    z-index: 4;
    border-color: rgba(255, 255, 255, .20);
    border-radius: clamp(22px, 3.7vw, 48px);
}

body.home-page .hero-slides::after {
    z-index: 2;
    background:
        radial-gradient(circle at 70% 22%, rgba(53, 175, 234, .18), transparent 25rem),
        linear-gradient(90deg, rgba(5, 43, 191, .22), rgba(53, 175, 234, .08) 58%, rgba(5, 43, 191, .16));
}

body.home-page .hero-slide {
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.04) brightness(.98);
}

body.home-page .hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(640px, calc(100svh - 210px));
    width: min(54vw, 760px);
    margin-right: 0;
    margin-left: auto;
    padding: 0;
}

body.home-page .hero .eyebrow {
    color: #dff5ff !important;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(5, 43, 191, .26) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 18px 55px rgba(5,43,191,.12);
    backdrop-filter: blur(18px);
}

body.home-page .hero .eyebrow::before {
    background: var(--home-cyan);
    box-shadow: 0 0 0 7px rgba(101, 216, 255, .14), 0 0 24px rgba(101, 216, 255, .6);
}

body.home-page .hero h1 {
    max-width: none;
    width: 100%;
    margin: 22px 0 18px;
    color: #fff;
    font-family: 'Noto Kufi Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;
    font-size: clamp(2.05rem, 3.65vw, 4.7rem);
    line-height: 1.18;
    letter-spacing: -.055em;
    white-space: nowrap;
    text-shadow: 0 16px 50px rgba(5, 43, 191, .24);
    transform: skewX(-3deg);
    transform-origin: right center;
    background: linear-gradient(100deg, #ffffff 0%, #eefbff 42%, var(--logo-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.home-page .hero p {
    max-width: 720px;
    color: rgba(235, 247, 255, .88);
    font-size: clamp(1rem, 1.18vw, 1.18rem);
    line-height: 2.05;
    font-weight: 800;
}

body.home-page .hero-actions {
    margin-top: 30px;
}

body.home-page .cta-button {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, var(--logo-deep), var(--logo-sky));
    box-shadow: 0 22px 54px rgba(5, 43, 191, .34);
}

body.home-page .cta-button.secondary {
    color: #e9f7ff;
    border-color: rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 20px 50px rgba(0, 0, 0, .15);
    backdrop-filter: blur(16px);
}

body.home-page .hero-stats {
    width: min(100%, 780px);
    margin-top: clamp(28px, 4vw, 54px);
    gap: 10px;
}

body.home-page .hero-stat {
    position: relative;
    overflow: hidden;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(5,43,191,.18));
    box-shadow: inset 0 1px rgba(255,255,255,.14), 0 20px 55px rgba(5,43,191,.14);
    backdrop-filter: blur(18px);
}

body.home-page .hero-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--home-cyan), transparent);
}

body.home-page .hero-stat .num {
    color: var(--home-gold);
    font-size: clamp(1.55rem, 2.55vw, 2.7rem);
    text-shadow: 0 8px 28px rgba(231, 191, 104, .22);
}

body.home-page .hero-stat .label {
    color: rgba(240, 248, 255, .74);
}

body.home-page .hero-project-panel {
    position: absolute;
    z-index: 6;
    left: clamp(30px, 4.8vw, 76px);
    bottom: clamp(30px, 4.6vw, 70px);
    width: min(390px, 32vw);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08)),
        radial-gradient(circle at 0 0, rgba(101, 216, 255, .18), transparent 14rem);
    box-shadow: inset 0 1px rgba(255,255,255,.16), 0 28px 70px rgba(5,43,191,.18);
    backdrop-filter: blur(18px) saturate(135%);
}

body.home-page .hero-project-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(53,175,234,.85), rgba(255,255,255,.12), rgba(5,43,191,.58));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body.home-page .panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfefff;
    font-size: .78rem;
    font-weight: 900;
}

body.home-page .panel-kicker::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #52ffb8;
    box-shadow: 0 0 18px rgba(82,255,184,.85);
}

body.home-page .hero-project-panel h2 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: -.035em;
}

body.home-page .hero-project-panel p {
    margin: 0;
    color: rgba(237, 248, 255, .76);
    font-size: .88rem;
    line-height: 1.9;
}

body.home-page .panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

body.home-page .panel-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(240,248,255,.78);
    background: rgba(255,255,255,.08);
    font-size: .72rem;
    font-weight: 800;
}

body.home-page .section,
body.home-page .band {
    border-color: rgba(255,255,255,.9);
    background:
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58)),
        radial-gradient(circle at 100% 0, rgba(31,122,255,.08), transparent 20rem);
}

body.home-page .service-card,
body.home-page .why-card,
body.home-page .value-card,
body.home-page .partner-item {
    border-color: rgba(31, 122, 255, .12);
    box-shadow: 0 22px 60px rgba(7, 26, 51, .08);
}

body.home-page .featured-card {
    border-radius: 34px;
}

@media (max-width: 1180px) {
    body.home-page .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 24px;
    }

    body.home-page .hero-content {
        order: 1;
        width: 100%;
        min-height: 0;
        padding: 28px 0 0;
    }

    body.home-page .hero-project-panel {
        order: 2;
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    body.home-page .hero {
        padding: 18px;
        border-radius: 32px;
    }

    body.home-page .hero::before {
        background:
            linear-gradient(180deg, rgba(5, 43, 191, .22), rgba(5, 43, 191, .32)),
            linear-gradient(90deg, rgba(5, 43, 191, .18), rgba(53, 175, 234, .10));
    }

    body.home-page .hero-content {
        padding-top: 14px;
    }

    body.home-page .hero h1 {
        font-size: clamp(1.55rem, 7.45vw, 2.1rem);
        line-height: 1.1;
        white-space: nowrap;
    }

    body.home-page .hero p {
        font-size: .91rem;
        line-height: 1.9;
    }

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

    body.home-page .hero-project-panel {
        padding: 18px;
        border-radius: 24px;
    }
}

@media (max-width: 430px) {
    body.home-page .hero h1 {
        font-size: clamp(1.26rem, 6.85vw, 1.72rem);
    }
}

/* About section: image above text */
body.home-page #about {
    display: block;
    padding-bottom: clamp(24px, 3.4vw, 52px);
}

body.home-page #about::after {
    display: none !important;
}

body.home-page #about h2,
body.home-page #about p {
    grid-column: auto;
}

body.home-page #about h2 {
    margin-bottom: 18px;
}

body.home-page .about-image {
    position: relative;
    height: clamp(230px, 32vw, 420px);
    margin: 0 0 clamp(18px, 2.6vw, 34px);
    border-radius: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: 0 24px 70px rgba(5, 43, 191, .13);
    background: var(--logo-ice);
}

body.home-page .about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 43, 191, .02), rgba(5, 43, 191, .16)),
        radial-gradient(circle at 80% 12%, rgba(53, 175, 234, .20), transparent 18rem);
    pointer-events: none;
}

body.home-page .about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

body.home-page #about p {
    max-width: 1120px;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.home-page #about {
        padding-bottom: 24px;
    }

    body.home-page .about-image {
        height: 220px;
        border-radius: 24px;
    }
}

/* Final hero light overlay: remove black cast from the opening image area */
body.home-page .hero::before {
    background:
        linear-gradient(90deg, rgba(5, 43, 191, .24), rgba(53, 175, 234, .08) 58%, rgba(5, 43, 191, .14)),
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(5,43,191,.22)) !important;
}

body.home-page .hero-slides::after {
    background:
        radial-gradient(circle at 74% 20%, rgba(53, 175, 234, .18), transparent 25rem),
        linear-gradient(90deg, rgba(5, 43, 191, .18), rgba(53, 175, 234, .06) 58%, rgba(5, 43, 191, .12)) !important;
}

body.home-page .hero-slide {
    filter: saturate(1.08) contrast(1.02) brightness(1.05);
}

/* Home page dark mode — balanced blue identity, no harsh black */
[data-theme="dark"] body.home-page {
    --home-ink: #eef8ff;
    --home-muted: #b8c9dc;
    --home-glass: rgba(10, 31, 58, .76);
    --home-line: rgba(117, 205, 255, .16);
    --home-shadow: 0 28px 90px rgba(0, 18, 48, .30);
    color: var(--home-ink);
    background:
        radial-gradient(circle at 82% 4%, rgba(53, 175, 234, .18), transparent 28rem),
        radial-gradient(circle at 10% 18%, rgba(5, 43, 191, .26), transparent 32rem),
        linear-gradient(180deg, #071d38 0%, #09284d 46%, #071d38 100%) !important;
}

[data-theme="dark"] body.home-page::after {
    opacity: .38;
    background-image:
        linear-gradient(rgba(83, 194, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 194, 255, .055) 1px, transparent 1px);
}

[data-theme="dark"] body.home-page .header {
    border-color: rgba(155, 221, 255, .18);
    background: rgba(239, 250, 255, .92);
    box-shadow: 0 20px 70px rgba(0, 16, 42, .20);
}

[data-theme="dark"] body.home-page .nav-link {
    color: #0b3d7a;
}

[data-theme="dark"] body.home-page .nav-link:hover,
[data-theme="dark"] body.home-page .nav-link.active {
    color: #fff;
}

[data-theme="dark"] body.home-page .hero {
    border-color: rgba(155, 221, 255, .18);
    background:
        radial-gradient(circle at 84% 18%, rgba(53, 175, 234, .22), transparent 24rem),
        linear-gradient(135deg, rgba(8, 43, 86, .90), rgba(5, 43, 191, .50) 52%, rgba(53, 175, 234, .26));
    box-shadow: 0 42px 110px rgba(0, 18, 48, .30);
}

[data-theme="dark"] body.home-page .hero::before {
    background:
        linear-gradient(90deg, rgba(5, 43, 191, .18), rgba(53, 175, 234, .08) 58%, rgba(5, 43, 191, .12)),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(5,43,191,.18)) !important;
}

[data-theme="dark"] body.home-page .hero-slides::after {
    background:
        radial-gradient(circle at 74% 20%, rgba(53, 175, 234, .16), transparent 25rem),
        linear-gradient(90deg, rgba(5, 43, 191, .15), rgba(53, 175, 234, .05) 58%, rgba(5, 43, 191, .10)) !important;
}

[data-theme="dark"] body.home-page .hero-slide {
    filter: saturate(1.06) contrast(1.02) brightness(1.02);
}

[data-theme="dark"] body.home-page .hero h1 {
    background: linear-gradient(100deg, #ffffff 0%, #dff7ff 48%, #75d6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 16px 42px rgba(0, 25, 70, .18);
}

[data-theme="dark"] body.home-page .hero p,
[data-theme="dark"] body.home-page .section-head p,
[data-theme="dark"] body.home-page .service-card p,
[data-theme="dark"] body.home-page .why-card p,
[data-theme="dark"] body.home-page .value-card p,
[data-theme="dark"] body.home-page #about p {
    color: var(--home-muted);
}

[data-theme="dark"] body.home-page .hero .eyebrow,
[data-theme="dark"] body.home-page .section-head .eyebrow {
    color: #e7f9ff !important;
    border-color: rgba(117, 205, 255, .22);
    background: rgba(53, 175, 234, .14) !important;
}

[data-theme="dark"] body.home-page .cta-button.secondary {
    color: #e7f9ff;
    border-color: rgba(117, 205, 255, .22);
    background: rgba(255, 255, 255, .10);
}

[data-theme="dark"] body.home-page .section,
[data-theme="dark"] body.home-page .band,
[data-theme="dark"] body.home-page #partners-clients {
    border-color: rgba(117, 205, 255, .14);
    background:
        linear-gradient(135deg, rgba(11, 38, 72, .78), rgba(8, 31, 61, .62)),
        radial-gradient(circle at 100% 0, rgba(53, 175, 234, .10), transparent 24rem);
    box-shadow: 0 18px 58px rgba(0, 18, 48, .22);
}

[data-theme="dark"] body.home-page .section h2,
[data-theme="dark"] body.home-page .section-head h2,
[data-theme="dark"] body.home-page .service-card h3,
[data-theme="dark"] body.home-page .why-card h3,
[data-theme="dark"] body.home-page .value-card h3 {
    color: #eef8ff;
}

[data-theme="dark"] body.home-page .service-card,
[data-theme="dark"] body.home-page .why-card,
[data-theme="dark"] body.home-page .value-card,
[data-theme="dark"] body.home-page .partner-item,
[data-theme="dark"] body.home-page .hero-stat {
    border-color: rgba(117, 205, 255, .14);
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(53,175,234,.06)),
        rgba(8, 31, 61, .62);
    box-shadow: 0 16px 46px rgba(0, 18, 48, .18);
}

[data-theme="dark"] body.home-page .service-card .icon {
    background: rgba(83, 194, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(117, 205, 255, .18);
}

[data-theme="dark"] body.home-page .partner-item img {
    filter: none;
    opacity: .88;
}

[data-theme="dark"] body.home-page .about-image {
    border-color: rgba(117, 205, 255, .16);
    background: #09284d;
}

/* Subtle letter outline for hero headline and intro copy */
body.home-page .hero h1 {
    -webkit-text-stroke: .45px rgba(255, 255, 255, .42);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .26),
        0 14px 38px rgba(5, 43, 191, .22);
}

body.home-page .hero p {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .42),
        1px 0 0 rgba(255, 255, 255, .22),
        -1px 0 0 rgba(255, 255, 255, .22),
        0 10px 26px rgba(5, 43, 191, .18);
}

[data-theme="dark"] body.home-page .hero h1 {
    -webkit-text-stroke: .45px rgba(5, 43, 191, .55);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .18),
        0 14px 42px rgba(0, 25, 70, .26);
}

[data-theme="dark"] body.home-page .hero p {
    text-shadow:
        0 1px 0 rgba(5, 43, 191, .65),
        1px 0 0 rgba(5, 43, 191, .34),
        -1px 0 0 rgba(5, 43, 191, .34),
        0 10px 26px rgba(0, 25, 70, .30);
}

/* Hero refinement — cleaner colors, stronger typography, logo-inspired glass */
body.home-page .hero {
    border-color: rgba(255, 255, 255, .34);
    background:
        radial-gradient(circle at 82% 12%, rgba(53, 175, 234, .30), transparent 23rem),
        linear-gradient(135deg, rgba(5, 43, 191, .86), rgba(53, 175, 234, .52)) !important;
}

body.home-page .hero::before {
    background:
        linear-gradient(90deg, rgba(3, 30, 86, .52) 0%, rgba(5, 43, 191, .28) 48%, rgba(53, 175, 234, .12) 100%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(5,43,191,.32)) !important;
}

body.home-page .hero-slides::after {
    background:
        radial-gradient(circle at 74% 18%, rgba(53, 175, 234, .18), transparent 24rem),
        linear-gradient(90deg, rgba(3, 30, 86, .46), rgba(5, 43, 191, .22) 58%, rgba(53, 175, 234, .10)),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(5,43,191,.20)) !important;
}

body.home-page .hero-slide {
    filter: saturate(.92) contrast(1.04) brightness(.90) hue-rotate(-5deg);
}

body.home-page .hero-content {
    width: min(60vw, 860px);
    padding: clamp(14px, 2vw, 26px);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: clamp(22px, 3vw, 36px);
    background: linear-gradient(135deg, rgba(5, 43, 191, .13), rgba(53, 175, 234, .05));
    backdrop-filter: blur(2px);
}

body.home-page .hero .eyebrow {
    color: #f1fbff !important;
    border-color: rgba(163, 228, 255, .34);
    background: rgba(5, 43, 191, .34) !important;
    font-weight: 900;
    letter-spacing: 0;
}

body.home-page .hero h1 {
    margin: 18px 0 14px;
    font-family: 'Noto Kufi Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;
    font-size: clamp(2rem, 3.55vw, 4.35rem);
    line-height: 1.14;
    letter-spacing: -.04em;
    transform: none;
    background: linear-gradient(100deg, #ffffff 0%, #f2fbff 48%, #8de0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .35px rgba(5, 43, 191, .32);
    text-shadow:
        0 2px 0 rgba(5, 43, 191, .22),
        0 18px 46px rgba(0, 24, 80, .28);
}

body.home-page .hero p {
    max-width: 820px;
    color: rgba(247, 252, 255, .94);
    font-size: clamp(.98rem, 1.1vw, 1.14rem);
    line-height: 1.95;
    font-weight: 800;
    text-shadow:
        0 1px 0 rgba(5, 43, 191, .46),
        0 12px 28px rgba(0, 24, 80, .34);
}

body.home-page .hero-actions {
    gap: 14px;
    margin-top: clamp(22px, 3vw, 34px);
}

body.home-page .cta-button {
    min-height: 54px;
    padding-inline: clamp(1.35rem, 2.6vw, 2.4rem);
    font-weight: 900;
    border-color: rgba(163, 228, 255, .28);
    box-shadow: 0 22px 48px rgba(5, 43, 191, .28);
}

body.home-page .cta-button.secondary {
    color: #f3fbff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 18px 44px rgba(5, 43, 191, .18);
}

body.home-page .hero-stats {
    width: min(100%, 820px);
    margin-top: clamp(24px, 3.6vw, 44px);
    gap: 12px;
}

body.home-page .hero-stat {
    padding: 18px 18px;
    border-color: rgba(163, 228, 255, .24) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.20), rgba(5,43,191,.22)),
        rgba(6, 37, 95, .18);
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 18px 44px rgba(5, 43, 191, .18);
}

body.home-page .hero-stat .num {
    color: #ffe79b;
    font-weight: 900;
    text-shadow: 0 8px 24px rgba(255, 218, 118, .22);
}

body.home-page .hero-stat .label {
    color: rgba(247, 252, 255, .82);
    font-weight: 900;
}

[data-theme="dark"] body.home-page .hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(53, 175, 234, .18), transparent 24rem),
        linear-gradient(135deg, rgba(7, 29, 56, .96), rgba(5, 43, 191, .48) 58%, rgba(53, 175, 234, .22)) !important;
}

@media (max-width: 1180px) {
    body.home-page .hero-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.home-page .hero {
        padding: 16px;
    }

    body.home-page .hero-content {
        padding: 14px;
        border-radius: 24px;
    }

    body.home-page .hero h1 {
        font-size: clamp(1.35rem, 6.4vw, 1.95rem);
        line-height: 1.25;
        white-space: normal;
    }

    body.home-page .hero p {
        font-size: .86rem;
        line-height: 1.85;
    }

    body.home-page .hero-actions {
        gap: 9px;
        margin-top: 18px;
    }

    body.home-page .cta-button {
        min-height: 48px;
        padding-inline: .95rem;
        font-size: .82rem;
    }

    body.home-page .hero-stats {
        margin-top: 20px;
        gap: 9px;
    }

    body.home-page .hero-stat {
        padding: 14px 12px;
        border-radius: 18px;
    }
}

/* Opening hero polish — logo-inspired colors and softer modern typography */
body.home-page {
    --msaken-navy: #053a8c;
    --msaken-blue: #075fca;
    --msaken-sky: #35afea;
    --msaken-ice: #effbff;
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
}

body.home-page .hero {
    min-height: min(760px, calc(100svh - 128px));
    padding: clamp(28px, 5vw, 74px) clamp(28px, 5.6vw, 86px);
    border: 1px solid rgba(53, 175, 234, .42);
    background:
        radial-gradient(circle at 86% 14%, rgba(53, 175, 234, .34), transparent 27rem),
        radial-gradient(circle at 18% 88%, rgba(7, 95, 202, .26), transparent 30rem),
        linear-gradient(135deg, rgba(5, 58, 140, .92), rgba(7, 95, 202, .72) 52%, rgba(53, 175, 234, .42)) !important;
    box-shadow: 0 28px 78px rgba(5, 58, 140, .20);
}

body.home-page .hero::before {
    background:
        linear-gradient(90deg, rgba(4, 40, 98, .40) 0%, rgba(7, 95, 202, .18) 45%, rgba(53, 175, 234, .10) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(5, 58, 140, .20)) !important;
}

body.home-page .hero-slides::after {
    background:
        radial-gradient(circle at 78% 16%, rgba(53, 175, 234, .18), transparent 24rem),
        linear-gradient(90deg, rgba(4, 40, 98, .36), rgba(7, 95, 202, .16) 56%, rgba(53, 175, 234, .07)),
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(5, 58, 140, .18)) !important;
}

body.home-page .hero-slide {
    filter: saturate(.88) contrast(1.02) brightness(1.02) hue-rotate(-12deg) !important;
}

body.home-page .hero-content {
    width: min(61vw, 890px);
    padding: clamp(18px, 2.4vw, 34px);
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(53, 175, 234, .05)),
        rgba(5, 58, 140, .10);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

body.home-page .hero .eyebrow {
    color: #f4fcff !important;
    border-color: rgba(186, 237, 255, .45);
    background: rgba(5, 58, 140, .28) !important;
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-size: clamp(.72rem, .86vw, .88rem);
    font-weight: 700;
}

body.home-page .hero h1 {
    margin: clamp(16px, 2vw, 24px) 0 12px;
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-size: clamp(2.15rem, 4.05vw, 5.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.055em;
    white-space: nowrap;
    background: linear-gradient(100deg, #ffffff 0%, #eefbff 43%, #7ddcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .55px rgba(5, 58, 140, .34);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .18),
        0 13px 34px rgba(4, 40, 98, .30);
}

body.home-page .hero p {
    max-width: 790px;
    color: rgba(250, 254, 255, .96);
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-size: clamp(.95rem, 1.08vw, 1.12rem);
    font-weight: 600;
    line-height: 2;
    text-shadow:
        0 1px 0 rgba(5, 58, 140, .54),
        0 9px 24px rgba(4, 40, 98, .30);
}

body.home-page .cta-button {
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--msaken-blue), var(--msaken-sky));
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-weight: 700;
    box-shadow: 0 18px 38px rgba(7, 95, 202, .27);
}

body.home-page .cta-button.secondary {
    color: #f7fdff;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px rgba(255, 255, 255, .20), 0 14px 34px rgba(5, 58, 140, .14);
}

body.home-page .hero-stats {
    width: min(100%, 790px);
    gap: 12px;
}

body.home-page .hero-stat {
    padding: clamp(16px, 1.6vw, 20px);
    border-color: rgba(186, 237, 255, .30) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(53, 175, 234, .08)),
        rgba(5, 58, 140, .12);
    box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 14px 34px rgba(5, 58, 140, .13);
}

body.home-page .hero-stat .num {
    color: #f8d977;
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-weight: 700;
}

body.home-page .hero-stat .label {
    color: rgba(250, 254, 255, .86);
    font-family: 'Readex Pro', 'Cairo', 'Tajawal', system-ui, sans-serif;
    font-weight: 600;
}

[data-theme="dark"] body.home-page .hero {
    background:
        radial-gradient(circle at 86% 14%, rgba(53, 175, 234, .26), transparent 27rem),
        linear-gradient(135deg, rgba(5, 58, 140, .94), rgba(7, 95, 202, .62) 58%, rgba(53, 175, 234, .26)) !important;
}

@media (max-width: 1180px) {
    body.home-page .hero-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.home-page .hero {
        min-height: auto;
        padding: 18px;
        border-radius: 30px;
    }

    body.home-page .hero-content {
        width: 100%;
        padding: 14px;
        border-radius: 24px;
        text-align: right;
    }

    body.home-page .hero h1 {
        font-size: clamp(1.42rem, 6.1vw, 1.9rem);
        line-height: 1.22;
        letter-spacing: -.045em;
        white-space: nowrap;
    }

    body.home-page .hero p {
        font-size: .83rem;
        line-height: 1.85;
    }

    body.home-page .hero-actions {
        gap: 10px;
        margin-top: 18px;
    }

    body.home-page .cta-button {
        min-height: 48px;
        padding-inline: .9rem;
        font-size: .8rem;
    }

    body.home-page .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
        gap: 10px;
    }

    body.home-page .hero-stat {
        padding: 14px 12px;
        border-radius: 18px;
    }
}
