
/* =============================================
   ROOT VARIABLES & RESET
============================================= */
:root {
  --primary: #343AA8;
  --secondary: #58C7D8;
  --dark: #0F172A;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --gradient: linear-gradient(135deg, #343AA8 0%, #58C7D8 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --shadow-sm: 0 2px 8px rgba(52,58,168,0.08);
  --shadow-md: 0 8px 32px rgba(52,58,168,0.15);
  --shadow-lg: 0 24px 64px rgba(52,58,168,0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  direction: rtl;
}

body.en {
  font-family: 'Inter', sans-serif;
  direction: ltr;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   UTILITY CLASSES
============================================= */
.container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 100px 0; }
.flex { display: flex; align-items: center; }
.grid { display: grid; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(52,58,168,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(52,58,168,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(52,58,168,0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.75;
}

/* =============================================
   SCROLL ANIMATION
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   HEADER / NAVBAR
============================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 22px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 32px rgba(52,58,168,0.1);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(52,58,168,0.4);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  letter-spacing: 2px;
  transition: var(--transition);
}

header.scrolled .logo-name { color: var(--dark); }
header:not(.scrolled) .logo-name { color: var(--white); }

.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

header:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.7); }

/* Nav links */
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

header:not(.scrolled) nav a { color: rgba(255,255,255,0.85); }
header:not(.scrolled) nav a:hover { color: white; background: rgba(255,255,255,0.12); }
header.scrolled nav a { color: var(--text); }
header.scrolled nav a:hover { color: var(--primary); background: rgba(52,58,168,0.06); }

/* Header CTA + Lang */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
header.scrolled .lang-btn { border-color: var(--border); color: var(--primary); }
.lang-btn:hover { background: rgba(255,255,255,0.15); }
header.scrolled .lang-btn:hover { background: rgba(52,58,168,0.06); }

.header-cta {
  font-size: 0.88rem;
  padding: 10px 22px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
header.scrolled .hamburger span { background: var(--dark); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--secondary); }
.mobile-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(52,58,168,0.92) 0%, rgba(88,199,216,0.75) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(88,199,216,0.25) 0%, transparent 70%);
}

/* Animated shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--secondary);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--primary);
  bottom: -100px; left: -100px;
  animation-delay: 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 160px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge span {
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.18;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-title em {
  font-style: normal;
  color: var(--secondary);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.9s ease 0.35s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  animation: fadeInUp 0.9s ease 0.65s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  animation: fadeIn 1s ease 1s both;
}
.scroll-mouse {
  width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 13px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: white;
  border-radius: 2px;
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 18px; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   SERVICES SECTION
============================================= */
.services {
  background: var(--light);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(52,58,168,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { background: rgba(255,255,255,0.2); color: white; }
.service-card:hover .service-title { color: white; }
.service-card:hover .service-desc { color: rgba(255,255,255,0.8); }
.service-card:hover .service-arrow { color: white; opacity: 1; }
.service-card:hover .service-num { color: rgba(255,255,255,0.15); }

.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--border);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: -12px;
  transition: var(--transition);
}

.service-icon {
  width: 60px; height: 60px;
  background: rgba(52,58,168,0.08);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  transition: var(--transition);
}

.service-arrow {
  margin-top: 20px;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.5;
  transition: var(--transition);
}

/* =============================================
   PORTFOLIO SECTION
============================================= */
.portfolio { background: var(--dark); }
.portfolio .section-title { color: white; }
.portfolio .section-sub { color: rgba(255,255,255,0.6); }

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #1E293B;
}

.portfolio-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.portfolio-item:nth-child(4) { grid-column: span 2; }

.portfolio-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.portfolio-item:nth-child(1) .portfolio-img { min-height: 480px; }

.portfolio-item:hover .portfolio-img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.portfolio-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  width: fit-content;
  transition: var(--transition);
}
.portfolio-link:hover { background: var(--gradient); }

/* Video badge */
.video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-badge::before {
  content: '▶';
  font-size: 0.6rem;
}

/* =============================================
   STATISTICS SECTION
============================================= */
.statistics {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.statistics::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.stat-item:first-child { border-left: none; }

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* =============================================
   CLIENTS SECTION
============================================= */
.clients { background: var(--light); padding: 80px 0; }

.clients-header { text-align: center; margin-bottom: 48px; }

.clients-track {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.clients-row {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slide 20s linear infinite;
}
.clients-row:nth-child(2) { animation-direction: reverse; margin-top: 24px; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  width: 160px; height: 72px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.client-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* =============================================
   PROCESS SECTION
============================================= */
.process {
  background: var(--white);
  position: relative;
}

.process-header { text-align: center; margin-bottom: 64px; }
.process-header .section-sub { margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-circle {
  width: 96px; height: 96px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 1.8rem;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.step-circle::before {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px; height: 28px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.process-step:hover .step-circle {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(52,58,168,0.3);
  transform: scale(1.08);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   VIDEO SHOWCASE SECTION
============================================= */
.video-showcase {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(52,58,168,0.85) 0%, rgba(15,23,42,0.9) 100%),
    url('https://images.unsplash.com/photo-1611532736597-de2d4265fba3?w=1600&q=80') center/cover no-repeat;
}

.video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 0 24px;
}

.play-btn {
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.8rem;
  color: white;
  animation: pulseBig 2.5s ease-in-out infinite;
}

.play-btn::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: pulseBig 2.5s ease-in-out infinite 0.4s;
}

@keyframes pulseBig {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.play-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: scale(1.1);
}

.video-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.video-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.75;
}

/* =============================================
   QUOTE FORM SECTION
============================================= */
.quote-section {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(52,58,168,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.quote-info h2 { margin-bottom: 20px; }
.quote-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.quote-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quote-feature span { font-weight: 600; color: var(--text); font-size: 0.92rem; }

/* Form */
.quote-form {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(52,58,168,0.08);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2364748B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  cursor: pointer;
}

body.en .form-group select {
  background-position: right 16px center;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  justify-content: center;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-name { color: white; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin: 20px 0 28px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: var(--gradient) 1;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--secondary);
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
}
.footer-col ul a:hover { color: white; padding-right: 4px; }
.footer-col ul a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.87rem;
}
.contact-item-icon {
  width: 32px; height: 32px;
  background: rgba(88,199,216,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: white; }

/* =============================================
   BACK TO TOP
============================================= */
#back-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px; height: 48px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(52,58,168,0.4);
  transition: var(--transition);
}
#back-top.show { display: flex; }
#back-top:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(52,58,168,0.5); }

/* =============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(1) { grid-column: span 2; }
  .portfolio-item:nth-child(4) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-inner nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  /* Header logo smaller on mobile */
  .logo-img { height: 36px !important; }
  header { padding: 14px 0; }
  header.scrolled { padding: 10px 0; }
  .nav-inner { gap: 12px; }
  .lang-btn { padding: 6px 12px; font-size: 0.78rem; }
  .section-pad { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 1; }
  .portfolio-item:nth-child(4) { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-item .portfolio-img { min-height: 200px !important; }
}

/* Logo image */
.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  object-fit: contain;
}

/* On dark hero (not scrolled), logo stays as-is; on white header apply no filter */
header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}
header.scrolled .logo-img {
  filter: none;
}


/* =============================================
   LEGAL SECTION — Privacy Policy & Terms
============================================= */
.legal-section {
  padding: 120px 7%;
  background: var(--light);
  scroll-margin-top: 80px;
}

#terms {
  scroll-margin-top: 100px;
}

.legal-container {
  max-width: 1400px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 70px;
}

.second-header {
  margin-top: 120px;
}

.legal-header > span {
  display: inline-block;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-header h2 {
  font-size: clamp(2rem, 4vw, 52px);
  font-weight: 900;
  margin: 18px 0;
  color: #111827;
  line-height: 1.2;
}

.legal-header p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 2;
  color: #64748B;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.legal-card {
  position: relative;
  background: #FFFFFF;
  padding: 38px;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: 0.35s;
  box-shadow: 0 10px 35px rgba(0,0,0,0.04);
}

.legal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(52,58,168,0.1);
  border-color: rgba(52,58,168,0.15);
}

.legal-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: right;
}
.legal-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.card-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 72px;
  font-weight: 900;
  opacity: 0.05;
  color: var(--primary);
  line-height: 1;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  user-select: none;
}

/* RTL: card-number on left side */
body:not(.en) .card-number {
  right: auto;
  left: 20px;
}

.legal-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #111827;
  position: relative;
  z-index: 2;
  padding-bottom: 14px;
  border-bottom: 2px solid #E2E8F0;
  transition: color 0.3s;
}

.legal-card:hover h3 {
  color: var(--primary);
}

.legal-card p {
  font-size: 15px;
  line-height: 2;
  color: #475569;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .legal-section { padding: 90px 20px; }
  .legal-header h2 { font-size: 32px; }
  .legal-card { padding: 30px; }
  .second-header { margin-top: 80px; }
  .legal-grid { grid-template-columns: 1fr; }
}


/* =============================================
   EDITOR PANEL
============================================= */
#editor-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99999;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #343AA8 0%, #58C7D8 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(52,58,168,0.5);
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
#editor-toggle:hover { transform: scale(1.1) rotate(15deg); }

#editor-panel {
  position: fixed;
  top: 0; right: -480px;
  width: 460px;
  height: 100vh;
  background: #0F172A;
  z-index: 99998;
  box-shadow: -8px 0 48px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}
#editor-panel.open { right: 0; }

#editor-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #343AA8 0%, #58C7D8 100%);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
#editor-header h3 { color: white; font-size: 1.05rem; font-weight: 800; margin: 0; }
#editor-header span { color: rgba(255,255,255,0.7); font-size: 0.78rem; }
#editor-close {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#editor-close:hover { background: rgba(255,255,255,0.35); }

#editor-tabs {
  display: flex; background: #1E293B; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ed-tab {
  flex: 1; padding: 11px 6px; text-align: center; font-size: 0.72rem;
  font-weight: 700; color: rgba(255,255,255,0.45); cursor: pointer;
  border: none; background: none; font-family: 'Cairo', sans-serif;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.ed-tab.active { color: #58C7D8; border-bottom-color: #58C7D8; background: rgba(88,199,216,0.06); }
.ed-tab:hover:not(.active) { color: rgba(255,255,255,0.7); }

#editor-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  scrollbar-width: thin; scrollbar-color: #334155 transparent;
}
#editor-body::-webkit-scrollbar { width: 4px; }
#editor-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.ed-section { display: none; }
.ed-section.active { display: block; }

.ed-group {
  margin-bottom: 20px;
  background: #1E293B;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ed-group-title {
  font-size: 0.72rem; font-weight: 800; color: #58C7D8;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(88,199,216,0.2);
}
.ed-row { margin-bottom: 12px; }
.ed-row:last-child { margin-bottom: 0; }
.ed-label {
  display: block; font-size: 0.76rem; font-weight: 600;
  color: rgba(255,255,255,0.55); margin-bottom: 5px;
}
.ed-input, .ed-textarea, .ed-select {
  width: 100%; padding: 9px 12px;
  background: #0F172A; border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: white; font-size: 0.82rem;
  font-family: 'Cairo', sans-serif; transition: border 0.2s; outline: none;
  direction: rtl;
}
.ed-input:focus, .ed-textarea:focus, .ed-select:focus {
  border-color: #58C7D8; box-shadow: 0 0 0 3px rgba(88,199,216,0.1);
}
.ed-textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
.ed-color-row {
  display: flex; align-items: center; gap: 10px;
}
.ed-color-row input[type=color] {
  width: 40px; height: 36px; padding: 2px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.1); background: #0F172A;
  cursor: pointer; flex-shrink: 0;
}
.ed-color-hex {
  flex: 1; padding: 9px 12px;
  background: #0F172A; border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: white; font-size: 0.82rem; outline: none;
  font-family: 'Inter', monospace;
}
.ed-color-hex:focus { border-color: #58C7D8; }

.ed-img-preview {
  width: 100%; height: 80px; object-fit: contain;
  background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 0.78rem; border: 1.5px dashed rgba(255,255,255,0.1);
}
.ed-img-preview img { max-height: 70px; max-width: 100%; object-fit: contain; }

.ed-upload-btn {
  width: 100%; padding: 9px; background: rgba(88,199,216,0.1);
  border: 1.5px dashed rgba(88,199,216,0.3); border-radius: 8px;
  color: #58C7D8; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  font-family: 'Cairo', sans-serif; transition: all 0.2s;
}
.ed-upload-btn:hover { background: rgba(88,199,216,0.2); }

#editor-footer {
  padding: 16px 24px; background: #1E293B;
  border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.ed-save-btn {
  width: 100%; padding: 13px; background: linear-gradient(135deg, #343AA8 0%, #58C7D8 100%);
  border: none; border-radius: 10px; color: white; font-size: 0.9rem;
  font-weight: 800; cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all 0.2s; margin-bottom: 8px;
}
.ed-save-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,58,168,0.4); }
.ed-dl-btn {
  width: 100%; padding: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: rgba(255,255,255,0.65); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s;
}
.ed-dl-btn:hover { background: rgba(255,255,255,0.1); color: white; }

.ed-font-select {
  width: 100%; padding: 9px 12px;
  background: #0F172A; border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: white; font-size: 0.82rem;
  font-family: 'Cairo', sans-serif; transition: border 0.2s; outline: none; cursor: pointer;
}
.ed-font-select:focus { border-color: #58C7D8; }

.ed-client-item {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.ed-client-item input { flex: 1; }
.ed-remove-btn {
  width: 28px; height: 28px; background: rgba(239,68,68,0.15);
  border: none; border-radius: 6px; color: #ef4444; font-size: 0.9rem;
  cursor: pointer; flex-shrink: 0; transition: background 0.2s;
}
.ed-remove-btn:hover { background: rgba(239,68,68,0.3); }
.ed-add-btn {
  width: 100%; padding: 8px; background: rgba(88,199,216,0.08);
  border: 1px dashed rgba(88,199,216,0.25); border-radius: 8px;
  color: #58C7D8; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  font-family: 'Cairo', sans-serif; margin-top: 4px;
}
.ed-add-btn:hover { background: rgba(88,199,216,0.15); }

.ed-portfolio-item {
  background: #0F172A; border-radius: 8px; padding: 12px;
  margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.06);
}
.ed-portfolio-item-title {
  font-size: 0.72rem; font-weight: 700; color: #58C7D8; margin-bottom: 8px;
}

.ed-notice {
  background: rgba(88,199,216,0.08); border: 1px solid rgba(88,199,216,0.2);
  border-radius: 8px; padding: 10px 12px; font-size: 0.75rem;
  color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 14px;
}

.ed-range-row { display: flex; align-items: center; gap: 10px; }
.ed-range-row input[type=range] { flex: 1; }
.ed-range-val { color: #58C7D8; font-size: 0.8rem; font-weight: 700; min-width: 40px; text-align: left; }

