:root {
  --bg: #04080c;
  --bg-alt: #081018;
  --surface: #0c1822;
  --surface-2: #112230;
  --text: #f0f7fa;
  --muted: #8aa8b5;
  --accent: #5ec4c9;
  --accent-2: #7ee8ed;
  --accent-dim: #358f96;
  --accent-glow: rgba(94, 196, 201, 0.4);
  --border: rgba(94, 196, 201, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-en: "Outfit", system-ui, sans-serif;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

html[lang="en"] {
  direction: ltr;
}

html[lang="en"] .hero-name-ar {
  display: none;
}

html[lang="ar"] .hero-name-en {
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-top: 0.65rem;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  inset-inline-start: -80px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.bg-glow-2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  inset-inline-end: -100px;
  background: radial-gradient(circle, rgba(53, 143, 150, 0.35), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 12, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: var(--font-en);
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  color: #032428;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.logo-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
  border-radius: 2px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: var(--font-en);
}

.lang-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(4, 8, 12, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a::after {
    display: none;
  }

  .lang-toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
}

.hero {
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(12, 24, 34, 0.8);
  margin-bottom: 1.25rem;
}

.hero-name {
  margin: 0 0 1rem;
}

.hero-name-ar {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name-en {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-en);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  margin: 0 auto 1.75rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero-pills li {
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #032428;
  box-shadow: 0 14px 36px var(--accent-glow);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #032428;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(12, 24, 34, 0.5);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
  font-family: var(--font-en);
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(94, 196, 201, 0.35);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.card-num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dim);
}

.service-card h3 {
  margin: 0.65rem 0 0.4rem;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.consult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.consult-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.consult-card-accent {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: rgba(94, 196, 201, 0.25);
  box-shadow: var(--shadow);
}

.consult-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent-2);
}

.consult-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.consult-card li {
  position: relative;
  padding-inline-start: 1.25rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.consult-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(94, 196, 201, 0.3);
}

.work-visual {
  height: 140px;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

.work-visual-a {
  background: linear-gradient(135deg, #1a4a52, #5ec4c9);
}

.work-visual-b {
  background: linear-gradient(135deg, #1e3a5f, #4a90d9);
}

.work-visual-c {
  background: linear-gradient(135deg, #2d1f4e, #8b6cf0);
}

.work-visual-d {
  background: linear-gradient(135deg, #1a3329, #3ecf8e);
}

.work-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.work-tags span {
  font-size: 0.68rem;
  font-family: var(--font-en);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.work-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.work-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.work-link {
  font-weight: 700;
  font-size: 0.9rem;
}

.skills-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 800px;
}

.skills-list li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-en);
}

.section-contact {
  padding-bottom: 5rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

@media (max-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.contact-meta span {
  min-width: 4rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--accent-dim);
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-name {
  margin: 0;
  font-weight: 700;
}

.footer-sub {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-domain {
  font-size: 0.85rem;
  font-family: var(--font-en);
}
