/* ===================================================================
   ABOUT PAGE — Redesigned to match homepage structure
   White inner container variant
   =================================================================== */

/* ─── Animations ─── */
@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   0. OUTER WRAPPER — Same dark glow as homepage
   ============================================================================= */
.about-outer-glow {
    position: relative;
    background:
        radial-gradient(
            ellipse 120% 80% at 20% 30%,
            rgba(8, 30, 80, 0.7) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 100% 70% at 80% 60%,
            rgba(5, 25, 90, 0.5) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 90% 60% at 50% 90%,
            rgba(10, 35, 100, 0.4) 0%,
            transparent 50%
        ),
        #040815 !important;
    background-size:
        200% 200%,
        200% 200%,
        200% 200%,
        100% 100% !important;
    padding: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Seamless blend from outer-glow into footer — eliminate any gap/line */
.about-outer-glow + .footer-section,
.about-outer-glow + footer,
.about-outer-glow ~ .footer-section {
    margin-top: -2px;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   1. HERO — Video Background
   ============================================================================= */
.about-hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    max-width: 97%;
    margin: 0 auto;
    border-radius: 0 0 32px 32px;
    border: 1px solid rgba(30, 80, 220, 0.25);
    box-shadow:
        0 0 18px rgba(1, 155, 255, 0.18),
        0 0 40px rgba(1, 155, 255, 0.08);
    background: #050d1e;
}

.about-hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.about-hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: max(100%, 177.78vh);
    height: max(56.25vw, 100%);
    pointer-events: none;
    border: 0;
}

.about-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 5, 20, 0.6) 80%,
        rgba(0, 5, 20, 0.85) 100%
    );
    border-radius: inherit;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 220px;
    width: 100%;
}
.about-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    max-width: 680px;
}
.about-hero-content p {
    font-size: 16px;
    color: rgba(190, 200, 220, 0.85);
    line-height: 1.75;
    max-width: 520px;
    margin: 0;
}

/* =============================================================================
   2. WHITE INNER CONTAINER
   ============================================================================= */
.about-inner-container {
    position: relative;
    max-width: 90%;
    margin: -180px auto 0;
    z-index: 10;
    background: #fff;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    border: none;
    padding-bottom: 0;
    box-shadow:
        0 -10px 60px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 0, 0, 0.05);
}

.about-inner-container .container {
    max-width: 1323px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =============================================================================
   SECTION NAV TABS
   ============================================================================= */
.about-section-nav {
    background: #fff;
    border-bottom: 1px solid #e8ecf2;
    padding: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}
.about-section-nav.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.section-nav-wrapper::-webkit-scrollbar {
    display: none;
}
.section-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 20px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}
.section-nav-item:hover {
    color: #0171bb;
}
.section-nav-item.active {
    color: #0171bb;
    border-bottom-color: #0171bb;
}

/* =============================================================================
   3. OVERVIEW SECTION
   ============================================================================= */
.about-overview {
    padding: 70px 0 50px;
}
.overview-header {
    text-align: center;
    margin-bottom: 30px;
}
.overview-eyebrow {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.overview-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: #0171bb;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}
.overview-body {
    max-width: 960px;
    margin: 0 auto;
}
.overview-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
    text-align: center;
}
.overview-text p {
    margin-bottom: 14px;
    color: #475569;
}

/* =============================================================================
   4. BENTO CARDS — Mission / Expertise / Vision
   ============================================================================= */
.about-bento-section {
    padding: 0 0 60px;
}
.about-bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.about-bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #0a1628;
    border: 1px solid rgba(30, 80, 220, 0.2);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}
.about-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 40, 120, 0.2);
}
.about-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 10, 30, 0.1) 0%,
        rgba(0, 10, 30, 0.75) 70%,
        rgba(0, 10, 30, 0.92) 100%
    );
    z-index: 1;
}
.about-bento-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    width: 100%;
}
.about-bento-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.about-bento-content p {
    font-size: 12.5px;
    color: rgba(200, 215, 240, 0.85);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ── Stats row (4 small cards below bento) ── */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.about-stat-card {
    position: relative;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
    border: 1px solid rgba(30, 80, 220, 0.2);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}
.about-stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(1, 155, 255, 0.12) 0%,
        transparent 50%
    );
    pointer-events: none;
}
.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(1, 113, 187, 0.15);
}
.about-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}
.about-stat-icon i {
    font-size: 15px;
    color: #5b7fff;
}
.about-stat-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.about-stat-card p {
    font-size: 11px;
    color: rgba(160, 180, 220, 0.7);
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* =============================================================================
   5. CFO / SHAPING THE FUTURE
   ============================================================================= */
.about-cfo-section {
    padding: 20px 0 70px;
}
.cfo-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 60%, #0a1628 100%);
    border: 1px solid rgba(30, 80, 220, 0.2);
    box-shadow: 0 8px 40px rgba(0, 20, 80, 0.12);
}
.cfo-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: 380px;
}
.cfo-image-side {
    position: relative;
    overflow: hidden;
}
.cfo-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cfo-text-side {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cfo-text-side h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.25;
}
.cfo-body-text {
    font-size: 13.5px;
    color: rgba(190, 205, 230, 0.8);
    line-height: 1.8;
    margin-bottom: 24px;
}
.cfo-body-text p {
    margin-bottom: 12px;
    color: rgba(190, 205, 230, 0.8);
}
.cfo-signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cfo-signature strong {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}
.cfo-signature span {
    font-size: 12px;
    color: rgba(160, 180, 220, 0.65);
}

/* =============================================================================
   7. REGIONAL PRESENCE
   ============================================================================= */
.about-presence-section {
    padding: 0 0 80px;
}
.presence-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 60%, #0a1628 100%);
    border: 1px solid rgba(30, 80, 220, 0.2);
    box-shadow: 0 8px 40px rgba(0, 20, 80, 0.12);
}
.presence-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 360px;
    align-items: center;
}
.presence-text-side {
    padding: 45px 40px;
}
.presence-text-side h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.3;
}
.presence-countries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 30px;
    margin-bottom: 28px;
}
.presence-country {
    font-size: 13px;
    color: rgba(200, 215, 240, 0.8);
    padding: 3px 0;
    position: relative;
    padding-left: 12px;
}
.presence-country::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5b7fff;
}
.presence-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(160, 180, 220, 0.7);
    font-weight: 600;
}
.legend-operations i {
    color: #00c853;
    font-size: 7px;
}
.legend-partners i {
    color: #5b7fff;
    font-size: 7px;
}
.presence-map-side {
    padding: 30px 40px 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.presence-map-side img {
    max-width: 100%;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 4px 20px rgba(91, 127, 255, 0.15));
}

/* =============================================================================
   8. PHYSICAL OFFICES
   ============================================================================= */
.about-offices-section {
    padding: 0 0 80px;
}
/* If offices is the last section (no team), add fade padding */
.about-offices-section:last-child {
    padding-bottom: 280px;
}
.offices-header {
    text-align: center;
    margin-bottom: 40px;
}
.offices-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
}
.offices-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
}
.office-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
}
.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 40, 120, 0.1);
}
.office-image {
    position: absolute;
    inset: 0;
}
.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.office-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0, 10, 30, 0.85) 0%,
        transparent 100%
    );
    z-index: 2;
}
.office-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.office-info p {
    font-size: 11.5px;
    color: rgba(200, 215, 240, 0.75);
    margin: 0;
    line-height: 1.5;
}

/* =============================================================================
   9. TEAM MEMBERS
   ============================================================================= */
.about-team-section {
    padding: 0 0 280px;
}

/* ── Outer glow bottom fade — covers inner container edges and blends into footer ── */
.about-outer-glow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(4, 8, 21, 0.06) 15%,
        rgba(4, 8, 21, 0.18) 30%,
        rgba(4, 8, 21, 0.4) 45%,
        rgba(4, 8, 21, 0.62) 58%,
        rgba(3, 10, 22, 0.82) 72%,
        rgba(2, 10, 24, 0.94) 86%,
        #020a18 100%
    );
    pointer-events: none;
    z-index: 15;
}
.team-header {
    text-align: center;
    margin-bottom: 40px;
}
.team-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}
.team-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: all 0.4s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 40, 120, 0.15);
}
.team-photo {
    position: absolute;
    inset: 0;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(1, 113, 187, 0.92) 0%,
        rgba(1, 113, 187, 0.7) 40%,
        transparent 100%
    );
    z-index: 2;
}
.team-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.team-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1500px) {
    .about-hero-section {
        max-width: calc(100% - 32px);
    }
}
@media (max-width: 1340px) {
    .about-outer-glow {
        padding: 0 16px;
    }
    .about-hero-section {
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 992px) {
    .about-hero-section {
        min-height: 75vh;
        max-width: calc(100% - 16px);
        border-radius: 0 0 24px 24px;
    }
    .about-hero-content {
        padding: 50px 0 160px;
    }
    .about-hero-content h1 {
        font-size: 40px;
    }

    .about-inner-container {
        margin-top: -120px;
        border-radius: 24px 24px 0 0;
        max-width: 95%;
    }

    .section-nav-item {
        padding: 16px 18px;
        font-size: 12px;
    }

    .about-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-card-mission {
        grid-column: span 2;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfo-card-inner {
        grid-template-columns: 1fr;
    }
    .cfo-image-side {
        max-height: 300px;
    }

    .presence-card-inner {
        grid-template-columns: 1fr;
    }
    .presence-map-side {
        padding: 0 30px 30px;
    }

    .offices-grid {
        grid-template-columns: 1fr 1fr;
    }
    .office-card.office-card-large {
        grid-column: span 2;
    }

    .team-grid {
        max-width: 100%;
    }

    .offices-header h2,
    .team-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        min-height: 70vh;
        max-width: calc(100% - 12px);
        border-radius: 0 0 20px 20px;
    }
    .about-hero-content {
        padding: 40px 0 120px;
    }
    .about-hero-content h1 {
        font-size: 30px;
    }
    .about-hero-content p {
        font-size: 14px;
    }

    .about-inner-container {
        margin-top: -80px;
        border-radius: 20px 20px 0 0;
        max-width: 97%;
    }
    .about-inner-container .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-nav-wrapper {
        justify-content: flex-start;
    }
    .section-nav-item {
        padding: 14px 14px;
        font-size: 11.5px;
    }

    .about-overview {
        padding: 50px 0 40px;
    }
    .overview-eyebrow {
        font-size: 24px;
    }
    .overview-text {
        font-size: 14px;
    }

    .about-bento-grid {
        grid-template-columns: 1fr;
    }
    .about-card-mission {
        grid-column: span 1;
    }
    .about-bento-card {
        min-height: 200px;
    }

    .about-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cfo-text-side {
        padding: 30px 24px;
    }
    .cfo-text-side h2 {
        font-size: 22px;
    }

    .presence-text-side {
        padding: 30px 24px;
    }
    .presence-text-side h2 {
        font-size: 22px;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }
    .office-card.office-card-large {
        grid-column: span 1;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .about-outer-glow {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        max-width: calc(100% - 8px);
        border-radius: 0 0 16px 16px;
    }
    .about-hero-content h1 {
        font-size: 24px;
    }
    .about-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .about-stat-card {
        padding: 18px 12px;
    }
}

/* =============================================================================
   ARABIC RTL
   ============================================================================= */
[lang="ar"] .about-hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.35;
}
[lang="ar"] .overview-text,
[lang="ar"] .cfo-body-text {
    text-align: right;
}
[lang="ar"] .about-bento-content,
[lang="ar"] .cfo-text-side,
[lang="ar"] .presence-text-side,
[lang="ar"] .office-info,
[lang="ar"] .team-info {
    text-align: right;
}
[lang="ar"] .presence-country {
    padding-left: 0;
    padding-right: 12px;
}
[lang="ar"] .presence-country::before {
    left: auto;
    right: 0;
}
[lang="ar"] .section-nav-item {
    font-family: "Noto Kufi Arabic", sans-serif;
    letter-spacing: 0;
}
