/* ========================================
   VISUAL WORKS — Premium White Theme
   Clean, Corporate, GCC Enterprise
   ======================================== */

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-section: #f1f4f9;

  --blue: #3F53EB;
  --blue-light: #5a6df0;
  --blue-dark: #2d3dc4;
  --blue-50: #eef0fd;
  --blue-100: #dce1fb;
  --blue-glow: rgba(63, 83, 235, 0.15);

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.1);

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

  --section-pad: 120px;
  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

html[dir="rtl"] body,
html[dir="rtl"] * { font-family: var(--font-ar); }
html[dir="ltr"] body,
html[dir="ltr"] * { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.header.scrolled {
  padding: 10px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo img { transition: transform 0.3s var(--ease); }
.logo:hover img { transform: scale(1.05); }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
html[dir="rtl"] .nav-link::after { left: auto; right: 0; }

.nav-link:hover,
.nav-link.active { color: var(--blue); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

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

.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  background: var(--white);
}
.lang-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-50);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
}

.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   HERO
   ======================================== */
/* ========================================
   HERO — Cinematic Animation
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #0a0e27 0%, #0f1740 25%, #111b4a 50%, #0d1235 75%, #0a0e27 100%);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(63, 83, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(63, 83, 235, 0.08) 0%, transparent 50%);
  z-index: 0;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 83, 235, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 0;
  animation: heroOrb 15s ease-in-out infinite alternate;
}

@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 80px) scale(1.2); }
  100% { transform: translate(50px, -50px) scale(0.9); }
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }

.hero-line.accent {
  background: linear-gradient(135deg, #93c5fd, #60a5fa, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  animation: fadeUp 0.8s var(--ease) 0.7s both;
}

.stat-item { text-align: center; }
.stat-number { font-size: 42px; font-weight: 800; color: #fff; }
.stat-plus { font-size: 28px; font-weight: 700; color: #93c5fd; }
.stat-label { display: block; font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }


/* ========================================
   CLIENTS
   ======================================== */
.clients {
  padding: 60px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.clients-label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 600;
}

.clients-slider {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  width: 140px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.client-logo:hover { opacity: 0.7; }
.client-logo svg { width: 120px; height: 40px; }
.client-logo img {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.client-logo:hover img { filter: grayscale(0%); }

.client-logo.active {
  opacity: 1;
}
.client-logo.active img {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   SECTION SHARED
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-cta {
  text-align: center;
  margin-top: 64px;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 14px);
  justify-self: center;
}

.service-card:hover {
  border-color: var(--blue-100);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-img img { transform: scale(1.05); }

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ef4444;
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
html[dir="rtl"] .service-badge { right: auto; left: 16px; }

.service-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
  transition: all 0.4s;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: #fff;
}

.service-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-body > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.service-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  margin-bottom: 20px;
}

.service-notice svg { flex-shrink: 0; color: #d97706; }

.service-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.3s;
  background: var(--white);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.portfolio-grid {
  columns: 3;
  column-gap: 24px;
}
.portfolio-grid > * {
  break-inside: avoid;
  margin-bottom: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-section);
  transition: all 0.5s var(--ease);
}

.portfolio-item.large { grid-column: span 2; }

.portfolio-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.portfolio-item img {
  width: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.portfolio-item.has-pdf img,
.portfolio-item.has-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  background: #e2e8f0;
}

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

.portfolio-item:hover {
  box-shadow: var(--shadow-xl);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-tag {
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.portfolio-overlay h4 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.portfolio-overlay p { font-size: 14px; color: rgba(255,255,255,0.7); }

.portfolio-item.has-modal { cursor: pointer; }

/* Video portfolio items */
.portfolio-item.has-video { cursor: pointer; position: relative; }
.portfolio-item.has-video video {
  width: 100%;
  min-height: 200px;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  background: #0f1740;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* Show loading state until video frame loads */
.portfolio-item.has-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f1740 0%, #1a2565 100%);
  z-index: 0;
  border-radius: var(--radius-lg);
  transition: opacity 0.3s;
  pointer-events: none;
}
.portfolio-item.has-video.frame-loaded::before {
  opacity: 0;
  pointer-events: none;
}
.portfolio-item.has-video:hover video { transform: scale(1.05); }
/* Play icon overlay for mobile */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(63, 83, 235, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item.has-video .video-play-icon { opacity: 1; }
.portfolio-item.has-video.playing .video-play-icon { opacity: 0; }
.portfolio-item.has-video:hover .video-play-icon { opacity: 0.7; }
.video-play-icon svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }

/* ========================================
   PORTFOLIO MODAL
   ======================================== */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}
.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.portfolio-modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.portfolio-modal.active .portfolio-modal-content {
  transform: translateY(0) scale(1);
}
.portfolio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.portfolio-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

/* Gallery */
.portfolio-modal-gallery {
  position: relative;
}
.portfolio-modal-main-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-modal-main-img img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.3s;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.modal-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Thumbnails */
.portfolio-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--bg-secondary, #f8fafc);
  scrollbar-width: thin;
}
.portfolio-modal-thumbs img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, outline-color 0.2s;
  outline: 2px solid transparent;
  flex-shrink: 0;
}
.portfolio-modal-thumbs img:hover {
  opacity: 0.8;
}
.portfolio-modal-thumbs img.active {
  opacity: 1;
  outline-color: var(--primary);
}

/* Info section */
.portfolio-modal-info {
  padding: 28px 32px 32px;
}
.portfolio-modal-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}
.portfolio-modal-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.portfolio-modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.portfolio-modal-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.portfolio-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.portfolio-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Portfolio Category Section Headers */
.portfolio-category-header {
  margin-top: 60px;
  margin-bottom: 32px;
  text-align: center;
}
.portfolio-category-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.portfolio-category-header p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 600px) {
  .portfolio-modal-content { width: 96%; max-height: 95vh; }
  .portfolio-modal-info { padding: 20px 20px 32px; }
  .portfolio-modal-title { font-size: 20px; }
  .portfolio-modal-thumbs img { width: 60px; height: 38px; }
  .modal-nav { width: 36px; height: 36px; }
  .portfolio-modal-main-img img { max-height: 45vh; }
  .portfolio-modal-preview {
    display: inline-flex !important;
    margin-top: 8px;
  }
  .portfolio-modal-preview[style*="display: none"],
  .portfolio-modal-preview[style*="display:none"] {
    display: none !important;
  }
}

/* ========================================
   PACKAGES
   ======================================== */
.packages {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.currency-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.currency-toggle {
  position: relative;
  display: flex;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  gap: 0;
}

.currency-opt {
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.currency-opt.active {
  color: #fff;
  background: var(--blue);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.package-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.5s var(--ease);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-100);
}

.package-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue);
  transform: scale(1.03);
}

.package-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 6px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.package-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.package-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.package-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.package-features {
  list-style: none;
  margin-bottom: 32px;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.package-features li:last-child { border-bottom: none; }
.package-features li svg { flex-shrink: 0; }

.package-footer { text-align: center; }

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.payment-icon {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

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

.about-visual { position: relative; }

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-float-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--blue);
  color: #fff;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--blue-glow);
  text-align: center;
}

html[dir="rtl"] .about-float-card { right: auto; left: -24px; }

.float-number { font-size: 36px; font-weight: 800; line-height: 1; }
.float-label { font-size: 14px; font-weight: 500; opacity: 0.9; margin-top: 4px; }

.about-content .section-tag { display: block; text-align: start; }

.about-content .section-title {
  text-align: start;
  margin-bottom: 20px;
}

.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 36px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.about-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.about-feature p { font-size: 14px; color: var(--text-secondary); }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--bg);
  overflow: hidden;
}
.testimonials .section-tag,
.testimonials .section-title {
  text-align: center;
  display: block;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.testimonials-track-wrapper {
  overflow: hidden;
  margin: 0 -16px;
  padding: 8px 0;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease);
  padding: 0 16px;
}
.testimonial-card {
  flex: 0 0 360px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 20px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  flex-grow: 1;
}
.testimonial-text-ar {
  font-family: var(--font-ar);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .testimonial-text { display: none; }
[dir="rtl"] .testimonial-text-ar { color: var(--text); font-size: 16px; }
[dir="ltr"] .testimonial-text-ar { font-size: 14px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.testimonials-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.testimonials-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
[dir="rtl"] .testimonials-prev svg { transform: rotate(180deg); }
[dir="rtl"] .testimonials-next svg { transform: rotate(180deg); }

@media (max-width: 768px) {
  .testimonial-card { flex: 0 0 300px; padding: 24px; }
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-payment {
  margin-bottom: 32px;
}

.contact-payment h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.payment-methods-large {
  display: flex;
  gap: 12px;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  transition: all 0.3s;
}

.payment-method-card:hover {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue);
}

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  background: var(--white);
}

.social-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-50);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  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='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

html[dir="rtl"] .form-group select {
  background-position: left 16px center;
  padding-right: 18px;
  padding-left: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-50);
  background: var(--white);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Phone input with WhatsApp icon */
.phone-input-wrap {
  position: relative;
}
.phone-input-wrap input {
  padding-left: 44px !important;
}
html[dir="rtl"] .phone-input-wrap input {
  padding-left: 18px !important;
  padding-right: 44px !important;
}
.phone-whatsapp-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}
html[dir="rtl"] .phone-whatsapp-icon {
  left: auto;
  right: 14px;
}

/* Field hint */
.field-hint {
  display: block;
  font-size: 12px;
  color: #25D366;
  margin-top: 6px;
  font-weight: 500;
}

/* Validation styles */
.form-group .error-msg {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
}
.form-group.has-error .error-msg {
  display: block;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border: 1.5px solid #ef4444 !important;
  outline: 2px solid rgba(239, 68, 68, 0.3);
  outline-offset: -1px;
}
.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select {
  border: 1.5px solid #22c55e !important;
  outline: 2px solid rgba(34, 197, 94, 0.2);
  outline-offset: -1px;
}
.form-group.has-error label {
  color: #ef4444;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 80px 0 0;
  background: #0f172a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }

.footer-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  padding: 5px 0;
  transition: color 0.3s;
}
.footer-links a:hover { color: #93c5fd; }

.footer-contact p {
  font-size: 14px;
  color: #94a3b8;
  padding: 3px 0;
}

.footer-payment {
  margin-top: 20px;
}

.footer-payment h5 {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-payment-icons span {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 12px;
  border: 1px solid #334155;
  border-radius: 50px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p { font-size: 13px; color: #64748b; }

/* ========================================
   FLOATING CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 30px var(--blue-glow);
  transition: all 0.4s var(--ease);
  animation: bounceIn 0.8s var(--ease) 1s both;
}

html[dir="rtl"] .floating-cta { right: auto; left: 32px; }

.floating-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(63, 83, 235, 0.3);
  background: var(--blue-dark);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  left: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  background: #1ebe5a;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
html[dir="rtl"] .whatsapp-float { left: auto; right: 32px; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}

html[dir="rtl"] .back-to-top { left: auto; right: 32px; }

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-50);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes bounceIn {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child:nth-child(odd) {
    max-width: 100%;
    grid-column: auto;
  }
  .portfolio-grid { columns: 2; }
  .portfolio-item.large { }
  .packages-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .package-card.featured { transform: none; }
  .package-card.featured:hover { transform: translateY(-8px); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }

  /* Header */
  .header { padding: 12px 0; }
  .logo img { width: 60px; height: 60px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    width: 220px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
    padding: 8px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
  }
  html[dir="rtl"] .nav { right: auto; left: 20px; }
  .nav.open { display: flex; }
  .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    transition: color 0.2s, background 0.2s;
  }
  html[dir="rtl"] .nav-link { text-align: right; }
  .nav-link:hover { background: var(--blue-50); color: var(--blue); }
  .nav-link::after { display: none; }
  .nav-link.active {
    color: var(--blue);
    background: var(--blue-50);
  }
  .menu-toggle { display: flex; z-index: 10000; }

  /* Hero */
  .hero { min-height: 100vh; min-height: 100dvh; padding: 100px 0 40px; }
  .hero-content { padding: 10px 16px 20px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); margin-bottom: 16px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; line-height: 1.6; padding: 0 8px; }
  .hero-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 16px; }

  .hero-actions { flex-direction: column; width: 100%; margin-bottom: 20px; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 14px 28px; }

  .hero-stats { gap: 16px; flex-wrap: nowrap; }
  .stat-number { font-size: 28px; }
  .stat-plus { font-size: 20px; }
  .stat-label { font-size: 11px; }

  /* Services */
  .service-img { height: 200px; }
  .service-body { padding: 24px; }

  /* Portfolio */
  .portfolio-grid { columns: 1; column-gap: 16px; }
  .portfolio-grid > * { margin-bottom: 16px; }
  .portfolio-filters { flex-wrap: wrap; gap: 6px; }
  .filter-btn { padding: 8px 20px; font-size: 13px; }

  /* Packages */
  .packages-grid { max-width: 100%; }
  .package-card { padding: 32px 24px; }

  /* About */
  .about-img { height: 350px; }
  .about-float-card { bottom: -16px; right: -16px; padding: 16px 24px; }
  html[dir="rtl"] .about-float-card { left: -16px; right: auto; }
  .float-number { font-size: 28px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; border-radius: var(--radius-lg); }
  .payment-methods-large { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 60px 0 0; }

  /* Floating elements */
  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
  html[dir="rtl"] .floating-cta { right: auto; left: 20px; }

  .whatsapp-float {
    bottom: 80px;
    left: 20px;
    width: 46px;
    height: 46px;
  }
  html[dir="rtl"] .whatsapp-float { left: auto; right: 20px; }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
  html[dir="rtl"] .back-to-top { left: auto; right: 20px; }

  .clients { padding: 40px 0; }
  .client-logo { width: 110px; }
  .clients-track { gap: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .service-body h3 { font-size: 19px; }
  .btn-sm { padding: 8px 18px; font-size: 13px; }
  .lang-toggle { width: 36px; height: 36px; font-size: 12px; }
  .package-card { padding: 24px 20px; }
  .price-amount { font-size: 36px; }
  .contact-form { padding: 20px; }
  .form-title { font-size: 20px; }
}

/* ========================================
   SELECTION & SCROLLBAR
   ======================================== */
/* ========================================
   INNER PAGE HERO (with background image)
   ======================================== */
.page-hero {
  padding: 160px 0 80px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg .hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(63, 83, 235, 0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   INNER PAGE SECTIONS
   ======================================== */
.page-section {
  padding: 100px 0;
}

.page-section:nth-child(even) {
  background: var(--bg-soft);
}

/* Service Detail Sections */
.service-detail {
  padding: var(--section-pad) 0;
}

.service-detail.alt-bg {
  background: var(--bg-soft);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-grid.reverse .service-detail-visual { order: -1; }

.service-detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
}

.service-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.service-features-list li svg { flex-shrink: 0; }

.service-detail-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-detail-visual:hover img { transform: scale(1.03); }

.service-price-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(63, 83, 235, 0.1);
  color: #3F53EB;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.egypt-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* Portfolio Detail Grid */
.portfolio-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-detail-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-section);
  box-shadow: var(--shadow-md);
  transition: all 0.5s var(--ease);
}

.portfolio-detail-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-detail-item img {
  width: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

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

.portfolio-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portfolio-detail-item:hover .portfolio-detail-overlay { opacity: 1; }

.portfolio-detail-overlay .tag {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.portfolio-detail-overlay h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.portfolio-detail-overlay p { font-size: 13px; color: rgba(255,255,255,0.7); }

/* About Page Timeline */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

html[dir="rtl"] .timeline::before { left: auto; right: 50%; transform: translateX(50%); }

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .timeline-item:nth-child(even) { text-align: left; }
html[dir="rtl"] .timeline-item:nth-child(odd) { text-align: right; }

.timeline-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-100);
  flex-shrink: 0;
  margin-top: 8px;
  z-index: 1;
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-content h4 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

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

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 20px;
}

.value-card h4 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body { padding: 20px; }
.team-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--text-muted); }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  text-align: start;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--blue); }

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--blue); }

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, var(--blue-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-primary {
  background: #fff;
  color: var(--blue);
}

.cta-content .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* Portfolio Page Section */
.portfolio-page-section {
  padding: var(--section-pad) 0;
}

.portfolio-filters-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Packages Page Section */
.packages-page-section {
  padding: var(--section-pad) 0;
}

.currency-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.custom-package-note {
  margin-top: 64px;
  padding: 40px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
}

.custom-note-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.custom-note-content svg { flex-shrink: 0; }

.custom-note-content div { flex: 1; }

.custom-note-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.custom-note-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.packages-faq {
  margin-top: 80px;
}

/* About Page Sections */
.about-story-section {
  padding: var(--section-pad) 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-story-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-story-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-stats-section {
  padding: 80px 0;
  background: var(--blue);
  color: #fff;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.about-stat .stat-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat .stat-label {
  font-size: 15px;
  opacity: 0.8;
}

.about-values-section {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.about-team-section {
  padding: var(--section-pad) 0;
}

.team-img {
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-img img { transform: scale(1.05); }

.team-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; padding: 16px 16px 0; }
.team-card p { font-size: 13px; color: var(--text-muted); padding: 0 16px 20px; }

/* Contact Page Section */
.contact-page-section {
  padding: var(--section-pad) 0;
}

/* Location Section */
.location-section {
  padding: 0 0 var(--section-pad);
}

.location-section .map-container {
  margin-top: 48px;
}

/* Contact Page Map */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Inner page responsive */
@media (max-width: 1024px) {
  .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-grid.reverse .service-detail-visual { order: 0; }
  .service-features-list { grid-template-columns: 1fr; }
  .portfolio-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-note-content { flex-direction: column; text-align: center; }
  .custom-note-content .btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; min-height: 320px; }
  .page-hero-title { font-size: 28px; }
  .page-hero-desc { font-size: 16px; }
  .service-detail { padding: 80px 0; }
  .service-detail-visual img { height: 280px; }
  .portfolio-detail-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-img img { height: 200px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-stat .stat-number { font-size: 36px; }
  .cta-section { padding: 64px 0; }
  .cta-content h2 { font-size: 28px; }
  .custom-package-note { padding: 24px; }
  .about-story-visual img { height: 300px; }
  .map-container { height: 300px; }
  .packages-page-section, .portfolio-page-section, .about-story-section, .about-values-section, .about-team-section, .contact-page-section {
    padding: 80px 0;
  }
}

/* ========================================
   SERVICE PACKAGES GRID (3 cols)
   ======================================== */
.services-grid--packages {
  grid-template-columns: repeat(3, 1fr);
}
.services-grid--packages .service-card:last-child:nth-child(odd) {
  grid-column: auto;
  max-width: none;
  justify-self: auto;
}
@media (max-width: 1024px) {
  .services-grid--packages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid--packages { grid-template-columns: 1fr; }
}

.has-service-modal { cursor: pointer; }

/* Service Price Tag on Image */
.service-price-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--blue);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(63,83,235,0.3);
  z-index: 2;
}
html[dir="rtl"] .service-price-tag { right: auto; left: 16px; }

/* ========================================
   SERVICE PRICING MODAL
   ======================================== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}
.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(0,0,0,0.2);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
.service-modal.active .service-modal-content {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  z-index: 2;
}
html[dir="rtl"] .service-modal-close { right: auto; left: 16px; }
.service-modal-close:hover { background: #fee2e2; color: #ef4444; }

.service-modal-header {
  padding: 40px 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.service-modal-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.service-modal-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 8px;
}

.service-modal-timeline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.service-modal-body {
  padding: 28px 40px;
}

.service-modal-body .smodal-section {
  margin-bottom: 24px;
}
.service-modal-body .smodal-section:last-child {
  margin-bottom: 0;
}

.service-modal-body .smodal-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-modal-body .smodal-section-title .smodal-icon {
  font-size: 18px;
}

.service-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-modal-body ul li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.service-modal-body ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 8px;
}

.service-modal-footer {
  padding: 0 40px 32px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 600px) {
  .service-modal-content { width: 95%; border-radius: var(--radius-lg); }
  .service-modal-header { padding: 32px 24px 20px; }
  .service-modal-body { padding: 20px 24px; }
  .service-modal-footer { padding: 0 24px 24px; }
  .service-modal-title { font-size: 22px; }
  .service-modal-price { font-size: 32px; }
}

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ========================================
   PDF PREVIEW MODAL
   ======================================== */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}
.pdf-modal.active {
  opacity: 1;
  visibility: visible;
}
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pdf-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 94%;
  max-width: 1000px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 64px rgba(0,0,0,0.25);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}
.pdf-modal.active .pdf-modal-content {
  transform: translateY(0) scale(1);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pdf-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.pdf-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  flex-shrink: 0;
}
.pdf-modal-close:hover { background: #fee2e2; color: #ef4444; }
.pdf-modal-body {
  flex: 1;
  min-height: 0;
}
.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* PDF Items in Portfolio Grid */
.portfolio-item.has-pdf {
  cursor: pointer;
}
.portfolio-item.has-pdf img {
  width: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .pdf-modal-content {
    width: 98%;
    height: 85vh;
    border-radius: 16px;
  }
  .pdf-modal-header {
    padding: 12px 16px;
  }
  .pdf-modal-title {
    font-size: 15px;
  }
}
