@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('variables.css');

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-navy);
    line-height: 1.1;
}

p {
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

ul { list-style: none; }
img { display: block; max-width: 100%; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    height: 72px;
    box-shadow: 0 2px 0 var(--accent-gold), 0 3px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(16px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo img {
    max-height: 60px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
}

.logo img:hover {
    transform: scale(1.05);
}

.header.scrolled .logo img {
    filter: none;
    max-height: 48px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

.header.scrolled .nav-link {
    color: var(--primary-navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    cursor: pointer;
}

.header-actions i:hover {
    color: var(--accent-gold);
}

.header.scrolled .header-actions {
    color: var(--primary-navy);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 4px;
    transition: var(--transition-smooth);
}

.header.scrolled .mobile-toggle {
    color: var(--primary-navy);
}

/* =============================================
   MOBILE NAVIGATION
   ============================================= */
@media (max-width: 992px) {
    .logo img {
        max-height: 45px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary-navy);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem 2.5rem;
        gap: 2rem;
        transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.15rem;
        font-weight: 700;
    }

    .nav-link:hover {
        color: var(--accent-gold);
    }

    .mobile-toggle {
        display: block;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(160deg, rgba(0,18,56,0.75) 0%, rgba(0,40,90,0.55) 100%),
                url('../assets/hero_bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 90px; /* Offset for fixed header */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--secondary-blue));
}

.hero-content {
    max-width: 780px;
    padding: var(--space-xl) 0;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--accent-gold);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.02;
    margin-bottom: 1.75rem;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1.8rem 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    color: var(--primary-navy);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--primary-navy);
    color: #fff;
    border-color: #fff;
}

.btn-icon {
    width: 38px;
    height: 38px;
    background-color: var(--primary-navy);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn:hover .btn-icon {
    background-color: var(--accent-gold);
    transform: rotate(45deg);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-navy);
    border-color: #fff;
}

.btn-navy {
    background-color: var(--primary-navy);
    color: #fff;
}

.btn-navy .btn-icon {
    background-color: #fff;
    color: var(--primary-navy);
}

.btn-navy:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

.btn-navy:hover .btn-icon {
    background-color: #fff;
    color: var(--primary-navy);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: var(--primary-navy);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stat-item {
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); }
    .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-red);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2.5px solid var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.75;
}

/* =============================================
   CARDS & GRIDS
   ============================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

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

.grid-col-full {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,18,56,0.06);
    border: 1px solid #eef0f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,18,56,0.12);
    border-color: var(--accent-gold);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,80,161,0.1), rgba(0,80,161,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary-blue);
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    background: var(--secondary-blue);
    color: #fff;
}

.card-icon.icon-gold {
    background: rgba(212,175,55,0.1);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* =============================================
   ABOUT / SPLIT LAYOUT
   ============================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =============================================
   INNOVATION SECTION
   ============================================= */
.innovation-quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-main);
    padding: 2rem 2.5rem;
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
    max-width: 900px;
}

.pillar-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-gold);
    box-shadow: 0 2px 16px rgba(0,18,56,0.06);
    border-top: 1px solid #eef0f5;
    border-right: 1px solid #eef0f5;
    border-bottom: 1px solid #eef0f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,18,56,0.1);
}

.pillar-card h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============================================
   LEADERSHIP TABLE
   ============================================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.org-table thead tr {
    border-bottom: 2px solid var(--accent-gold);
}

.org-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    color: var(--accent-gold);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.org-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.org-table tbody tr:hover td {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.org-table td:first-child {
    font-weight: 700;
    color: #fff;
}

/* =============================================
   CLIENTS / PARTNERS
   ============================================= */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.client-badge {
    padding: 0.65rem 1.5rem;
    border: 1.5px solid #dde2ed;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    transition: var(--transition-smooth);
    background: #fff;
}

.client-badge:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
    background: rgba(0,80,161,0.04);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-card {
    background: linear-gradient(135deg, #001238, #00256e);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    color: #fff;
    transition: var(--transition-smooth);
}

.partner-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.partner-card h4 {
    color: #fff;
    font-size: 1rem;
}

.partner-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Partner logo wrapper — display real logos on dark card */
.partner-logo-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.partner-logo-wrap img {
    max-height: 100%;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    /* Render on dark bg — convert to white with brightness */
    filter: brightness(0) invert(1);
    opacity: 0.88;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-card:hover .partner-logo-wrap img {
    opacity: 1;
    /* On hover show slight gold tint via sepia + saturate */
    filter: brightness(0) invert(1) sepia(0.25) saturate(2) hue-rotate(10deg);
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: linear-gradient(160deg, #000e2a 0%, #001852 100%);
    color: rgba(255,255,255,0.8);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo img {
    max-width: 140px;
    height: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    max-width: 320px;
}

.footer-col h5 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item i {
    color: var(--accent-gold);
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* =============================================
   BACK TO TOP  
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--primary-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,18,56,0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    border: none;
    pointer-events: none;
}

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

.back-to-top:hover {
    background: var(--accent-gold);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   UTILITIES
   ============================================= */
.text-gold { color: var(--accent-gold); }
.text-navy { color: var(--primary-navy); }
.text-white { color: #fff; }
.text-white-55 { color: rgba(255,255,255,0.55); }
.text-white-40 { color: rgba(255,255,255,0.4); }
.bg-light  { background-color: var(--bg-light); }
.bg-navy-gradient { background: linear-gradient(160deg, #000e2a, #001852); }

.mt-sm { margin-top: 1rem !important; }
.mt-lg { margin-top: 2rem !important; }
.mt-xl { margin-top: 5rem !important; }

.footer-quote {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.8;
}

.footer-site-link {
    color: inherit;
    transition: color 0.3s ease;
}
.footer-site-link:hover {
    color: var(--accent-gold);
}

/* =============================================
   MOBILE GENERAL
   ============================================= */
@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.9rem; }
    .hero-title { font-size: 2.4rem; }
}

/* ─── Section label gold modifier (dark bg) ─────────────── */
.section-label--gold {
    color: var(--accent-gold);
}
.section-label--gold::before {
    border-color: var(--accent-gold);
}

/* ─── Language Switcher (shared by EN + AR pages) ───────── */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.lang-switcher:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

/* When header is scrolled — adjust to dark text */
.header.scrolled .lang-switcher {
    color: var(--primary-navy);
    border-color: rgba(0, 18, 56, 0.4);
}

.header.scrolled .lang-switcher:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.footer-email-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}
.footer-email-link:hover {
    color: var(--accent-gold);
}

