/* ==========================================================================
   Eqra Tech (اقرأ للتقنية) - Design System & Modern Stylesheet
   ========================================================================== */

:root {
    /* Brand & Theme Colors */
    --primary: #0ea5e9;         /* Vibrant Cyan/Sky */
    --primary-glow: rgba(14, 165, 233, 0.4);
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    
    --secondary: #10b981;       /* Emerald / Jordan Green */
    --secondary-glow: rgba(16, 185, 129, 0.4);
    
    --accent: #6366f1;          /* Indigo / AI Violet */
    --accent-glow: rgba(99, 102, 241, 0.4);

    --gold: #f59e0b;            /* Award Gold */
    --gold-glow: rgba(245, 158, 11, 0.35);

    /* Backgrounds & Surface Gradients (Dark Tech) */
    --bg-main: #060b13;
    --bg-darker: #03060a;
    --bg-card: rgba(13, 22, 38, 0.72);
    --bg-card-hover: rgba(20, 34, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(14, 165, 233, 0.5);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-inverse: #0f172a;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px var(--primary-glow);

    /* Fonts & Radii */
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-quran: 'Amiri', serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides (if toggled) */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-darker: #eef2f6;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-ar);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

/* Background Neural Particle Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
}

.text-center { text-align: center; }
.text-success { color: var(--secondary) !important; }
.text-accent { color: var(--primary) !important; }
.text-danger { color: #ef4444 !important; }
.text-muted { color: var(--text-muted) !important; }
.hidden { display: none !important; }

/* Gradient Typography */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg);
    animation: buttonGleam 4s infinite;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-focus);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(14, 165, 233, 0.15);
}

/* Section Header */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(6, 11, 19, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header.scrolled {
    padding: 9px 0;
    background: rgba(4, 8, 16, 0.94);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.1);
}

.header-container {
    max-width: 1540px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(14, 165, 233, 0.35);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo:hover .logo-box {
    border-color: #38bdf8;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
    transform: scale(1.05);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.32rem;
    font-weight: 900;
    font-family: var(--font-en);
    letter-spacing: -0.4px;
    line-height: 1;
    color: #ffffff;
}

.brand-name .highlight {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.74rem;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(2, 132, 199, 0.45) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}

.btn-lang i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.nav-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.25s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1),
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2),
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3),
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 140px;
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
}

.hero-glow-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    max-width: 100vw;
}

.blob-1 {
    top: 5%;
    right: 0;
    background: radial-gradient(circle, #0ea5e9, #6366f1);
}

.blob-2 {
    bottom: 0;
    left: 0;
    background: radial-gradient(circle, #10b981, #0ea5e9);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: pulseGlow 1.8s infinite;
}

.hero-title {
    font-size: clamp(2.1rem, 3.2vw, 2.9rem);
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 34px;
    max-width: 620px;
}

.hero-ctas {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: 100%;
}

.hero-ctas .btn {
    white-space: nowrap;
    padding: 13px 24px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-stats-container {
    width: 100%;
    margin-top: 45px;
    position: relative;
    z-index: 10;
}

.hero-stats-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px 36px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.1);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
    transition: var(--transition-fast);
}

.stat-card:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

[dir="ltr"] .stat-card:not(:last-child) {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    display: block;
    font-size: 1.65rem;
    font-weight: 900;
    font-family: var(--font-en);
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.86rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Visual Card */
.hero-visual {
    position: relative;
}

.visual-glass-wrapper {
    background: rgba(10, 20, 36, 0.75);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.visual-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
    font-size: 0.85rem;
    font-family: var(--font-en);
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-pill {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-pill i { font-size: 6px; }

.visual-body {
    padding: 28px;
}

.ai-architecture-box {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-hub {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, #0284c7, #0369a1);
    box-shadow: 0 0 35px var(--primary-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    animation: pulseHub 3s infinite;
}

.center-hub i { font-size: 1.6rem; margin-bottom: 4px; }

.arch-satellites {
    position: absolute;
    width: 100%;
    height: 100%;
}

.satellite {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.sat-1 { top: 10px; right: 10px; border-color: rgba(14, 165, 233, 0.4); color: var(--primary); }
.sat-2 { bottom: 10px; right: 10px; border-color: rgba(16, 185, 129, 0.4); color: var(--secondary); }
.sat-3 { top: 10px; left: 10px; border-color: rgba(99, 102, 241, 0.4); color: var(--accent); }
.sat-4 { bottom: 10px; left: 10px; border-color: rgba(245, 158, 11, 0.4); color: var(--gold); }

.telemetry-bar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}

.tele-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-label {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.t-val {
    font-weight: 800;
    font-family: var(--font-en);
    direction: ltr;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(10, 20, 36, 0.92);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.badge-award {
    bottom: -16px;
    left: -12px;
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-award i {
    font-size: 1.6rem;
    color: var(--gold);
}

.badge-group {
    top: -16px;
    right: -12px;
    border-color: rgba(16, 185, 129, 0.4);
}

.badge-group i {
    font-size: 1.6rem;
    color: var(--secondary);
}

.floating-badge strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
}

.floating-badge span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Partners Marquee Bar
   ========================================================================== */
.partners-bar {
    padding: 40px 0;
    background: rgba(10, 17, 30, 0.6);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.partners-title {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 24px;
}

.partners-logos-marquee {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.partner-item:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(14, 165, 233, 0.08);
}

.partner-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   About Section & Timeline
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 70px;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.bg-gradient-cyan { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 8px 20px var(--primary-glow); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 8px 20px var(--accent-glow); }
.bg-gradient-gold { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 20px var(--gold-glow); }

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.about-card p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Timeline */
.timeline-container {
    margin-top: 50px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.timeline-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
}

.timeline-track {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #10b981);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 130px;
    max-width: 220px;
}

.timeline-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--primary);
}

.timeline-year {
    font-size: 1.15rem;
    font-weight: 900;
    font-family: var(--font-en);
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.highlight-item .timeline-dot {
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.highlight-item .timeline-year {
    color: var(--secondary);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-name {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.service-features {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    font-size: 0.875rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   National Projects Showcase
   ========================================================================== */
.featured-project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    align-items: center;
}

/* RTL: media on right, content on left */
html[dir="rtl"] .featured-project-card {
    grid-template-columns: 1.15fr 0.85fr;
}

html[dir="rtl"] .featured-project-card .proj-media-side {
    order: 2;
}

html[dir="rtl"] .featured-project-card .proj-content-side {
    order: 1;
}

html[dir="rtl"] .featured-project-card.reverse-layout .proj-media-side {
    order: 1;
}

html[dir="rtl"] .featured-project-card.reverse-layout .proj-content-side {
    order: 2;
}

.featured-project-card.reverse-layout {
    grid-template-columns: 0.85fr 1.15fr;
}

html[dir="ltr"] .featured-project-card.reverse-layout {
    grid-template-columns: 1.15fr 0.85fr;
}

html[dir="ltr"] .featured-project-card.reverse-layout .proj-media-side {
    order: 2;
}

.proj-media-side {
    background: rgba(15, 25, 45, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proj-badge-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.huge-num {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-en);
    background: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.num-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.proj-client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.proj-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
}

.proj-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.proj-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.bullet-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.bullet-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 4px;
}

.bullet-item strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.bullet-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.proj-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Other Projects Grid */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.sub-proj-card {
    padding: 30px;
}

.sub-proj-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.sub-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 6px;
}

.sub-proj-header h4 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.sub-proj-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.sub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-tags span {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--primary);
}

/* ==========================================================================
   Quranic Tech Section
   ========================================================================== */
.quran-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.quran-app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.app-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.app-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.app-tech-tag {
    font-size: 0.75rem;
    font-family: var(--font-en);
    color: var(--secondary);
    font-weight: 600;
}

.app-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.app-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.app-highlights span {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-highlights span i {
    color: var(--secondary);
}

/* Deep Tech Box */
.deep-tech-box {
    padding: 40px;
    background: rgba(8, 16, 30, 0.8);
}

.tech-box-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.tech-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-feature .f-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.tech-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tech-feature p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   AI Simulation Playground (Tasmee & Data Cleansing)
   ========================================================================== */
.ai-demo-section {
    background: linear-gradient(180deg, rgba(6, 11, 19, 0) 0%, rgba(10, 20, 36, 0.6) 50%, rgba(6, 11, 19, 0) 100%);
    padding-top: 80px;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    direction: rtl;
}

.demo-tab-btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.demo-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.demo-panel {
    display: none;
}

.demo-panel.active {
    display: block;
}

/* Tasmee Simulator */
.tasmee-simulator {
    padding: 35px;
    max-width: 960px;
    margin: 0 auto;
}

.sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

.sim-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.status-indicator.recording {
    background-color: #ef4444;
    box-shadow: 0 0 12px #ef4444;
    animation: pulseGlow 1s infinite;
}

.form-select-sm {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.sim-screen {
    background: rgba(4, 9, 18, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    margin-bottom: 24px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mushaf-display {
    font-family: var(--font-quran);
    font-size: 2.2rem;
    line-height: 2.2;
    direction: rtl;
    color: #e2e8f0;
}

.q-word {
    display: inline-block;
    padding: 0 4px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.q-word.active-read {
    background: rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    transform: scale(1.08);
}

.q-word.correct {
    color: #34d399;
}

.q-word.recite-error {
    background: rgba(239, 68, 68, 0.35);
    color: #f87171;
    text-decoration: underline wavy #ef4444;
}

.q-ayah-end {
    color: var(--gold);
    font-family: var(--font-quran);
    margin: 0 6px;
}

/* Audio Waveform */
.audio-waveform-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    margin-top: 24px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.audio-waveform-container.active {
    opacity: 1;
}

.waveform-bar {
    width: 5px;
    height: 12px;
    background: var(--primary);
    border-radius: 3px;
    transition: height 0.1s ease;
}

.audio-waveform-container.active .waveform-bar {
    animation: waveAnim 0.8s infinite ease-in-out alternate;
}

.audio-waveform-container.active .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-waveform-container.active .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-waveform-container.active .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-waveform-container.active .waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-waveform-container.active .waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.audio-waveform-container.active .waveform-bar:nth-child(7) { animation-delay: 0.2s; }
.audio-waveform-container.active .waveform-bar:nth-child(8) { animation-delay: 0.35s; }
.audio-waveform-container.active .waveform-bar:nth-child(9) { animation-delay: 0.15s; }
.audio-waveform-container.active .waveform-bar:nth-child(10) { animation-delay: 0.45s; }

.sim-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sim-feedback-console {
    background: rgba(2, 6, 12, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-ar), monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    min-height: 48px;
    display: flex;
    align-items: center;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

.console-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cleaning Simulator */
.cleaning-simulator {
    padding: 35px;
}

.clean-sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.clean-sim-header h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.clean-sim-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.data-tables-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow-x: auto;
}

@media (max-width: 820px) {
    .data-tables-preview {
        grid-template-columns: 1fr;
    }
}

.table-box {
    background: rgba(5, 12, 24, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tbl-head {
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.88rem;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sim-table th, .sim-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body[dir="ltr"] .sim-table th, body[dir="ltr"] .sim-table td {
    text-align: left;
}

.sim-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 700;
}

.badge-raw {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-cleaned {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   EAB No-Code Platform Banner
   ========================================================================== */
.eab-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: 50px;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.08) 50%, var(--bg-card) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    align-items: center;
}

.eab-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.eab-title {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 8px;
}

.eab-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}

.eab-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.eab-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.eab-f-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.eab-f-item i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 4px;
}

.eab-f-item strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.eab-f-item span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* EAB Mockup */
.eab-card-mockup {
    background: rgba(12, 18, 32, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mockup-header {
    background: rgba(20, 29, 48, 0.9);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.eab-logo-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-family: var(--font-en);
}

.e-letter {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.mock-badge {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
}

.mockup-canvas {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.canvas-block {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.88rem;
}

.block-req { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc; }
.block-flow { background: rgba(14, 165, 233, 0.15); border: 1px solid rgba(14, 165, 233, 0.4); color: #7dd3fc; }
.block-app { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }

.canvas-arrow {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ==========================================================================
   Hardware Section
   ========================================================================== */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hw-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hw-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hw-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hw-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.hw-specs {
    list-style: none;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hw-specs li {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hw-specs li i {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* ==========================================================================
   Leadership & Team Section
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.team-card.leader-card {
    border-color: rgba(14, 165, 233, 0.4);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, var(--bg-card) 100%);
}

.team-avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: rotateSlow 20s linear infinite;
}

.avatar-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-muted);
}

.leader-avatar {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.15);
}

.leader-crown-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 10px var(--gold-glow);
}

.member-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.member-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    line-height: 1.3;
}

.member-bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover .avatar-img {
    transform: scale(1.05);
    border-color: #38bdf8;
}

.team-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.team-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.team-social-btn:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.team-social-btn.wa-btn:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Media, Video Reels & Press Section
   ========================================================================== */
.media-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 35px;
}

.media-card {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-badge-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.media-headline {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.media-card:hover .media-headline {
    color: var(--primary);
}

.media-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.media-link-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Video / Reel Media Highlights Showcase (Stretched & Rich)
   ========================================================================== */
.video-reels-section {
    margin-top: 40px;
    width: 100%;
}

.reels-header {
    margin-bottom: 24px;
    text-align: center;
}

.reels-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 8px;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.reel-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1877f2, #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(14, 165, 233, 0.2);
}

.reel-card:hover::before {
    opacity: 1;
}

.reel-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.platform-tag.fb-tag {
    background: rgba(24, 119, 242, 0.15);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #60a5fa;
}

.platform-tag.x-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.play-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.reel-card:hover .play-icon-badge {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--primary);
}

.reel-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 10px;
}

.reel-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.reel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
}

.reel-card:hover .reel-footer {
    color: #38bdf8;
}

@media (max-width: 1060px) {
    .hero-stats-bar,
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-stats-bar,
    .reels-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.c-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-item span {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.sfg-affiliation-badge {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sfg-affiliation-badge i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.sfg-affiliation-badge strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
}

.sfg-affiliation-badge span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    background: rgba(6, 12, 22, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 35px;
}

.form-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert-success-msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Floating Nashmi AI Chat Widget
   ========================================================================== */
.nashmi-widget-container {
    position: fixed;
    bottom: 28px;
    left: 28px;
    right: auto;
    z-index: 999;
}

body[dir="ltr"] .nashmi-widget-container,
[dir="ltr"] .nashmi-widget-container {
    left: auto;
    right: 28px;
}

.nashmi-bubble-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 30px var(--primary-glow);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
}

.nashmi-bubble-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.bot-status-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.nashmi-chat-box {
    display: none;
    position: absolute;
    bottom: 65px;
    left: 0;
    right: auto;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    background: rgba(10, 18, 34, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    overflow: hidden;
}

body[dir="ltr"] .nashmi-chat-box,
[dir="ltr"] .nashmi-chat-box {
    left: auto;
    right: 0;
}

.nashmi-chat-box.open {
    display: flex;
}

.chat-header {
    padding: 16px 20px;
    background: rgba(15, 25, 48, 0.95);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nashmi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.chat-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.chat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.chat-close-btn:hover { color: #fff; }

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.msg-bot {
    align-self: flex-start;
}

.msg-user {
    align-self: flex-end;
}

.msg-content {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.55;
}

.msg-bot .msg-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-bottom-right-radius: 2px;
}

body[dir="ltr"] .msg-bot .msg-content {
    border-bottom-right-radius: var(--radius-md);
    border-bottom-left-radius: 2px;
}

.msg-user .msg-content {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #ffffff;
    border-bottom-left-radius: 2px;
}

body[dir="ltr"] .msg-user .msg-content {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: 2px;
}

.msg-time {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 4px;
    align-self: flex-end;
}

.quick-prompts {
    padding: 8px 14px;
    background: rgba(5, 12, 22, 0.7);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid var(--glass-border);
}

.quick-prompts::-webkit-scrollbar { height: 4px; }
.quick-prompts::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

.prompt-chip {
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.prompt-chip:hover {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

.chat-input-area {
    padding: 12px 16px;
    background: rgba(15, 25, 48, 0.95);
    border-top: 1px solid var(--glass-border);
}

.chat-input-area form {
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.chat-input-area input:focus { border-color: var(--primary); }

.chat-input-area button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-input-area button:hover { background: var(--primary-dark); }

/* Typing dots indicator */
.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 4px 2px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1.1); opacity: 1; }
}

/* Markdown rendered inside chat messages */
.msg-content .chat-md-h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0 0 6px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 4px;
}

.msg-content .chat-ul,
.msg-content .chat-ol {
    margin: 6px 0;
    padding-right: 18px;
    padding-left: 0;
}

.msg-content .chat-ul .chat-li,
.msg-content .chat-ol .chat-li-num {
    margin-bottom: 4px;
    line-height: 1.55;
}

.msg-content .chat-blockquote {
    border-right: 3px solid var(--accent);
    padding: 4px 10px;
    margin: 8px 0;
    background: rgba(16, 185, 129, 0.07);
    border-radius: 4px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.83rem;
}

.msg-content strong { color: var(--text-main); font-weight: 700; }
.msg-content em     { color: var(--primary-light); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding-top: 70px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.35));
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-inline-start: 4px;
}

.footer-sfg-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.cert-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom-links a:hover { color: var(--primary); }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Laptops & Desktops */
@media (max-width: 1280px) {
    .header-container { padding: 0 20px; gap: 12px; }
    .nav-link { font-size: 0.82rem; padding: 5px 9px; }
    .main-nav .nav-links { gap: 2px; }
    .btn-lang { padding: 6px 12px; font-size: 0.78rem; }
    .nav-cta { padding: 7px 14px; font-size: 0.82rem; }
    .team-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* Medium Tablets & Small Laptops (Mobile Nav Activates) */
@media (max-width: 1080px) {
    .mobile-toggle { display: flex; }
    .nav-cta { display: none; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(4, 8, 16, 0.98);
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
        padding: 20px 24px;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1001;
    }
    
    .main-nav.mobile-active {
        display: block;
        animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .main-nav .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 18px;
        border-radius: var(--radius-md);
        font-size: 1rem;
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(14, 165, 233, 0.15);
        border-color: rgba(56, 189, 248, 0.35);
        color: #ffffff;
    }
    
    /* Layouts */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px 28px;
    }
    
    .stat-card:nth-child(2) {
        border-left: none;
        border-right: none;
    }
    
    [dir="ltr"] .stat-card:nth-child(2) {
        border-left: none;
        border-right: none;
    }
    
    .about-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .quran-apps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .tech-box-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hardware-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .media-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .reels-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .timeline-track {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .timeline-track::before { display: none; }
    
    .featured-project-card,
    .featured-project-card.reverse-layout,
    html[dir="rtl"] .featured-project-card,
    html[dir="ltr"] .featured-project-card.reverse-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .eab-banner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 30px;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* Portrait Tablets & Large Phones */
@media (max-width: 860px) {
    .section { padding: 65px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 2.1rem; }
    
    .hero-title { font-size: clamp(2rem, 5vw, 2.5rem); }
    .hero-description { font-size: 1rem; }
    
    .floating-badge {
        position: static;
        margin-top: 14px;
        display: inline-flex;
        width: 100%;
        justify-content: center;
        transform: none !important;
        animation: none !important;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    .other-projects-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }
    
    .data-tables-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .table-box {
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .tasmee-simulator,
    .cleaning-simulator {
        padding: 24px 18px;
    }
    
    .sim-screen {
        padding: 28px 18px;
        min-height: 180px;
    }
    
    .mushaf-display {
        font-size: 1.8rem;
        line-height: 2;
    }
    
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Mobile Devices */
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .section-title { font-size: 1.7rem; }
    .section-subtitle { font-size: 0.95rem; }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 45px;
    }
    
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.38;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.92rem;
        line-height: 1.75;
        margin-bottom: 22px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .hero-stats-bar {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 16px;
    }
    
    .stat-card {
        padding: 8px 6px;
    }
    
    .stat-card:not(:last-child) {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 14px;
    }
    
    [dir="ltr"] .stat-card:not(:last-child) {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .quran-apps-grid { grid-template-columns: 1fr; gap: 16px; }
    .tech-box-grid { grid-template-columns: 1fr; gap: 16px; }
    .hardware-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .media-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .reels-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    
    .footer-logo { justify-content: center; }
    .footer-socials { justify-content: center; }
    .cert-badges { align-items: center; }
    
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .demo-tabs {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .demo-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .sim-actions-bar {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .sim-actions-bar .btn {
        width: 100%;
        justify-content: center;
    }
    
    .proj-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .proj-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nashmi-widget-container {
        bottom: 16px;
        left: 16px;
        right: auto;
        z-index: 9999;
    }
    
    body[dir="ltr"] .nashmi-widget-container,
    [dir="ltr"] .nashmi-widget-container {
        left: auto;
        right: 16px;
    }

    .nashmi-bubble-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .nashmi-chat-box {
        position: fixed !important;
        bottom: 74px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        height: 480px !important;
        max-height: calc(100vh - 95px) !important;
        margin: 0 auto;
        border-radius: 18px;
        z-index: 10000;
    }
    
    body[dir="ltr"] .nashmi-chat-box,
    [dir="ltr"] .nashmi-chat-box {
        left: 10px !important;
        right: 10px !important;
    }
}

/* Extra Small Phones */
@media (max-width: 420px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .brand-name { font-size: 1.15rem; }
    .brand-sub { font-size: 0.65rem; }
    .logo-box { width: 36px; height: 36px; }
    .btn-lang { padding: 5px 10px; font-size: 0.75rem; }
    .mobile-toggle { width: 36px; height: 36px; padding: 6px; }
    
    .hero-title { font-size: 1.55rem; }
    .mushaf-display { font-size: 1.5rem; line-height: 1.8; }
    .huge-num { font-size: 2.6rem; }
    
    .contact-wrapper { padding: 22px 14px; }
    .eab-banner { padding: 24px 16px; }
}

/* ==========================================================================
   Nashmi Chat — rich message content
   ========================================================================== */

/* Paragraphs produced by the markdown renderer */
.msg-content .chat-p {
    margin: 0 0 6px;
}
.msg-content .chat-p:last-child { margin-bottom: 0; }

.msg-content .chat-md-h4 i { margin-inline-end: 6px; }

.msg-content a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px dotted rgba(125, 211, 252, 0.5);
    word-break: break-word;
}
.msg-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.msg-content .chat-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-border);
    padding-top: 8px;
}

/* --- People / contact cards ------------------------------------------- */
.chat-person-list,
.chat-contact-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-person {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.chat-person:hover {
    background: rgba(14, 165, 233, 0.09);
    border-color: rgba(14, 165, 233, 0.35);
}

.cp-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.cp-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cp-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.cp-role {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cp-tag {
    font-family: var(--font-en);
    font-style: normal;
    font-size: 0.66rem;
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-full);
    padding: 1px 7px;
    margin-inline-start: 4px;
    white-space: nowrap;
}

.cp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.cp-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-family: var(--font-en);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    direction: ltr;
}

.cp-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.chat-contact-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.chat-contact-list li i {
    flex: 0 0 16px;
    color: var(--primary);
    text-align: center;
}

/* --- Message meta row (time + copy) ----------------------------------- */
.msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    align-self: flex-end;
}

.msg-bot .msg-meta { align-self: flex-start; }

.msg-copy {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0;
    transition: var(--transition-fast);
}

.message:hover .msg-copy,
.msg-copy:focus-visible { opacity: 1; }
.msg-copy:hover { color: var(--primary); }

/* --- Unread badge on the launcher bubble ------------------------------ */
.nashmi-bubble-btn.has-unread::after {
    content: attr(data-unread);
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-main);
}

/* ==========================================================================
   Accessibility & motion preferences
   ========================================================================== */

/* Anchor links must clear the fixed header instead of hiding under it */
html {
    scroll-padding-top: 96px;
}

/* Keyboard skip link — visible only while focused */
.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: -100px;
    transform: translateX(50%);
    z-index: 2000;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* A single, consistent focus ring for every interactive element.
   :focus-visible keeps it off for mouse users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Respect users who ask the OS for less motion. Animations are decorative
   here, so they are reduced to a single frame rather than removed entirely
   (which would leave fade-in elements stuck at opacity 0). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html { scroll-behavior: auto; }

    .animate-fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }

    #neural-canvas { display: none; }
}

/* Screen-reader-only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

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

/* ==========================================================================
   Contact form validation & result card
   ========================================================================== */
.field-error {
    display: none;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #f87171;
    line-height: 1.5;
}

.field-error.visible {
    display: block;
}

.form-control.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-result-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-result-title.ok   { color: #34d399; }
.form-result-title.warn { color: #fbbf24; }

.form-result-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-ref {
    color: var(--primary-light);
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

.form-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.form-result-actions .btn {
    font-size: 0.82rem;
    padding: 7px 16px;
    text-decoration: none;
}

.btn-wa {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.btn-wa:hover {
    background: #059669;
    color: #fff;
}

/* ==========================================================================
   Simulator console — readable scrolling log
   ========================================================================== */
.sim-feedback-console {
    max-height: 140px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.sim-feedback-console .console-item + .console-item {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Disabled simulator controls should read as unavailable */
.sim-actions-bar .btn:disabled,
.form-select-sm:disabled,
#runCleaningSimBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
