
:root {
    --blue: #0879ec;
    --blue-dark: #0758bd;
    --blue-light: #48b6ff;
    --ink: #101c32;
    --muted: #6d7b91;
    --white: #ffffff;
    --surface: #f5f8fd;
    --border: #e8edf5;
    --shadow: 0 18px 60px rgba(25, 63, 111, .09);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: #fff;
    color: var(--ink);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    font-size: 16px;
}

    body.menu-open {
        overflow: hidden;
    }

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

button {
    font-family: inherit;
}

.container {
    max-width: 1280px;
}

/* PAGE PROGRESS */

.site-progress {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #0879ec, #6ed0ff);
}

/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .7s ease, visibility .7s ease;
}

    .preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.preloader-brand {
    font-size: 65px;
    font-weight: 900;
    letter-spacing: -5px;
}

    .preloader-brand span {
        color: var(--blue);
    }

.preloader-track {
    width: 140px;
    height: 3px;
    background: #e7eef8;
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 12px;
}

    .preloader-track span {
        display: block;
        height: 100%;
        width: 40%;
        background: var(--blue);
        animation: loadingLine 1.2s ease-in-out infinite;
    }

.preloader-caption {
    color: #93a1b4;
    font-size: 9px;
    letter-spacing: 3px;
    direction: ltr;
}

/* HEADER */

.site-header {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    left: 0;
    height: 88px;
    background: rgba(255,255,255,.91);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220,230,243,.7);
    transition: height .3s, box-shadow .3s;
}

    .site-header.scrolled {
        height: 72px;
        box-shadow: 0 8px 35px rgba(17,45,85,.07);
    }

.main-nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    transition: height .3s;
}

.site-header.scrolled .main-nav {
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(145deg,#0879ec,#54baff);
    box-shadow: 0 7px 18px rgba(8,121,236,.2);
}

    .brand-symbol span {
        color: #d9f0ff;
    }

.brand-text {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.15;
}

    .brand-text small {
        display: block;
        color: #8594aa;
        font-size: 8px;
        letter-spacing: 2px;
        direction: ltr;
        text-align: right;
    }

.desktop-links {
    display: flex;
    align-items: center;
    gap: clamp(15px,2.2vw,30px);
}

.nav-link-custom {
    font-size: 14px;
    font-weight: 700;
    color: #536176;
    position: relative;
    padding: 10px 0;
    transition: color .25s;
}

    .nav-link-custom::after {
        content: "";
        position: absolute;
        bottom: 2px;
        right: 0;
        width: 0;
        height: 2px;
        border-radius: 5px;
        background: var(--blue);
        transition: width .3s;
    }

    .nav-link-custom:hover {
        color: var(--blue);
    }

        .nav-link-custom:hover::after {
            width: 100%;
        }

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: white;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s;
    box-shadow: 0 7px 20px rgba(8,121,236,.16);
}

    .nav-cta:hover {
        background: var(--blue-dark);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(8,121,236,.25);
    }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

    .menu-toggle span {
        width: 19px;
        height: 2px;
        background: var(--ink);
        border-radius: 3px;
    }

/* MOBILE MENU */

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10,25,48,.38);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

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

.mobile-menu {
    position: fixed;
    z-index: 1201;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(380px,90%);
    background: white;
    padding: 28px;
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.mobile-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--surface);
    border-radius: 12px;
    color: var(--ink);
    font-size: 20px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

    .mobile-menu-links a {
        padding: 16px 0;
        font-size: 17px;
        font-weight: 800;
        border-bottom: 1px solid var(--border);
        transition: .3s;
    }

        .mobile-menu-links a:hover {
            color: var(--blue);
            padding-right: 10px;
        }

.mobile-menu-cta {
    margin-top: 30px;
    padding: 16px;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    text-align: center;
    font-weight: 800;
}

.mobile-menu-footer {
    margin-top: auto;
    font-size: 9px;
    color: #a1aec0;
    letter-spacing: 1px;
    direction: ltr;
    text-align: center;
}

/* FOOTER */

.site-footer {
    background: #101d32;
    color: white;
    padding: 80px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr .8fr .9fr 1.1fr;
    gap: 45px;
    padding-bottom: 55px;
}

.footer-brand .brand-text {
    color: white;
}

    .footer-brand .brand-text small {
        color: #9aabc1;
    }

.footer-about p,
.footer-contact p {
    color: #aab7ca;
    font-size: 13px;
    line-height: 2.2;
    margin-top: 22px;
    max-width: 340px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

    .social-links a {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid #35445b;
        border-radius: 10px;
        color: #d6e3f4;
        transition: .3s;
    }

        .social-links a:hover {
            background: var(--blue);
            border-color: var(--blue);
            transform: translateY(-4px);
        }

.footer-column h5,
.footer-contact h5 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 25px;
}

.footer-column a {
    display: block;
    color: #aab7ca;
    font-size: 13px;
    margin: 15px 0;
    transition: .3s;
}

    .footer-column a:hover {
        color: #66bfff;
        transform: translateX(-4px);
    }

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #70c5ff;
    font-weight: 800;
    font-size: 14px;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid #2b3a51;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #a2afc2;
    font-size: 11px;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    z-index: 900;
    bottom: 25px;
    left: 25px;
    width: 47px;
    height: 47px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--blue);
    box-shadow: 0 10px 25px rgba(8,121,236,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-5px);
    }

/* GENERAL */

.section-kicker {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(32px,4vw,52px);
    font-weight: 900;
    line-height: 1.55;
    color: var(--ink);
}

    .section-title span {
        color: var(--blue);
    }

.section-description {
    color: var(--muted);
    font-size: 16px;
    line-height: 2.1;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 16px 27px;
    border-radius: 12px;
    background: linear-gradient(120deg,#0879ec,#35aaff);
    color: white;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(8,121,236,.19);
    transition: .35s;
}

    .primary-button:hover {
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 17px 35px rgba(8,121,236,.3);
    }

.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbe5f2;
    padding: 15px 25px;
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    transition: .3s;
}

    .secondary-button:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-4px);
    }

@keyframes loadingLine {
    0% {
        transform: translateX(160%);
    }

    100% {
        transform: translateX(-260%);
    }
}

/* REVEAL FALLBACK */

.reveal-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}

    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* FOCUS ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(8,121,236,.45);
    outline-offset: 4px;
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   CINEMATIC GLOBAL BACKGROUND - BregoTech
   خلفية سينمائية هادئة تتحرك خلف محتوى الموقع
   ========================================================= */

html {
    background: #f8fbff;
}

body {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.cinematic-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(89, 174, 255, .11), transparent 36%),
        radial-gradient(ellipse at 88% 72%, rgba(38, 133, 255, .08), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #f2f8ff 100%);
}

#cinematicCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: .72;
}

.cinematic-aura {
    position: absolute;
    width: min(42vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .32;
    will-change: transform;
    animation: cinematicAuraDrift 19s ease-in-out infinite alternate;
}

.cinematic-aura-one {
    top: -22%;
    right: -12%;
    background: radial-gradient(circle, rgba(47, 151, 255, .34), rgba(47, 151, 255, 0) 68%);
}

.cinematic-aura-two {
    bottom: -32%;
    left: -14%;
    background: radial-gradient(circle, rgba(111, 202, 255, .32), rgba(111, 202, 255, 0) 68%);
    animation-delay: -8s;
    animation-duration: 24s;
}

.cinematic-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(20, 112, 210, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 112, 210, .07) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    z-index: 1100;
}

@keyframes cinematicAuraDrift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(.92);
    }
    50% {
        transform: translate3d(4%, 5%, 0) scale(1.08);
    }
    100% {
        transform: translate3d(-3%, 8%, 0) scale(1);
    }
}

@media (max-width: 768px) {
    .cinematic-aura {
        width: 75vw;
        filter: blur(70px);
        opacity: .24;
    }

    .cinematic-grid {
        background-size: 52px 52px;
        opacity: .1;
    }

    #cinematicCanvas {
        opacity: .42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-aura {
        animation: none !important;
    }
}
