/* ============================================
   PIXEL GATE - Main Stylesheet
   A World-Class Media House
   ============================================ */

/* ============================================
   1. CSS VARIABLES & ROOT
   ============================================ */
:root {
    /* Colors - Navy Theme */
    --primary-color: #1e3a5f;
    --primary-light: #2d5a87;
    --primary-dark: #0f2744;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --bg-color: #020617;
    --bg-secondary: rgba(30, 58, 95, 0.08);
    --text-color: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --border-color: rgba(30, 58, 95, 0.3);
    --border-hover: rgba(59, 130, 246, 0.5);

    /* Gradients - Navy Theme */
    --gradient-primary: linear-gradient(135deg, #1e3a5f, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #0f2744, #1e3a5f, #3b82f6);
    --gradient-card: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.15));

    /* Shadows - Navy Theme */
    --shadow-sm: 0 5px 15px rgba(30, 58, 95, 0.3);
    --shadow-md: 0 10px 30px rgba(30, 58, 95, 0.4);
    --shadow-lg: 0 15px 40px rgba(59, 130, 246, 0.3);
    --shadow-xl: 0 25px 60px rgba(59, 130, 246, 0.4);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Cairo', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1400px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --radius-full: 50%;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    font-family: var(--font-arabic);
}

/* Keep section headers centered in RTL (all sections) */
body.rtl .section-header,
body.rtl .section-title,
body.rtl .section-description,
body.rtl .section-label {
    text-align: center;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .service-card,
body.rtl .contact-item {
    text-align: right;
}

body.rtl .experience-card::before {
    left: auto;
    right: 0;
}

body.rtl .experience-card li {
    padding-left: 0;
    padding-right: 30px;
}

body.rtl .experience-card li::before {
    left: auto;
    right: 0;
    content: '\2190';
}

/* ============================================
   3. ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.5), transparent);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 39, 68, 0.4), transparent);
    bottom: -15%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    top: 40%;
    left: 50%;
    animation-delay: 3s;
}

.grid-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(30, 58, 95, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -60px) scale(1.15);
    }

    66% {
        transform: translate(-40px, 40px) scale(0.85);
    }
}

/* ============================================
   4. CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   5. NAVIGATION
   ============================================ */
nav {
    display: flex;
    justify-content: center;
    padding: 25px 20px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(10, 1, 24, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
    width: 100vw;
}

nav.scrolled {
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

nav.nav-visible {
    transform: translateY(0);
}

.nav-container {
    max-width: var(--container-max);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(30, 58, 95, 0.1);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: rgba(30, 58, 95, 0.2);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.lang-text {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--primary-color);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   6. HERO SECTION - FULLSCREEN WITH BACKGROUND
   ============================================ */
.hero-fullscreen {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Bottom fade transition to next section */
.hero-fullscreen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(2, 6, 23, 0.3) 30%,
            rgba(2, 6, 23, 0.7) 60%,
            var(--bg-color) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 120%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-embed {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(30%);
    display: block;
    border: 0;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, rgba(2,6,23,0.15) 0%, rgba(2,6,23,0.35) 40%, rgba(2,6,23,0.7) 100%);
}

/* Gradient Overlay - Navy Theme (Lighter, more cinematic) */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Main horizontal gradient - lighter */
        linear-gradient(to right,
            rgba(2, 6, 23, 0.85) 0%,
            rgba(2, 6, 23, 0.78) 18%,
            rgba(15, 39, 68, 0.65) 35%,
            rgba(30, 58, 95, 0.5) 55%,
            rgba(30, 58, 95, 0.35) 75%,
            rgba(0, 0, 0, 0.2) 100%),

        /* Top vignette - أخف */
        linear-gradient(to bottom,
            rgba(2, 6, 23, 0.65) 0%,
            rgba(2, 6, 23, 0.5) 30%,
            rgba(2, 6, 23, 0.35) 55%,
            rgba(2, 6, 23, 0.2) 75%,
            rgba(2, 6, 23, 0.08) 100%);
}


/* Hero Main Content */
.hero-main-content {
    position: relative;
    z-index: 2;
    padding: 0px 60px 80px 60px;
    max-width: 650px;
    animation: fadeInUp 1s ease;
}

.hero-welcome {
    font-size: clamp(1rem, 3vw, 3rem); /* أكبر شوية بس آمن */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    padding-top: 10px;
    opacity: 0.9;
    letter-spacing: 0.08em;   /* يديها عرض */
    text-transform: uppercase;
    max-width: 100%;
}


.hero-logo-large {
    margin-bottom: 6px;
}

.hero-logo-img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 8px;
    max-width: 600px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-tagline .highlight-gate,
.hero-tagline .highlight-pixel {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter Effect */
.hero-typewriter {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
    min-height: 30px;
}

.typewriter-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.typewriter-cursor {
    color: var(--secondary-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--border-hover);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(30, 58, 95, 0.3);
    border-color: var(--secondary-color);
}

/* Side Quote */
.hero-side-quote {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    color: var(--text-color);
    font-size: 1.5em;
    line-height: 1.4;
    opacity: 0.9;
}

.hero-side-quote strong {
    color: var(--secondary-color);
    font-weight: 800;
}

/* Dynamic Bottom Logo (transforms to arrow on scroll) */
.hero-bottom-logo {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 999;
    width: 60px;
    height: 60px;

    /* ✅ الخلفية */
    background: radial-gradient(circle at center,
        rgba(59,130,246,0.35) 0%,
        rgba(30,58,95,0.65) 45%,
        rgba(15,39,68,0.9) 75%,
        rgba(2,6,23,1) 100%
    );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* ❌ مهم: شيل البوردر من هنا */
    border: 0;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md);

    overflow: hidden;
    isolation: isolate;

    /* ✅ قص دايرة نظيف يمنع الفراغات */
    -webkit-mask-image: radial-gradient(circle, #000 99.5%, transparent 100%);
    mask-image: radial-gradient(circle, #000 99.5%, transparent 100%);
}

/* ✅ البوردر كطبقة مستقلة (ده اللي بيحل المشكلة) */
.hero-bottom-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    pointer-events: none;
}

/* اللمعة اللي عندك */
.hero-bottom-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255,255,255,0.18),
        transparent 65%
    );
    pointer-events: none;
}

.hero-bottom-logo:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(30, 58, 95, 0.25);
    box-shadow: var(--shadow-lg);
}

/* ✅ hover border */
.hero-bottom-logo:hover::after {
    border-color: var(--border-hover);
}

.hero-bottom-logo .logo-icon,
.hero-bottom-logo .arrow-icon {
    position: absolute;
    transition: all var(--transition-medium);
}

.hero-bottom-logo .logo-icon {
    width: 35px;
    height: auto;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hero-bottom-logo .arrow-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
}

/* When scrolled - show arrow, hide logo */
.hero-bottom-logo.scrolled .logo-icon {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
}

.hero-bottom-logo.scrolled .arrow-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hero-bottom-logo.scrolled {
    background: var(--gradient-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ✅ scrolled border */
.hero-bottom-logo.scrolled::after {
    border-color: transparent;
}

.hero-bottom-logo.scrolled .arrow-icon {
    color: white;
}

body.rtl .hero-bottom-logo {
    right: auto;
    left: 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-main-content {
        padding: 40px 50px;
        max-width: 600px;
    }

    .hero-logo-img {
        max-width: 300px;
    }

    .hero-side-quote {
        font-size: 1.2em;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .hero-fullscreen {
        justify-content: center;
        text-align: center;
    }

    .hero-main-content {
        padding: 30px 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-welcome {
        font-size: 1.2em;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 1.3em;
    }

    .hero-typewriter {
        font-size: 1em;
    }

    .hero-side-quote {
        display: none;
    }

    .hero-bottom-logo {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .hero-bottom-logo .logo-icon {
        width: 28px;
    }

    .hero-bottom-logo .arrow-icon {
        width: 24px;
        height: 24px;
    }

    body.rtl .hero-bottom-logo {
        right: auto;
        left: 20px;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-welcome {
        font-size: 1.3em;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 0.9em;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.85em;
    }
}

/* ============================================
   7. SECTIONS - COMMON STYLES
   ============================================ */
section {
    padding: var(--section-padding);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-dim);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   8. SERVICES SECTION
   ============================================ */
.service-category {
    margin-bottom: 80px;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.category-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.category-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-subtitle {
    color: var(--text-dim);
    font-size: 1.1em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon svg {
    color: white;
}

.service-card h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* videos of services (Vimeo card embed) */
.vimeo-card-embed{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    overflow:hidden;
    z-index:0;
    border-radius: inherit;
}

/* Fill the card nicely (slight overscan avoids black bars) */
.vimeo-card-embed iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:300%;
    height:300%;
    transform:translate(-50%,-50%);
    border:0;
    pointer-events:none; /* hides UI interactions / keeps hover effects clean */
}

/* ===== Vimeo Fit (for specific highlight only) ===== */
.vimeo-card-embed.vimeo-fit iframe{
  width: 125%;
  height: 125%;
  transform: translate(-50%, -50%);
}


/* Fix small cards video cover ONLY */
.service-masonry-card.card-small .vimeo-card-embed {
    position: absolute;
    inset: 0;
    width:100%;
    height:100%;
    overflow: hidden;
    border-radius: inherit;
}

.service-masonry-card.card-small .vimeo-card-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 460%;
    height: 460%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ============================================
   9. CAPABILITIES SECTION
   ============================================ */
.capabilities-content {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.capabilities-text {
    text-align: center;
    margin-bottom: 50px;
}

.capabilities-description {
    font-size: 1.3em;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.capability-item {
    background: rgba(10, 1, 24, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    transition: var(--transition-fast);
}

.capability-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.capability-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.capability-item h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.capability-item p {
    color: var(--text-dim);
    font-size: 0.95em;
}

/* ============================================
   10. TEAM SECTION (SLIDER VERSION)
   ============================================ */

.team-category {
    margin-bottom: 80px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category-title {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Team Slider Grid ===== */
.team-grid{
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.team-grid::-webkit-scrollbar{
    height: 8px;
}

.team-grid::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

/* ===== Team Card ===== */
.team-card{
    position: relative;
    flex: 0 0 320px;                 /* card width */
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all .35s ease;
    scroll-snap-align: start;
    cursor: default;                 /* no click */
}

.team-card:hover{
    transform: translateY(-12px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 70px rgba(59,130,246,.45);
    z-index: 5;
}

/* ===== Image ===== */
.team-image{
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.team-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.team-card:hover .team-image img{
    transform: scale(1.12);
}

/* ===== Overlay ===== */
.team-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(2,6,23,.45) 55%,
        rgba(2,6,23,.95) 100%
    );
    z-index: 1;
}

/* ===== Info (Name + Role) ===== */
.team-info{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(2,6,23,.96) 0%,
        rgba(2,6,23,.75) 55%,
        transparent 100%
    );

    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.team-card:hover .team-info{
    opacity: 1;
    transform: translateY(0);
}

.team-info h4{
    font-size: 1.45em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 8px 22px rgba(0,0,0,.55);
}

.team-role{
    font-size: 1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    text-shadow: 0 6px 18px rgba(0,0,0,.45);
}

/* ===== Responsive ===== */
@media (max-width: 768px){
    .team-card{
        flex: 0 0 260px;
    }
    .team-image{
        height: 340px;
    }
}


/* ============================================
   TEAM SECTION – RESPONSIVE (SLIDER)
   ============================================ */

@media (max-width: 1024px){
    .team-card{
        flex: 0 0 300px;
    }

    .team-image{
        height: 380px;
    }
}

@media (max-width: 768px){
    .team-category{
        margin-bottom: 60px;
    }

    .team-category-title{
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .team-grid{
        gap: 20px;
        padding-bottom: 14px;
    }

    .team-card{
        flex: 0 0 260px;
    }

    .team-image{
        height: 340px;
    }
}

@media (max-width: 480px){
    .team-category-title{
        font-size: 1.4em;
    }

    .team-card{
        flex: 0 0 220px;
    }

    .team-image{
        height: 300px;
    }

    .team-info{
        padding: 20px;
    }

    .team-info h4{
        font-size: 1.2em;
    }

    .team-role{
        font-size: 0.9em;
    }
}

/* =========================
   TEAM CUTOUT STYLE (PNG)
   ========================= */

/* السلايدر */
.team-grid{
  display: flex;
  gap: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 0 18px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.team-grid::-webkit-scrollbar{ height: 8px; }
.team-grid::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

/* الكارت يبقى “شفاف” بدون خلفية */
.team-card{
  position: relative;
  flex: 0 0 300px;               /* عدّل العرض لو حابب */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  scroll-snap-align: start;
  cursor: default;
  transform: none;
}

/* نخلي الكل أهدى شوية… واللي عليه hover ينور */
.team-grid:hover .team-card{
  opacity: 0.45;
  filter: saturate(0.9);
}
.team-grid:hover .team-card:hover{
  opacity: 1;
  filter: none;
}

/* الصورة: contain عشان PNG ما تتقصش */
.team-image{
  height: 460px;                 /* طول الشخص */
  background: transparent;
  overflow: visible;
}

.team-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;           /* مهم لصور بدون خلفية */
  transform: translateZ(0);
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.55));
}

/* Glow + lift عند hover */
.team-card:hover .team-image img{
  transform: translateY(-8px) scale(1.02);
  filter:
    drop-shadow(0 18px 45px rgba(0,0,0,.55))
    drop-shadow(0 0 22px rgba(59,130,246,.55));
}

/* شيل overlay القديم لأنه كان معمول للكروت بخلفية */
.team-overlay{
  display: none !important;
}

/* بيانات الشخص (تظهر على hover) */
.team-info{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 14px);
  width: max-content;
  max-width: 92vw;
  padding: 12px 16px;
  border-radius: 14px;

  background: rgba(2,6,23,.82);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

.team-card:hover .team-info{
  opacity: 1;
  transform: translate(-50%, 0);
}

.team-info h4{
  color: #fff;
  font-weight: 800;
  margin: 0 0 4px 0;
  font-size: 1.1em;
  text-shadow: 0 8px 22px rgba(0,0,0,.55);
}

.team-role{
  margin: 0;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: .95em;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
}

/* Responsive */
@media (max-width: 768px){
  .team-card{ flex-basis: 240px; }
  .team-image{ height: 360px; }
}
@media (max-width: 480px){
  .team-card{ flex-basis: 220px; }
  .team-image{ height: 320px; }
}


/* =========================
   TEAM SPOTLIGHT EFFECT
   ========================= */

.team-card::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 60px;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(59,130,246,0.35) 0%,
    rgba(59,130,246,0.15) 35%,
    rgba(59,130,246,0.05) 55%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .25s ease;
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.team-card:hover::before{
  opacity: 1;
}

/* ===== Team Navigation Buttons ===== */
.team-nav{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  pointer-events: auto;

  background: rgba(2,6,23,.7);
  color: #fff;
  font-size: 30px;
  font-weight: 700;

  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.team-btn:hover{
  background: rgba(59,130,246,.85);
  transform: translateY(-50%) scale(1.08);
}

.team-prev{ left: -10px; }
.team-next{ right: -10px; }

/* Hide buttons on mobile (optional) */
@media (max-width: 768px){
  .team-btn{ display: none; }
}

#team{
  position: relative;
}


/* ============================================
   11. CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

body.rtl .contact-item:hover {
    transform: translateX(-10px);
}

.contact-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.contact-text h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    color: var(--text-muted);
    font-size: 1em;
}

/* Social Section Inline (under email) */
.social-section-inline {
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.social-section-inline h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.social-section-inline .social-links {
    display: flex;
    gap: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(30, 58, 95, 0.1);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-link:hover svg {
    color: white;
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-fast);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-title{
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 45px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    padding-top: 25px;
    background: rgba(30, 58, 95, 0.1);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 1em;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1em;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group textarea + label {
    top: 25px;
    transform: translateY(0);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.75em;
    color: var(--secondary-color);
}

body.rtl .form-group label {
    left: auto;
    right: 20px;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

.form-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px 25px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px 18px;
        padding-top: 22px;
    }

    .form-submit-btn {
        width: 100%;
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95em;
    }

    .form-submit-btn {
        font-size: 1em;
    }
}

/* ============================================
   12. FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 70px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    background: rgba(10, 1, 24, 0.5);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-logo span {
    font-size: 1.8em;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 1.3em;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.95em;
}



/* ============================================
   14. LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(30, 58, 95, 0.2);
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close svg,
.lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .hero {
        gap: 60px;
    }

    .hero-visual {
        width: 350px;
        height: 350px;
    }

    .hero-shape {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .contact-content {
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 60px 0;
    }

    .hero-image {
        order: -1;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 2.3em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 1, 24, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left var(--transition-fast);
    }

    .nav-links.active {
        left: 0;
    }

    body.rtl .nav-links {
        left: auto;
        right: -100%;
    }

    body.rtl .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-item:hover {
        transform: translateY(-5px);
    }

    /* Capabilities */
    .capabilities-content {
        padding: 40px 25px;
    }

    .capabilities-description {
        font-size: 1.1em;
    }

    section {
        padding: 60px 0;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .logo-img {
        height: 35px;
    }

    .hero-visual {
        width: 240px;
        height: 240px;
    }

    .hero-shape {
        width: 220px;
        height: 220px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .category-title {
        font-size: 1.6em;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    body.rtl .scroll-top {
        right: auto;
        left: 20px;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-filter {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.95em;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   16. UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth text transition for language switch */
[data-en],
[data-ar] {
    transition: opacity 0.2s ease;
}

/* ============================================
   16.5 MISSION SECTION (DYNAMIC BACKGROUND)
   ============================================ */
.mission-section {
    position: relative;
    padding: 120px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: var(--bg-color);
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background-image:
        linear-gradient(0deg, rgba(30, 58, 95, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.mission-section::after {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    z-index: 1;
    background:
        linear-gradient(60deg,
            transparent 20%,
            rgba(59, 130, 246, 0.2) 35%,
            rgba(59, 130, 246, 0.4) 40%,
            rgba(59, 130, 246, 0.5) 45%,
            rgba(59, 130, 246, 0.4) 50%,
            rgba(59, 130, 246, 0.2) 55%,
            transparent 70%
        ),
        linear-gradient(135deg,
            transparent 30%,
            rgba(59, 130, 246, 0.15) 45%,
            rgba(59, 130, 246, 0.3) 50%,
            rgba(59, 130, 246, 0.15) 55%,
            transparent 70%
        );
    pointer-events: none;
    animation: pixelGlow 5s ease-in-out infinite;
}



@keyframes gradientFlow {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}

@keyframes pixelGlow {
    0% {
        transform: translate(-75%, -75%) rotate(60deg);
    }
    33% {
        transform: translate(20%, -40%) rotate(135deg);
    }
    66% {
        transform: translate(-30%, 60%) rotate(240deg);
    }
    100% {
        transform: translate(75%, 75%) rotate(420deg);
    }
}

#mission {
    position: relative;
    z-index: 1;
}

.mission-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    z-index: 2;
    opacity: 0.1;
    pointer-events: none;
}




.mission-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 60px;
}

.mission-text {
    font-size: 1.95em;
    line-height: 1.95;
    color: var(--text-muted);
    max-width: 2500px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.mission-text span:not(.mission-brand) {
    color: white; /* الأزرق بتاعك */
}


.mission-brand {
    font-size: 4.1em;
    font-weight: 800;
    color: #ffffff;          /* أبيض */
    background: none;        /* شيل الجريدينت */
    -webkit-text-fill-color: unset;
    display: inline;
    margin-right: 0.2em;
}



/* ============================================
   17. MASONRY SERVICE CARDS (DYNAMIC LAYOUT)
   ============================================ */
.services-masonry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    gap: 20px;
    margin-top: 50px;
}

.service-masonry-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all var(--transition-medium);
    cursor: pointer;
}

/* Card Sizes */
.card-large {
    grid-column: span 3;
    grid-row: span 5;
}

.card-medium {
    grid-column: span 3;
    grid-row: span 3;
}

.card-small {
    grid-column: span 3;
    grid-row: span 2;
}

.service-masonry-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
    z-index: 10;
}

.service-masonry-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-masonry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-masonry-card:hover .service-masonry-image img {
    transform: scale(1.15);
}

.service-masonry-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.2) 0%,
            rgba(2, 6, 23, 0.6) 50%,
            rgba(2, 6, 23, 0.95) 100%);
    z-index: 1;
}

.service-masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}

.card-large .service-masonry-content {
    padding: 35px;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.badge-video {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.badge-event {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.badge-tech {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.badge-exec {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.service-masonry-content h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.3;
}

.card-large .service-masonry-content h3 {
    font-size: 1.8em;
}

.card-small .service-masonry-content h3 {
    font-size: 1.1em;
}

.service-masonry-content p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-small .service-masonry-content p {
    font-size: 0.85em;
    margin-bottom: 0;
}

.service-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-stats span {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.service-stats strong {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-stats small {
    color: var(--text-dim);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-dark {
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.3), rgba(30, 58, 95, 0.3));
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .services-masonry-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 130px;
    }

    .card-large {
        grid-column: span 2;
        grid-row: span 4;
    }

    .card-medium {
        grid-column: span 2;
        grid-row: span 3;
    }

    .card-small {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Mission Section - Tablet */
@media (max-width: 768px) {
    .mission-content {
        padding: 60px 40px;
    }

    .mission-text {
        font-size: 1.3em;
    }

    .mission-brand {
        font-size: 2.1em;
    }
}

@media (max-width: 768px) {
    .services-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .card-large {
        grid-column: span 1;
        grid-row: span 3;
    }

    .card-medium {
        grid-column: span 1;
        grid-row: span 2;
    }

    .card-small {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .mission-content {
        padding: 50px 25px;
    }

    .mission-text {
        font-size: 1.05em;
    }

    .mission-brand {
        font-size: 1.7em;
    }
}

@media (max-width: 480px) {
    .services-masonry-grid {
        grid-auto-rows: 180px;
    }

    .service-masonry-content {
        padding: 20px;
    }

    .card-large .service-masonry-content {
        padding: 25px;
    }
}

/* ============================================
   18. HIGHLIGHTS MASONRY GRID (DYNAMIC LAYOUT)
   ============================================ */
.highlights-masonry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    gap: 15px;
    margin-top: 50px;
}

.highlight-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all var(--transition-medium);
    cursor: pointer;
}

/* Highlight Card Sizes */
.highlight-xlarge {
    grid-column: span 3;
    grid-row: span 5;
}

.highlight-large {
    grid-column: span 2;
    grid-row: span 4;
}

.highlight-medium {
    grid-column: span 2;
    grid-row: span 3;
}

.highlight-small {
    grid-column: span 1;
    grid-row: span 2;
}

.highlight-tall {
    grid-column: span 1;
    grid-row: span 5;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
    z-index: 10;
}

.highlight-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.15);
}

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(2, 6, 23, 0.3) 40%,
            rgba(2, 6, 23, 0.8) 100%);
    z-index: 1;
}

.highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.highlight-card:hover .highlight-content {
    transform: translateY(0);
    opacity: 1;
}

.highlight-xlarge .highlight-content {
    padding: 35px;
}

.highlight-large .highlight-content {
    padding: 28px;
}

.highlight-content h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight-xlarge .highlight-content h4 {
    font-size: 1.8em;
}

.highlight-large .highlight-content h4 {
    font-size: 1.5em;
}

.highlight-small .highlight-content h4 {
    font-size: 1.1em;
}

/* Responsive Highlights Masonry */
@media (max-width: 1200px) {
    .highlights-masonry-grid {
        grid-auto-rows: 110px;
        gap: 12px;
    }

    .highlight-xlarge {
        grid-column: span 3;
        grid-row: span 4;
    }

    .highlight-large {
        grid-column: span 2;
        grid-row: span 3;
    }

    .highlight-medium {
        grid-column: span 2;
        grid-row: span 2;
    }

    .highlight-small {
        grid-column: span 1;
        grid-row: span 2;
    }

    .highlight-tall {
        grid-column: span 1;
        grid-row: span 4;
    }
}

@media (max-width: 1024px) {
    .highlights-masonry-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 130px;
        gap: 12px;
    }

    .highlight-xlarge {
        grid-column: span 2;
        grid-row: span 3;
    }

    .highlight-large {
        grid-column: span 2;
        grid-row: span 3;
    }

    .highlight-medium {
        grid-column: span 2;
        grid-row: span 2;
    }

    .highlight-small {
        grid-column: span 1;
        grid-row: span 2;
    }

    .highlight-tall {
        grid-column: span 1;
        grid-row: span 3;
    }
}

@media (max-width: 768px) {
    .highlights-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 12px;
    }

    .highlight-xlarge {
        grid-column: span 2;
        grid-row: span 2;
    }

    .highlight-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .highlight-medium {
        grid-column: span 1;
        grid-row: span 2;
    }

    .highlight-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .highlight-tall {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .highlights-masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }

    .highlight-xlarge,
    .highlight-large,
    .highlight-medium,
    .highlight-small,
    .highlight-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .highlight-content {
        padding: 15px;
    }

    .highlight-xlarge .highlight-content,
    .highlight-large .highlight-content {
        padding: 15px;
    }

    .highlight-content h4 {
        font-size: 1.1em;
    }

    .highlight-xlarge .highlight-content h4,
    .highlight-large .highlight-content h4 {
        font-size: 1.1em;
    }
}

/* ============================================
   19. CLIENTS SECTION
   ============================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-circle {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.2), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--border-color);
    padding: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.client-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 0;
}

.client-circle:hover {
    transform: translateY(-10px) scale(1.08);
    border-color: var(--secondary-color);
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.client-circle:hover::before {
    opacity: 0.1;
}

.client-circle img {
    width: 130%;
    height: 130%;
    object-fit: cover; /* يملأ الدائرة */
    border-radius: 50%; /* يضمن القص دايرة */
    filter: grayscale(100%) brightness(1.1);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}


.client-circle:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Clients Grid Responsive */
@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px 45px;
    }

    .client-circle {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 35px;
    }

    .client-circle {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .client-circle {
        width: 140px;
        height: 140px;
        padding: 16px;
    }
}

/* Media Lightbox (smooth center zoom - no jump) */
.media-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;                 /* مهم: مركز من أول لحظة */
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.media-lightbox.active{
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.lightbox-content{
  position: relative;
  z-index: 1;

  max-width: 90vw;
  max-height: 90vh;

  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox.active .lightbox-content{
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img,
.lightbox-content iframe{
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.lightbox-content iframe{
  width: 90vw;
  height: 50.625vw; /* 16:9 */
  max-width: 1100px;
  max-height: 620px;
  border: 0;
}

.lightbox-close{
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  border: none;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   Highlights Lightbox (hlx)
   ========================= */
.hlx{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.hlx.is-open{ display: block; }

.hlx__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
}

.hlx__panel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1100px);
  height: min(86vh, 720px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
  background: rgba(10,12,18,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

.hlx__track{
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.hlx__track::-webkit-scrollbar{ display: none; }

.hlx__slide{
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.hlx__slide img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* لو عايزها تملى: cover */
  border-radius: 16px;
  background: rgba(0,0,0,0.35);
}

.hlx__close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  color: #fff;
  background: rgba(0,0,0,0.35);
  z-index: 5;
}

.hlx__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0,0,0,0.35);
  z-index: 5;
}
.hlx__nav--prev{ left: 12px; }
.hlx__nav--next{ right: 12px; }

.hlx__dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}
.hlx__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}
.hlx__dot.is-active{
  background: rgba(255,255,255,0.9);
  width: 18px;
}

/*=============================================
   20. VIDEO CAPTURE SECTION
   =============================================*/
.capture-section{
  padding: 120px 0;
  text-align: center;
}

.capture-title{
  margin-bottom: 70px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capture-title .ar{
  display: none;
  font-family: var(--font-arabic);
}

body.rtl .capture-title .en{ display: none; }
body.rtl .capture-title .ar{ display: inline; }

.videos-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all .4s ease;
  cursor: pointer;
  pointer-events: none;
}

.video-card:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

.video-card iframe{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 325%;
  height: 325%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px){
  .videos-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .videos-grid{ grid-template-columns: 1fr; }
}

/* ===== Contact Modal (smooth open/close) ===== */
.contact-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;                 /* نخليها flex دايمًا */
  align-items: center;
  justify-content: center;
  padding: 22px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.contact-modal.active{
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}

.contact-modal.active .contact-modal__overlay{
  opacity: 1;
}

.contact-modal__panel{
  position: relative;
  width: min(92vw, 900px);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(10, 1, 24, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
  padding: 28px;
  z-index: 1;

  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  will-change: transform, opacity;
}

.contact-modal.active .contact-modal__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal__close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0.12);
}
/* ============================================
   TEAM OVERRIDES - Buttons beside grid (no slider)
   (Appended override - does not touch existing code/comments)
   ============================================ */

/* Hide any old overlay nav if it exists */
.team-nav{ display:none !important; }

/* Wrapper: buttons on sides, grid in the middle */
.team-wrapper{
  display:flex;
  align-items:center; /* buttons centered vertically */
  gap:20px;
}

/* Remove slider bar/drag — movement is via buttons */
.team-wrapper .team-grid{
  flex:1;
  overflow-x:hidden !important;
  overflow-y:hidden !important;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.team-wrapper .team-grid::-webkit-scrollbar{ display:none; }

/* Bigger cards a bit */
.team-wrapper .team-card{
  flex-basis: 340px !important;
}

/* Side buttons */
.team-wrapper .team-btn{
  width:56px;
  height:56px;
  border-radius:999px;
  border:0;
  cursor:pointer;

  background: rgba(2,6,23,.75);
  color:#fff;
  font-size:32px;
  font-weight:700;

  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease;
}
.team-wrapper .team-btn:hover{
  background: rgba(59,130,246,.85);
  transform: scale(1.08);
}

/* Mobile: hide buttons (optional) */
@media (max-width: 768px){
  .team-wrapper .team-btn{ display:none; }
  .team-wrapper{ gap:0; }
  /* on mobile allow touch scroll if you want */
  .team-wrapper .team-grid{ overflow-x:auto !important; }
}
/* ===== Fix Team Buttons Position (beside grid, centered) ===== */
.team-wrapper{
  display: flex;
  align-items: center;     /* 👈 في النص رأسيًا */
  gap: 18px;
}

/* الغي أي absolute قديم */
.team-btn{
  position: static !important;   /* 👈 أهم سطر */
  transform: none !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;

  flex: 0 0 56px;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* الجريد تاخد المساحة */
.team-grid{
  flex: 1;
  overflow: hidden;  /* زي ما اتفقنا: مفيش slider */
}

/* لو عندك team-nav قديمة فوق، اقفلها */
.team-nav{
  display: none !important;
}

/* ============================================
   EVENTS SECTION - Equal Cards with Images
   ============================================ */
.events-section {
    padding: var(--section-padding);
    position: relative;
}

/* New Equal Grid */
.events-grid-equal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card-equal {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.event-card-equal:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card-equal:hover .event-card-image img {
    transform: scale(1.1);
}

.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(2, 6, 23, 0.3) 50%,
        rgba(2, 6, 23, 0.85) 100%);
    pointer-events: none;
}

.event-card-content {
    padding: 25px;
}

.event-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.event-badge.badge-live {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.event-badge.badge-creative {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.event-badge.badge-exclusive {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.event-badge.badge-dynamic {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.event-badge.badge-new {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.event-card-content h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.event-card-content p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Events Equal Grid Responsive */
@media (max-width: 992px) {
    .events-grid-equal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .events-grid-equal {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        height: 180px;
    }
}

/* Old styles kept for backwards compatibility */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.event-large {
    grid-column: span 2;
    grid-row: span 2;
}

.event-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.event-small {
    grid-column: span 1;
    grid-row: span 1;
}

.event-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3), rgba(59, 130, 246, 0.2));
}

.event-large .event-image {
    height: 280px;
}

.event-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    transition: all var(--transition-medium);
}

.event-large .event-icon {
    width: 100px;
    height: 100px;
}

.event-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    transition: all var(--transition-medium);
}

.event-large .event-icon svg {
    width: 50px;
    height: 50px;
}

.event-card:hover .event-icon {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.event-card:hover .event-icon svg {
    color: #fff;
}

.event-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
}

.event-content {
    padding: 25px;
}

.event-large .event-content {
    padding: 30px;
}

.event-content h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.event-large .event-content h3 {
    font-size: 1.6em;
}

.event-content p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-stats {
    display: flex;
    gap: 20px;
}

.event-stats span {
    color: var(--text-color);
}

.event-stats strong {
    font-size: 1.4em;
    color: var(--accent-color);
}

.event-stats small {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Events Responsive */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-large,
    .event-medium,
    .event-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============================================
   MEDIA BUYING SECTION
   ============================================ */
.media-buying-section {
    padding: var(--section-padding);
    position: relative;
}

.media-buying-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.platform-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    transition: all var(--transition-medium);
}

.platform-icon svg {
    width: 35px;
    height: 35px;
    fill: #1877f2;
}

.platform-icon.instagram {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.15), rgba(204, 35, 102, 0.15));
}

.platform-icon.instagram svg {
    fill: #e1306c;
}

.platform-icon.tiktok svg {
    fill: #fff;
}

.platform-icon.snapchat svg {
    fill: #fffc00;
}

.platform-card:hover .platform-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(59, 130, 246, 0.25);
}

.platform-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.platform-card p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.platform-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.platform-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Buying Services */
.media-buying-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-highlight {
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: all var(--transition-fast);
}

.service-highlight:hover {
    background: rgba(30, 58, 95, 0.2);
    border-color: var(--border-hover);
}

.service-highlight-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.service-highlight-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.service-highlight h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.service-highlight p {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* Media Buying Responsive */
@media (max-width: 1024px) {
    .media-buying-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-buying-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .media-buying-grid {
        grid-template-columns: 1fr;
    }

    .media-buying-services {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TECHNICAL TEAM SECTION - With Images
   ============================================ */
.technical-section {
    padding: var(--section-padding);
    position: relative;
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* New Tech Cards with Images Grid */
.tech-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.tech-card-with-image {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.tech-card-with-image:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.tech-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tech-card-with-image:hover .tech-card-image img {
    transform: scale(1.1);
}

.tech-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(2, 6, 23, 0.4) 60%,
        rgba(2, 6, 23, 0.9) 100%);
    pointer-events: none;
}

.tech-card-content {
    padding: 25px;
}

.tech-card-content h4 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.tech-card-content p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tech Cards Responsive */
@media (max-width: 768px) {
    .tech-services-grid {
        grid-template-columns: 1fr;
    }

    .tech-card-image {
        height: 180px;
    }
}

/* Old Tech Services (kept for compatibility) */
.tech-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.tech-service-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15), rgba(59, 130, 246, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.tech-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

.tech-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.tech-service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.tech-service-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.tech-service-card h4 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.tech-service-card p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--accent-color);
    transition: all var(--transition-fast);
}

.tech-tags span:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-color);
}

/* Tech Stats */
.tech-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tech-stat-box {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: all var(--transition-fast);
}

.tech-stat-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.tech-stat-number {
    font-size: 2.8em;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.tech-stat-label {
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Technical Section Responsive */
@media (max-width: 992px) {
    .tech-services {
        grid-template-columns: 1fr;
    }

    .tech-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tech-stats-container {
        grid-template-columns: 1fr;
    }

    .tech-stat-number {
        font-size: 2.2em;
    }
}

/* RTL Support for new sections */
body.rtl .event-content,
body.rtl .platform-card,
body.rtl .tech-service-card {
    text-align: right;
}

body.rtl .event-stats small {
    margin-left: 0;
    margin-right: 5px;
}

body.rtl .tech-tags {
    justify-content: flex-end;
}