/* ==========================================================================
   Maroun Helou — Digital Solutions Architect
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg2: #101218;
  --card: rgba(255,255,255,.055);
  --text: #f5f7fa;
  --muted: #9ca3af;
  --accent: #7c5cff;
  --accent2: #00d4ff;
  --border: rgba(255,255,255,.1);
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1150px, 90%); margin: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 30%, transparent 85%);
}
header, main, footer { position: relative; z-index: 1; }

/* NAVIGATION */

header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8,9,12,.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.nav-button) {
  color: #c7cad1;
  font-size: 14px;
  font-weight: 500;
  transition: color .3s var(--ease);
}
.nav-links a:not(.nav-button):hover { color: white; }
.nav-links a.is-active { color: white; }
.nav-links a[href="/ar/"] {font-family: "Tajawal", Tahoma, Arial, sans-serif;}

.nav-button {
  padding: 11px 20px;
  border-radius: 30px;
  background: white;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  transition: transform .25s var(--ease);
  display: inline-block;
}
.nav-button:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(124,92,255,.25), transparent 65%);
  top: 5%; right: -150px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,.12), transparent 65%);
  bottom: -200px; left: -150px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 850px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b7aaff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6cff9a;
  box-shadow: 0 0 15px #6cff9a;
  flex-shrink: 0;
}

h1 {
  font-size: clamp(52px, 8vw, 105px);
  line-height: .95;
  letter-spacing: -4px;
  margin-bottom: 30px;
}
h1 span {
  background: linear-gradient(90deg, #fff, #aaa8ff, #65dcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 40px;
}

.buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn {
  padding: 15px 25px;
  border-radius: 35px;
  font-weight: 700;
  transition: transform .25s var(--ease), background .25s var(--ease);
  display: inline-block;
}
.btn-primary { background: white; color: #0b0b0e; }
.btn-primary:hover { transform: translateY(-3px); }
.btn-outline {
  border: 1px solid var(--border);
  color: white;
  background: rgba(255,255,255,.03);
}
.btn-outline:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* STATS */

.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat dt {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.stat dd strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
}

/* SECTIONS */

section { padding: 120px 0; }

.section-label {
  color: var(--accent2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 15px;
}
.section-title {
  font-size: clamp(38px, 5vw, 65px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 25px;
}
.section-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 60px;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text { color: var(--muted); font-size: 17px; }
.about-text p + p { margin-top: 20px; }
.about-text strong { color: var(--text); font-weight: 600; }

.quote-card {
  padding: 50px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 25px;
  font-size: 26px;
  line-height: 1.3;
  font-style: normal;
}
.quote-card span {
  display: block;
  color: var(--accent2);
  margin-top: 25px;
  font-size: 14px;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.service:hover { transform: translateY(-7px); border-color: rgba(124,92,255,.5); }
.service-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 30px;
}
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15px; }

/* TECHNOLOGY */

.tech { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #d8dbe1;
  font-size: 14px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.tag:hover { border-color: var(--accent); color: white; transform: translateY(-2px); }

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 22px 26px;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent2);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
  line-height: 1.6;
}
.faq-item p a { color: var(--accent2); text-decoration: underline; }

/* EXPERTISE */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.expertise {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.expertise h3 { margin-bottom: 12px; }
.expertise p { color: var(--muted); font-size: 14px; }

/* CTA */

.cta {
  text-align: center;
  padding: 130px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124,92,255,.2), transparent 55%),
    var(--bg2);
}
.cta h2 { font-size: clamp(42px, 6vw, 75px); letter-spacing: -3px; margin-bottom: 20px; }
.cta p { color: var(--muted); margin-bottom: 35px; }

/* FOOTER */

footer { padding: 50px 0; border-top: 1px solid var(--border); }
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-text { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* MOBILE */

@media (max-width: 800px) {

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #0a0a10;
    border-bottom: 1px solid var(--border);
    padding: 16px 6% 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links-cta { padding-bottom: 0 !important; }

  .nav-toggle { display: flex; padding: 12px; margin: -12px; }

  .hero { min-height: 90vh; }
  h1 { letter-spacing: -2px; }
  .hero-text { font-size: 17px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; }

  .expertise-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 80px 0; }

  .cta { padding: 70px 24px; }

  .faq-item { padding: 18px 20px; }
  .faq-item summary { font-size: 16px; }

  .footer-content { flex-direction: column; align-items: flex-start; }
  .footer-content .footer-text:last-child { margin-top: 0; }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat dd strong { font-size: 32px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 30px; font-size: 22px; }
  .buttons { flex-direction: column; align-items: stretch; }
  .buttons .btn { text-align: center; }
}
