/* ==========================================
   ROBIX - CSS الاحترافي الكامل
   روبكس للحلول الرقمية
   ========================================== */

/* ===== Google Fonts + Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary:       #6C63FF;
  --primary-dark:  #5A52E0;
  --primary-light: #8B85FF;
  --secondary:     #00D4FF;
  --accent:        #FF6B6B;
  --accent-green:  #00FFA3;

  /* Dark BG */
  --bg-dark:       #0A0A0F;
  --bg-card:       #12121A;
  --bg-card2:      #1A1A28;
  --bg-border:     rgba(108,99,255,0.18);

  /* Text */
  --text-primary:  #E2E8F0;
  --text-secondary:#94A3B8;
  --text-muted:    #64748B;
  --text-white:    #FFFFFF;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  --grad-accent:   linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
  --grad-dark:     linear-gradient(135deg, #12121A 0%, #1A1A28 100%);
  --grad-hero:     linear-gradient(135deg, #0A0A0F 0%, #12121A 50%, #0A0A14 100%);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(108,99,255,0.3);
  --shadow-glow2:  0 0 40px rgba(0,212,255,0.2);

  /* Typography */
  --font-ar:       'Cairo', sans-serif;
  --font-en:       'Inter', sans-serif;

  /* Spacing */
  --section-pad:   100px;
  --container:     1280px;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  /* Transitions */
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.6s cubic-bezier(0.4,0,0.2,1);

  /* Header height */
  --header-h:      80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* ===== RTL / LTR Smooth Transition ===== */
html {
  transition:
    direction 0s,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* عند تبديل اللغة - أنيمشن الدخول */
@keyframes langSwitchIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* تطبيق الأنيمشن على body عند تغيير اللغة */
body.lang-switching {
  animation: langSwitchIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* LTR مخصص - الخط الانجليزي */
html[lang="en"] body.robix-body {
  font-family: var(--font-en);
  direction: ltr;
}

/* RTL مخصص - الخط العربي */
html[lang="ar"] body.robix-body {
  font-family: var(--font-ar);
  direction: rtl;
}

/* Mobile menu LTR */
html[lang="en"] .mobile-menu {
  right: auto;
  left: -320px;
}
html[lang="en"] .mobile-menu.active {
  left: 0;
}
html[lang="en"] .mobile-nav-link {
  border-right: none;
  border-left: 3px solid transparent;
}
html[lang="en"] .mobile-nav-link:hover,
html[lang="en"] .mobile-nav-link.active {
  border-left-color: var(--primary);
  border-right-color: transparent;
}

body.robix-body {
  font-family: var(--font-ar);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== Focus accessibility ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ===== Language Switcher ===== */
.lang-switcher-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.22);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  z-index: 10;
}
.lang-switcher-btn:hover {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.45);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108,99,255,0.2);
}
.lang-flag { font-size: 16px; line-height: 1; }
.lang-label { font-size: 13px; font-weight: 700; }
.lang-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(108,99,255,0.1);
  z-index: 1100;
  /* Animation */
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transform-origin: top right;
  transition:
    opacity 0.25s cubic-bezier(0.4,0,0.2,1),
    transform 0.25s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* LTR: dropdown opens to the left */
html[lang="en"] .lang-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.lang-option:hover {
  background: rgba(108,99,255,0.1);
  color: var(--text-white);
}
.lang-option--active {
  background: rgba(108,99,255,0.12);
  color: var(--primary-light);
}
.lang-option-flag { font-size: 18px; line-height: 1; }
.lang-option-name { flex: 1; }
.lang-option-check {
  margin-right: 0;
  color: var(--accent-green);
  font-size: 13px;
}

/* Separator between options */
.lang-option + .lang-option::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* ===== Mobile Language Toggle ===== */
.mobile-lang-toggle {
  padding: 14px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 4px;
}
.mobile-lang-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mobile-lang-pills {
  display: flex;
  gap: 6px;
}
.mobile-lang-pill {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.mobile-lang-pill:hover { background: rgba(108,99,255,0.16); color: var(--text-white); }
.mobile-lang-pill--active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(108,99,255,0.35);
}


/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section ===== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ar);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(108,99,255,0.5); color: #fff; }

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(108,99,255,0.5);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--bg-border);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 18px 42px; font-size: 17px; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-6px); box-shadow: var(--shadow-glow); }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo svg { animation: preloaderPulse 1.5s ease-in-out infinite; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(108,99,255,0.5)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(0,212,255,0.7)); }
}

.preloader-bar {
  width: 180px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0%;
  background: var(--grad-primary);
  border-radius: 3px;
  animation: preloaderBar 1.1s ease-in-out forwards;
}
@keyframes preloaderBar { to { width: 100%; } }

.preloader-text {
  font-size: 22px;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--text-white); }
.logo-tagline { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.nav-menu {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-white); }
.nav-link:hover::after, .nav-link.active::after { left: 14px; right: 14px; }

.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(108,99,255,0.35);
  transition: var(--transition);
  margin-right: 6px;
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(108,99,255,0.5); color: #fff; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer; border-radius: 8px;
}
.hamburger-line {
  width: 26px; height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 998;
  backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--bg-border);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.active { right: 0; }

.mobile-menu-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bg-border);
}
.mobile-logo .logo-name { font-size: 22px; font-weight: 800; color: var(--primary-light); }
.mobile-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px; color: var(--text-primary);
  font-size: 16px; transition: var(--transition);
}
.mobile-close:hover { background: rgba(108,99,255,0.2); color: var(--primary); }

.mobile-nav-list { padding: 16px 0; flex: 1; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 15px; font-weight: 600;
  transition: var(--transition);
  border-right: 3px solid transparent;
}
.mobile-nav-link i { width: 18px; text-align: center; }
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-light);
  background: rgba(108,99,255,0.08);
  border-right-color: var(--primary);
}

.mobile-menu-footer {
  padding: 20px 24px;
  display: flex; gap: 16px;
  border-top: 1px solid var(--bg-border);
}
.mobile-menu-footer a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px; color: var(--text-secondary);
  font-size: 15px; transition: var(--transition);
}
.mobile-menu-footer a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed; bottom: 30px; left: 30px;
  width: 46px; height: 46px;
  background: var(--grad-primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; z-index: 800;
  box-shadow: 0 6px 24px rgba(108,99,255,0.4);
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(108,99,255,0.6); }

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  padding-top: var(--header-h);
}
#particles-js {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(108,99,255,0.15);
  top: -200px; right: -200px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(0,212,255,0.1);
  bottom: -100px; left: -100px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(255,107,107,0.08);
  top: 50%; left: 40%;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 20px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.28);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}
.hero-badge .badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-white);
  margin-bottom: 22px;
}
.hero-title .line-accent { display: block; }
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 26px; font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-card-stack {
  position: relative; width: 380px; height: 420px;
}
.hero-card-item {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.hero-card-main {
  width: 300px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.hero-card-back1 {
  width: 260px; top: 30px; right: -10px;
  background: rgba(108,99,255,0.08);
  border-color: rgba(108,99,255,0.2);
  z-index: 1; transform: rotate(6deg);
}
.hero-card-back2 {
  width: 260px; bottom: 30px; left: -10px;
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.2);
  z-index: 1; transform: rotate(-5deg);
}
.hero-card-icon {
  width: 50px; height: 50px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(108,99,255,0.4);
}
.hero-card-title { font-size: 15px; font-weight: 700; color: var(--text-white); margin-bottom: 6px; }
.hero-card-desc { font-size: 12px; color: var(--text-muted); }
.hero-card-bar {
  margin-top: 14px; height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px; overflow: hidden;
}
.hero-card-fill {
  height: 100%; border-radius: 5px;
  background: var(--grad-primary);
  animation: barFill 2s ease-in-out forwards;
}
@keyframes barFill { from { width: 0; } }

/* ===== Clients / Logos Section ===== */
.clients-section {
  padding: 48px 0;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.clients-track { display: flex; gap: 48px; animation: marquee 20s linear infinite; }
.client-logo {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}
.client-logo:hover { color: var(--primary-light); border-color: rgba(108,99,255,0.4); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.service-number {
  position: absolute; top: 24px; left: 24px;
  font-size: 56px; font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  font-family: var(--font-en);
}
.service-title {
  font-size: 20px; font-weight: 800;
  color: var(--text-white); margin-bottom: 12px;
}
.service-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 20px;
}
.service-features { display: flex; flex-direction: column; gap: 8px; }
.service-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.service-feature i { color: var(--accent-green); font-size: 12px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 14px; font-weight: 700;
  color: var(--primary-light);
  transition: var(--transition);
}
.service-link:hover { gap: 10px; color: var(--secondary); }

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: var(--shadow-glow);
}
.project-image {
  height: 220px; overflow: hidden;
  position: relative;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s ease;
}
.project-card:hover .project-image img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,10,15,0.95));
}
.project-overlay-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay-actions { opacity: 1; }
.project-action-btn {
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
  transform: translateY(20px);
}
.project-card:hover .project-action-btn { transform: translateY(0); }
.project-action-btn:nth-child(2) { transition-delay: 0.05s; background: var(--secondary); }
.project-action-btn:hover { transform: scale(1.1); }

.project-tags {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.project-tag {
  padding: 4px 10px;
  background: rgba(108,99,255,0.85);
  color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 50px; backdrop-filter: blur(4px);
}
.project-body { padding: 22px 24px 26px; }
.project-title {
  font-size: 18px; font-weight: 800;
  color: var(--text-white); margin-bottom: 8px;
}
.project-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.project-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}
.project-client { font-size: 12px; color: var(--text-muted); }
.project-year { font-size: 12px; color: var(--primary-light); font-weight: 700; }

/* ===== Stats Section ===== */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-item { padding: 10px; }
.stat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary-light);
}
.stat-counter { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.stat-counter .number {
  font-size: 48px; font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-family: var(--font-en);
}
.stat-counter .suffix {
  font-size: 28px; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 15px; color: var(--text-secondary); margin-top: 8px;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: var(--shadow-glow);
}
.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 3px solid transparent;
  background: var(--grad-primary) border-box;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 28px rgba(108,99,255,0.35);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-placeholder {
  width: 100%; height: 100%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
}
.team-name { font-size: 18px; font-weight: 800; color: var(--text-white); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary-light); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.team-social { display: flex; gap: 10px; justify-content: center; }
.team-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
  transition: var(--transition);
}
.team-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Blog Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: var(--shadow-glow);
}
.blog-image { height: 200px; overflow: hidden; position: relative; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-category {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 50px;
}
.blog-body { padding: 22px 24px 26px; }
.blog-meta {
  display: flex; gap: 16px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
}
.blog-title {
  font-size: 17px; font-weight: 800;
  color: var(--text-white); margin-bottom: 10px;
  line-height: 1.45; transition: var(--transition);
}
.blog-card:hover .blog-title { color: var(--primary-light); }
.blog-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary-light);
  transition: var(--transition);
}
.blog-read-more:hover { gap: 10px; color: var(--secondary); }

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: 14px 18px;
  background: var(--bg-card2);
  border: 1.5px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px; font-family: var(--font-ar);
  transition: var(--transition);
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 150px; resize: vertical; }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.contact-info-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-value { font-size: 15px; font-weight: 600; color: var(--text-white); }

/* ===== Alert / Flash ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(0,255,163,0.12); border: 1px solid rgba(0,255,163,0.3); color: var(--accent-green); }
.alert-error   { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.3); color: var(--accent); }

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.12) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900; color: var(--text-white);
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 24px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  font-size: 13px; color: var(--text-muted);
  margin-top: 16px;
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb-sep { color: var(--text-muted); font-size: 10px; }

/* ===== Values/Goals ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: var(--shadow-glow);
}
.value-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin: 0 auto 20px;
}
.value-title { font-size: 18px; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.value-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-right: 40px; }
.timeline::before {
  content: '';
  position: absolute; top: 0; right: 10px;
  width: 2px; height: 100%;
  background: var(--grad-primary);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute; top: 6px; right: -34px;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px rgba(108,99,255,0.6);
}
.timeline-year {
  font-size: 12px; font-weight: 700;
  color: var(--primary-light); margin-bottom: 6px;
}
.timeline-title { font-size: 17px; font-weight: 800; color: var(--text-white); margin-bottom: 6px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); }
.testimonial-stars { color: #FFD700; font-size: 14px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 16px;
}
.testimonial-name { font-size: 14px; font-weight: 800; color: var(--text-white); }
.testimonial-company { font-size: 12px; color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 2; }
.cta-title {
  font-size: clamp(28px,4vw,46px);
  font-weight: 900; color: var(--text-white);
  margin-bottom: 16px;
}
.cta-desc { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  position: relative;
}
.footer-wave { position: absolute; top: -1px; right: 0; left: 0; line-height: 0; }
.footer-container { max-width: var(--container); margin: 0 auto; padding: 80px 24px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-text { font-size: 22px; font-weight: 800; color: var(--text-white); }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 15px;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-heading {
  font-size: 15px; font-weight: 800; color: var(--text-white);
  margin-bottom: 20px; position: relative; padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 30px; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
  transition: var(--transition);
}
.footer-link i { font-size: 10px; transition: var(--transition); }
.footer-link:hover { color: var(--primary-light); padding-right: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; font-style: normal; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.contact-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(108,99,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 13px;
}
.footer-contact-item p, .footer-contact-item a { font-size: 13px; color: var(--text-secondary); }
.footer-contact-link:hover { color: var(--primary-light); }


.newsletter-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1; padding: 11px 14px;
  background: var(--bg-card2);
  border: 1.5px solid var(--bg-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px; font-family: var(--font-ar);
  transition: var(--transition);
}
.newsletter-input:focus { outline: none; border-color: var(--primary); }
.newsletter-btn {
  width: 44px; height: 44px;
  background: var(--grad-primary);
  color: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  transition: var(--transition);
}
.newsletter-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(108,99,255,0.4); }

.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid var(--bg-border);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy strong { color: var(--primary-light); }
.footer-tech {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.footer-tech .text-accent { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.footer-bottom-link { color: var(--text-muted); transition: var(--transition); }
.footer-bottom-link:hover { color: var(--primary-light); }

/* ===== Filter Buttons ===== */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--bg-border);
  border-radius: 50px; cursor: pointer;
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-ar);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== Dividers ===== */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  margin: 80px 0;
  opacity: 0.4;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-desc { max-width: 100%; margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; --header-h: 70px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 26px; }
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px; justify-content: center;
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700; font-family: var(--font-ar);
  background: var(--bg-card); border: 1px solid var(--bg-border);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-btn:hover { border-color: rgba(108,99,255,0.4); color: var(--primary-light); transform: translateY(-2px); }
.filter-btn.active { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(108,99,255,0.35); }

/* ===== Featured Project Card ===== */
.project-card--featured { background: var(--bg-card2); border-width: 1px; border-style: solid; }
.project-card--featured:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.project-card--featured .project-image { height: 240px; }

/* ===== Page Hero ===== */
.page-hero {
  padding: 160px 0 80px; text-align: center; position: relative;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(108,99,255,0.12) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(32px,5vw,56px); font-weight: 900; color: var(--text-white); margin-bottom: 16px; line-height: 1.2; }
.page-hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 580px; margin: 0 auto 24px; line-height: 1.8; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--secondary); }

/* ===== Values / Team / Blog / Contact / Form / Alert / CTA ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.value-card { background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); text-align: center; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.35); box-shadow: var(--shadow-glow); }
.value-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; margin: 0 auto 18px; }
.value-title { font-size: 18px; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.value-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
.team-card { background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.3); box-shadow: var(--shadow-glow); }
.team-avatar { margin-bottom: 16px; }
.team-avatar-placeholder { width: 80px; height: 80px; background: var(--grad-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #fff; margin: 0 auto; box-shadow: 0 8px 24px rgba(108,99,255,0.4); }
.team-name { font-size: 18px; font-weight: 800; color: var(--text-white); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary-light); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.team-social { display: flex; gap: 10px; justify-content: center; }
.team-social a { width: 34px; height: 34px; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.team-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.timeline { position: relative; padding-right: 28px; }
.timeline::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent); }
.timeline-item { position: relative; margin-bottom: 32px; padding-right: 28px; }
.timeline-item::before { content: ''; position: absolute; right: -7px; top: 6px; width: 14px; height: 14px; background: var(--grad-primary); border-radius: 50%; box-shadow: 0 0 0 3px rgba(108,99,255,0.2); }
.timeline-year { font-size: 12px; font-weight: 800; color: var(--primary-light); font-family: var(--font-en); margin-bottom: 4px; letter-spacing: 1px; }
.timeline-title { font-size: 16px; font-weight: 800; color: var(--text-white); margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 28px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.3); box-shadow: var(--shadow-glow); }
.blog-image { height: 200px; overflow: hidden; position: relative; }
.blog-category { position: absolute; bottom: 14px; right: 14px; padding: 4px 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50px; }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.blog-meta-item i { font-size: 11px; color: var(--primary-light); }
.blog-title { font-size: 17px; font-weight: 800; color: var(--text-white); margin-bottom: 10px; line-height: 1.45; transition: var(--transition); }
.blog-card:hover .blog-title { color: var(--primary-light); }
.blog-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary-light); transition: var(--transition); }
.blog-read-more:hover { gap: 10px; color: var(--secondary); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--grad-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.contact-info-label { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; font-weight: 600; }
.contact-info-value { font-size: 15px; color: var(--text-white); font-weight: 600; }
.contact-info-value:hover { color: var(--primary-light); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 7px; }
.form-control { width: 100%; background: var(--bg-card); border: 1px solid var(--bg-border); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-family: var(--font-ar); color: var(--text-primary); transition: var(--transition); outline: none; }
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.12); background: var(--bg-card2); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }

.alert { padding: 16px 22px; border-radius: 12px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.alert-success { background: rgba(0,255,163,0.1); border: 1px solid rgba(0,255,163,0.3); color: var(--accent-green); }

.cta-section { padding: var(--section-pad) 0; }
.cta-inner { background: linear-gradient(135deg,rgba(108,99,255,0.12),rgba(0,212,255,0.08)); border: 1px solid rgba(108,99,255,0.25); border-radius: var(--radius-xl); padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; background: radial-gradient(circle,rgba(108,99,255,0.15),transparent); border-radius: 50%; }
.cta-title { font-size: clamp(26px,4vw,38px); font-weight: 900; color: var(--text-white); margin-bottom: 14px; }
.cta-desc { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.faq-toggle:hover { background: var(--bg-card2) !important; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 12px; }
  .page-hero { padding: 130px 0 60px; }
}
