/* RESET & VARIABLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0b3a7d;
  --primary-light: #1d4ed8;
  --primary-soft: #e0f2fe;
  --accent: #38bdf8;
  --bg: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: #0b1120;
  --radius-lg: 1rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.45);
}

/* AR/EN fonts */
html[lang="ar"] body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html[lang="en"] body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: radial-gradient(circle at top right, #1e293b 0, #020617 55%);
  color: var(--text-main);
  line-height: 1.7;
}

/* language show/hide */
.lang-en,
.lang-ar {
  display: inline;
}

body[data-lang="ar"] .lang-en {
  display: none;
}

body[data-lang="en"] .lang-ar {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* TOP BAR */
.top-bar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.lang-toggle button {
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.1rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.lang-toggle button.active {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: #0b1120;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

/* HEADER */
.site-header {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.05rem;
  margin-bottom: 0.12rem;
}

.logo-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.main-nav a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #e5e7eb;
  transition: background 0.15s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  position: relative;
  padding: 2.8rem 0 2.6rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset-inline-start: -10%;
  inset-block-start: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle at top left, #1d4ed8, transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.hero-blob {
  position: absolute;
  inset-inline-end: -5%;
  inset-block-end: -10%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, #0ea5e9, transparent 60%);
  opacity: 0.3;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

.hero-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  filter: brightness(0.97);
  transform: translateY(-1px) scale(1.01);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* Hero pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Hero right side */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.device-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.1rem;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.device-main {
  position: relative;
  overflow: hidden;
}

.device-main::after {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  inset-block-start: -30px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
}

.device-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 1;
}

.device-info {
  position: relative;
  z-index: 1;
}

.device-title {
  font-size: 0.96rem;
}

.device-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.device-row {
  display: flex;
  gap: 0.8rem;
}

.device-card.small {
  flex: 1;
}

.hero-badge {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SECTIONS */
.section {
  padding: 2.4rem 0;
}

.section-alt {
  background: #020617;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 64, 175, 0.8);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.card h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* BRANDS */
.brands-section {
  background: radial-gradient(circle at center, #0b1120 0, #020617 65%);
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.brand-pill {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.85rem;
  color: #e5e7eb;
}




/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.45rem;
}

.phone {
  unicode-bidi: bidi-override;
  direction: ltr;
  display: inline-block;
  font-family: "Poppins", "Cairo", system-ui, sans-serif;
}

/* FORM */
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.9);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 0.85rem;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(55, 65, 81, 1);
  font: inherit;
  background: #020617;
  color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* FOOTER */
.site-footer {
  background: #020617;
  border-top: 1px solid rgba(30, 64, 175, 0.9);
  color: var(--text-muted);
  padding: 1.2rem 0 1.5rem;
  margin-top: 1.4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.85rem;
  text-align: center;
}

.footer-email {
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}
