:root {
    --ink: #050F1F;
    --ink2: #081A34;
    --gold: #E5C06A;
    --gold2: #C9A34D;
    --shadow2: 0 10px 24px rgba(0, 0, 0, .18);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #EAF0FA;
    background: #050F1F;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto
}


/* CYBERPUNK BACKGROUND (animated) */

.cyberBg {
    position: fixed;
    inset: -20%;
    z-index: -5;
    background: radial-gradient(900px 520px at 18% 20%, rgba(0, 247, 255, .22), transparent 60%), radial-gradient(820px 520px at 78% 25%, rgba(255, 0, 199, .18), transparent 62%), radial-gradient(900px 620px at 60% 90%, rgba(255, 210, 0, .10), transparent 65%), radial-gradient(700px 480px at 45% 55%, rgba(120, 80, 255, .14), transparent 60%), linear-gradient(180deg, #050F1F 0%, #071A33 55%, #050F1F 100%);
    filter: saturate(1.15) contrast(1.05);
    transform: translate3d(0, 0, 0) scale(1.02);
    animation: neonDrift 14s ease-in-out infinite;
}

@keyframes neonDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02);
        filter: saturate(1.10) contrast(1.05);
    }
    50% {
        transform: translate3d(-1.2%, -0.8%, 0) scale(1.04);
        filter: saturate(1.22) contrast(1.08);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1.02);
        filter: saturate(1.10) contrast(1.05);
    }
}

.cyberFx {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: .50;
    background: linear-gradient(to right, rgba(0, 183, 255, .16) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 183, 255, .12) 1px, transparent 1px), linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px), repeating-linear-gradient( 180deg, rgba(255, 255, 255, .05) 0px, rgba(255, 255, 255, .05) 1px, transparent 2px, transparent 7px), repeating-linear-gradient( 135deg, rgba(255, 0, 199, .08) 0 2px, transparent 2px 22px);
    background-size: 140px 140px, 140px 140px, 44px 44px, 44px 44px, 100% 100%, 320px 320px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, 0) 78%);
    mix-blend-mode: screen;
    filter: blur(.15px);
    animation: gridDrift 10s linear infinite;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 80px 40px, 40px 80px, 22px 16px, 16px 22px, 0 14px, 120px 60px;
    }
}

.cyberFx::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 247, 255, .10) 30%, rgba(255, 0, 199, .10) 55%, transparent 80%);
    transform: translateX(-25%);
    animation: cyberSweep 7s ease-in-out infinite;
    opacity: .65;
}

@keyframes cyberSweep {
    0% {
        transform: translateX(-25%) translateY(0);
    }
    50% {
        transform: translateX(25%) translateY(-1%);
    }
    100% {
        transform: translateX(-25%) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cyberBg,
    .cyberFx {
        animation: none;
    }
    .cyberFx::before {
        animation: none;
    }
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s;
}

.btn--sm {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #1b1406;
    box-shadow: var(--shadow2);
}

.btn--gold:hover {
    transform: translateY(-1px)
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .10)
}

.btn--ghostDark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
}

.btn--ghostDark:hover {
    background: rgba(255, 255, 255, .10)
}

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .18);
    /* كان .12 */
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
    /* عشان اللوجو 88 */
    gap: 12px;
    flex-wrap: nowrap;
}


/* logo */

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand__logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
}


/* center nav */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    white-space: nowrap;
    padding: 10px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .10));
    box-shadow: inset 0 0 0 1px rgba(0, 183, 255, .08), 0 10px 24px rgba(0, 0, 0, .08);
}

.nav a {
    position: relative;
    color: rgba(255, 255, 255, .94);
    /* أفتح */
    font-weight: 800;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    line-height: 1;
    transition: .2s;
}

.nav a:hover {
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset;
}

.nav a.isActive {
    background: rgba(229, 192, 106, .18);
    /* لمسة ذهبية */
    box-shadow: 0 0 0 1px rgba(229, 192, 106, .28) inset, 0 0 18px rgba(229, 192, 106, .12);
}

.nav a.isActive::after {
    display: none;
}


/* left */

.header__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.navToggle {
    display: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(234, 240, 250, .95);
    padding: 10px 12px;
    border-radius: 14px;
}


/* animated scan line under header */

.headerScan {
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 247, 255, 0) 0%, rgba(0, 247, 255, .85) 20%, rgba(255, 0, 199, .85) 55%, rgba(255, 210, 0, .55) 75%, rgba(0, 247, 255, 0) 100%);
    background-size: 200% 100%;
    animation: headerScanMove 3.2s linear infinite;
    opacity: .95;
}

@keyframes headerScanMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}


/* HERO VIDEO */

.heroVideo {
    position: relative;
    min-height: clamp(560px, 78vh, 780px);
    overflow: hidden;
    border-bottom: 1px solid rgba(229, 192, 106, .10);
}

.heroVideo__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.03);
}

.heroVideo__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 20% 70%, rgba(0, 183, 255, .10), transparent 60%), radial-gradient(700px 360px at 35% 35%, rgba(255, 42, 161, .08), transparent 60%), radial-gradient(900px 420px at 70% 25%, rgba(255, 210, 0, .06), transparent 65%), linear-gradient(90deg, rgba(5, 15, 31, .35), rgba(5, 15, 31, .72));
    pointer-events: none;
}

.heroVideo__grid {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: grid;
    align-items: center;
    padding: 86px 0;
}

.heroVideo__content {
    width: min(620px, 100%);
    margin-left: auto;
    margin-top: 40px;
    padding-right: 26px;
    color: #fff;
}

.heroVideo__kicker {
    margin: 0 0 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, .82);
}

.heroVideo__title {
    margin: 0 0 12px;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.12;
    letter-spacing: -.6px;
}

.heroVideo__title span {
    color: var(--gold);
}

.heroVideo__lead {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .80);
    font-size: 18px;
    line-height: 1.9;
}

.heroVideo__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.heroVideo__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
}

.miniLink {
    color: rgba(255, 255, 255, .92)
}

.miniLink:hover {
    text-decoration: underline
}

.dot {
    opacity: .6
}


/* Sections */

.section {
    padding: 60px 0;
    background: transparent;
}

.section--alt {
    background: rgba(255, 255, 255, .04);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sectionHead {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 22px;
    text-align: center
}

.sectionTag {
    display: inline-flex;
    margin-inline: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    font-weight: 900;
    color: rgba(234, 240, 250, .90);
    font-size: 13px;
}

.sectionHead h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.3px;
    color: #fff
}

.sectionHead p {
    margin: 0;
    color: rgba(234, 240, 250, .75);
    line-height: 1.9
}


/* Services glass */

.serviceGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.serviceCard {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transition: .2s;
    min-height: 150px;
}

.serviceCard:hover {
    transform: translateY(-2px)
}

.serviceIcon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(229, 192, 106, .18);
    border: 1px solid rgba(229, 192, 106, .35);
    margin-bottom: 10px;
    font-size: 18px;
}

.serviceTitle {
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px
}

.serviceDesc {
    color: rgba(234, 240, 250, .72);
    line-height: 1.7;
    font-weight: 700;
    font-size: 14px
}


/* Work */

.workGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.workCard {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.workGrid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
    box-shadow: inset 0 0 0 999px rgba(6, 16, 34, .10), 0 12px 26px rgba(0, 0, 0, .22);
}

.workItemOverlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.workCard:hover img {
    transform: scale(1.025);
    filter: saturate(1.05);
    box-shadow: inset 0 0 0 999px rgba(6, 16, 34, .16), 0 18px 34px rgba(0, 0, 0, .28);
}

.workCard:hover .workItemOverlay {
    opacity: 1;
}


/* Steps glass */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.stepNum {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 183, 255, .10);
    border: 1px solid rgba(0, 183, 255, .22);
    color: #EAF0FA;
    font-weight: 900;
    margin-bottom: 10px;
}

.step h3 {
    margin: 0 0 8px;
    color: #fff
}

.step p {
    margin: 0;
    color: rgba(234, 240, 250, .72);
    line-height: 1.8;
    font-weight: 700
}


/* Quote form glass */

.quote {
    width: min(860px, 100%);
    margin-inline: auto;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.formSuccess {
    width: min(860px, 100%);
    margin: 0 auto 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(54, 207, 132, .16);
    border: 1px solid rgba(54, 207, 132, .45);
    color: #e9fff2;
    font-weight: 800;
}

.formErrors {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 107, 107, .13);
    border: 1px solid rgba(255, 107, 107, .4);
}

.formErrors p {
    margin: 0;
    color: #ffe8e8;
    font-weight: 700;
}

.formErrors p+p {
    margin-top: 6px;
}

.fieldError {
    display: block;
    margin-top: 8px;
    color: #ffd7d7;
    font-size: 13px;
    font-weight: 700;
}

.quote :is(input, textarea)[aria-invalid="true"] {
    border-color: rgba(255, 107, 107, .85);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, .2);
}

.quote .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

label span {
    display: block;
    font-weight: 900;
    color: rgba(234, 240, 250, .92);
    margin-bottom: 8px
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font: inherit;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(234, 240, 250, .55);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 183, 255, .55);
    box-shadow: 0 0 0 4px rgba(0, 183, 255, .12);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px
}


/* Footer */

.footer {
    background: rgba(0, 0, 0, .18);
    color: #fff;
    padding: 34px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.1fr .7fr .7fr;
    gap: 18px;
    align-items: start;
}

.footer__brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.footer__logo {
    height: 150px;
    width: auto;
    object-fit: contain
}

.footerMuted {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .75);
    font-weight: 800
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, .82)
}

.footer__links a:hover {
    color: #fff;
    text-decoration: underline
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin-top: 18px;
    padding-top: 14px;
    color: rgba(255, 255, 255, .70);
    font-size: 14px;
}


/* WhatsApp FAB */

.whatsFab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    background: #0AAE5A;
    color: #fff;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}


/* Responsive */

@media (max-width: 1100px) {
    .serviceGrid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 980px) {
    .navToggle {
        display: inline-flex;
    }
    .nav {
        display: none;
        position: absolute;
        top: 112px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: rgba(255, 255, 255, .98);
        border: 1px solid rgba(12, 37, 80, .10);
        border-radius: 18px;
        padding: 10px;
        gap: 6px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
    }
    .nav.nav--open {
        display: flex;
    }
    .heroVideo__grid {
        padding: 70px 0;
    }
    .heroVideo__content {
        padding-right: 14px;
    }
    .serviceGrid {
        grid-template-columns: 1fr 1fr
    }
    .workGrid {
        grid-template-columns: 1fr 1fr
    }
    .steps {
        grid-template-columns: 1fr 1fr
    }
    .footer__inner {
        grid-template-columns: 1fr
    }
    .quote .row {
        grid-template-columns: 1fr
    }
}

@media (max-width: 520px) {
    .brand__logo {
        height: 66px;
    }
    .header__inner {
        height: 84px;
    }
    .serviceGrid {
        grid-template-columns: 1fr
    }
    .workGrid {
        grid-template-columns: 1fr
    }
    .steps {
        grid-template-columns: 1fr
    }
}

@media (max-width: 980px) {
    .navToggle {
        display: inline-flex;
    }
    .nav {
        display: none;
        position: absolute;
        top: 112px;
        /* نفس ارتفاع الهيدر */
        right: 20px;
        left: 20px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px;
        gap: 8px;
        background: rgba(5, 15, 31, .92);
        border: 1px solid rgba(0, 183, 255, .22);
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    }
    .nav.nav--open {
        display: flex;
    }
}


/* =============== HEADER ANIMATIONS =============== */


/* 1) Shimmer sweep over header */

.header {
    position: fixed;
    overflow: hidden;
    width: 100%;
    /* مهم عشان اللمعة متطلعش برا */
}

.header::before {
    content: "";
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(115deg, transparent 0%, rgba(0, 247, 255, .10) 35%, rgba(255, 0, 199, .10) 55%, transparent 75%);
    transform: translateX(-35%) rotate(0deg);
    animation: headerShimmer 6.5s ease-in-out infinite;
    opacity: .75;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes headerShimmer {
    0% {
        transform: translateX(-45%) skewX(-10deg);
        opacity: .0;
    }
    15% {
        opacity: .65;
    }
    50% {
        transform: translateX(45%) skewX(-10deg);
        opacity: .35;
    }
    100% {
        transform: translateX(45%) skewX(-10deg);
        opacity: 0;
    }
}


/* 2) Neon moving line (scan) under header */

.headerScan {
    height: 2px;
    opacity: .85;
    background: linear-gradient(90deg, rgba(0, 247, 255, 0) 0%, rgba(0, 247, 255, .85) 20%, rgba(255, 0, 199, .70) 55%, rgba(255, 210, 0, .45) 75%, rgba(0, 247, 255, 0) 100%);
    background-size: 220% 100%;
    animation: headerScanMove 3.6s linear infinite;
}

@keyframes headerScanMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 220% 50%;
    }
}


/* 3) Nav link underline micro-animation */

.nav a {
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 247, 255, .0), rgba(0, 247, 255, .9), rgba(255, 0, 199, .8), rgba(0, 247, 255, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    opacity: .9;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a.isActive::after {
    transform: scaleX(1);
}


/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {
    .header::before {
        animation: none;
    }
    .headerScan {
        animation: none;
    }
    .nav a::after {
        transition: none;
    }
}

section {
    scroll-margin-top: 120px;
}

#hero,
#services,
#work,
#how,
#quote,
#contact {
    scroll-margin-top: 120px;
}


/* Floating contact icons */

.contactFab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fabBtn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .26);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, filter .18s ease;
    position: relative;
    overflow: hidden;
}

.fabBtn svg {
    width: 28px;
    height: 28px;
}

.fabBtn--wa {
    background: linear-gradient(135deg, #18C37E, #0AAE5A);
}

.fabBtn--tel {
    background: linear-gradient(135deg, #1A7BFF, #00B7FF);
}

.fabBtn::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .22) 45%, transparent 70%);
    transform: translateX(-35%);
    animation: fabShine 3.8s ease-in-out infinite;
    opacity: .55;
}

@keyframes fabShine {
    0% {
        transform: translateX(-45%);
        opacity: 0;
    }
    25% {
        opacity: .55;
    }
    60% {
        transform: translateX(45%);
        opacity: .20;
    }
    100% {
        transform: translateX(45%);
        opacity: 0;
    }
}

.fabBtn--wa {
    animation: fabPulse 2.4s ease-in-out infinite;
}

.fabBtn--tel {
    animation: fabPulse 2.8s ease-in-out infinite;
}

@keyframes fabPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
    }
}

.fabBtn:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .fabBtn--wa,
    .fabBtn--tel,
    .fabBtn::after {
        animation: none;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.lightbox.isOpen {
    display: flex;
}

.lightbox__panel {
    width: min(1100px, 96vw);
    background: rgba(7, 20, 41, .95);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.lightbox__img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: rgba(0, 0, 0, .25);
}

.lightbox__meta {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.lightbox__title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.lightbox__desc {
    margin: 8px 0 0;
    color: rgba(234, 240, 250, .9);
    line-height: 1.8;
}

.lightbox__count {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
    color: rgba(234, 240, 250, .96);
    font-size: 12px;
    font-weight: 800;
}

.lightbox__price {
    margin: 0 0 8px;
    color: #ffe4a5;
    font-size: 14px;
    font-weight: 800;
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: rgba(7, 20, 41, .75);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.lightbox__nav:hover {
    background: rgba(229, 192, 106, .28);
}

.lightbox__nav--prev {
    right: 24px;
}

.lightbox__nav--next {
    left: 24px;
}

@media (max-width: 768px) {
    .lightbox__title {
        font-size: 19px;
    }

    .lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .lightbox__nav--prev {
        right: 10px;
    }

    .lightbox__nav--next {
        left: 10px;
    }
}


/* Marquee slider (top, no title) */


/* Infinite marquee (no gaps) */


/* Never-disappear marquee */

.marquee--top {
    margin: 18px 0 8px;
}

.marquee2 {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    height: 210px;
    /* على قد ارتفاع الصور */
}


/* edge fades (optional) */

.marquee2::before,
.marquee2::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 5;
    pointer-events: none;
}

.marquee2::before {
    right: 0;
    background: linear-gradient(90deg, rgba(5, 15, 31, 0), rgba(5, 15, 31, .95));
}

.marquee2::after {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 15, 31, .95), rgba(5, 15, 31, 0));
}

.marquee2__track {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
    width: -moz-max-content;
    width: max-content;
    min-width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.marquee2__group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    padding-inline-end: 14px;
}

.marquee2__item {
    width: 280px;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    flex: 0 0 auto;
}

.marquee2__card {
    position: relative;
    flex: 0 0 auto;
}

.marquee2__meta {
    position: absolute;
    inset-inline: 10px;
    inset-block-end: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 15, 31, .18), rgba(5, 15, 31, .82));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.marquee2__meta h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    font-weight: 800;
}

.marquee2__meta p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(231, 240, 255, .92);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Responsive */

@media (max-width: 980px) {
    .marquee2 {
        height: 190px;
    }
    .marquee2__item {
        width: 240px;
        height: 170px;
    }
    .marquee2__meta {
        inset-inline: 8px;
        inset-block-end: 8px;
        padding: 8px 10px;
    }
}

@media (max-width: 520px) {
    .marquee2 {
        height: 240px;
    }
    .marquee2__item {
        width: 76vw;
        height: 220px;
    }
    .marquee2::before,
    .marquee2::after {
        width: 50px;
    }
    .marquee2__meta p {
        max-width: 65vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee2__meta {
        backdrop-filter: none;
    }
}


/* Ready products slider (Swiper) */

.productsSlider {
    margin: 12px 0 0;
}

.productsSwiper {
    overflow: hidden;
    padding: 8px 0 0;
    height: 220px;
}

.productsSlider+.section {
    padding-top: 28px;
}

.productsSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.productsSwiper .swiper-slide {
    width: auto;
}

.productSlideCard {
    position: relative;
    width: 280px;
}

.productSlideImage {
    width: 280px;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    display: block;
}

.productSlideMeta {
    position: absolute;
    inset-inline: 10px;
    inset-block-end: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 15, 31, .18), rgba(5, 15, 31, .82));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.productSlideMeta h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    font-weight: 800;
}

.productSlideMeta p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(231, 240, 255, .92);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .productSlideCard,
    .productSlideImage {
        width: 240px;
        height: 170px;
    }
}

@media (max-width: 520px) {
    .productSlideCard,
    .productSlideImage {
        width: 76vw;
        height: 220px;
    }
    .productSlideMeta p {
        max-width: 65vw;
    }
}


/* Works slider */

.worksSwiper {
    overflow: hidden;
    padding: 8px 0 4px;
}

.worksSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.worksSwiper .swiper-slide {
    width: auto;
}

.workSlideCard {
    position: relative;
    width: 340px;
}

.workSlideImage {
    width: 340px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    display: block;
}

.workSlideMeta {
    position: absolute;
    inset-inline: 10px;
    inset-block-end: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 15, 31, .22), rgba(5, 15, 31, .88));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.workSlideMeta h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    font-weight: 800;
}

.workSlideMeta p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(231, 240, 255, .92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .workSlideCard,
    .workSlideImage {
        width: 300px;
        height: 210px;
    }
}

@media (max-width: 520px) {
    .workSlideCard,
    .workSlideImage {
        width: 84vw;
        height: 230px;
    }
    .workSlideMeta p {
        max-width: 72vw;
    }
}


/* Mobile nav visibility fix */

@media (max-width: 980px) {
    .header {
        overflow: visible !important;
    }
    .header::before {
        display: none !important;
    }
    .headerScan {
        display: none !important;
    }
    .header__inner {
        position: relative;
        z-index: 130;
    }
    .nav {
        position: fixed !important;
        top: 92px !important;
        right: 12px !important;
        left: 12px !important;
        z-index: 9999 !important;
        background: rgba(6, 16, 34, .97) !important;
        border: 1px solid rgba(0, 183, 255, .28) !important;
        box-shadow: 0 20px 48px rgba(0, 0, 0, .45) !important;
        backdrop-filter: blur(10px);
    }
    .nav.nav--open {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        isolation: isolate;
    }
    .nav a {
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #f3f8ff !important;
        -webkit-text-fill-color: #f3f8ff !important;
        font-weight: 800;
        font-size: 16px !important;
        line-height: 1.2 !important;
        text-align: right !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, .04) !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
    }
    .nav a:hover,
    .nav a:focus-visible {
        background: rgba(229, 192, 106, .20) !important;
        color: #ffd77a !important;
        box-shadow: inset 0 0 0 1px rgba(229, 192, 106, .42);
    }
    .nav a.isActive {
        background: rgba(229, 192, 106, .24) !important;
        color: #ffe3a0 !important;
        box-shadow: inset 0 0 0 1px rgba(229, 192, 106, .50);
    }
    .nav a::after {
        display: none !important;
    }
}