/* ==========================================================================
   Hyper Code — design system
   Single stylesheet, no framework bloat. Works LTR (English) and
   RTL (Arabic, default) using CSS logical properties.
   ========================================================================== */

:root{
  --bg: #0a0e1a;
  --bg-soft: #10162a;
  --surface: #131a30;
  --surface-2: #1a2240;
  --border: rgba(255,255,255,.08);
  --text: #eef1fa;
  --text-muted: #9aa3c0;
  --brand-1: #7c5cff;
  --brand-2: #35d0ff;
  --brand-3: #ff5ca8;
  --gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --container: 1180px;
}

html[lang="ar"] body{ font-family: "Cairo", "Tahoma", sans-serif; }
html[lang="en"] body{ font-family: "Inter", "Segoe UI", sans-serif; }

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(600px 400px at 100% 10%, rgba(53,208,255,.15), transparent 60%);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ margin:0; padding:0; list-style:none; }

.container{ width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

h1,h2,h3,h4,h5{ margin: 0 0 .6em; font-weight: 800; line-height: 1.3; }

.eyebrow{
  display:inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: .35em 1em;
  border-radius: 999px;
  background: rgba(124,92,255,.12);
  color: #c9bfff;
  border: 1px solid rgba(124,92,255,.3);
  margin-bottom: 1em;
}

.section{ padding: 5.5rem 0; }
.section-sm{ padding: 3rem 0; }
.text-center{ text-align: center; }
.muted{ color: var(--text-muted); }

.lead{ font-size: 1.1rem; color: var(--text-muted); max-width: 640px; }
.mx-auto{ margin-inline: auto; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--gradient);
  color: #0a0e1a;
  box-shadow: 0 10px 30px -10px rgba(124,92,255,.6);
}
.btn-primary:hover{ box-shadow: 0 14px 34px -8px rgba(124,92,255,.75); color:#0a0e1a; }
.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover{ border-color: rgba(255,255,255,.3); color: var(--text); }
.btn-block{ width: 100%; }
.btn-sm{ padding: .55em 1.2em; font-size: .9rem; }

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,26,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.brand{ display:flex; align-items:center; gap:.6em; font-weight: 800; font-size: 1.15rem; }
.brand img{ height: 34px; width: auto; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 1.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--text); }

.nav-actions{ display:flex; align-items:center; gap: .7rem; }

.lang-switch{
  display:flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 700;
}
.lang-switch a{
  padding: .45em .9em;
  color: var(--text-muted);
}
.lang-switch a.active{ background: var(--gradient); color:#0a0e1a; }

.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: .5em .7em;
  cursor:pointer;
}

.mobile-panel{ display:none; }
.mobile-panel.open{
  display:block;
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.4rem;
}
.mobile-panel .nav-links{ flex-direction: column; align-items: flex-start; gap: 1rem; }

@media (max-width: 900px){
  .nav-links, .nav-actions .btn, .nav-actions form{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-actions{ gap:.5rem; }
}

/* ---------- hero ---------- */
.hero{ padding: 5rem 0 4rem; text-align: center; }
.hero h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero .gradient-text{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p{ font-size: 1.1rem; color: var(--text-muted); max-width: 680px; margin-inline:auto; }
.hero-actions{ display:flex; gap: 1rem; justify-content:center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- cards / grid ---------- */
.grid{ display:grid; gap: 1.4rem; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(124,92,255,.4); }

.icon-badge{
  width: 52px; height: 52px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  background: rgba(124,92,255,.14);
  color: #b9a9ff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.section-head{ max-width: 680px; margin: 0 auto 3rem; text-align:center; }

/* ---------- steps / timeline ---------- */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 800px){ .steps{ grid-template-columns: 1fr; } }
.step{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
}
.step::before{
  counter-increment: step;
  content: counter(step);
  display:inline-flex; align-items:center; justify-content:center;
  width: 38px; height:38px;
  border-radius: 50%;
  background: var(--gradient);
  color:#0a0e1a; font-weight:800;
  margin-bottom: 1rem;
}

/* ---------- split section ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items:center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; } }
.split img{ border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list li{
  display:flex; gap:.7em; align-items:flex-start;
  margin-bottom: .7em; color: var(--text-muted);
}
.check-list li i{ color: var(--brand-2); margin-top: .25em; }

/* ---------- accordion (native, no bootstrap JS needed) ---------- */
.faq-item{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  overflow: hidden;
  background: var(--surface);
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-2);
  flex: none;
}
.faq-item[open] summary::after{ content: "−"; }
.faq-item .faq-body{ padding: 0 1.4rem 1.2rem; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta{
  background: var(--gradient);
  border-radius: 24px;
  padding: 3rem;
  text-align:center;
  color:#0a0e1a;
}
.cta h2{ color:#0a0e1a; }
.cta p{ color: rgba(10,14,26,.75); max-width:640px; margin-inline:auto; }
.cta .btn-outline{ border-color: rgba(10,14,26,.35); color:#0a0e1a; }

/* ---------- forms ---------- */
.form-control{
  width:100%;
  padding: .85em 1.1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
}
.form-control:focus{ outline: none; border-color: var(--brand-1); }
textarea.form-control{ min-height: 130px; resize: vertical; }
.form-control::placeholder{ color: var(--text-muted); }
label{ display:block; font-weight:600; margin-bottom:.4em; font-size:.92rem; color: var(--text-muted); }

.auth-card{
  max-width: 440px;
  margin: 3rem auto;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.errorlist{ color: #ff8b9a; font-size: .85rem; margin: 0 0 .4rem; padding: 0; }
.social-buttons .btn{ width:100%; margin-bottom:.7rem; }

.alert{
  padding: .9em 1.2em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(53,208,255,.35);
  background: rgba(53,208,255,.1);
  margin-bottom: 1rem;
}

/* ---------- testimonials ---------- */
.testimonial-card{ text-align:center; }
.testimonial-avatar{
  width: 84px; height:84px; border-radius:50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
}
.stars{ color: #ffc95c; margin-bottom: .6rem; font-size: .95rem; }

/* ---------- portfolio ---------- */
.portfolio-item{ overflow: hidden; }
.portfolio-item img{ border-radius: var(--radius-sm); }
.portfolio-carousel{ position: relative; }
.portfolio-carousel img{ width:100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-top{ display:flex; flex-wrap:wrap; gap: 2.5rem; justify-content: space-between; align-items:flex-start; }
.footer-brand p{ color: var(--text-muted); max-width: 340px; }
.newsletter{ display:flex; gap:.6rem; max-width: 380px; }
.newsletter input{ margin-bottom:0; }
.footer-bottom{
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  color: var(--text-muted); font-size:.9rem;
}

.whatsapp-fab{
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 60;
  width: 56px; height:56px;
  border-radius: 50%;
  background: #25d366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.5);
}
.whatsapp-fab img{ width: 28px; height:28px; }

/* utility */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.badge-soft{
  display:inline-block; padding:.3em .8em; border-radius:999px;
  background: rgba(255,255,255,.06); border:1px solid var(--border);
  font-size:.8rem; color: var(--text-muted);
}
