:root {
  --bg: #060708;
  --bg-soft: #101317;
  --panel: #151a20;
  --panel-2: #1d232b;
  --text: #f7f8fb;
  --muted: #b9c1cc;
  --gold: #d9b957;
  --gold-2: #f0cd6b;
  --blue: #a9d8ff;
  --blue-2: #4aa3ff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  font-family: "Tahoma", "Arial", sans-serif;
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar {
  background: #000;
  border-bottom: 1px solid rgba(217, 185, 87, 0.24);
  color: var(--muted);
  font-size: 14px;
}

.topbar .container,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar .container {
  min-height: 42px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-links a,
.contact-line[href^="tel"],
.contact-line[href^="mailto"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 8, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header .container {
  min-height: 82px;
}

.brand img {
  width: 188px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--gold);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.dropdown-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: #e8edf4;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a.is-active,
.dropdown:hover .dropdown-label {
  color: #0a0a0a;
  background: var(--gold);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold);
  color: #080808;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(169, 216, 255, 0.38);
}

.btn.secondary:hover {
  border-color: var(--blue);
  background: rgba(169, 216, 255, 0.08);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 7, 8, 0.18), rgba(6, 7, 8, 0.86) 56%, rgba(6, 7, 8, 0.96)),
    url("../images/hero-digital-solutions.png") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, var(--bg), transparent);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 72px 0 110px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.35;
}

h1 {
  font-size: clamp(34px, 6vw, 68px);
}

h2 {
  font-size: clamp(26px, 3.5vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero p {
  font-size: clamp(17px, 2vw, 22px);
  color: #d9e2ec;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

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

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 24px;
}

.service-card img,
.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3,
.portfolio-card h3 {
  color: var(--text);
}

.service-card .read-more,
.portfolio-card .read-more {
  color: var(--gold);
  font-weight: 800;
}

.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.feature strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dce4ee;
}

.list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.page-hero {
  padding: 86px 0 58px;
  background:
    linear-gradient(90deg, rgba(6, 7, 8, 0.18), rgba(6, 7, 8, 0.88)),
    url("../images/hero-digital-solutions.png") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 900px;
}

.cta {
  padding: 58px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 185, 87, 0.18), rgba(169, 216, 255, 0.1)),
    var(--panel);
  border: 1px solid rgba(217, 185, 87, 0.28);
}

.contact-card {
  padding: 26px;
}

.contact-line {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0f13;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  background: #030405;
  border-top: 1px solid var(--line);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8893a2;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    inset: 82px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #07090b;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .dropdown-label {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 12px 8px;
  }

  .grid.three,
  .grid.four,
  .split,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    min-height: auto;
    background-position: 37% center;
  }

  .hero-content {
    padding: 64px 0 92px;
  }

  .section {
    padding: 62px 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 28px;
  }

  .copyright {
    flex-direction: column;
  }
}
