/* ===========================
   ROOT & DESIGN TOKENS
=========================== */
:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --accent2: #f59e0b;
  --bg: #050714;
  --bg2: #0a0f1e;
  --bg3: #0f1629;
  --surface: #111827;
  --surface2: #1a2035;
  --border: rgba(124, 58, 237, 0.2);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #10b981;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient2: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 32px rgba(124, 58, 237, 0.15);
  --shadow-lg: 0 8px 64px rgba(124, 58, 237, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

html[dir="rtl"] {
  font-family: var(--font-ar);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   CURSOR GLOW
=========================== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===========================
   PRELOADER
=========================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: -2px;
}
.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 10px;
  animation: preload 1.5s ease-out forwards;
}
@keyframes preload { to { width: 100%; } }

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient2);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--primary);
  color: var(--primary-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(124,58,237,0.1);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 7, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  white-space: nowrap;
}
.logo-bracket { color: var(--primary-light); }

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  background: rgba(255,255,255,0.03);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary-light); }
.lang-icon { font-size: 1rem; }

.nav-cta { padding: 10px 20px; font-size: 0.875rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 6s ease-in-out infinite alternate;
}
.orb1 { width: 600px; height: 600px; background: rgba(124,58,237,0.15); top: -200px; right: -100px; }
.orb2 { width: 400px; height: 400px; background: rgba(6,182,212,0.1); bottom: -100px; left: -100px; animation-delay: 2s; }
.orb3 { width: 300px; height: 300px; background: rgba(168,85,247,0.1); top: 50%; left: 40%; animation-delay: 4s; }

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.05); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat > span:not(.stat-num):not(.stat-label) {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-wrap { position: relative; height: 460px; }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
  animation: cardFloat 4s ease-in-out infinite alternate;
  box-shadow: var(--shadow);
}
.hero-float-card i { color: var(--primary-light); font-size: 1.1rem; }

.card1 { top: 20px; left: 0; animation-delay: 0s; }
.card2 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 1.5s; }
.card3 { bottom: 40px; left: 20px; animation-delay: 3s; }

@keyframes cardFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.card2 { animation-name: cardFloat2; }
@keyframes cardFloat2 {
  from { transform: translate(0, -50%); }
  to { transform: translate(0, calc(-50% - 12px)); }
}

.hero-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-bar {
  padding: 12px 16px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: #10b981; }
.window-title { flex: 1; text-align: center; font-size: 0.8rem; color: var(--text-dim); }

.code-body { padding: 20px; font-family: 'Courier New', monospace; font-size: 0.875rem; line-height: 2; }
.code-line { padding: 2px 0; }
.code-line.indent { padding-left: 24px; }
.code-line.blank { height: 12px; }
.kw { color: #c084fc; }
.fn { color: #60a5fa; }
.str { color: #34d399; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 120px 0;
  position: relative;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  border-color: var(--primary);
}
.service-card.featured::before { opacity: 1; }

.service-icon-wrap {
  margin-bottom: 24px;
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

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

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags li {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--gradient);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[dir="rtl"] .featured-badge {
  right: auto;
  left: 20px;
}

/* ===========================
   ABOUT
=========================== */
.about {
  padding: 120px 0;
  background: var(--bg2);
}

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

.about-img-wrap {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(124,58,237,0.1), transparent 70%);
  border-radius: var(--radius-lg);
}

.about-img-inner {
  width: 380px;
  height: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px;
}

.aig-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
}
.aig-item:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--primary);
  transform: scale(1.05);
}
.aig-item i {
  font-size: 1.4rem;
  color: var(--primary-light);
}
.aig-item span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.about-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-features { margin-bottom: 36px; }
.about-feat {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.feat-icon {
  width: 36px;
  height: 36px;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.about-feat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===========================
   PORTFOLIO
=========================== */
.portfolio {
  padding: 120px 0;
}

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

.pf-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}
.pf-btn.active, .pf-btn:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

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

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.portfolio-card.hidden { display: none; }

.portfolio-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  transition: var(--transition);
}

.web-p    { background: linear-gradient(135deg, #1e1b4b, #312e81); color: #818cf8; }
.mobile-p { background: linear-gradient(135deg, #0c4a6e, #0e7490); color: #38bdf8; }
.saas-p   { background: linear-gradient(135deg, #14532d, #166534); color: #4ade80; }
.ecom-p   { background: linear-gradient(135deg, #4c1d95, #6d28d9); color: #c4b5fd; }
.health-p { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: #fca5a5; }
.property-p { background: linear-gradient(135deg, #78350f, #92400e); color: #fcd34d; }

.p-mock-bar {
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.p-mock-bar.short { width: 50%; }

.p-mock-phone {
  width: 48px;
  height: 80px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-mock-ph-inner {
  width: 30px;
  height: 55px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.p-mock-cloud {
  display: flex;
  gap: 6px;
}
.c-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; }

.p-mock-wave {
  width: 80%;
  height: 30px;
  border-top: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124,58,237,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.overlay-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  transform: scale(0.5);
  transition: var(--transition);
}
.portfolio-card:hover .overlay-btn { transform: scale(1); }

.portfolio-info { padding: 24px; }
.p-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}
.portfolio-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   WHY US
=========================== */
.whyus {
  padding: 120px 0;
  background: var(--bg2);
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 72px;
  height: 72px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  margin: 0 auto 24px;
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===========================
   TECH STACK
=========================== */
.tech-stack { padding: 80px 0; overflow: hidden; }

.tech-marquee-wrap {
  position: relative;
  overflow: hidden;
}
.tech-marquee-wrap::before,
.tech-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 1;
}
.tech-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.tech-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.tech-track {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.tech-item:hover { border-color: var(--primary); color: var(--text); }
.tech-item i { font-size: 1.3rem; color: var(--primary-light); }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials { padding: 120px 0; }

.testimonials-slider {
  position: relative;
  overflow: hidden;   /* clips sliding cards */
}

.t-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* Cards widths set by JS via inline style */
}

/* Cards have no hardcoded min-width — JS sets flex via inline style */
.t-card {
  flex-shrink: 0;                   /* prevent collapsing */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.t-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.t-stars {
  font-size: 1.1rem;
  color: var(--accent2);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.t-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.t-author span { font-size: 0.8rem; color: var(--text-dim); }

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.t-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.t-btn:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.t-dot.active {
  background: var(--primary-light);
  width: 24px;
  border-radius: 4px;
}

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.cta-main-btn { font-size: 1rem; padding: 16px 36px; }

/* ===========================
   CONTACT
=========================== */
.contact { padding: 120px 0; }

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

.contact-info .section-tag { margin-bottom: 16px; display: inline-block; }
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-details { margin-bottom: 36px; }
.c-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.c-detail:hover { border-color: var(--primary); }
.c-icon {
  width: 44px;
  height: 44px;
  background: rgba(124,58,237,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}
.c-detail strong { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.c-detail span { font-size: 0.85rem; color: var(--text-muted); }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}
[dir="rtl"] .form-group select {
  background-position: left 12px center;
  padding-right: 16px;
  padding-left: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-group option { background: var(--surface); }

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
}
.form-group.error .form-error { display: block; }
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success.show { display: flex; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

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

.footer-brand .nav-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-links-group h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-links-group a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: var(--transition);
}
.footer-links-group a:hover { color: var(--primary-light); padding-left: 4px; }
[dir="rtl"] .footer-links-group a:hover { padding-left: 0; padding-right: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===========================
   BACK TO TOP
=========================== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  pointer-events: none;
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

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

/* ===========================
   AOS ANIMATIONS
=========================== */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .about-container { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-container { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Mobile nav */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,7,20,0.97);
    backdrop-filter: blur(16px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 80px 24px 24px;
  }
  .nav-links.open .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
  }
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .whyus-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  /* t-card responsive handled by JS inline style */
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .contact-form-wrap { padding: 24px 16px; }
}

/* ===========================
   RTL OVERRIDES
=========================== */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-btns { justify-content: flex-end; }
[dir="rtl"] .hero-stats { flex-direction: row-reverse; }
[dir="rtl"] .about-feat { flex-direction: row; }
[dir="rtl"] .section-header { text-align: center; }
[dir="rtl"] .footer-links-group a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .t-track { flex-direction: row; }
[dir="rtl"] .nav-links.open { right: 0; left: 0; }
[dir="rtl"] .code-body { direction: ltr; }
