/* ============================================
   ERTH — Cyberpunk Futuristic v4.0
   Deep space dark · Neon cyan · Electric purple
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;600;700;800&display=swap');

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

::selection {
    background: rgba(0, 245, 255, .2);
    color: #00F5FF;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, .3);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 255, .6);
}

/* ============================================
   TOKENS
   ============================================ */
:root {
    --bg: #030712;
    --bg-2: #070d1a;
    --bg-3: #0a1020;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-h: rgba(0, 245, 255, 0.04);

    --cyan: #00F5FF;
    --cyan-dim: rgba(0, 245, 255, 0.12);
    --cyan-mid: rgba(0, 245, 255, 0.30);
    --cyan-glow: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 40px rgba(0, 245, 255, 0.15);

    --purple: #8B5CF6;
    --purple-l: #A78BFA;
    --purple-dim: rgba(139, 92, 246, 0.15);
    --purple-glow: 0 0 20px rgba(139, 92, 246, 0.4);

    --emerald: #10B981;
    --emerald-dim: rgba(16, 185, 129, 0.12);
    --emerald-glow: 0 0 18px rgba(16, 185, 129, 0.4);

    --text: #E2E8F0;
    --text-2: #6D7F9A;
    --text-3: #2D3A52;

    --border: rgba(0, 245, 255, 0.08);
    --border-2: rgba(0, 245, 255, 0.18);

    /* legacy compat */
    --color-primary: var(--cyan);
    --color-secondary: var(--emerald);
    --color-emerald: #10B981;
    --color-blue: var(--purple);
    --color-text: var(--text);
    --color-text-light: var(--text-2);
    --color-background: var(--bg);
    --color-surface: var(--bg-2);
    --color-border: var(--border);
    --color-gray-300: var(--text-2);
    --color-gray-400: var(--text-2);
    --color-gray-500: var(--text-3);
    --color-gray-600: var(--text-3);
    --color-gray-200: rgba(255, 255, 255, 0.08);
    --color-white: #E2E8F0;
    --color-navy: var(--bg);

    --spacing-xs: .5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 24px;
    --r-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms ease;
    --transition-base: 280ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    --font-size-xs: .75rem;
    --font-size-sm: .875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --z-fixed: 1030;
    --z-sticky: 1020;
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scanline {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(100vh);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: .35;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(1.08);
    }
}

@keyframes gridScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 80px 80px;
    }
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 8px var(--cyan), 0 0 20px rgba(0, 245, 255, .4);
    }

    50% {
        text-shadow: 0 0 16px var(--cyan), 0 0 40px rgba(0, 245, 255, .6), 0 0 80px rgba(0, 245, 255, .2);
    }
}

@keyframes glowBorder {

    0%,
    100% {
        box-shadow: 0 0 5px var(--cyan-dim), inset 0 0 5px var(--cyan-dim);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 245, 255, .3), inset 0 0 10px rgba(0, 245, 255, .08);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

.text-center {
    text-align: center;
}

html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: .04em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2rem, 5.5vw, 4rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-2);
}

.lead {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-2);
}

/* Neon gradient text */
.text-gradient {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--purple-l) 50%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-neon {
    color: var(--cyan);
    animation: neonPulse 3s ease-in-out infinite;
}

/* Eyebrow labels */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Orbitron', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

html[lang="ar"] .eyebrow {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.eyebrow::before,
.eyebrow::after {
    content: '';
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-mid));
}

.eyebrow::after {
    background: linear-gradient(90deg, var(--cyan-mid), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    font-family: 'Orbitron', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

html[lang="ar"] .btn {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.btn-lg {
    padding: .9rem 2rem;
    font-size: .85rem;
}

/* shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform .55s var(--ease-out);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, .2), inset 0 0 10px rgba(0, 245, 255, .04);
    text-shadow: 0 0 8px rgba(0, 245, 255, .5);
}

.btn-primary:hover {
    background: rgba(0, 245, 255, .08);
    box-shadow: var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-2);
    border-color: var(--border-2);
}

.btn-secondary:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, .15);
}

.btn-outline {
    background: transparent;
    color: var(--text-2);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--text);
    border-color: var(--border-2);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, .7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: .85rem 0;
    z-index: 1030;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(3, 7, 18, .92);
    border-bottom-color: rgba(0, 245, 255, .2);
    box-shadow: 0 4px 30px rgba(0, 245, 255, .05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .15em;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, .5);
}

html[lang="ar"] .navbar-logo {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    border-radius: var(--r-sm);
    object-fit: contain;
    opacity: .9;
    border: 1px solid var(--border-2);
    box-shadow: 0 0 10px rgba(0, 245, 255, .1);
    transition: all var(--transition-base);
}

.navbar-logo:hover .logo-img {
    box-shadow: 0 0 18px rgba(0, 245, 255, .3);
    opacity: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
}

.navbar-link {
    color: var(--text-2);
    font-family: 'Orbitron', sans-serif;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    position: relative;
    padding: .3rem 0;
    transition: color var(--transition-base);
}

html[lang="ar"] .navbar-link {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: .8rem;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    transition: width var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 245, 255, .4);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.lang-toggle {
    padding: .3rem .8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-full);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-2);
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, .2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--cyan);
    transition: all var(--transition-base);
    box-shadow: 0 0 4px var(--cyan);
}

@media(max-width:768px) {
    .navbar-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, .98);
        border-bottom: 1px solid var(--border-2);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    html[dir="rtl"] .navbar-links {
        transform: translateX(100%);
    }

    .navbar-links.active {
        transform: translateX(0) !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-menu {
        gap: 1rem;
    }
}

/* ============================================
   HERO — Cyberpunk
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    color: var(--text);
}

/* Animated grid lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, .04) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridScroll 8s linear infinite;
    pointer-events: none;
}

/* Scanline overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, .08) 3px,
            rgba(0, 0, 0, .08) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Glow orbs */
.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-mesh::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, .18) 0%, transparent 65%);
    animation: orbPulse 6s ease-in-out infinite;
    border-radius: 50%;
}

.hero-mesh::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 255, .12) 0%, transparent 65%);
    animation: orbPulse 8s ease-in-out infinite reverse;
    border-radius: 50%;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Kicker pill */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .85rem;
    background: rgba(0, 245, 255, .06);
    border: 1px solid rgba(0, 245, 255, .25);
    border-radius: var(--r-full);
    font-family: 'Orbitron', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.75rem;
    box-shadow: 0 0 12px rgba(0, 245, 255, .1);
}

html[lang="ar"] .hero-kicker {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: .75rem;
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    animation: blink 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(0, 245, 255, .15);
}

.hero h1 em {
    font-style: normal;
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(0, 245, 255, .6), 0 0 40px rgba(0, 245, 255, .25);
}

.hero .lead {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--text-3);
    font-family: 'Orbitron', sans-serif;
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    box-shadow: 0 0 4px var(--cyan);
}

/* ============================================
   METRICS
   ============================================ */
.metrics {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.metrics::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, .02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.metric {
    background: var(--bg-2);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base);
}

.metric::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 245, 255, .06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.metric:hover {
    background: var(--bg-3);
}

.metric:hover::after {
    opacity: 1;
}

.metric-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: .02em;
    line-height: 1;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-l) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, .3));
}

html[lang="ar"] .metric-value {
    font-family: 'Cairo', sans-serif;
}

.metric-label {
    font-size: .68rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

html[lang="ar"] .metric-label {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: .8rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-mid), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: rgba(0, 245, 255, .25);
    background: var(--bg-card-h);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 245, 255, .08), inset 0 0 20px rgba(0, 245, 255, .03);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 245, 255, .25);
    border-radius: var(--r-md);
    margin-bottom: 1.25rem;
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, .1);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--text);
}

html[lang="ar"] .card h3 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: 1.1rem;
}

.card p {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.75;
}

/* ============================================
   GRIDS
   ============================================ */
.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: .28rem .75rem;
    font-size: .68rem;
    font-weight: 700;
    border-radius: var(--r-full);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

html[lang="ar"] .badge {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: .75rem;
}

.badge-success {
    background: rgba(16, 185, 129, .1);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, .25);
    box-shadow: 0 0 8px rgba(16, 185, 129, .15);
}

.badge-info {
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid rgba(0, 245, 255, .2);
    box-shadow: 0 0 8px rgba(0, 245, 255, .1);
}

.badge-warning {
    background: rgba(245, 158, 11, .1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, .2);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    padding: var(--spacing-xl) 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--cyan);
    opacity: .8;
    text-shadow: 0 0 10px rgba(0, 245, 255, .4);
}

html[dir="rtl"] .timeline-marker {
    text-align: left;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid rgba(0, 245, 255, .3);
    padding: 1.5rem;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    backdrop-filter: blur(8px);
}

html[dir="rtl"] .timeline-content {
    border-left: none;
    border-right: 2px solid rgba(0, 245, 255, .3);
    border-radius: var(--r-lg) 0 0 var(--r-lg);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .05em;
    font-family: 'Orbitron', sans-serif;
}

html[lang="ar"] .form-label {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    font-size: .9rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px var(--cyan-dim), 0 0 12px rgba(0, 245, 255, .1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid .full-width {
    grid-column: 1/-1;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--r-xl);
    backdrop-filter: blur(8px);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .08em;
    font-family: 'Orbitron', sans-serif;
}

html[lang="ar"] .contact-form label {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    font-size: .9rem;
    font-family: inherit;
    background: rgba(0, 245, 255, .02);
    color: var(--text);
    transition: all var(--transition-base);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-3);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px var(--cyan-dim), 0 0 12px rgba(0, 245, 255, .1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.contact-form .btn-primary {
    padding: .8rem 2.5rem;
    font-size: .75rem;
    font-weight: 700;
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    box-shadow: 0 0 10px rgba(0, 245, 255, .2);
}

.contact-form .btn-primary:hover {
    background: rgba(0, 245, 255, .08);
    box-shadow: var(--cyan-glow);
    transform: translateY(-2px);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 245, 255, .25);
    border-radius: var(--r-md);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, .1);
}

.contact-info-item h4 {
    margin-bottom: .25rem;
    font-size: .95rem;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .05em;
}

html[lang="ar"] .contact-info-item h4 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text-2);
    font-size: .9rem;
}

.contact-info-item a:hover {
    color: var(--cyan);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    color: var(--text-2);
    padding: 4rem 0 1.75rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, .015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    text-shadow: 0 0 8px rgba(0, 245, 255, .3);
}

html[lang="ar"] .footer-section h4 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    font-size: .9rem;
}

.footer-section p {
    font-size: .875rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-link {
    font-size: .875rem;
    color: var(--text-3);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 6px rgba(0, 245, 255, .4);
}

.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: 1.25rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    color: var(--text-2);
    transition: all var(--transition-base);
}

.social-icon:hover {
    color: var(--cyan);
    border-color: rgba(0, 245, 255, .3);
    background: var(--cyan-dim);
    box-shadow: 0 0 12px rgba(0, 245, 255, .2);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .75rem;
    color: var(--text-3);
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .08em;
}

html[lang="ar"] .footer-bottom {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}

.footer-bottom p {
    color: var(--text-3);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--bg-3);
    border: 1px solid rgba(0, 245, 255, .3);
    color: var(--cyan);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1020;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 245, 255, .15);
    animation: glowBorder 3s ease-in-out infinite;
}

html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--cyan-dim);
    box-shadow: var(--cyan-glow);
    transform: translateY(-3px);
}

/* ============================================
   SECTION bg-surface
   ============================================ */
.bg-subtle {
    background: var(--bg-2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-scroll {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        text-align: left;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:480px) {

    .container,
    .container-wide {
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
.animate-fade-up {
    animation: fadeUp .6s var(--ease-out);
}