/* ================================================================
   PLEXUS HEALTH — Premium Healthcare Innovation Platform
   Color Palette: Deep Medical Blue / Innovation Teal / Tech Green
   Design: Minimal, Investor-Ready, Startup Ecosystem Aesthetic
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Navy Blue — from logo top-left */
    --blue-900: #0A1628;
    --blue-800: #122240;
    --blue-700: #1B3158;
    --blue-600: #1F3A6B;
    --blue-500: #2A4A7F;
    /* Teal Cyan — from logo bottom */
    --teal: #008B8B;
    --teal-light: #20B2AA;
    --teal-dark: #006D6F;
    /* Crimson Red — from logo left */
    --red: #C62828;
    --red-light: #E53935;
    --red-dark: #A31D1D;
    /* Golden Amber — from logo right */
    --gold: #E8A317;
    --gold-light: #F5C542;
    --gold-dark: #C78C0A;
    /* Keep green mapped to gold for existing classes */
    --green: #E8A317;
    --green-light: #F5C542;
    --green-dark: #C78C0A;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-en);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.rtl {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Language Toggle ---------- */
.lang-en { display: block; }
.lang-ar { display: none; }
body.rtl .lang-en { display: none; }
body.rtl .lang-ar { display: block; }

/* Inline variants */
span.lang-en, div.lang-en { display: inline; }
span.lang-ar, div.lang-ar { display: none; }
body.rtl span.lang-en, body.rtl div.lang-en { display: none; }
body.rtl span.lang-ar, body.rtl div.lang-ar { display: inline; }

/* Block variants for paragraphs */
p.lang-en, ul.lang-en, div.lang-en.block { display: block; }
p.lang-ar, ul.lang-ar, div.lang-ar.block { display: none; }
body.rtl p.lang-en, body.rtl ul.lang-en, body.rtl div.lang-en.block { display: none; }
body.rtl p.lang-ar, body.rtl ul.lang-ar, body.rtl div.lang-ar.block { display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(6, 16, 31, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.navbar-brand .logo-text em {
    font-style: normal;
    color: var(--teal-light);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.3s var(--ease);
    border-radius: 1px;
}

body.rtl .nav-menu a::after { left: auto; right: 0; }

.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 8px 18px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #021818;
    overflow: hidden;
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 150, 199, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInDown 0.7s var(--ease) both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
    animation: fadeInUp 0.7s var(--ease) 0.15s both;
}

body.rtl .hero-title {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--teal-light);
    margin-bottom: 24px;
    letter-spacing: 3px;
    animation: fadeInUp 0.7s var(--ease) 0.25s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeInUp 0.7s var(--ease) 0.35s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease) 0.45s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
}

.btn-fill {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(0, 180, 216, 0.3);
}

.btn-fill:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-green {
    background: rgba(0, 230, 118, 0.12);
    color: var(--green);
    border: 1.5px solid rgba(0, 230, 118, 0.25);
}

.btn-green:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 180, 216, 0.5), transparent);
}

/* ============================================================
   SECTION SYSTEM
   ============================================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--teal);
    border-radius: 1px;
}

body.rtl .section-label::before { display: none; }
body.rtl .section-label::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--teal);
    border-radius: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--blue-800);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

body.rtl .section-title {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

.section-title .accent {
    color: var(--teal);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-desc {
    margin: 0 auto;
}

.section-header.centered .section-label {
    justify-content: center;
}

/* Dark section variants */
.section-dark {
    background: var(--blue-900);
    color: var(--white);
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.5);
}

.section-gray {
    background: var(--gray-50);
}

/* ============================================================
   OUR STORY — Timeline
   ============================================================ */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.story-text p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.9;
    margin-bottom: 16px;
}

.timeline {
    position: relative;
    padding-left: 36px;
}

body.rtl .timeline { padding-left: 0; padding-right: 36px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), var(--green));
    border-radius: 2px;
}

body.rtl .timeline::before { left: auto; right: 7px; }

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease);
}

.timeline-item:hover {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.08);
    transform: translateX(4px);
}

body.rtl .timeline-item:hover { transform: translateX(-4px); }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: var(--teal);
    border-radius: 50%;
    border: 3px solid var(--gray-50);
    box-shadow: 0 0 0 2px var(--teal);
}

body.rtl .timeline-item::before { left: auto; right: -33px; }

.timeline-item .t-year {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 6px;
}

body.rtl .timeline-item h4 { font-family: var(--font-ar); }

.timeline-item p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================================
   ECOSYSTEM — 5 Pillars
   ============================================================ */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.eco-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--green));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.eco-card:hover {
    border-color: rgba(0, 180, 216, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 180, 216, 0.1);
}

.eco-card:hover::before { opacity: 1; }

.social-links {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    transition: all 0.3s var(--ease);
}

.eco-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 230, 118, 0.06));
}

.eco-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 10px;
    line-height: 1.3;
}

body.rtl .eco-card h3 { font-family: var(--font-ar); }

.eco-card p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================================
   ACCREDITATIONS & LICENSES
   ============================================================ */
.cred-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cred-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.cred-card:hover {
    border-color: rgba(0, 180, 216, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 180, 216, 0.12);
}

.cred-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    transition: all 0.4s var(--ease);
    filter: brightness(0.95);
}

.cred-card:hover img {
    filter: brightness(1);
}

.cred-info {
    padding: 16px 18px;
}

.cred-info h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.4;
}

body.rtl .cred-info h4 { font-family: var(--font-ar); }

.cred-info p {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Credential Modal */
.cred-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 16, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s var(--ease);
}

.cred-modal.active {
    display: flex;
}

.cred-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
}

.cred-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cred-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
}

.cred-modal-close:hover {
    background: var(--teal-dark);
    transform: scale(1.1);
}

body.rtl .cred-modal-close { right: auto; left: -16px; }

/* ============================================================
   PROGRAMS — Cards
   ============================================================ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 48px rgba(11, 29, 58, 0.08);
    transform: translateY(-6px);
}

.program-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.program-card:nth-child(1) .program-icon { background: rgba(0, 180, 216, 0.1); }
.program-card:nth-child(2) .program-icon { background: rgba(0, 230, 118, 0.1); }
.program-card:nth-child(3) .program-icon { background: rgba(99, 102, 241, 0.1); }
.program-card:nth-child(4) .program-icon { background: rgba(251, 191, 36, 0.1); }
.program-card:nth-child(5) .program-icon { background: rgba(244, 63, 94, 0.1); }
.program-card:nth-child(6) .program-icon { background: rgba(14, 165, 233, 0.1); }

.program-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 10px;
}

body.rtl .program-card h3 { font-family: var(--font-ar); }

.program-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal);
    transition: all 0.3s var(--ease);
}

.program-link:hover { gap: 10px; }

/* ============================================================
   NETWORK SECTION
   ============================================================ */
.network-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.network-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.network-node {
    background: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.network-node:hover {
    background: rgba(0, 180, 216, 0.12);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-4px);
}

.network-node .node-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
}

.network-node .node-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
}

body.rtl .network-node .node-label { font-family: var(--font-ar); }

.network-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

body.rtl .network-text h3 { font-family: var(--font-ar); }

.network-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================================
   IMPACT / METRICS
   ============================================================ */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.metric-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.08);
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impact-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 20px;
    line-height: 1.3;
}

body.rtl .impact-text h3 { font-family: var(--font-ar); }

.impact-text p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 14px;
}

.impact-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.impact-card {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.06), rgba(0, 230, 118, 0.04));
    border: 1px solid rgba(0, 180, 216, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s var(--ease);
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.1);
}

.impact-card .ic-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block;
}

.impact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 8px;
}

body.rtl .impact-card h4 { font-family: var(--font-ar); }

.impact-card p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================================
   PARTNERSHIPS
   ============================================================ */
.partners-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-4px);
}

.partner-card .p-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.partner-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

body.rtl .partner-card h4 { font-family: var(--font-ar); }

.partner-cta {
    text-align: center;
    padding-top: 16px;
}

/* ============================================================
   JOIN / CTA SECTION
   ============================================================ */
.join-section {
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15), transparent 70%);
    border-radius: 50%;
}

.join-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1), transparent 70%);
    border-radius: 50%;
}

.join-section .container { position: relative; z-index: 1; }

.join-section .section-title {
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 20px;
}

.join-section .section-desc {
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto 40px;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--blue-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 32px;
    color: var(--white);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-row img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand .logo-row span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand .logo-row em {
    font-style: normal;
    color: var(--teal-light);
    font-weight: 600;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

body.rtl .footer-col h5 { font-family: var(--font-ar); }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col ul a:hover { color: var(--teal-light); }

.social-links {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    transition: all 0.3s var(--ease);
}

.social-links a:hover {
    transform: translateY(-4px);
    color: var(--white);
}

/* Brand Colors on Hover */
.social-links a[aria-label="WhatsApp"]:hover { background: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
.social-links a[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4); }
.social-links a[aria-label="Facebook"]:hover { background: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }
.social-links a[aria-label="X (Twitter)"]:hover { background: #000000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.social-links a[aria-label="LinkedIn"]:hover { background: #0A66C2; box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4); }
.social-links a[aria-label="Snapchat"]:hover { background: #FFFC00; color: #000; box-shadow: 0 4px 12px rgba(255, 252, 0, 0.4); }

.footer-bottom {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.gallery-tab {
    padding: 8px 24px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

body.rtl .gallery-tab { font-family: var(--font-ar); }

.gallery-tab:hover {
    border-color: rgba(0, 139, 139, 0.4);
    color: var(--white);
}

.gallery-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 139, 139, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.gallery-overlay span {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 139, 139, 0.85);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

body.rtl .gallery-video-badge { left: auto; right: 12px; }

.gallery-item.hidden {
    display: none;
}

/* Gallery Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
}

.gallery-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CONTACT US
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: 6px;
}

body.rtl .form-group label { font-family: var(--font-ar); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: var(--font-en);
    color: var(--blue-800);
    background: var(--gray-50);
    transition: all 0.3s var(--ease);
    outline: none;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    font-family: var(--font-ar);
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
}

.location-info {
    margin: 20px 0 24px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.loc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-address h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 4px;
}

body.rtl .location-address h4 { font-family: var(--font-ar); }

.location-address p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.nearby-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

body.rtl .nearby-title { font-family: var(--font-ar); }

.nearby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nearby-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
}

.nearby-card:hover {
    border-color: rgba(0, 180, 216, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.08);
}

.nearby-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.nearby-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-800);
}

body.rtl .nearby-card span { font-family: var(--font-ar); }

.contact-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal-dark);
    transition: all 0.3s var(--ease);
}

.contact-link:hover {
    color: var(--teal);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes counter-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .eco-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-grid, .network-visual, .impact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .partners-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .cred-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 16, 31, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 28px 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    }

    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 40px; }

    .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: 1fr; }
    .network-nodes { grid-template-columns: repeat(2, 1fr); }
    .metrics-row { grid-template-columns: repeat(3, 1fr); }
    .impact-visual { grid-template-columns: 1fr; }
    .partners-row { grid-template-columns: repeat(2, 1fr); }
    .cred-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .join-buttons { flex-direction: column; align-items: center; }
    .join-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

    .footer-top { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .eco-grid { grid-template-columns: 1fr; }
    .network-nodes { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: 1fr; }
    .partners-row { grid-template-columns: 1fr; }
    .cred-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
}
