:root {
  --bg: #08111f;
  --bg-soft: #0f1b2d;
  --card: #101c31;
  --surface: rgba(255,255,255,0.04);
  --text: #ecf3ff;
  --muted: #a8b6cf;
  --primary: #e11d48;
  --primary-2: #f43f5e;
  --line: rgba(255,255,255,0.09);
  --accent: #60a5fa;
  --shadow: 0 18px 50px rgba(0,0,0,0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Cairo', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(225 ,29,72,0.12), transparent 30%),
    radial-gradient(circle at left top, rgba(96,165,250,0.10), transparent 25%),
    var(--bg);
  color: var(--text);
}
body[dir="rtl"] { font-family: 'Cairo', 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(8,17,31,0.85);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}

/* --- Social Icons in Header --- */
.header-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.header-socials a {
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.header-socials a:hover { transform: translateY(-2px); }
.header-socials a[aria-label="Facebook"]:hover { color: #1877F2; }
.header-socials a[aria-label="Telegram"]:hover { color: #0088cc; }
.header-socials a[aria-label="Instagram"]:hover { color: #E4405F; }
.header-socials a[aria-label="TikTok"]:hover { color: #00f2ea; }
.header-socials a[aria-label="LinkedIn"]:hover { color: #0077b5; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.brand-tag { color: var(--muted); font-size: .82rem; }

.desktop-nav { display: flex; gap: 20px; color: var(--muted); }
.desktop-nav a:hover, .footer-links a:hover, .mobile-menu a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
}
.menu-toggle { display: none; }

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: grid; gap: 12px; }

/* Mobile Social Icons */
.mobile-socials {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.mobile-socials a {
  color: var(--muted);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.hero { padding: 72px 0 40px; }
.hero-grid, .about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }

.eyebrow, .section-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(244,63,94,.35);
  background: rgba(225,29,72,.08);
  color: #ffc3cf;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.07; margin: 0 0 16px; }

.hero-text, .section-heading p, .card p, .card li, .contact-box p, .site-footer p, #about p { color: var(--muted); line-height: 1.8; }
.hero-cta, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 700;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: var(--shadow); }
.btn-secondary { border-color: var(--line); background: var(--surface); }
.btn-whatsapp { background: #25D366; color: white; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); }
.btn:hover { transform: translateY(-1px); }

.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div {
  min-width: 120px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 18px; background: rgba(255,255,255,0.03);
}
.hero-stats strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.hero-stats span { color: var(--muted); font-size: .92rem; }

.hero-card, .terminal-card, .card, .about-box, .contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}
.terminal-card { padding: 0; overflow: hidden; }
.terminal-top { display: flex; gap: 8px; padding: 14px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line); }
.terminal-top span { width: 10px; height: 10px; border-radius: 50%; background: #fda4af; }
.terminal-top span:nth-child(2) { background: #fde68a; }
.terminal-top span:nth-child(3) { background: #86efac; }

pre { margin: 0; padding: 22px; overflow: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dbeafe; }

.section { padding: 72px 0; }
.section-alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: start; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); margin: 0 0 12px; }

.cards-grid { display: grid; gap: 18px; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.card h3 { margin-top: 0; margin-bottom: 12px; font-size: 1.25rem; }
.card ul { margin: 0; padding-inline-start: 20px; }
.highlight { background: linear-gradient(180deg, rgba(225,29,72,0.07), rgba(255,255,255,0.03)); }

.about-box {
  padding: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start;
}
.pill {
  padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(96,165,250,0.09); color: #dbeafe; font-weight: 700;
}
.contact-box {
  padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.site-footer { padding: 28px 0 40px; }
.footer-wrap {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line);
}

/* --- Footer Social Icons --- */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}
.footer-social-icons a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.footer-social-icons a:hover { transform: translateY(-3px); color: white; }
.footer-social-icons a[aria-label="Facebook"]:hover { background: #1877F2; }
.footer-social-icons a[aria-label="Telegram"]:hover { background: #0088cc; }
.footer-social-icons a[aria-label="Instagram"]:hover { background: #E4405F; }
.footer-social-icons a[aria-label="TikTok"]:hover { background: #000; box-shadow: 0 0 0 2px #00f2ea; }
.footer-social-icons a[aria-label="LinkedIn"]:hover { background: #0077b5; }

.footer-links { display: flex; gap: 16px; color: var(--muted); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-socials { display: none; } /* Hide header socials on mobile */
  .menu-toggle { display: inline-flex; }
  .hero-grid, .about-grid, .cards-grid.three, .cards-grid.two, .contact-box, .footer-wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading { text-align: start; margin-inline: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: 42px; }
  .container { width: min(100% - 20px, 1120px); }
  .lang-toggle, .menu-toggle { padding: 9px 12px; }
  .hero-stats { gap: 10px; }
  .hero-stats div { flex: 1 1 calc(50% - 10px); min-width: 130px; }
  .card, .contact-box, pre { padding: 18px; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  animation: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
body[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }
@media (max-width: 640px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 20px; right: 20px; }
  body[dir="rtl"] .whatsapp-float { left: 20px; }
}