@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap");

@font-face {
  font-family: "Thamanyah";
  src: url("assets/fonts/thmanyahsans-Light.otf") format("opentype");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "Thamanyah";
  src: url("assets/fonts/thmanyahsans-Regular.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Thamanyah";
  src: url("assets/fonts/thmanyahsans-Medium.otf") format("opentype");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "Thamanyah";
  src: url("assets/fonts/thmanyahsans-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Thamanyah";
  src: url("assets/fonts/thmanyahsans-Black.otf") format("opentype");
  font-display: swap;
  font-weight: 900;
}

:root {
  --blue: #5a7da6;
  --blue-light: #9cb9c8;
  --blue-deep: #315a80;
  --navy: #0e1a26;
  --navy-deep: #071018;
  --slate: #2a333c;
  --steel: #a7b0ba;
  --fog: #f2f4f7;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text-muted: rgba(242, 244, 247, 0.72);
  --page-text: var(--fog);
  --body-bg:
    radial-gradient(circle at 50% 8%, rgba(90, 125, 166, 0.18), transparent 31rem),
    linear-gradient(180deg, var(--navy) 0%, #050b12 100%);
  --header-bg: rgba(7, 16, 24, 0.76);
  --hero-bg:
    radial-gradient(circle at 50% 20%, rgba(156, 185, 200, 0.12), transparent 28rem),
    linear-gradient(180deg, #071018 0%, #0e1a26 47%, #04090f 100%);
  --hero-fade: linear-gradient(180deg, transparent, rgba(4, 9, 15, 0.95));
  --subtle-surface: rgba(255, 255, 255, 0.035);
  --subtle-surface-strong: rgba(255, 255, 255, 0.065);
  --logo-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(14, 26, 38, 0.72);
  --logo-shadow: 0 24px 90px rgba(7, 16, 24, 0.48);
  --section-services-bg:
    radial-gradient(circle at 86% 8%, rgba(90, 125, 166, 0.12), transparent 24rem),
    linear-gradient(180deg, #04090f 0%, #09131d 100%);
  --section-work-bg:
    radial-gradient(circle at 18% 18%, rgba(156, 185, 200, 0.1), transparent 22rem),
    #071018;
  --section-contact-bg: linear-gradient(180deg, #071018 0%, #04090f 100%);
  --card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 16, 24, 0.9);
  --contact-bg:
    linear-gradient(135deg, rgba(90, 125, 166, 0.34), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045)),
    rgba(14, 26, 38, 0.84);
  --primary-button-bg: var(--white);
  --primary-button-text: var(--navy);
  --primary-button-hover: #dfeaf1;
  --secondary-button-bg: rgba(255, 255, 255, 0.025);
  --secondary-button-hover: rgba(255, 255, 255, 0.065);
  --marquee-text: rgba(255, 255, 255, 0.045);
  --grid-line: rgba(255, 255, 255, 0.045);
  --header-height: 76px;
  --font-english: "Satoshi", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-arabic: "Thamanyah", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

body[data-theme="light"] {
  --line: rgba(42, 51, 60, 0.18);
  --line-soft: rgba(42, 51, 60, 0.1);
  --text-muted: color-mix(in srgb, var(--slate) 72%, transparent);
  --page-text: var(--slate);
  --body-bg:
    radial-gradient(circle at 50% 5%, rgba(90, 125, 166, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--white) 0%, var(--fog) 100%);
  --header-bg: rgba(255, 255, 255, 0.84);
  --hero-bg:
    radial-gradient(circle at 50% 18%, rgba(90, 125, 166, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--white) 0%, var(--fog) 58%, var(--white) 100%);
  --hero-fade: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96));
  --subtle-surface: rgba(255, 255, 255, 0.74);
  --subtle-surface-strong: rgba(242, 244, 247, 0.96);
  --logo-bg:
    linear-gradient(135deg, rgba(156, 185, 200, 0.22), rgba(255, 255, 255, 0.86)),
    var(--white);
  --logo-shadow: 0 22px 68px rgba(14, 26, 38, 0.12);
  --section-services-bg:
    radial-gradient(circle at 86% 8%, rgba(90, 125, 166, 0.09), transparent 24rem),
    linear-gradient(180deg, var(--white) 0%, var(--fog) 100%);
  --section-work-bg:
    radial-gradient(circle at 18% 18%, rgba(156, 185, 200, 0.16), transparent 22rem),
    var(--white);
  --section-contact-bg: linear-gradient(180deg, var(--white) 0%, var(--fog) 100%);
  --card-bg:
    linear-gradient(180deg, var(--white), var(--fog));
  /* Previous panel gradient:
    linear-gradient(135deg, rgba(90, 125, 166, 0.2), transparent 48%),
    var(--navy)
  */
  --contact-bg:
    linear-gradient(90deg, rgba(5, 11, 18, 0.9), rgba(5, 11, 18, 0.62)),
    linear-gradient(180deg, rgba(7, 16, 24, 0.12), rgba(4, 9, 15, 0.72)),
    url("assets/images/dark-water-cta-web.webp");
  --primary-button-bg: var(--navy);
  --primary-button-text: var(--white);
  --primary-button-hover: var(--slate);
  --secondary-button-bg: var(--white);
  --secondary-button-hover: var(--fog);
  --marquee-text: rgba(14, 26, 38, 0.045);
  --grid-line: rgba(42, 51, 60, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--page-text);
  font-family: var(--font-english);
}

body[data-lang="ar"] {
  direction: rtl;
  font-family: var(--font-arabic);
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(1.1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 0.78rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(156, 185, 200, 0.18);
  border-radius: 0.9rem;
  background: var(--subtle-surface);
}

.brand-mark img {
  display: block;
  width: 1.2rem;
  height: auto;
}

.brand-name {
  color: var(--page-text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  gap: clamp(1.1rem, 3vw, 2.65rem);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a,
.header-cta,
.lang-toggle {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  color: var(--page-text);
}

.header-actions {
  justify-self: end;
  gap: 0.72rem;
}

.theme-toggle,
.lang-toggle,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
}

.theme-toggle {
  position: relative;
  width: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--subtle-surface);
  color: var(--page-text);
  cursor: pointer;
}

.theme-icon {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.65) rotate(-16deg);
}

body[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.65) rotate(16deg);
}

body[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.lang-toggle {
  min-width: 5.1rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: var(--subtle-surface);
  color: var(--text-muted);
  cursor: pointer;
}

.lang-toggle.is-arabic-label {
  font-family: var(--font-arabic);
  font-weight: 700;
}

.header-cta {
  padding: 0 1.12rem;
  background: var(--primary-button-bg);
  color: var(--primary-button-text);
}

.theme-toggle:hover,
.lang-toggle:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: rgba(156, 185, 200, 0.46);
  color: var(--page-text);
}

body[data-theme="light"] .brand-mark {
  color: var(--blue);
}

body[data-theme="light"] .hero-logo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(14, 26, 38, 0.92);
  border-color: rgba(156, 185, 200, 0.24);
  box-shadow: 0 24px 90px rgba(7, 16, 24, 0.2);
}

body[data-theme="light"] .section-kicker,
body[data-theme="light"] .service-number {
  color: var(--blue);
}

body[data-theme="light"] .about-copy strong,
body[data-theme="light"] .about-stat strong {
  color: var(--blue);
}

body[data-theme="light"] .contact-panel .section-kicker {
  color: var(--blue-light);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 5rem) 1.25rem 8.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 19%, transparent 77%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background: var(--hero-bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 18rem;
  background: var(--hero-fade);
}

.hero-glow {
  position: absolute;
  z-index: -3;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
}

.hero-glow-one {
  top: 12%;
  right: 14%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(90, 125, 166, 0.18), transparent 64%);
}

.hero-glow-two {
  bottom: 7%;
  left: 6%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(156, 185, 200, 0.11), transparent 67%);
}

.hero-inner {
  width: min(100%, 940px);
  text-align: center;
}

.hero-logo {
  display: grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  margin: 0 auto 1.15rem;
  border: 1px solid rgba(156, 185, 200, 0.24);
  border-radius: 1.8rem;
  background: var(--logo-bg);
  color: var(--blue-light);
  box-shadow: var(--logo-shadow);
}

.hero-logo img {
  display: block;
  width: 2.7rem;
  height: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.88rem;
  border: 1px solid rgba(167, 176, 186, 0.16);
  border-radius: 999px;
  background: var(--subtle-surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 560;
}

.badge-dot {
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0.3rem rgba(34, 197, 94, 0.12);
}

h1 {
  max-width: 890px;
  margin: 1.45rem auto 0;
  color: var(--page-text);
  font-size: clamp(2.7rem, 7.1vw, 6.15rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-title-strong {
  font-weight: 900;
}

body[data-theme="light"] .hero-title-strong {
  color: var(--blue);
}

body[data-lang="ar"] h1 {
  line-height: 1.34;
}

.hero-copy {
  max-width: 730px;
  margin: 1.65rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.35rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.55rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary-button-bg);
  color: var(--primary-button-text);
}

.button-primary:hover {
  background: var(--primary-button-hover);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--secondary-button-bg);
  color: var(--page-text);
}

.button-secondary:hover {
  border-color: rgba(156, 185, 200, 0.5);
  background: var(--secondary-button-hover);
}

.hero-marquee {
  position: absolute;
  bottom: 2.25rem;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: var(--marquee-text);
  font-size: clamp(3.5rem, 9vw, 8.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  direction: ltr;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  align-items: center;
  direction: ltr;
  gap: 4rem;
  animation: marquee 46s linear infinite;
}

body[data-lang="ar"] .hero-marquee {
  bottom: 0.35rem;
  font-family: var(--font-arabic);
  line-height: 1.34;
}

body[data-lang="ar"] .hero-marquee span {
  padding-bottom: 0.12em;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 8.5rem) 1.25rem;
  overflow: hidden;
}

.section-inner {
  width: min(100%, 1120px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.section-heading {
  min-width: 0;
  max-width: 760px;
}

.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-lang="ar"] .section-kicker {
  letter-spacing: 0;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
  min-width: 0;
}

h2 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
}

body[data-lang="ar"] h2 {
  line-height: 1.28;
}

.section-copy {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.85;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.4rem, 5vw, 4.4rem);
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

body[data-theme="light"] .services-grid,
body[data-theme="light"] .service-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .contact-panel {
  box-shadow: 0 24px 70px rgba(14, 26, 38, 0.08);
}

.service-card {
  min-height: 18rem;
  padding: clamp(1.45rem, 3vw, 2.25rem);
  background: var(--card-bg);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(156, 185, 200, 0.2);
  border-radius: 999px;
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 3.8rem 0 0;
  color: var(--page-text);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.service-card p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.section-about {
  padding-bottom: clamp(5.5rem, 10vw, 8.5rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(90, 125, 166, 0.12), transparent 24rem),
    linear-gradient(180deg, #071018 0%, #04090f 100%);
}

body[data-theme="light"] .section-about {
  background:
    radial-gradient(circle at 82% 18%, rgba(90, 125, 166, 0.11), transparent 24rem),
    linear-gradient(180deg, var(--fog) 0%, var(--white) 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: start;
  min-width: 0;
}

.about-content {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(2.5rem, 7vw, 5.5rem);
  width: 100%;
  min-width: 0;
  padding-top: 0.5rem;
}

.about-content > .section-kicker,
.about-content > h2,
.about-copy,
.about-stats {
  grid-column: 1;
}

.about-copy {
  display: grid;
  gap: 1.05rem;
  width: 100%;
  min-width: 0;
  max-width: 760px;
  margin-top: 1.55rem;
}

.about-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.95;
}

.about-copy strong {
  color: var(--page-text);
  font-weight: 900;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about-stat {
  min-width: 0;
  min-height: 6.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  background: var(--subtle-surface);
  text-align: center;
}

body[data-theme="light"] .about-stat,
body[data-theme="light"] .about-portrait {
  box-shadow: 0 24px 70px rgba(14, 26, 38, 0.08);
}

.about-stat strong {
  display: block;
  color: var(--page-text);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.about-stat span {
  display: block;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.about-portrait {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  aspect-ratio: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(156, 185, 200, 0.2);
  border-radius: 1.4rem;
  background: var(--subtle-surface);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-portrait figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.5rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(7, 16, 24, 0.74);
  color: rgba(242, 244, 247, 0.88);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .about-portrait figcaption {
  background: rgba(14, 26, 38, 0.82);
  color: var(--white);
}

.about-marquee {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100vw;
  min-width: 0;
  max-width: 100vw;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.065);
  direction: ltr;
  pointer-events: none;
}

body[data-theme="light"] .about-marquee {
  color: rgba(14, 26, 38, 0.07);
}

.about-marquee-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  direction: ltr;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  white-space: nowrap;
  animation: aboutMarqueeLeft 46s linear infinite;
}

.about-marquee-en {
  animation-name: aboutMarqueeLeft;
}

.about-marquee-track span {
  font-family: var(--font-english);
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  font-weight: 300;
  line-height: 1.08;
}

.about-marquee-ar span {
  font-family: var(--font-arabic);
  font-weight: 900;
  line-height: 1.34;
  padding-bottom: 0.14em;
}

.about-marquee-ar {
  direction: rtl;
  animation-name: aboutMarqueeRight;
}

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

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.work-heading .section-copy {
  margin-top: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.6rem, 5vw, 4.5rem);
}

.project-card {
  display: flex;
  min-height: 33rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--card-bg);
  flex-direction: column;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  border-color: rgba(156, 185, 200, 0.38);
  transform: translateY(-4px);
}

.project-preview {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 78% 18%, rgba(156, 185, 200, 0.18), transparent 28%),
    linear-gradient(135deg, #071018 0%, #0e1a26 100%);
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15.5rem;
  object-fit: cover;
  transition: transform 320ms ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.035);
}

.project-card-beauty .project-preview {
  background:
    radial-gradient(circle at 80% 12%, rgba(214, 190, 158, 0.22), transparent 25%),
    radial-gradient(circle at 16% 84%, rgba(90, 125, 166, 0.24), transparent 30%),
    linear-gradient(135deg, #171210 0%, #071018 100%);
}

.project-card-food .project-preview {
  background:
    radial-gradient(circle at 72% 20%, rgba(184, 137, 77, 0.24), transparent 30%),
    linear-gradient(135deg, #1a120b 0%, #071018 72%);
}

.project-card-care .project-preview {
  background:
    radial-gradient(circle at 76% 18%, rgba(156, 185, 200, 0.24), transparent 28%),
    linear-gradient(135deg, #f2f4f7 0%, #dbe4ec 33%, #071018 34%, #050b12 100%);
}

.preview-browser,
.preview-panel,
.preview-phone,
.preview-cluster,
.preview-document {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.preview-browser {
  top: 2.2rem;
  left: 12%;
  width: 74%;
  height: 8.8rem;
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1.6rem, transparent 1.6rem),
    rgba(7, 16, 24, 0.8);
}

.preview-browser::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0.9rem;
  width: 2.4rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(156, 185, 200, 0.46);
}

.preview-panel-large {
  right: 14%;
  bottom: 2.1rem;
  width: 42%;
  height: 4.2rem;
  border-radius: 0.65rem;
}

.preview-panel-small {
  left: 17%;
  bottom: 2.6rem;
  width: 25%;
  height: 3.1rem;
  border-radius: 999px;
}

.preview-phone {
  right: 12%;
  bottom: 1.8rem;
  width: 3.8rem;
  height: 7rem;
  border-radius: 0.8rem;
  transform: rotate(-8deg);
}

.preview-cluster {
  right: 9%;
  bottom: 2rem;
  width: 8.5rem;
  height: 3.2rem;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, #b8894d 0 1.25rem, transparent 1.3rem),
    radial-gradient(circle at 50% 50%, #9b6b37 0 1.25rem, transparent 1.3rem),
    radial-gradient(circle at 82% 50%, #c69a61 0 1.25rem, transparent 1.3rem);
}

.preview-document {
  right: 11%;
  bottom: 2rem;
  width: 7.8rem;
  height: 5.8rem;
  border-color: rgba(216, 222, 230, 0.8);
  border-radius: 0.7rem;
  background:
    linear-gradient(#d8dee6 0 0.42rem, transparent 0.42rem 1.35rem, #d8dee6 1.35rem 1.77rem, transparent 1.77rem),
    #ffffff;
  transform: rotate(5deg);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
}

.project-market {
  margin: 0 0 0.9rem;
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

body[data-lang="ar"] .project-market {
  text-transform: none;
}

body[data-theme="light"] .project-market {
  color: var(--blue);
}

.project-card h3 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.project-card p:not(.project-market) {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.project-tags span {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--subtle-surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.6rem;
  color: var(--page-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-link::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  margin-inline-start: 0.75rem;
  background: var(--blue-light);
  transition: width 180ms ease;
}

.project-card:hover .project-link::after {
  width: 2.6rem;
}


.section-contact {
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--section-contact-bg);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(156, 185, 200, 0.18);
  background: var(--contact-bg);
  background-position: center;
  background-size: cover;
}

.contact-button {
  white-space: nowrap;
}

body:not([data-theme="light"]) .contact-panel h2 {
  color: var(--white);
}

body:not([data-theme="light"]) .contact-panel .section-copy {
  color: rgba(242, 244, 247, 0.82);
}

body[data-theme="light"] .contact-panel {
  color: var(--white);
}

body[data-theme="light"] .contact-panel h2 {
  color: var(--white);
}

body[data-theme="light"] .contact-panel .section-copy {
  color: rgba(242, 244, 247, 0.72);
}

body[data-theme="light"] .contact-panel .button-primary {
  background: var(--white);
  color: var(--navy);
}

body[data-theme="light"] .contact-panel .button-primary:hover {
  background: var(--fog);
}

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 15, 0.78);
  backdrop-filter: blur(18px);
}

.project-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(100%, 1040px);
  max-height: min(86svh, 820px);
  overflow: auto;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid rgba(156, 185, 200, 0.2);
  background:
    radial-gradient(circle at 82% 0%, rgba(90, 125, 166, 0.16), transparent 34%),
    #08131d;
  color: var(--white);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.42);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(167, 176, 186, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.project-modal-close span {
  font-size: 1.55rem;
  line-height: 1;
}

body[data-lang="ar"] .project-modal-close {
  right: auto;
  left: 1rem;
}

.project-modal-intro {
  padding-top: 1rem;
}

.project-modal-intro h2 {
  max-width: 360px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.project-modal-intro > p {
  max-width: 370px;
  margin: 1rem 0 0;
  color: rgba(242, 244, 247, 0.78);
  font-size: 0.98rem;
  line-height: 1.8;
}

.project-next-steps {
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

.project-next-steps article {
  padding: 1rem;
  border: 1px solid rgba(167, 176, 186, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.project-next-steps span {
  display: block;
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 900;
}

.project-next-steps strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--white);
  font-size: 0.95rem;
}

.project-next-steps p {
  margin: 0.45rem 0 0;
  color: rgba(242, 244, 247, 0.68);
  font-size: 0.82rem;
  line-height: 1.55;
}

.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.form-honeypot {
  display: none;
}

.project-form label,
.project-need-field {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  border: 0;
  padding: 0;
}

.project-form label span,
.project-need-field legend {
  color: rgba(242, 244, 247, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-form input,
.project-form textarea {
  width: 100%;
  border: 1px solid rgba(167, 176, 186, 0.22);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.project-form input {
  min-height: 2.8rem;
  padding: 0 0.9rem;
}

.project-form textarea {
  resize: vertical;
  min-height: 6rem;
  padding: 0.85rem 0.9rem;
}

.project-form input::placeholder,
.project-form textarea::placeholder {
  color: rgba(242, 244, 247, 0.48);
}

.project-form input:focus,
.project-form textarea:focus {
  border-color: rgba(156, 185, 200, 0.68);
  background: rgba(255, 255, 255, 0.055);
}

.form-wide,
.project-need-field,
.project-submit,
.project-form-note,
.project-form-status {
  grid-column: 1 / -1;
}

.project-need-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  cursor: pointer;
}

.project-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.project-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(167, 176, 186, 0.22);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(242, 244, 247, 0.78);
  font-size: 0.78rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.project-chip input:checked + span {
  border-color: rgba(90, 125, 166, 0.72);
  background: rgba(90, 125, 166, 0.22);
  color: var(--white);
}

.project-submit {
  justify-self: start;
  margin-top: 0.2rem;
}

.project-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.project-form-note,
.project-form-status {
  margin: 0;
  color: rgba(242, 244, 247, 0.68);
  font-size: 0.78rem;
  line-height: 1.6;
}

.project-form-status {
  display: none;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(90, 125, 166, 0.35);
  background: rgba(90, 125, 166, 0.14);
  color: var(--white);
}

.project-form-status.is-visible {
  display: block;
}

.project-form-status.is-success {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.12);
}

.project-form-status.is-error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.14);
}

[data-reveal] {
  animation: reveal 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes aboutMarqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes aboutMarqueeRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 3.4rem);
  }

  .hero-logo {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1.45rem;
  }

  .services-grid,
  .about-layout,
  .work-heading,
  .projects-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .about-content {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .about-content > h2,
  .about-copy,
  .about-stats {
    width: 100%;
    max-width: 100%;
  }

  .work-heading .section-copy {
    margin-top: 1.25rem;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 3.6rem;
  }

  .about-portrait {
    width: min(100%, 22rem);
    margin-top: 1.6rem;
  }

  .about-copy {
    margin-top: 1.6rem;
    max-width: 100%;
  }

  .contact-panel {
    align-items: start;
  }

  .contact-button {
    width: 100%;
  }

  .project-modal {
    padding: 0;
  }

  .project-modal-panel {
    width: 100%;
    height: 100svh;
    max-height: none;
    grid-template-columns: 1fr;
    align-content: start;
    padding: 4.5rem 1.1rem 1.4rem;
  }

  .project-form {
    grid-template-columns: 1fr;
  }

  .project-next-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 1rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.78rem;
  }

  .hero {
    align-items: start;
    padding: calc(var(--header-height) + 2.4rem) 1rem 7.25rem;
  }

  .hero-inner {
    text-align: start;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .hero-badge {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    max-width: 100%;
    font-size: 0.73rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .hero-copy {
    margin-inline: 0;
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero-marquee {
    bottom: 1.5rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .section-inner,
  .section-heading,
  .about-layout,
  .about-content,
  .about-copy,
  .about-stats {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .section-about {
    padding-bottom: 5.5rem;
  }

  .about-content {
    gap: 1.6rem;
    max-width: calc(100vw - 2rem);
  }

  .about-content > h2 {
    max-width: 100%;
  }

  .about-copy {
    gap: 0.95rem;
  }

  .about-copy p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-marquee {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .about-stat {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem;
    border-color: var(--line);
  }

  .about-portrait figcaption {
    left: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.64rem;
  }

  .project-card {
    min-height: auto;
  }

  .project-preview {
    min-height: 13.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
