/* Alternate modern design system */
:root {
    --dark-blue: #263988;
    --medium-blue: #176FB0;
    --light-blue: #319FD2;
    --white: #FFFFFF;

    --bg-primary: var(--white);
    --bg-secondary: rgba(49, 159, 210, .06);
    --bg-panel: rgba(255, 255, 255, .96);
    --surface: rgba(255, 255, 255, .9);
    --text: var(--dark-blue);
    --subtext: rgba(38, 57, 136, .8);
    --accent: var(--medium-blue);
    --accent-strong: var(--light-blue);
    --border: rgba(23, 111, 176, .18);
    --shadow: 0 18px 34px rgba(23, 111, 176, .18);
    --blur: blur(18px);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --grid-max: 1200px;
    --transition: 220ms ease;
    --font-heading: "Space Grotesk", "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Added Tajawal for a pleasant Arabic font */
    --font-body: "Inter", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 159, 210, .18), transparent 52%),
        radial-gradient(circle at 80% 0%, rgba(23, 111, 176, .22), transparent 48%),
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    min-height: 100vh;
    line-height: 1.7;
}

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

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

.container {
    width: min(var(--grid-max), 92vw);
    margin-inline: auto;
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0 10px;

}

.nav {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    
}

.logo {
    width: 130px;

    height: 70px;

}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;

}

.nav-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--subtext);
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-strong);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--subtext);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.lang-btn[aria-pressed="true"] {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
}

.nav-toggle .bar {
    width: 18px;
    height: 2px;
    background: var(--text);
}

/* Sections */
.section {
    padding: 70px 0;
    position: relative;
   border: 1px solid rgba(23, 112, 176, 0.055);
}

.section::before {
    content: "";
    position: absolute;
    inset: 10% auto auto 45%;
    /* width: 320px;
    height: 320px; */
    filter: blur(48px);
    opacity: .28;
    z-index: -1;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-family: var(--font-heading);
    color: var(--dark-blue);
}

.section-header p {
    margin: 0;
    color: var(--subtext);
    font-size: 1.05rem;
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 120px;
 
}

.hero .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(23, 111, 176, .78);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .22em;
}

.hero-copy p {
    margin: 0 0 18px;
    color: var(--subtext);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: var(--white);
    box-shadow: 0 15px 30px rgba(23, 111, 176, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(23, 111, 176, .35);
    color: var(--dark-blue);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(49, 159, 210, .08);
}

.hero-visual {
    position: relative;
}

.hero-visual-frame {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(49, 159, 210, .08));
    border: 1px solid rgba(23, 111, 176, .22);
    box-shadow: 0 18px 40px rgba(23, 111, 176, .18);
    position: relative;
    overflow: hidden;
}

.hero-visual-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(49, 159, 210, 0.18), transparent 60%);
    pointer-events: none;
}

.hero-visual-frame img {
    border-radius: var(--radius-md);
    height: 360px;
    object-fit: cover;
    width: 100%;
}

/* About */
.about .section-header {
    text-align: left;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
        border: 1px solid rgba(23, 111, 176, .16);
}

.about p {
    color: rgba(38, 57, 136, .75);
    margin-bottom: 18px;
}

/* Services */
.services {
    position: relative;
        border: 1px solid rgba(23, 111, 176, .16);
}

.services::before {
    inset: auto 10% 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.service-card {
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(23, 111, 176, .18);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(23, 111, 176, .08);
    pointer-events: none;
    z-index: -1;
}

.service-card img {
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.service-card h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.35rem;
}

.service-card p {
    margin: 0;
    color: var(--subtext);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(49, 159, 210, .45);
    background: rgba(49, 159, 210, .05);
}

/* Why */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(23, 111, 176, .16);
    box-shadow: var(--shadow);
}

.feature-item h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.feature-item p {
    margin: 0;
    color: var(--subtext);
}

/* Industries */
.industries {
    background: linear-gradient(130deg, rgba(255, 255, 255, .98), rgba(49, 159, 210, .08));
    border: 1px solid rgba(23, 111, 176, .16);
}

.bullets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullets-grid li {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(49, 159, 210, .05);
    border: 1px solid rgba(23, 111, 176, .2);
    color: var(--text);
    position: relative;
    padding-left: 46px;
    /* LTR padding */
}

.bullets-grid li::before {
    content: "";
    position: absolute;
    left: 16px;
    /* LTR position */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--medium-blue));
    box-shadow: 0 0 20px rgba(49, 159, 210, 0.45);
}

/* Partners */
.partners-list {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(23, 111, 176, .18);
    font-size: 1.1rem;
    color: var(--subtext);
    line-height: 1.8;
}

/* Contact */
.contact {
    padding-bottom: 140px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(23, 111, 176, .15);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-info img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
}

/* Footer */
/* Footer */
.site-footer {
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(38, 57, 136, .05), var(--white));
    border-top: 1px solid rgba(23, 111, 176, .2);
    color: var(--dark-blue);
    /* 🛠️ التعديل 1: لتوسيط محتوى التذييل */
    text-align: center;
}



/* Utilities */
/* .hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    filter: blur(50px);
    background: rgba(49, 159, 210, 0.25);
    z-index: -1;
}

.hero-visual::before {
    top: -40px;
    right: -20px;
    /* LTR position */
    background: rgba(38, 57, 136, 0.25);
} */

.hero-visual::after {
    bottom: -30px;
    left: 10px;
    /* LTR position */
}

/* Responsive */
@media (max-width: 1100px) {
    .section {
        padding: 96px 0;
    }

    .hero .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .hero-copy {
        text-align: center;
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        justify-self: center;
        width: min(520px, 90vw);
    }
}

@media (max-width: 900px) {
    .nav {
        grid-template-columns: auto auto;
        grid-template-areas: "brand lang" "toggle links";
        row-gap: 12px;
    }

    .nav-links {
        grid-area: links;
        width: 100%;
        justify-content: space-between;
    }

    .features-grid,
    .services-grid,
    .bullets-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .about .section-header {
        text-align: center;
        padding: 32px;
    }

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

    .contact-info li {
        flex-direction: column;
        text-align: center;
    }

    .contact-info img {
        margin-bottom: 8px;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .nav {
        position: relative;
        padding: 16px;
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 12px;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
     
        order: 4;

    }

    .lang-switch {
   
        justify-self: auto;
   
        order: 3;
 
    }

    .nav-links {
        position: absolute;
        inset: calc(100% + 10px) 0 auto 0;
        flex-direction: column;
        background: rgba(201, 226, 250, 0.804);
        border-radius: var(--radius-md);
        padding: 18px;
        border: 1px solid var(--border);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
        grid-column: 1 / -1;
    }

    .nav-links.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .hero-subtitle {
        letter-spacing: .12em;
    }

    .hero-visual-frame img {
        height: 280px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .section-header h2 {
        font-size: 2.15rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-visual-frame {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 72px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .feature-item,
    .about .section-header,
    .partners-list,
    .contact-info li {
        padding: 20px;
    }

    .bullets-grid li {
        padding-left: 38px;
    }

    .nav-links {
        padding: 16px;
    }
}

/* ------------------------------------------- */
/* 🌙 RTL Adjustments for [dir="rtl"] or html[lang="ar"] */
/* ------------------------------------------- */

[dir="rtl"] body {
    /* Set default text direction and alignment for RTL languages */
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .section::before {
    /* Flip the decorative section background circle from left to right */
    inset: 10% 45% auto auto;
}



[dir="rtl"] .about .section-header {
    /* Align section header text to the right for RTL */
    text-align: right;
}

[dir="rtl"] .services::before {
    /* Flip the decorative services section background circle */
    inset: auto auto 0 10%;
}

[dir="rtl"] .bullets-grid li {
    /* Adjust padding for list items to accommodate the bullet on the right */
    padding-left: 20px;
    padding-right: 46px;
}

[dir="rtl"] .bullets-grid li::before {
    /* Position the decorative list bullet on the right */
    left: auto;
    right: 16px;
}

[dir="rtl"] .contact-info li {
    /* Reverse the order of content in the contact info flex container */
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
    /* Ensure content in the footer flex container is aligned correctly */
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-visual::before {
    /* Flip the position of the first decorative hero circle */
    right: auto;
    left: -20px;
}

[dir="rtl"] .hero-visual::after {
    /* Flip the position of the second decorative hero circle */
    left: auto;
    right: 10px;
}

/* Responsive RTL adjustments */
@media (max-width: 1100px) {
    [dir="rtl"] .hero-copy {
        /* Re-center the text when the layout stacks, as needed */
        text-align: center;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .about .section-header {
        /* Ensure the text is centered on small screens, overriding the desktop RTL setting */
        text-align: center;
    }

    [dir="rtl"] .contact-info li {
        /* Maintain centered text alignment for stacked contact info items */
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    [dir="rtl"] .nav-links {
        /* In the mobile view, the overlay should retain its full width and not need directional adjustment */
        inset: calc(100% + 10px) 0 auto 0;
    }

    [dir="rtl"] .lang-switch {
        /* Align language switch to the start (which is right in RTL) */
        justify-self: start;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .bullets-grid li {
        /* Maintain adjusted padding for smaller screens */
        padding-left: 20px;
        padding-right: 38px;
    }
    
}
