/* Sabarat brand overrides: brand-blue tones and polish hero/footer */
:root {
    --brand-blue: #4787AB;
    --brand-blue-dark: #183d52;
    --brand-blue-mid: #2d5f7f;
    --brand-blue-light: #6ec1ea;
    --brand-gradient: linear-gradient(135deg, #183d52 0%, #2d5f7f 40%, #4787AB 75%, #6ec1ea 100%);
}

html { scroll-behavior: smooth; }

/* ===== Founder spotlight: أبرز عنصر في الموقع ===== */
.hero-founder-spotlight {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.founder-spotlight-card {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.25rem);
    margin: 0;
    padding: clamp(1rem, 2.4vw, 1.75rem);
    width: min(900px, 100%);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(71, 135, 171, 0.2);
    box-shadow: 0 30px 70px rgba(12, 30, 48, 0.28);
    backdrop-filter: blur(6px);
}

.hero-founder-spotlight.on-hero-bg .founder-spotlight-card {
    background: rgba(255, 255, 255, 0.97);
}

.founder-spotlight-media {
    position: relative;
    flex: 0 0 auto;
    width: clamp(140px, 26vw, 210px);
    height: clamp(170px, 30vw, 250px);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(150deg, #183d52, #4787AB);
    border: 5px solid #ffffff;
    box-shadow: 0 20px 42px rgba(24, 61, 82, 0.32);
}

.founder-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 400ms ease;
}

.founder-spotlight-card:hover .founder-spotlight-media img { transform: scale(1.05); }

.founder-spotlight-body { text-align: right; }

.founder-spotlight-flag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px rgba(71, 135, 171, 0.35);
}

.founder-spotlight-name {
    margin: 0.7rem 0 0.35rem;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 800;
    color: #16344a;
    line-height: 1.15;
}

.founder-spotlight-role {
    margin: 0;
    color: #3a637f;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    line-height: 1.8;
}

@media (max-width: 575px) {
    .founder-spotlight-card { flex-direction: column; text-align: center; }
    .founder-spotlight-body { text-align: center; }
    .founder-spotlight-media { width: 170px; height: 200px; }
}

/* ===== Team section ===== */
.sabarat-team-section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef7fc 100%);
}

.team-member-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(71, 135, 171, 0.16);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(24, 61, 82, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
    height: 100%;
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(24, 61, 82, 0.16);
}

.team-member-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(150deg, #183d52, #4787AB);
}

.team-member-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-member-body { padding: 1rem 1rem 1.25rem; text-align: center; }

.team-member-flag {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.team-member-name {
    margin: 0.2rem 0;
    font-size: 1.06rem;
    font-weight: 800;
    color: #16344a;
}

.team-member-role {
    margin: 0;
    color: #4a708a;
    font-size: 0.86rem;
    font-weight: 600;
}

.team-member-founder {
    border-color: rgba(71, 135, 171, 0.5);
    box-shadow: 0 22px 44px rgba(24, 61, 82, 0.18);
}

.team-member-founder .team-member-media { border-bottom: 4px solid var(--brand-blue); }

body {
    background: #f7fbfe !important;
    color: #183d52;
}

.sabarat-value-section,
.sabarat-services-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
}

.sabarat-services-section { background: #ffffff; }

/* ===== Products catalog ===== */
.sabarat-products-showcase {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f8fd 100%);
}

.catalog-card {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(71, 135, 171, 0.16);
    box-shadow: 0 16px 34px rgba(24, 61, 82, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(24, 61, 82, 0.16);
}

.catalog-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e6f6ff, #d6eaf5);
    overflow: hidden;
}

.catalog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 320ms ease;
}

.catalog-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.catalog-title-link {
    color: inherit;
    text-decoration: none;
}

.catalog-title-link:hover {
    color: #031882;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.catalog-card:hover .catalog-media img { transform: scale(1.04); }

.catalog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(24, 61, 82, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.catalog-body {
    padding: 1rem 1rem 1.15rem;
    text-align: right;
}

.catalog-category {
    color: #2d5f7f;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.catalog-title {
    margin: 0.35rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #16344a;
    line-height: 1.35;
}

.catalog-price {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.catalog-price .new {
    font-weight: 900;
    color: #183d52;
}

.catalog-price .old {
    color: #8aa0b1;
    text-decoration: line-through;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== Map section ===== */
.sabarat-map-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: linear-gradient(180deg, #f1f8fd 0%, #0c2231 100%);
}

.sabarat-map-section .map-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(71, 135, 171, 0.18);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(12, 30, 48, 0.28);
}

.sabarat-map-section .map-head {
    padding: 1.6rem 1.2rem 0.8rem;
}

.sabarat-map-section .map-frame {
    aspect-ratio: 16 / 7;
    min-height: 280px;
    background: #e6f6ff;
}

.sabarat-map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.section-intro {
    width: min(680px, 92%) !important;
    color: #2d5f7f !important;
    font-size: clamp(0.95rem, 1.5vw, 1.06rem) !important;
    font-weight: 600 !important;
    line-height: 2 !important;
}

.feature-card,
.our-services-cards .feature-card {
    border: 1px solid rgba(71, 135, 171, 0.15) !important;
    box-shadow: 0 14px 34px rgba(24, 61, 82, 0.07) !important;
}

.feature-card:hover,
.service-showcase:hover .feature-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(24, 61, 82, 0.13) !important;
}

.service-showcase-image {
    width: 100%;
    min-height: 260px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(71, 135, 171, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #e6f6ff, #d6eaf5);
    box-shadow: 0 18px 34px rgba(24, 61, 82, 0.12);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-showcase:hover .service-showcase-image {
    transform: scale(1.018);
    box-shadow: 0 24px 42px rgba(24, 61, 82, 0.18);
}

.sabarat-cta-section {
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(24, 61, 82, 0.98), rgba(45, 95, 127, 0.96));
    box-shadow: 0 22px 48px rgba(24, 61, 82, 0.18);
}

.sabarat-cta-section .section-titles,
.sabarat-cta-section .section-intro { color: #ffffff !important; }

.sabarat-cta-section .section-titles::after { background: #6ec1ea !important; }

.sabarat-about-strip {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, #eef8fd 0%, #ffffff 55%, #e6f6ff 100%);
}

.sabarat-about-strip .container {
    border: 1px solid rgba(71, 135, 171, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 46px rgba(24, 61, 82, 0.09);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.about-founder-copy {
    color: #244c64;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    font-weight: 600;
    line-height: 2;
}

.hero-founder-line {
    margin: 0.85rem 0 0;
    color: #e6f6ff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.hero-founder-line strong {
    color: #ffffff;
    font-weight: 800;
}

.founder-image-frame {
    width: min(100%, 290px);
    aspect-ratio: 1 / 1.1;
    margin: 0 auto;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background: linear-gradient(135deg, #183d52, #4787AB);
    box-shadow: 0 22px 42px rgba(24, 61, 82, 0.2);
}

.founder-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.founder-image-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 6rem;
    font-weight: 800;
}

.founder-image-frame.founder-image-missing .founder-image-fallback { display: flex; }

.founder-role {
    display: block;
    margin-top: 0.5rem;
    color: #4787AB;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-founder-credit {
    color: #d7f0fc !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.main-button,
.cta-button {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

.main-button:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24, 61, 82, 0.3) !important;
}

.main-button:focus-visible,
.cta-button:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #6ec1ea !important;
    outline-offset: 3px;
}

/* Replace non-brand UI gradients with the requested blue family */
[style*="#4a148c"],
[style*="#6f42c1"],
[style*="#7b1fa2"],
[style*="#8b5cf6"],
[style*="#ec4899"],
[style*="#880e4f"] {
    background: var(--brand-gradient) !important;
    border-color: rgba(71, 135, 171, 0.45) !important;
    color: #ffffff !important;
}

.cta-button,
.main-button,
button[type="submit"],
.btn-primary,
.badge,
.feature-icon,
.price-card .price-header,
.section-titles::after,
.nav-link::before,
.hero-image-mode .main-button {
    background: var(--brand-gradient) !important;
    border-color: rgba(71, 135, 171, 0.45) !important;
    box-shadow: 0 14px 30px rgba(71, 135, 171, 0.26) !important;
}

.cta-button,
.cta-button span,
.main-button,
.main-button span,
.hero-image-mode .main-button,
.hero-image-mode .main-button span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Homepage hero: text must sit on the left above the image */
body.has-hero-bg .homepage-hero-bg .hero-landing-shell {
    justify-content: flex-start !important;
}

body.has-hero-bg .homepage-hero-bg .hero-landing-shell > .row {
    width: 100% !important;
    justify-content: flex-start !important;
    direction: ltr !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    direction: rtl !important;
    text-align: left !important;
    max-width: min(620px, 100%) !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left,
body.has-hero-bg .homepage-hero-bg .hero-copy-left * {
    text-align: left !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-badge,
body.has-hero-bg .homepage-hero-bg .hero-copy-left .section-titles,
body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-subtitle,
body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-tagline,
body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-founder-line,
body.has-hero-bg .homepage-hero-bg .hero-copy-left .about-us {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72) !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-subtitle {
    width: min(610px, 100%) !important;
    line-height: 1.85 !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left .section-titles::after {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    background: var(--brand-blue-light) !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left .main-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    min-width: 180px !important;
}

body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-cta-left {
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

/* Keep hero navbar transparent over the image */
body.has-hero-bg .homepage-hero-bg .navbar-custom,
body.has-hero-bg .homepage-hero-bg .header-top-nav,
body.has-hero-bg .homepage-hero-bg .topNav,
body.has-hero-bg .homepage-hero-bg .navbar-top,
body.has-hero-bg .homepage-hero-bg .navbar-menu,
body.has-hero-bg .homepage-hero-bg .navPlacehoderContainer {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Footer brand harmony */
#footer-section {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0d2a3f 0%, #183d52 34%, #2d5f7f 66%, #4787AB 100%) !important;
    color: #ffffff !important;
}

#footer-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 12% 20%, rgba(110, 193, 234, 0.22), transparent 30%),
                radial-gradient(circle at 85% 75%, rgba(71, 135, 171, 0.28), transparent 34%);
}

#footer-section .container {
    position: relative !important;
    z-index: 1 !important;
}

#footer-section .footer-logo img {
    opacity: 1 !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24)) !important;
}

#footer-section p,
#footer-section span,
#footer-section a {
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28) !important;
}

#footer-section .social-link {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(230, 246, 255, 0.70) !important;
    box-shadow: 0 12px 28px rgba(6, 21, 36, 0.25) !important;
    opacity: 1 !important;
}

#footer-section .social-link::before {
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

#footer-section .social-link:hover {
    background: #e6f6ff !important;
    transform: translateY(-3px) !important;
}

#footer-section .social-link img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(19%) saturate(996%) hue-rotate(160deg) brightness(93%) contrast(90%) !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Re-tint decorative SVG/PNG icons that may carry old non-brand colors */
.feature-icon img,
.our-services-cards img[src$=".svg"],
img[src*="arrow"],
img[src*="chevron"],
img[src*="line.svg"],
img[src*="contact-us.svg"] {
    filter: brightness(0) saturate(100%) invert(52%) sepia(19%) saturate(996%) hue-rotate(160deg) brightness(93%) contrast(90%) !important;
}

.hero-image-mode .main-button img,
.cta-button img {
    filter: brightness(0) invert(1) !important;
}

#footer-section .social-link img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(19%) saturate(996%) hue-rotate(160deg) brightness(93%) contrast(90%) !important;
}

#footer-section a {
    color: #e6f6ff !important;
    font-weight: 700 !important;
}

#footer-section a:hover {
    color: #ffffff !important;
}

#footer-section hr {
    opacity: 1 !important;
    color: rgba(230, 246, 255, 0.48) !important;
    border-color: rgba(230, 246, 255, 0.48) !important;
}

@media (max-width: 767px) {
    body.has-hero-bg .homepage-hero-bg .hero-copy-left,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left * {
        text-align: left !important;
    }

    body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-badge,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left .section-titles,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-subtitle,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left .hero-tagline,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left .about-us,
    body.has-hero-bg .homepage-hero-bg .hero-copy-left .main-button {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .service-showcase-image { min-height: 210px; }
    .sabarat-cta-section { margin-right: 1rem !important; margin-left: 1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Deeper polish: premium company feel ===== */
.section-titles {
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.sabarat-value-section .feature-card {
    border-radius: 22px !important;
    padding: 1.6rem 1.3rem !important;
    background: linear-gradient(160deg, #ffffff 0%, #f3fafe 100%) !important;
}

.sabarat-value-section .feature-icon {
    width: 60px !important;
    height: 60px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    margin-bottom: 0.9rem !important;
}

.sabarat-value-section .feature-card h5 {
    font-weight: 800 !important;
    color: #16344a !important;
}

.service-showcase .feature-card {
    border-radius: 24px !important;
    padding: 1.75rem 1.4rem !important;
}

.service-showcase .feature-card h5 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #16344a !important;
}

.sabarat-cta-section {
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem) !important;
    position: relative;
    overflow: hidden;
}

.sabarat-cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(110, 193, 234, 0.28), transparent 34%),
                radial-gradient(circle at 88% 82%, rgba(71, 135, 171, 0.3), transparent 36%);
    pointer-events: none;
}

.sabarat-cta-section > .row { position: relative; z-index: 1; }

/* Subtle reveal on scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms ease, transform 620ms ease;
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* =====================================================
   Founder hero: قسم إبراهيم الخولاني — الأبرز في الموقع
   ===================================================== */
.sabarat-founder-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
        radial-gradient(900px 460px at 85% 8%, rgba(110, 193, 234, 0.20), transparent 60%),
        radial-gradient(700px 420px at 8% 92%, rgba(71, 135, 171, 0.22), transparent 55%),
        linear-gradient(150deg, #0d2437 0%, #16405c 55%, #1d5578 100%);
}

.founder-hero-orbits { position: absolute; inset: 0; pointer-events: none; }

.founder-hero-orbits .orbit {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(110, 193, 234, 0.20);
}

.founder-hero-orbits .orbit-1 {
    width: 520px; height: 520px;
    top: -170px; left: -120px;
    animation: orbitFloat 14s ease-in-out infinite;
}

.founder-hero-orbits .orbit-2 {
    width: 320px; height: 320px;
    bottom: -110px; right: 8%;
    border-color: rgba(255, 255, 255, 0.10);
    animation: orbitFloat 18s ease-in-out infinite reverse;
}

.founder-hero-orbits .orbit-3 {
    width: 180px; height: 180px;
    top: 18%; right: 30%;
    border-style: dashed;
    border-color: rgba(110, 193, 234, 0.28);
    animation: orbitSpin 40s linear infinite;
}

@keyframes orbitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(26px); }
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.founder-portrait {
    position: relative;
    display: inline-block;
    padding: 14px;
}

.founder-portrait-glow {
    position: absolute;
    inset: -8%;
    border-radius: 40px;
    background: conic-gradient(from 180deg, rgba(110,193,234,0.55), rgba(71,135,171,0.15), rgba(110,193,234,0.55));
    filter: blur(26px);
    opacity: 0.75;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.98); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.founder-portrait-media {
    position: relative;
    width: min(340px, 78vw);
    aspect-ratio: 4 / 5;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(160deg, #10344c, #2d5f7f);
    border: 6px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 40px 90px rgba(4, 16, 28, 0.55);
}

.founder-portrait-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 500ms ease;
}

.founder-portrait:hover .founder-portrait-media img { transform: scale(1.045); }

.founder-portrait-tag {
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(6, 22, 38, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.founder-hero-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #dff2ff !important;
    backdrop-filter: blur(8px);
}

.founder-hero-name {
    margin: 0.9rem 0 0.4rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.12;
    text-shadow: 0 6px 30px rgba(2, 12, 22, 0.55);
}

.founder-hero-role {
    margin: 0 0 1rem;
    color: #a9d8f2;
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    font-weight: 700;
}

.founder-hero-copy {
    margin: 0 auto;
    color: rgba(235, 248, 255, 0.92);
    font-size: clamp(0.98rem, 1.6vw, 1.1rem);
    font-weight: 500;
    line-height: 2.05;
    max-width: 640px;
}

.founder-hero-motto {
    display: inline-block;
    margin: 1.4rem 0 0;
    padding: 0.65rem 1.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(110, 193, 234, 0.35);
    color: #6ec1ea;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    direction: ltr;
    text-transform: uppercase;
    animation: mottoShine 6s ease-in-out infinite;
}

@keyframes mottoShine {
    0%, 100% { box-shadow: 0 0 0 rgba(110, 193, 234, 0); }
    50% { box-shadow: 0 0 34px rgba(110, 193, 234, 0.35); }
}

@media (max-width: 991px) {
    .sabarat-founder-hero { text-align: center; }
    .founder-hero-copy { margin: 0 auto; }
}

/* =====================================================
   خلفيات متحركة خفيفة تختلف من قسم لآخر
   ===================================================== */
.sabarat-value-section::before,
.sabarat-team-section::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 193, 234, 0.14), transparent 65%);
    top: -140px;
    inset-inline-start: -120px;
    pointer-events: none;
    animation: orbitFloat 16s ease-in-out infinite;
}

.sabarat-team-section { position: relative; overflow: hidden; }
.sabarat-team-section::before { inset-inline-start: auto; inset-inline-end: -120px; top: auto; bottom: -140px; }

.sabarat-services-section::after {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    border: 2px dashed rgba(71, 135, 171, 0.16);
    border-radius: 50%;
    bottom: 4%;
    inset-inline-start: -90px;
    pointer-events: none;
    animation: orbitSpin 60s linear infinite;
}

.sabarat-products-showcase {
    position: relative;
    overflow: hidden;
}

.sabarat-products-showcase::before {
    content: "";
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 135, 171, 0.10), transparent 62%);
    top: -160px;
    inset-inline-end: -140px;
    pointer-events: none;
    animation: orbitFloat 20s ease-in-out infinite reverse;
}

/* شريط علوي متدرج لبطاقات المزايا */
.sabarat-value-section .feature-card {
    position: relative;
    overflow: hidden;
}

.sabarat-value-section .feature-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 380ms ease;
}

.sabarat-value-section .feature-card:hover::before { transform: scaleX(1); }

/* أرقام/إحصاءات وميزات صغيرة */
.sabarat-stats-strip {
    padding: clamp(1.5rem, 3.5vw, 2.75rem) 0;
    background: linear-gradient(90deg, #10344c, #2d5f7f);
}

.sabarat-stats-strip .stat-cell {
    text-align: center;
    color: #ffffff;
    padding: 0.75rem 0.5rem;
}

.sabarat-stats-strip .stat-value {
    display: block;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    font-weight: 900;
    color: #6ec1ea;
}

.sabarat-stats-strip .stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(235, 248, 255, 0.85);
}

/* تحسين hover عام للبطاقات */
.catalog-card,
.team-member-card,
.feature-card {
    will-change: transform;
}

/* موجة فاصلة أنيقة قبل الفوتر/الخريطة */
.sabarat-map-section .map-shell { position: relative; }

/* =====================================================
   شريط بوسترات العلامة (marquee) — GPU فقط، خفيف
   ===================================================== */
.sabarat-posters-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef7fc 100%);
    overflow: hidden;
}

.posters-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.posters-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: postersScroll 42s linear infinite;
    will-change: transform;
}

.posters-marquee:hover .posters-track { animation-play-state: paused; }

@keyframes postersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.poster-item {
    flex: 0 0 auto;
    width: clamp(190px, 24vw, 260px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(71, 135, 171, 0.2);
    box-shadow: 0 16px 34px rgba(24, 61, 82, 0.12);
    transition: transform 260ms ease, box-shadow 260ms ease;
    background: #ffffff;
}

.poster-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 52px rgba(24, 61, 82, 0.22);
}

.poster-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* =====================================================
   وضع الأجهزة الضعيفة (device-lite): تعطيل الحركات الثقيلة
   يُفعّل عبر JS حسب قدرة الجهاز
   ===================================================== */
body.device-lite .posters-track { animation: none !important; }
body.device-lite .posters-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.device-lite .founder-portrait-glow,
body.device-lite .founder-hero-orbits,
body.device-lite .sabarat-value-section::before,
body.device-lite .sabarat-team-section::before,
body.device-lite .sabarat-services-section::after,
body.device-lite .sabarat-products-showcase::before {
    animation: none !important;
    opacity: 0.35 !important;
}
body.device-lite .founder-hero-motto { animation: none !important; }
body.device-lite .catalog-card:hover,
body.device-lite .team-member-card:hover,
body.device-lite .poster-item:hover {
    transform: none !important;
}

/* أجهزة قوية: لمسات إضافية (تفعيل عبر device-rich) */
body.device-rich .catalog-card,
body.device-rich .team-member-card {
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

body.device-rich .catalog-card:hover { transform: translateY(-8px) rotate(-0.4deg); }

body.device-rich .section-titles {
    background: linear-gradient(120deg, #16344a, #2d5f7f 55%, #4787AB);
    -webkit-background-clip: text;
    background-clip: text;
}

/* تحسين وضوح التركيز للوصولية */
.catalog-link:focus-visible img,
.catalog-title-link:focus-visible {
    outline: 3px solid #6ec1ea;
    outline-offset: 3px;
}

/* ========== تحسينات 2026 Ultra Modern ========== */

/* تأثيرات ألوان ديناميكية للعناوين */
.hero-title,
.section-title {
  position: relative;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-text-fill-color: transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title:hover,
.section-title:hover {
  background-image: linear-gradient(225deg, var(--secondary-color), #ff00ff, var(--primary-color));
  transform: scale(1.02);
  filter: drop-shadow(0 0 20px var(--primary-color));
}

/* مؤثرات ديناميكية للأزرار */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* مؤثرات بريق متحرك للبطاقات */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.device-rich .product-card::after,
.device-rich .service-card::after,
.device-rich .portfolio-item::after {
  content: '✨';
  position: absolute;
  font-size: 20px;
  animation: sparkle 3s infinite;
  pointer-events: none;
}

.product-card::after { top: 10%; right: 10%; animation-delay: 0s; }
.service-card::after { top: 15%; left: 15%; animation-delay: 1s; }
.portfolio-item::after { bottom: 20%; right: 20%; animation-delay: 2s; }

/* خلفيات متحركة بالماوس */
.hero-section,
.founder-hero,
.cta-section,
.newsletter-section {
  position: relative;
  overflow: hidden;
}

.device-rich .hero-section::before,
.device-rich .founder-hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(var(--primary-rgb), 0.15) 0%,
    transparent 50%);
  top: -50%;
  left: -50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* مؤثرات رائعة للنصوص عند التمرير */
@keyframes textRevealGradient {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}

.section-title,
.hero-title {
  background-size: 200% 100%;
  animation: textRevealGradient 3s ease-in-out infinite;
}

/* تحسينات متقدمة للجوال */
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 5vw, 36px); }
  h2 { font-size: clamp(20px, 4vw, 28px); }
  h3 { font-size: clamp(18px, 3.5vw, 24px); }
  
  .product-grid,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-content {
    padding: 40px 20px;
  }
  
  /* تحسين الأداء للجوالات الضعيفة */
  .device-lite * {
    animation-duration: 0s !important;
    transition-duration: 0.2s !important;
  }
  
  .device-lite .btn::before,
  .device-lite .product-card::after,
  .device-lite .service-card::after {
    display: none;
  }
}

/* تحسينات تفاعلية للمس */
@media (hover: none) and (pointer: coarse) {
  .product-card:active,
  .service-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  
  .btn:active {
    transform: translateY(2px);
  }
}

/* مؤشر تحميل صفحة عصري */
@keyframes pageLoadProgress {
  0% { transform: scaleX(0); opacity: 1; }
  90% { transform: scaleX(0.9); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  transform-origin: left;
  animation: pageLoadProgress 1s ease-out;
  z-index: 10000;
  pointer-events: none;
}

/* مؤثرات ثلاثية الأبعاد متقدمة */
.product-card,
.service-card,
.team-member {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.device-rich .product-card:hover,
.device-rich .service-card:hover {
  transform: perspective(1000px) rotateY(5deg) scale(1.05);
}

.device-rich .team-member:hover {
  transform: perspective(1000px) rotateX(-5deg) scale(1.05);
}

/* تأثيرات خلفية ديناميكية */
@keyframes floatingOrbs {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33% { transform: translate(30px, -50px) scale(1.1); opacity: 0.5; }
  66% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.4; }
}

.device-rich .hero-section::after,
.device-rich .founder-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color), transparent);
  filter: blur(50px);
  animation: floatingOrbs 15s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.3;
}

.hero-section::after { top: 20%; left: -100px; }
.founder-hero::after { bottom: 20%; right: -100px; animation-delay: 5s; }

/* تأثير العدّاد المتحرك للإحصائيات */
.stat-value {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.stat-value.counting {
  transform: scale(1.08);
  text-shadow: 0 0 18px rgba(110, 193, 234, 0.55);
}

.stat-value.counted {
  animation: statPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statPop {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* تحسينات الطباعة */
@media print {
  * {
    background: white !important;
    color: black !important;
  }
  
  .no-print,
  .hero-section::before,
  .founder-hero::before,
  .btn::before,
  .progress-bar,
  .back-to-top,
  .navbar {
    display: none !important;
  }
}
    border-radius: 8px;
}

/* =====================================================
   Modern 2026 layer: زجاجية، توهجات، حركة راقية
   ===================================================== */

/* شريط تقدم القراءة أعلى الصفحة */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #6ec1ea, #4787AB);
    z-index: 100000;
    border-radius: 0 0 0 4px;
    transition: width 80ms linear;
    pointer-events: none;
}

/* هيدر زجاجي عند التثبيت */
.header-top-nav.fixed {
    background: rgba(247, 251, 254, 0.82) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 10px 30px rgba(24, 61, 82, 0.10) !important;
    border-bottom: 1px solid rgba(71, 135, 171, 0.14) !important;
}

body.has-hero-bg .header-top-nav.fixed {
    background: rgba(13, 36, 55, 0.78) !important;
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(24, 61, 82, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms;
    z-index: 9000;
}

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

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

/* روابط القائمة: خط سفلي متدرج يظهر عند المرور */
.nav-link { position: relative; }

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    inset-inline-start: 50%;
    width: 0;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6ec1ea, #4787AB);
    transform: translateX(50%);
    transition: width 260ms ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 62%; }

/* شارات وأسعار: نبض توهج خفيف على الشارات المميزة */
.catalog-badge { transition: transform 220ms ease; }
.catalog-card:hover .catalog-badge { transform: scale(1.06); }

/* بطاقات المزايا: أيقونة تدور بلطف عند المرور */
.sabarat-value-section .feature-card:hover .feature-icon {
    transform: rotate(-6deg) scale(1.08);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sabarat-value-section .feature-icon { transition: transform 300ms ease; }

/* stagger: تتابع ظهور البطاقات */
.reveal-up { transition-delay: calc(var(--reveal-idx, 0) * 70ms); }

/* أزرار عصرية: لمعة ضوئية تعبر عند المرور */
.main-button, .cta-button { position: relative; overflow: hidden; }

.main-button::after,
.cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 520ms ease;
    pointer-events: none;
}

.main-button:hover::after,
.cta-button:hover::after { left: 130%; }

/* الفوتر: روابط قانونية بتأثير أنيق */
#footer-section a { transition: color 200ms ease, text-shadow 200ms ease; }
#footer-section a:hover { text-shadow: 0 0 14px rgba(110, 193, 234, 0.65) !important; }

/* الخريطة: إطار متوهج خفيف */
.sabarat-map-section .map-shell {
    transition: box-shadow 300ms ease;
}
.sabarat-map-section .map-shell:hover {
    box-shadow: 0 34px 80px rgba(12, 30, 48, 0.36), 0 0 0 2px rgba(110, 193, 234, 0.35);
}

/* عناوين الأقسام: خط زخرفي متدرج تحتها */
.sabarat-team-section .section-titles::after,
.sabarat-products-showcase .section-titles::after,
.sabarat-posters-section .section-titles::after {
    background: linear-gradient(90deg, #6ec1ea, #4787AB) !important;
}

/* حقول الإحصاءات: توهج عند المرور */
.sabarat-stats-strip .stat-cell { transition: transform 240ms ease; border-radius: 16px; }
.sabarat-stats-strip .stat-cell:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }

/* device-lite: تعطيل اللمعات والحركات الإضافية */
body.device-lite .main-button::after,
body.device-lite .cta-button::after { display: none; }
body.device-lite .scroll-progress { display: none; }
body.device-lite .reveal-up { transition-delay: 0ms; }

/* =====================================================
   تجاوب فائق: موبايل صغير حتى شاشات ضخمة
   ===================================================== */
@media (max-width: 480px) {
    .founder-portrait-media { width: min(260px, 84vw); }
    .founder-hero-name { font-size: 1.7rem; }
    .founder-hero-motto { font-size: 0.9rem; padding: 0.5rem 1rem; }
    .catalog-body { padding: 0.75rem 0.7rem 0.9rem; }
    .catalog-title { font-size: 0.92rem; }
    .catalog-price .new { font-size: 0.95rem; }
    .catalog-price .old { font-size: 0.78rem; }
    .catalog-body .main-button,
    .catalog-body .btn { font-size: 0.82rem; padding: 0.45rem 0.5rem !important; }
    .team-member-name { font-size: 0.95rem; }
    .sabarat-stats-strip .stat-value { font-size: 1.3rem; }
    .sabarat-stats-strip .stat-label { font-size: 0.78rem; }
    .poster-item { width: 160px; }
    .sabarat-map-section .map-frame { aspect-ratio: 4 / 3; min-height: 220px; }
    .back-to-top { width: 42px; height: 42px; bottom: 16px; inset-inline-start: 16px; }
}

@media (min-width: 481px) and (max-width: 767px) {
    .catalog-title { font-size: 0.98rem; }
    .sabarat-map-section .map-frame { aspect-ratio: 16 / 10; }
}

@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1240px !important;
    }
    .founder-portrait-media { width: 380px; }
}

/* تحسين اللمس: مساحات نقر مريحة على الموبايل */
@media (hover: none) and (pointer: coarse) {
    .catalog-body .main-button,
    .catalog-body .btn,
    .nav-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

