:root {
  --ink-950: #081523;
  --ink-900: #10253b;
  --ink-800: #153556;
  --ink-700: #1e4872;
  --cyan-500: #14c7d9;
  --cyan-400: #39d9e7;
  --orange-500: #ff6d3f;
  --orange-400: #ff8a5f;
  --cream-50: #f9f6f0;
  --cream-100: #f1ebdf;
  --slate-100: #e8eef4;
  --slate-300: #b8c5d3;
  --slate-600: #5f6f81;
  --white: #ffffff;
  --black: #000000;

  --color-bg-base: var(--cream-50);
  --color-bg-surface: rgba(255, 255, 255, 0.8);
  --color-bg-elevated: var(--white);
  --color-bg-inverse: var(--ink-900);
  --color-brand-primary: var(--ink-800);
  --color-brand-accent: var(--cyan-500);
  --color-brand-hot: var(--orange-500);
  --color-text-primary: #101d2f;
  --color-text-secondary: #3a4b61;
  --color-text-tertiary: #607288;
  --color-text-inverse: var(--white);
  --color-border-subtle: rgba(16, 37, 59, 0.1);
  --color-border-default: rgba(16, 37, 59, 0.18);

  --font-display: "Playfair Display", Georgia, serif;
  --font-arabic: "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;

  --leading-tight: 1.2;
  --leading-snug: 1.45;
  --leading-normal: 1.8;
  --tracking-wide: 0.08em;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 12px 34px rgba(6, 20, 34, 0.08);
  --shadow-md: 0 26px 70px rgba(6, 20, 34, 0.12);
  --shadow-lg: 0 42px 90px rgba(6, 20, 34, 0.18);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.32, 1.25, 0.66, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 550ms;

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  unicode-bidi: embed;
  background:
    radial-gradient(circle at 88% 14%, rgba(20, 199, 217, 0.22), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(255, 109, 63, 0.2), transparent 30%),
    linear-gradient(160deg, #fcfaf6 0%, #f6f0e6 40%, #eef5fb 100%);
  color: var(--color-text-primary);
  font-family: var(--font-arabic);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* WordPress Core Alignment Classes */
.aligncenter {
  margin-inline: auto;
}

.alignwide {
  margin-block: 2rem;
  max-width: 1400px;
}

.alignfull {
  margin-block: 2rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
  color: var(--color-text-secondary);
}

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

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 37, 59, 0.09);
  background: rgba(249, 246, 240, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.site-nav {
  margin-inline-start: auto;
}

.nav-list,
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition:
    color var(--duration-base) var(--ease-smooth),
    background var(--duration-base) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  background: rgba(20, 199, 217, 0.1);
  color: var(--ink-800);
  transform: translateY(-1px);
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  min-height: 46px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: var(--text-sm);
  font-weight: 600;
  transition:
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth),
    background var(--duration-base) var(--ease-smooth),
    color var(--duration-base) var(--ease-smooth),
    border-color var(--duration-base) var(--ease-smooth);
}

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

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(20, 199, 217, 0.4);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(140deg, var(--ink-800), var(--ink-700));
  box-shadow: 0 18px 40px rgba(16, 37, 59, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 24px 54px rgba(16, 37, 59, 0.35);
}

.btn-outline {
  border-color: rgba(16, 37, 59, 0.25);
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: rgba(20, 199, 217, 0.46);
  background: rgba(20, 199, 217, 0.08);
}

.hero {
  position: relative;
  overflow: clip;
  padding-top: 98px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 30px;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 58ch;
  margin-top: 20px;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

.kicker,
.section-label,
.hero-panel-label,
.eyebrow,
.card-tag,
.step-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.kicker,
.section-label,
.hero-panel-label {
  margin-bottom: 18px;
  color: var(--color-brand-hot);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  margin-top: 34px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-chip,
.ui-card {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  backdrop-filter: blur(14px);
}

.stat-chip {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}

.stat-chip strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-800);
}

.stat-chip span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.ui-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-base) var(--ease-bounce),
    box-shadow var(--duration-base) var(--ease-smooth),
    border-color var(--duration-base) var(--ease-smooth);
}

.ui-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(20, 199, 217, 0.1), rgba(255, 109, 63, 0.11)),
    rgba(255, 255, 255, 0.78);
}

.card-visual img,
.project-card img {
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(16, 37, 59, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.hero-panel-copy {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.eyebrow,
.card-tag {
  color: var(--ink-700);
}

.floating-badge {
  position: absolute;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-900);
  border: 1px solid rgba(16, 37, 59, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.badge-a {
  inset-inline-start: 16px;
  top: 14px;
  animation: drift 5.5s ease-in-out infinite;
}

.badge-b {
  inset-inline-end: 16px;
  bottom: 16px;
  animation: drift 6.8s ease-in-out infinite reverse;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.orb-a {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 20% 20%, rgba(20, 199, 217, 0.5), transparent 68%);
  inset-inline-end: 4%;
  top: 8%;
  animation: orbit 12s linear infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 60% 30%, rgba(255, 109, 63, 0.46), transparent 66%);
  inset-inline-start: -40px;
  bottom: -54px;
  animation: orbit 15s linear infinite reverse;
}

.skill-marquee {
  border-block: 1px solid var(--color-border-subtle);
  background: linear-gradient(90deg, rgba(16, 37, 59, 0.94), rgba(30, 72, 114, 0.95));
  color: var(--white);
  overflow: hidden;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 16px 0;
  animation: ticker 22s linear infinite reverse;
}

.marquee-track span {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-card {
  display: grid;
  gap: 16px;
}

.accent-card {
  background:
    linear-gradient(145deg, rgba(20, 199, 217, 0.09), rgba(255, 109, 63, 0.09)),
    rgba(255, 255, 255, 0.84);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(120deg, var(--color-brand-accent), var(--color-brand-hot));
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-pills span {
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 37, 59, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-800);
  padding: 9px 14px;
  font-size: 0.8rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head p {
  margin-top: 12px;
}

.project-section {
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 199, 217, 0.14), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(255, 109, 63, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 14px;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.project-link {
  width: fit-content;
  font-size: var(--text-sm);
  color: var(--ink-800);
  border-bottom: 2px solid rgba(16, 37, 59, 0.35);
  transition: border-color var(--duration-base) var(--ease-smooth);
}

.project-link:hover {
  border-color: var(--color-brand-hot);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-step {
  display: grid;
  gap: 12px;
}

.step-index {
  width: fit-content;
  color: var(--ink-700);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(20, 199, 217, 0.1);
}

.cta-section {
  padding-top: 30px;
}

.cta-box {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(16, 37, 59, 0.95), rgba(30, 72, 114, 0.95)),
    var(--ink-900);
  border-color: rgba(57, 217, 231, 0.26);
  box-shadow: var(--shadow-lg);
}

.cta-box h2,
.cta-box p {
  color: var(--color-text-inverse);
}

.cta-box .section-label {
  justify-content: center;
  color: var(--cyan-400);
}

.site-footer {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  padding-bottom: 24px;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-800);
}

.site-footer h4 {
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: var(--color-text-secondary);
}

.footer-list a:hover {
  color: var(--ink-700);
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-tertiary);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity var(--duration-slow) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-bounce);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cards-3 [data-reveal]:nth-child(2),
.timeline [data-reveal]:nth-child(2) {
  transition-delay: 80ms;
}

.cards-3 [data-reveal]:nth-child(3),
.timeline [data-reveal]:nth-child(3) {
  transition-delay: 150ms;
}

.timeline [data-reveal]:nth-child(4) {
  transition-delay: 220ms;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes orbit {
  0% {
    transform: translate(0, 0) rotate(0);
  }

  50% {
    transform: translate(10px, -12px) rotate(180deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

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

@media (max-width: 1040px) {
  .hero-grid,
  .split-layout,
  .cards-3,
  .footer-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-nav {
    margin-inline-start: 0;
  }

  .hero {
    padding-top: 78px;
  }

  .project-card {
    transform: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-copy p {
    font-size: var(--text-base);
  }

  .ui-card,
  .stat-chip {
    padding: 20px;
  }

  .marquee-track {
    gap: 20px;
    animation-duration: 28s;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
