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

:root {
  --bg: #0A0F1E;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-faint: #475569;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(37,99,235,0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font: 'Inter', sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

[lang="ar"] body, body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-footer-link {
  text-decoration: none;
  display: inline-block;
}

.logo-footer-img {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

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

.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--accent);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 24px 16px;
  background: rgba(10,15,30,0.98);
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

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

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: rgba(37, 99, 235, 0.12);
}

.glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: 10%;
  background: rgba(99, 102, 241, 0.10);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.12);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge-slogan {
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA, #2563EB, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

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

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 32px rgba(37,99,235,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(37,99,235,0.06);
}

.btn-full { width: 100%; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-section { background: rgba(255,255,255,0.01); }

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

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

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card:hover::before { opacity: 1; }

.service-card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(160deg, #111827, #0d1529);
  box-shadow: 0 0 40px rgba(37,99,235,0.12);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(37,99,235,0.12);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.service-icon svg { width: 24px; height: 24px; }

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ===== PRODUCTS TEASER ===== */
.products-teaser { padding: 0 0 100px; }

.teaser-card {
  background: linear-gradient(135deg, #0d1529, #111827);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  box-shadow: 0 0 60px rgba(37,99,235,0.1);
}

.teaser-content {
  flex: 1;
  max-width: 540px;
}

.teaser-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 12px 0 16px;
}

.teaser-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.teaser-visual { flex-shrink: 0; }

.accred-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.accred-pill {
  display: inline-block;
  background: rgba(37,99,235,0.15);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.accred-pill:hover {
  background: rgba(37,99,235,0.3);
  transform: translateX(-4px);
}

/* ===== ABOUT ===== */
.about-section { background: rgba(255,255,255,0.01); }

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

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

.about-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.value-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.value-item p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-stack-visual {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-ring {
  position: absolute;
  border: 1px dashed rgba(37,99,235,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateSlow 20s linear infinite;
}

.ring-outer {
  width: 280px; height: 280px;
}

.ring-middle {
  width: 180px; height: 180px;
  animation-direction: reverse;
  animation-duration: 14s;
}

.ring-inner {
  width: 80px; height: 80px;
  border: 2px solid var(--border-accent);
  background: rgba(37,99,235,0.1);
  animation: none;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tech-tag {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ring-outer .tech-tag:nth-child(1) { top: -10px; left: 50%; transform: translateX(-50%); }
.ring-outer .tech-tag:nth-child(2) { bottom: -10px; right: 10%; }
.ring-outer .tech-tag:nth-child(3) { left: -20px; top: 50%; transform: translateY(-50%); }
.ring-middle .tech-tag:nth-child(1) { top: -10px; right: 10%; }
.ring-middle .tech-tag:nth-child(2) { bottom: -10px; left: 10%; }

.tech-core {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-light);
  letter-spacing: -0.5px;
}

/* ===== CONTACT ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 11px 14px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group select option { background: var(--bg-card); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group textarea { resize: vertical; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(37,99,235,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; }

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

.contact-item p { font-size: 14px; }

.form-status {
  text-align: center;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.ainsights-link-box {
  margin-top: 8px;
  background: rgba(37,99,235,0.06);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.ainsights-link-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.footer-inner {
  display: flex;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-brand {
  flex: 1;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-faint);
  transition: all var(--transition);
  text-decoration: none;
}

.social-link svg { width: 16px; height: 16px; }

.social-link:hover { background: rgba(37,99,235,0.2); color: var(--accent-light); transform: translateY(-2px); }
.social-linkedin:hover { background: rgba(10,102,194,0.2); color: #0A66C2; }
.social-x:hover       { background: rgba(255,255,255,0.1); color: var(--text); }
.social-instagram:hover { background: rgba(225,48,108,0.15); color: #E1306C; }
.social-facebook:hover  { background: rgba(24,119,242,0.15); color: #1877F2; }

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text-faint);
  font-size: 13px;
}

/* ===== RTL ===== */
html[dir="rtl"] .hero-content { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .hero-subtitle { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .accred-badges { align-items: flex-start; }
html[dir="rtl"] .accred-pill:hover { transform: translateX(4px); }
html[dir="rtl"] .featured-badge { right: auto; left: 16px; }
html[dir="rtl"] .about-text .section-title { text-align: right; }
html[dir="rtl"] .service-list li { flex-direction: row-reverse; justify-content: flex-end; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .teaser-card { flex-direction: column; }
  .accred-badges { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .teaser-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
}
