/* =========================================================
   MUSTADEV
   DIGITAL INTELLIGENCE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lime: #b8ff32;
    --lime-soft: #d6ff83;
    --black: #070b07;
    --black-2: #0b110b;
    --white: #ffffff;
    --text: #f3f7f0;
    --muted: #8c978a;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;

    background-image: url("../images/bg1.jpg") !important;
    background-size: cover !important;
    background-position: center !important;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(184,255,50,.035),
            transparent 35%
        ),
        #070b07;

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;
}

/* طبقة فوق الصورة */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: rgba(8, 12, 7, 0.85);

    z-index: -1;
    pointer-events: none;
}


/* =========================================================
   BACKGROUND
========================================================= */

.grid {
    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(184,255,50,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(184,255,50,.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 20%,
            transparent 80%
        );
}

.noise {
    position: fixed;
    inset: 0;

    z-index: 5;

    pointer-events: none;

    opacity: .035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.glow {
    position: fixed;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: .05;

    z-index: 0;
}

.glow-1 {
    background: var(--lime);

    left: -250px;
    top: -250px;
}

.glow-2 {
    background: #6eff00;

    right: -300px;
    bottom: -300px;
}


/* =========================================================
   SYSTEM
========================================================= */

.system-status {
    position: fixed;

    top: 30px;
    left: 35px;

    z-index: 20;

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 10px;

    letter-spacing: 2px;

    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 8px var(--lime),
        0 0 18px rgba(184,255,50,.5);

    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    position: fixed;

    top: 28px;
    right: 35px;

    z-index: 20;

    text-align: right;
}

.brand-name {
    font-size: 20px;

    font-weight: 800;

    letter-spacing: 3px;
}

.brand-name span {
    color: var(--lime);
}

.brand-sub {
    margin-top: 5px;

    font-size: 8px;

    letter-spacing: 3px;

    color: var(--muted);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}

.hero-content {
    position: absolute;

    left: 8vw;
    top: 50%;

    transform: translateY(-50%);

    width: min(430px,36vw);

    z-index: 4;
}

.eyebrow,
.popup-kicker {
    font-size: 10px;

    letter-spacing: 3px;

    color: var(--lime);

    font-weight: 700;
}

.hero h1 {
    margin-top: 20px;

    font-size: clamp(42px,5vw,76px);

    line-height: .95;

    letter-spacing: -4px;

    font-weight: 700;
}

.hero h1 span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(255,255,255,.75);
}

.hero-content p {
    margin-top: 28px;

    max-width: 390px;

    color: #929d91;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   CORE
========================================================= */

.core-wrapper {
    position: absolute;

    width: min(600px,48vw);

    aspect-ratio: 1;

    right: 10vw;
    top: 50%;

    transform: translateY(-50%);

    z-index: 3;

    transition: transform .2s ease-out;
}

.core-coordinate {
    position: absolute;

    top: 8%;
    left: 8%;

    font-size: 8px;

    letter-spacing: 2px;

    color: rgba(184,255,50,.5);
}

.core-signal {
    position: absolute;

    bottom: 8%;
    right: 5%;

    font-size: 8px;

    letter-spacing: 2px;

    color: rgba(184,255,50,.5);
}


/* =========================================================
   ORBITS
========================================================= */

.orbit {
    position: absolute;

    inset: 15%;

    border:
        1px solid rgba(184,255,50,.15);

    border-radius: 50%;
}

.orbit-1 {
    transform:
        rotate(25deg)
        scaleY(.65);

    animation:
        orbitRotate 18s linear infinite;
}

.orbit-2 {
    transform:
        rotate(-35deg)
        scaleY(.65);

    animation:
        orbitRotateReverse 25s linear infinite;
}

.orbit-3 {
    inset: 8%;

    border-style: dashed;

    border-color:
        rgba(184,255,50,.09);

    animation:
        slowSpin 35s linear infinite;
}

@keyframes orbitRotate {

    from {
        transform:
            rotate(25deg)
            scaleY(.65);
    }

    to {
        transform:
            rotate(385deg)
            scaleY(.65);
    }
}

@keyframes orbitRotateReverse {

    from {
        transform:
            rotate(-35deg)
            scaleY(.65);
    }

    to {
        transform:
            rotate(-395deg)
            scaleY(.65);
    }
}

@keyframes slowSpin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   CONNECTIONS
========================================================= */

.connection {
    position: absolute;

    width: 45%;
    height: 1px;

    left: 27.5%;
    top: 50%;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--lime),
            transparent
        );

    opacity: .2;

    transform-origin: center;

    animation:
        signalFlow 3s ease-in-out infinite;
}

.connection-1 {
    transform: rotate(0deg);
}

.connection-2 {
    transform: rotate(60deg);
    animation-delay: .5s;
}

.connection-3 {
    transform: rotate(120deg);
    animation-delay: 1s;
}

.connection-4 {
    transform: rotate(180deg);
    animation-delay: 1.5s;
}

.connection-5 {
    transform: rotate(240deg);
    animation-delay: 2s;
}

.connection-6 {
    transform: rotate(300deg);
    animation-delay: 2.5s;
}

@keyframes signalFlow {

    0%,
    100% {
        opacity: .08;
    }

    50% {
        opacity: .45;
    }
}


/* =========================================================
   AI CORE
========================================================= */

.core {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 180px;
    height: 180px;

    transform:
        translate(-50%,-50%);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 35% 30%,
            #26331f,
            #0c120b 55%,
            #050805 100%
        );

    border:
        1px solid rgba(184,255,50,.45);

    box-shadow:
        0 0 40px rgba(184,255,50,.12),
        inset 0 0 45px rgba(184,255,50,.06);

    animation:
        coreFloat 4s ease-in-out infinite;
}

@keyframes coreFloat {

    0%,
    100% {
        transform:
            translate(-50%,-50%)
            scale(1);
    }

    50% {
        transform:
            translate(-50%,-50%)
            scale(1.025);
    }
}

.core::before {
    content: "";

    position: absolute;

    inset: 12px;

    border-radius: 50%;

    border:
        1px solid rgba(184,255,50,.15);
}

.core::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    top: 20px;
    right: 42px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 15px var(--lime);
}

.core-ring {
    position: absolute;

    inset: -14px;

    border-radius: 50%;

    border:
        1px solid rgba(184,255,50,.25);

    animation:
        coreRing 4s linear infinite;
}

@keyframes coreRing {

    to {
        transform: rotate(360deg);
    }
}

.core-inner {
    position: relative;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    border:
        1px solid rgba(184,255,50,.25);

    display: flex;

    align-items: center;
    justify-content: center;
}

.core-letter {
    font-size: 48px;

    font-weight: 900;

    color: var(--lime);

    text-shadow:
        0 0 12px rgba(184,255,50,.4);
}

.core-lines {
    position: absolute;

    inset: 0;
}

.core-lines span {
    position: absolute;

    width: 100%;
    height: 1px;

    left: 0;
    top: 50%;

    background:
        rgba(184,255,50,.15);
}

.core-lines span:nth-child(2) {
    transform: rotate(60deg);
}

.core-lines span:nth-child(3) {
    transform: rotate(-60deg);
}

.core-label {
    position: absolute;

    left: 50%;

    top: calc(50% + 120px);

    transform:
        translateX(-50%);

    text-align: center;

    font-size: 10px;

    letter-spacing: 4px;

    color:
        rgba(255,255,255,.65);

    white-space: nowrap;
}

.core-label small {
    display: block;

    margin-top: 6px;

    color: var(--lime);

    font-size: 7px;

    letter-spacing: 3px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.core-nav {
    position: absolute;

    z-index: 10;

    background:
        rgba(7,11,7,.75);

    border:
        1px solid rgba(184,255,50,.18);

    color: #c8d1c5;

    padding: 11px 15px;

    font-size: 9px;

    letter-spacing: 2px;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: .3s ease;

    white-space: nowrap;
}

.core-nav span {
    color: var(--lime);

    margin-right: 8px;

    font-size: 8px;
}

.core-nav:hover {
    color: var(--lime);

    border-color: var(--lime);

    box-shadow:
        0 0 20px rgba(184,255,50,.08);

    transform:
        translateY(-3px);
}

.nav-about {
    left: 3%;
    top: 35%;
}

.nav-services {
    right: 1%;
    top: 35%;
}

.nav-solutions {
    right: 7%;
    bottom: 19%;
}

.nav-projects {
    left: 7%;
    bottom: 19%;
}

.nav-contact {
    left: 50%;
    top: 3%;

    transform:
        translateX(-50%);
}

.nav-contact:hover {
    transform:
        translateX(-50%)
        translateY(-3px);
}


/* =========================================================
   DEVIS NODE
========================================================= */

.nav-devis {
    left: 50%;
    bottom: 2%;

    transform:
        translateX(-50%);

    color: var(--lime);

    border-color:
        rgba(184,255,50,.55);

    background:
        rgba(184,255,50,.06);

    box-shadow:
        0 0 20px rgba(184,255,50,.05);
}

.nav-devis i {
    display: inline-block;

    width: 5px;
    height: 5px;

    margin-left: 8px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 8px var(--lime);

    animation:
        statusPulse 1.5s infinite;
}

.nav-devis:hover {
    background: var(--lime);

    color: #081007;

    box-shadow:
        0 0 35px rgba(184,255,50,.25);

    transform:
        translateX(-50%)
        translateY(-3px);
}


/* =========================================================
   MOBILE CTA
========================================================= */

.mobile-devis {
    display: none;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-left,
.footer-right {
    position: fixed;

    bottom: 25px;

    z-index: 20;

    font-size: 8px;

    letter-spacing: 2px;

    color: #687066;
}

.footer-left {
    left: 35px;
}

.footer-right {
    right: 35px;
}


/* =========================================================
   POPUP
========================================================= */

.popup-overlay {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(20px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-close {
    position: fixed;

    top: 25px;
    right: 30px;

    z-index: 110;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.2);

    background:
        rgba(0,0,0,.3);

    color: white;

    font-size: 27px;

    cursor: pointer;

    transition: .3s ease;
}

.popup-close:hover {
    background: var(--lime);

    color: #080c07;

    border-color: var(--lime);
}

.popup {
    position: relative;

    width: min(1100px,92vw);

    max-height: 88vh;

    overflow: auto;

    background: #f5f7f3;

    color: #101410;

    border-radius: 2px;

    display: none;

    grid-template-columns:
        40% 60%;

    box-shadow:
        0 40px 100px rgba(0,0,0,.5);

    animation:
        popupIn .45s ease;
}

.popup.active {
    display: grid;
}

@keyframes popupIn {

    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   POPUP IMAGES
========================================================= */

.popup-image,
.solutions-visual,
.contact-visual {
    position: relative;

    min-height: 500px;

    overflow: hidden;
}

.popup-image img,
.popup-wide-image img,
.solutions-visual img,
.contact-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter: grayscale(15%);
}

.popup-image::after,
.solutions-visual::after,
.contact-visual::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(0,0,0,.35)
        );
}

.image-number {
    position: absolute;

    left: 25px;
    bottom: 25px;

    z-index: 2;

    color: white;

    font-size: 60px;

    font-weight: 800;

    opacity: .6;
}


/* =========================================================
   POPUP CONTENT
========================================================= */

.popup-content {
    padding: 65px;

    overflow: auto;
}

.popup h2 {
    margin-top: 18px;

    font-size:
        clamp(34px,4vw,56px);

    line-height: 1;

    letter-spacing: -2px;
}

.popup h2 strong {
    display: block;

    color: #829b56;
}

.popup p {
    font-size: 14px;

    line-height: 1.8;

    color: #687067;
}

.popup .lead {
    margin-top: 28px;

    font-size: 16px;

    max-width: 620px;

    color: #343a34;
}


/* =========================================================
   PRINCIPLES
========================================================= */

.principles {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;

    margin-top: 50px;
}

.principle {
    border-top:
        1px solid #dce1d9;

    padding-top: 15px;
}

.principle span {
    font-size: 9px;

    color: #8ba35e;
}

.principle h3 {
    margin: 18px 0 8px;

    font-size: 13px;

    letter-spacing: 1px;
}

.principle p {
    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   SERVICES
========================================================= */

.popup-services {
    display: none;

    grid-template-columns: 1fr;
}

.popup-services.active {
    display: block;
}

.popup-wide-image {
    height: 270px;

    position: relative;

    overflow: hidden;
}

.image-overlay-title {
    position: absolute;

    left: 40px;
    bottom: 30px;

    z-index: 3;

    color: white;

    font-size: 13px;

    letter-spacing: 4px;
}

.image-overlay-title strong {
    display: block;

    font-size: 42px;

    letter-spacing: -2px;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 1px;

    margin-top: 45px;

    background: #dfe4dc;
}

.service-card {
    background: #f5f7f3;

    padding: 28px;

    display: flex;

    gap: 20px;

    transition: .3s ease;
}

.service-card:hover {
    background: #eaf0e4;
}

.service-card > span {
    color: #91a86b;

    font-size: 10px;
}

.service-card h3 {
    font-size: 13px;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.service-card p {
    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   SOLUTIONS
========================================================= */

.popup-solutions {
    grid-template-columns:
        42% 58%;
}

.vertical-label {
    position: absolute;

    left: 35px;
    bottom: 35px;

    z-index: 3;

    color: white;

    font-size: 11px;

    letter-spacing: 3px;
}

.vertical-label strong {
    display: block;

    font-size: 30px;

    letter-spacing: -1px;
}

.solutions-list {
    margin-top: 45px;
}

.solution-item {
    display: flex;

    gap: 25px;

    padding: 22px 0;

    border-bottom:
        1px solid #dde2da;
}

.solution-item > span {
    color: #90a867;

    font-size: 10px;
}

.solution-item h3 {
    font-size: 12px;

    letter-spacing: 1px;

    margin-bottom: 7px;
}

.solution-item p {
    font-size: 11px;
}


/* =========================================================
   PROJECTS
========================================================= */

.popup-projects {
    grid-template-columns: 1fr;
}

.popup-projects.active {
    display: block;
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 18px;

    margin-top: 45px;
}

.project-card {
    position: relative;

    overflow: hidden;

    aspect-ratio: .8;

    background: #ddd;
}

.project-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .6s ease;
}

.project-card:hover img {
    transform:
        scale(1.06);
}

.project-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px;

    color: white;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.8)
        );
}

.project-info span {
    font-size: 8px;

    letter-spacing: 2px;

    color: #b8ff32;
}

.project-info h3 {
    margin-top: 7px;

    font-size: 18px;
}


/* =========================================================
   CONTACT
========================================================= */

.popup-contact {
    grid-template-columns:
        45% 55%;
}

.contact-big-text {
    position: absolute;

    left: 35px;
    bottom: 35px;

    z-index: 3;

    color: white;

    font-size: 45px;

    line-height: .9;

    font-weight: 700;
}

.contact-big-text strong {
    display: block;

    color: var(--lime);
}

.contact-details {
    margin-top: 45px;
}

.contact-line {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-bottom:
        1px solid #dde2da;
}

.contact-line span {
    font-size: 9px;

    letter-spacing: 2px;

    color: #8b9388;
}

.contact-line strong {
    font-size: 11px;

    text-align: right;
}

.contact-line .available {
    color: #72933e;
}

.contact-button {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 40px;

    padding: 18px 22px;

    background: #101510;

    color: white;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 2px;

    transition: .3s ease;
}

.contact-button:hover {
    background: var(--lime);

    color: #101510;
}

.contact-button span {
    font-size: 20px;
}


/* =========================================================
   DEVIS POPUP
========================================================= */

.popup-devis {
    grid-template-columns:
        42% 58%;
}

.devis-visual {
    position: relative;

    min-height: 600px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #24351b 0%,
            #0b1109 42%,
            #050805 100%
        );

    display: flex;

    align-items: center;
    justify-content: center;
}

.devis-grid {
    position: absolute;

    inset: 0;

    opacity: .25;

    background-image:
        linear-gradient(
            rgba(184,255,50,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(184,255,50,.08) 1px,
            transparent 1px
        );

    background-size: 35px 35px;

    mask-image:
        radial-gradient(
            circle,
            black,
            transparent 75%
        );
}

.devis-orbit {
    position: absolute;

    width: 330px;
    height: 330px;

    border:
        1px solid rgba(184,255,50,.2);

    border-radius: 50%;

    transform:
        scaleY(.45)
        rotate(25deg);

    animation:
        devisOrbit 12s linear infinite;
}

.devis-orbit::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    top: 15px;
    left: 50%;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 20px var(--lime);
}

@keyframes devisOrbit {

    to {
        transform:
            scaleY(.45)
            rotate(385deg);
    }
}

.devis-core {
    position: relative;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    border:
        1px solid rgba(184,255,50,.55);

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 60px rgba(184,255,50,.12),
        inset 0 0 40px rgba(184,255,50,.08);
}

.devis-core::before {
    content: "";

    position: absolute;

    inset: 15px;

    border:
        1px solid rgba(184,255,50,.2);

    border-radius: 50%;
}

.devis-core span {
    position: relative;

    color: var(--lime);

    font-size: 48px;

    font-weight: 900;
}

.devis-code {
    position: absolute;

    top: 30px;
    left: 30px;

    color:
        rgba(184,255,50,.55);

    font-size: 8px;

    letter-spacing: 2px;

    line-height: 1.8;
}

.devis-title {
    position: absolute;

    left: 30px;
    bottom: 30px;

    color: white;

    font-size: 18px;

    letter-spacing: 2px;
}

.devis-title strong {
    display: block;

    color: var(--lime);

    font-size: 12px;

    margin-top: 7px;
}


/* =========================================================
   DEVIS FORM
========================================================= */

.devis-form {
    margin-top: 35px;
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 8px;

    letter-spacing: 2px;

    color: #777f75;

    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid #d9dfd6;

    background: #ffffff;

    padding: 13px 14px;

    outline: none;

    font-family: inherit;

    font-size: 12px;

    color: #161a16;

    transition: .25s ease;
}

.form-group textarea {
    resize: vertical;

    min-height: 105px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        #9fbe66;

    box-shadow:
        0 0 0 3px rgba(159,190,102,.1);
}

.devis-submit {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border: none;

    padding: 18px 20px;

    background: #101510;

    color: white;

    font-size: 10px;

    letter-spacing: 2px;

    cursor: pointer;

    transition: .3s ease;
}

.devis-submit span {
    font-size: 20px;
}

.devis-submit:hover {
    background: var(--lime);

    color: #101510;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1100px) {

    .hero-content {
        left: 5vw;

        width: 38vw;
    }

    .core-wrapper {
        right: 4vw;
    }
}


@media (max-width:800px) {

    body {
        overflow: hidden;
    }

    .system-status {
        top: 20px;
        left: 20px;

        font-size: 8px;
    }

    .brand {
        top: 18px;
        right: 20px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-sub {
        font-size: 6px;
    }


    /* HERO */

    .hero-content {
        left: 25px;
        top: 13%;

        transform: none;

        width:
            calc(100% - 50px);

        text-align: center;

        z-index: 5;
    }

    .eyebrow {
        font-size: 8px;
    }

    .hero h1 {
        margin-top: 13px;

        font-size: 36px;

        letter-spacing: -2px;
    }

    .hero-content p {
        margin: 15px auto 0;

        max-width: 330px;

        font-size: 11px;

        line-height: 1.6;
    }


    /* CORE */

    .core-wrapper {
        width:
            min(560px,125vw);

        left: 50%;
        right: auto;

        top: 65%;

        transform:
            translate(-50%,-50%);

        transition: none;
    }

    .core {
        width: 145px;
        height: 145px;
    }

    .core-inner {
        width: 80px;
        height: 80px;
    }

    .core-letter {
        font-size: 38px;
    }

    .core-label {
        top:
            calc(50% + 100px);

        font-size: 8px;
    }


    /* NAV */

    .core-nav {
        font-size: 7px;

        padding: 8px 10px;

        letter-spacing: 1px;
    }

    .core-nav span {
        margin-right: 4px;
    }

    .nav-about {
        left: 1%;
        top: 37%;
    }

    .nav-services {
        right: 0;
        top: 37%;
    }

    .nav-solutions {
        right: 3%;
        bottom: 19%;
    }

    .nav-projects {
        left: 3%;
        bottom: 19%;
    }

    .nav-contact {
        top: 4%;
    }

    .nav-devis {
        bottom: 3%;

        padding:
            8px 11px;

        font-size: 6px;
    }


    /* MOBILE CTA */

    .mobile-devis {
        display: flex;

        position: fixed;

        left: 50%;
        bottom: 18px;

        transform:
            translateX(-50%);

        z-index: 50;

        align-items: center;

        gap: 8px;

        border:
            1px solid rgba(184,255,50,.55);

        background:
            rgba(7,11,7,.88);

        color: var(--lime);

        padding: 10px 15px;

        font-size: 8px;

        letter-spacing: 1.5px;

        backdrop-filter: blur(12px);

        cursor: pointer;

        box-shadow:
            0 0 25px rgba(184,255,50,.08);
    }

    .mobile-devis span {
        width: 5px;
        height: 5px;

        border-radius: 50%;

        background: var(--lime);

        box-shadow:
            0 0 10px var(--lime);
    }

    .mobile-devis b {
        font-size: 15px;
    }


    /* FOOTER */

    .footer-left,
    .footer-right {
        display: none;
    }


    /* POPUP */

    .popup-overlay {
        padding: 15px;
    }

    .popup {
        width: 100%;

        max-height: 90vh;

        display: none !important;

        grid-template-columns: 1fr;

        overflow-y: auto;
    }

    .popup.active {
        display: block !important;
    }

    .popup-image,
    .solutions-visual,
    .contact-visual {
        min-height: 220px;

        height: 220px;
    }

    .popup-content {
        padding: 30px 24px;
    }

    .popup h2 {
        font-size: 34px;
    }

    .popup .lead {
        font-size: 13px;
    }


    /* ABOUT */

    .principles {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 30px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
    }


    /* PROJECTS */

    .projects-grid {
        grid-template-columns: 1fr;
    }


    /* DEVIS */

    .popup-devis {
        display: none;
    }

    .devis-visual {
        min-height: 220px;

        height: 220px;
    }

    .devis-orbit {
        width: 190px;
        height: 190px;
    }

    .devis-core {
        width: 90px;
        height: 90px;
    }

    .devis-core span {
        font-size: 34px;
    }

    .devis-code {
        top: 18px;
        left: 20px;
    }

    .devis-title {
        left: 20px;
        bottom: 18px;

        font-size: 13px;
    }

    .devis-title strong {
        font-size: 9px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


    /* CONTACT */

    .contact-big-text {
        font-size: 32px;

        left: 25px;
        bottom: 25px;
    }

    .contact-line {
        flex-direction: column;

        gap: 6px;
    }

    .contact-line strong {
        text-align: left;
    }


    /* CLOSE */

    .popup-close {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;

        font-size: 22px;
    }

}


@media (max-height:700px) and (min-width:801px) {

    .hero-content {
        transform:
            translateY(-45%);
    }

    .core-wrapper {
        width:
            min(500px,42vw);
    }

}






/* =========================================================
   MULTI-PAGE NAVIGATION
   AI CORE VISUALS ARE KEPT UNCHANGED
========================================================= */

.core-nav {
    text-decoration: none;
    display: block;
    font-family: inherit;
}

.blog-access {
    position: fixed;
    left: 35px;
    bottom: 58px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: #c8d1c5;
    background: rgba(7,11,7,.78);
    border: 1px solid rgba(184,255,50,.18);
    text-decoration: none;
    font-size: 9px;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    transition: .3s ease;
}
.blog-access span,
.blog-access b {
    color: var(--lime);
}
.blog-access:hover {
    color: var(--lime);
    border-color: var(--lime);
    transform: translateY(-3px);
}


/* =========================================================
   MOBILE AI CORE — FINAL FIX
   DO NOT MODIFY DESKTOP
========================================================= */

@media (max-width: 800px) {

    /* منع أي خروج أفقي */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .hero {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* =====================================================
       AI CORE CONTAINER
    ===================================================== */

    .core-wrapper {
        width: min(390px, 100vw) !important;
        height: min(390px, 100vw) !important;

        left: 50% !important;
        right: auto !important;

        top: 64% !important;

        transform: translate(-50%, -50%) !important;

        max-width: 100vw;

        overflow: visible;
    }


    /* =====================================================
       ORBITS
    ===================================================== */

    .orbit-1 {
        inset: 18% !important;
    }

    .orbit-2 {
        inset: 18% !important;
    }

    .orbit-3 {
        inset: 10% !important;
    }


    /* =====================================================
       CONNECTIONS
    ===================================================== */

    .connection {
        width: 42% !important;
        left: 29% !important;
        opacity: .12;
    }


    /* =====================================================
       CORE
    ===================================================== */

    .core {
        width: 125px !important;
        height: 125px !important;
    }

    .core-inner {
        width: 72px !important;
        height: 72px !important;
    }

    .core-letter {
        font-size: 34px !important;
    }

    .core-ring {
        inset: -10px !important;
    }

    .core-label {
        top: calc(50% + 88px) !important;

        font-size: 7px !important;
        letter-spacing: 3px !important;
    }

    .core-label small {
        font-size: 6px !important;
        letter-spacing: 2px !important;
    }


    /* =====================================================
       NAVIGATION
       كل العناصر داخل حدود الـCORE
    ===================================================== */

    .core-nav {
        font-size: 7px !important;
        letter-spacing: 1px !important;

        padding: 8px 9px !important;

        max-width: 145px;

        white-space: nowrap;

        z-index: 20;
    }

    .core-nav span {
        font-size: 7px !important;
        margin-right: 4px !important;
    }


    /* TOP */
    .nav-contact {
        left: 50% !important;
        top: 0 !important;

        transform: translateX(-50%) !important;
    }


    /* LEFT */
    .nav-about {
        left: 0 !important;
        top: 31% !important;
    }

    .nav-projects {
        left: 3% !important;
        bottom: 18% !important;
    }


    /* RIGHT */
    .nav-services {
        right: 0 !important;
        top: 31% !important;
    }

    .nav-solutions {
        right: 3% !important;
        bottom: 18% !important;
    }


    /* BOTTOM */
    .nav-devis {
        left: 50% !important;
        bottom: 0 !important;

        transform: translateX(-50%) !important;

        padding: 8px 10px !important;
    }

    .nav-contact:hover {
        transform: translateX(-50%) !important;
    }

    .nav-devis:hover {
        transform:
            translateX(-50%)
            translateY(-3px) !important;
    }


    /* =====================================================
       BLOG
    ===================================================== */

    .blog-access {
        left: 15px !important;
        bottom: 15px !important;

        padding: 8px 10px !important;

        font-size: 7px !important;
        letter-spacing: 1px !important;
    }


    /* =====================================================
       MOBILE CTA
    ===================================================== */

    .mobile-devis {
        bottom: 15px !important;
    }

}

@media (max-width: 800px) {

    /* CONTACT — نهبطوه شوية باش ما يتلاقاش مع Hero */
    .nav-contact {
        top: 8% !important;
    }


    /* MOBILE — نخليو غير زر واحد */
    .mobile-devis {
        display: none !important;
    }

}