:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0d1421;
  --panel: #101928;
  --panel-2: #132033;
  --line: rgba(255,255,255,.1);
  --text: #edf5ff;
  --muted: #a9b7c8;
  --brand: #28d7c6;
  --brand-2: #4f8cff;
  --accent: #f4c95d;
  --danger: #ff6b6b;
  --shadow: 0 18px 50px rgba(0,0,0,.32);
  --radius: 8px;
  --container: 1160px;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(40,215,198,.15), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(79,140,255,.14), transparent 26rem),
    linear-gradient(180deg, var(--bg), #0a101b 45%, #070b12);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}
body.loaded .loader { opacity: 0; visibility: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(40,215,198,.8); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #070b12; transition: .35s ease;
}
.loader-mark {
  width: 60px; height: 60px; border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite;
}
.topbar {
  border-bottom: 1px solid var(--line); background: rgba(7,11,18,.82);
  backdrop-filter: blur(16px); font-size: .92rem;
}
.topbar-row, .nav-row, .topbar-links, .socials, .actions, .hero-actions, .filter-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.topbar-row { min-height: 42px; justify-content: space-between; }
.topbar a, .topbar button { color: var(--muted); }
.socials a {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-grid; place-items: center; transition: .2s ease;
}
.socials a:hover { color: var(--brand); border-color: rgba(40,215,198,.5); }
.lang-toggle, .icon-btn, .menu-toggle, .filter-btn, .slider-btn, .modal-close {
  border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.04);
  border-radius: var(--radius); min-height: 40px; padding: 8px 12px;
}
.navbar {
  position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line);
  background: rgba(7,11,18,.9); backdrop-filter: blur(18px);
}
.nav-row { min-height: 74px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #061017;
  font-weight: 900;
}
.brand-logo {
  width: 64px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); padding: 10px 11px; border-radius: var(--radius);
  transition: .2s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.menu-toggle { display: none; width: 44px; padding: 0; }
.btn {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); min-height: 46px;
  padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 800; transition: .2s ease; color: var(--text);
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #061017; border-color: transparent; }
.btn-secondary { background: rgba(255,255,255,.05); }
.btn:hover, .filter-btn:hover, .icon-btn:hover { transform: translateY(-2px); border-color: rgba(40,215,198,.45); }
.section { padding: 82px 0; position: relative; }
.section.alt { background: rgba(255,255,255,.025); border-block: 1px solid rgba(255,255,255,.06); }
.hero { min-height: calc(100vh - 116px); display: grid; align-items: center; padding: 74px 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 800; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.25; margin-bottom: 12px; }
h3 { font-size: 1.2rem; line-height: 1.35; }
.lead { color: var(--muted); font-size: 1.13rem; max-width: 760px; }
.hero-panel {
  min-height: 430px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(19,32,51,.9), rgba(13,20,33,.72));
  box-shadow: var(--shadow); overflow: hidden; position: relative; padding: 22px;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .42;
}
.dashboard { position: relative; z-index: 1; display: grid; gap: 16px; }
.dash-top, .dash-card, .code-block, .chart {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  background: rgba(7,11,18,.58); padding: 16px;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dots span { width: 9px; height: 9px; display: inline-block; border-radius: 50%; margin-inline: 2px; background: var(--brand); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.metric { font-size: 1.7rem; font-weight: 900; }
.chart { height: 132px; display: flex; align-items: end; gap: 10px; }
.bar { flex: 1; min-height: 22%; border-radius: 6px 6px 0 0; background: linear-gradient(var(--brand-2), var(--brand)); animation: rise 2.2s ease-in-out infinite alternate; }
.bar:nth-child(2) { height: 70%; animation-delay: .2s; }
.bar:nth-child(3) { height: 44%; animation-delay: .4s; }
.bar:nth-child(4) { height: 86%; animation-delay: .6s; }
.code-block { color: #cfe8ff; direction: ltr; text-align: left; font-family: Consolas, monospace; font-size: .92rem; }
.section-head { margin-bottom: 34px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card, .stat, .timeline-step, .contact-box, .form-panel, .map-placeholder, .testimonial, .privacy-block {
  border: 1px solid rgba(255,255,255,.1); background: rgba(16,25,40,.72);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.card { transition: .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(40,215,198,.38); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(40,215,198,.1); color: var(--brand); font-size: 1.45rem; margin-bottom: 14px; }
.stat strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--brand); }
.stat span, .muted { color: var(--muted); }
.check-list, .footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-inline-start: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 900; }
.timeline { counter-reset: step; grid-template-columns: repeat(3, 1fr); }
.timeline-step { position: relative; }
.timeline-step::before {
  counter-increment: step; content: counter(step); width: 36px; height: 36px; display: grid;
  place-items: center; border-radius: 50%; background: var(--brand); color: #061017; font-weight: 900; margin-bottom: 14px;
}
.filter-row { margin-bottom: 22px; }
.filter-btn.active { background: var(--brand); color: #061017; border-color: transparent; }
.portfolio-img {
  min-height: 170px; border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(40,215,198,.2), rgba(79,140,255,.18));
}
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag { font-size: .82rem; color: var(--brand); border: 1px solid rgba(40,215,198,.28); padding: 3px 8px; border-radius: 999px; }
.cta-band {
  border-block: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(40,215,198,.12), rgba(79,140,255,.12));
  padding: 56px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.testimonial-controls { display: flex; gap: 10px; margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: inherit; color: var(--text); background: transparent; border: 0;
  padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; font-weight: 800;
}
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .25s ease; }
.faq-item.open .faq-answer { max-height: 180px; padding-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  background: rgba(7,11,18,.74); color: var(--text); min-height: 46px; padding: 10px 12px;
}
textarea { min-height: 128px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.consent input { width: 18px; min-height: 18px; margin-top: 6px; }
.form-message { margin-top: 12px; font-weight: 800; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--brand); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list a, .contact-list span { color: var(--muted); }
.map-placeholder { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.page-hero { padding: 72px 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.footer { padding: 54px 0 20px; background: #05080d; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); }
.copyright { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.floating {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 70; display: grid; gap: 10px;
}
.floating a, .floating button {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); background: var(--panel); color: var(--text); box-shadow: var(--shadow);
}
.floating .whatsapp { background: #1fae5b; color: #fff; }
.modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.72);
}
.modal.open { display: flex; }
.modal-dialog { width: min(720px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.modal-close { width: 42px; padding: 0; }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: scaleY(.72); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid, .cards-3, .timeline { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 117px; display: grid; gap: 0; padding: 16px;
    background: rgba(7,11,18,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: .25s ease; z-index: 90;
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px; }
  .menu-toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 640px) {
  .topbar-row { justify-content: center; }
  .section { padding: 58px 0; }
  .hero { padding: 46px 0; min-height: auto; }
  .stats-grid, .cards-3, .cards-2, .timeline, .dash-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 360px; padding: 16px; }
  .cta-inner { align-items: flex-start; }
  .btn { width: 100%; }
  .topbar-links { justify-content: center; }
  .floating { inset-inline-end: 12px; bottom: 12px; }
}
