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

:root {
  --bg:            #04071a;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:        rgba(148,163,184,0.1);
  --border-hover:  rgba(59,130,246,0.45);
  --accent:        #3b82f6;
  --accent-2:      #22d3ee;
  --accent-3:      #a78bfa;
  --green:         #34d399;
  --orange:        #fb923c;
  --pink:          #f472b6;
  --text:          #f1f5f9;
  --muted:         #64748b;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-full:   50px;
  --transition:    0.25s ease;
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

/* ── BACKGROUND ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.blob-1 {
  width: 800px; height: 800px;
  top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 65%);
  animation: blob-drift 28s ease-in-out infinite;
}
.blob-2 {
  width: 650px; height: 650px;
  top: 25%; right: -200px;
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 65%);
  animation: blob-drift 35s ease-in-out infinite reverse;
}
.blob-3 {
  width: 500px; height: 500px;
  bottom: 5%; left: 25%;
  background: radial-gradient(circle, rgba(34,211,238,0.13) 0%, transparent 65%);
  animation: blob-drift 22s ease-in-out infinite 8s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(40px,-50px) scale(1.06); }
  66%       { transform: translate(-30px,30px) scale(0.96); }
}

/* everything above bg */
.nav, section, header, footer, .stats { position: relative; z-index: 1; }

/* ── NAV ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(4,7,26,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  padding: 0.7rem 5%;
  background: rgba(4,7,26,0.9);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text); padding: 0.25rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.5);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: rgba(59,130,246,0.06);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  box-shadow: 0 4px 22px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(37,211,102,0.5);
  color: #fff;
}

/* ── ICON COLOR VARIANTS ── */
.ic-blue   { background: rgba(59,130,246,0.15); }
.ic-cyan   { background: rgba(34,211,238,0.15); }
.ic-purple { background: rgba(167,139,250,0.15); }
.ic-green  { background: rgba(52,211,153,0.15); }
.ic-orange { background: rgba(251,146,60,0.15); }
.ic-pink   { background: rgba(244,114,182,0.15); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 5% 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  width: fit-content;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.6); }
}

.hero-heading {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 1.4rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.trust-dot { width: 4px; height: 4px; background: var(--border-hover); border-radius: 50%; }

/* ── HERO CARD ── */
.hero-card {
  background: rgba(13,17,48,0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: card-float 7s ease-in-out infinite;
}
@keyframes card-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.hero-card-loc {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.service-list { display: flex; flex-direction: column; gap: 0.6rem; }

.service-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.service-row:hover {
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.25);
}
.row-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.row-label { color: var(--text); font-weight: 500; flex: 1; }
.row-check { color: var(--green); font-size: 0.75rem; font-weight: 700; }

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13,17,48,0.55);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(59,130,246,0.04); }

.stat-val {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suf {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTION SHARED ── */
.section { padding: 7rem 5%; }
.section-alt {
  background: rgba(13,17,48,0.45);
  backdrop-filter: blur(12px);
}
.container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.75px;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 4rem;
  line-height: 1.75;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.875rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(34,211,238,0.03));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 20px;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 30px rgba(59,130,246,0.08);
}
.service-card:hover::after { opacity: 1; }

.service-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.service-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ── WHY KAZIT ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  padding: 1.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.why-card:hover {
  border-color: var(--border-hover);
  background: rgba(59,130,246,0.04);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.why-card.why-cta {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(167,139,250,0.08));
  border-color: rgba(59,130,246,0.25);
}
.why-card.why-cta:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(167,139,250,0.12));
  border-color: rgba(59,130,246,0.45);
}

.why-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}
.why-card .btn {
  font-size: 0.82rem;
  padding: 0.6rem 1.2rem;
  width: fit-content;
}

/* ── CONTACT ── */
.contact-section {
  padding: 7rem 5%;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(167,139,250,0.04) 100%);
  pointer-events: none;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--border-hover);
  background: rgba(59,130,246,0.06);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  color: var(--text);
}

.contact-card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--transition);
}
.contact-card:hover .contact-card-icon { transform: scale(1.1); }

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.contact-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-cta { text-align: center; }
.contact-cta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 2.5rem 5%;
  border-top: 1px solid var(--border);
  background: rgba(4,7,26,0.85);
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.footer-logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer p { font-size: 0.8rem; color: var(--muted); }

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}
.lang-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}

/* ── ARABIC FONT ── */
html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] .hero-heading,
html[lang="ar"] .section-title,
html[lang="ar"] .service-card h3,
html[lang="ar"] .why-card h3,
html[lang="ar"] .contact-card h3 {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ── RTL OVERRIDES ── */
html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-trust {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-card-header {
  flex-direction: row-reverse;
}
html[dir="rtl"] .service-row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .why-card {
  text-align: right;
}
html[dir="rtl"] .contact-card {
  direction: rtl;
}
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-sub,
html[dir="rtl"] .contact-cta {
  text-align: center;
}
html[dir="rtl"] .service-tags {
  justify-content: flex-end;
}
html[dir="rtl"] .lang-switch {
  flex-direction: row-reverse;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 5% 4rem;
  }
  .hero-badge { margin: 0 auto 1.75rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-card { max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 380px; }
  .section { padding: 5rem 5%; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-heading { font-size: 2rem; letter-spacing: -1px; }
  .nav { padding: 1rem 1.25rem; }
  .btn-whatsapp { font-size: 0.9rem; padding: 0.8rem 1.75rem; }
}
