@font-face {
  font-family: "NotoKufiArabic";
  src: url("fonts/NotoKufiArabic-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "NotoKufiArabic";
  src: url("fonts/NotoKufiArabic-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --bg: #f3efe8;
  --surface: rgba(255, 255, 255, 0.74);
  --card: #ffffff;
  --text: #161616;
  --muted: #666057;
  --line: rgba(22, 22, 22, 0.08);
  --accent: #0f5f54;
  --accent-strong: #093e38;
  --soft: #e6ddd2;
  --shadow: 0 28px 70px rgba(22, 22, 22, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body.dark-mode {
  --bg: #111311;
  --surface: rgba(22, 26, 24, 0.84);
  --card: #171b19;
  --text: #f2f1eb;
  --muted: #b8b3ab;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7fd3bf;
  --accent-strong: #95e4d0;
  --soft: #24312d;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 95, 84, 0.12), transparent 26%),
    linear-gradient(180deg, #efe8df 0%, #f8f5f1 24%, #f8f5f1 100%);
}

body.dark-mode {
  background:
    radial-gradient(circle at top left, rgba(127, 211, 191, 0.12), transparent 26%),
    linear-gradient(180deg, #131715 0%, #171b19 24%, #101311 100%);
}

img,
video {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.site-header,
.main-nav,
.header-actions,
.hero-actions,
.hero-stats,
.section-heading,
.process-item,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(22, 22, 22, 0.06);
}

.brand-mark,
.brand-name {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  gap: 12px;
  overflow: hidden;
}

.brand-initials {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text transparent);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.08em;
  overflow: hidden;
  border-radius: 30px;
}

.brand-name {
  font-weight: 700;
}

.main-nav {
  gap: 24px;
  color: var(--muted);
}

.main-nav a:hover,
.header-cta:hover,
.inline-link:hover {
  color: var(--accent);
}

.header-actions {
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #f4f0eb;
}

.lang-btn {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}

.lang-btn.active {
  background: var(--text);
  color: #fff;
}

.theme-toggle {
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  transition: 0.25s ease;
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

body.dark-mode .theme-toggle,
body.dark-mode .header-cta,
body.dark-mode .secondary-button,
body.dark-mode .filter-btn {
  background: #1b201e;
  color: var(--text);
}

body.dark-mode .site-header {
  background: rgba(18, 21, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .language-switcher {
  background: #1d2321;
}

body.dark-mode .lang-btn.active {
  background: #f2f1eb;
  color: #111311;
}

.header-cta,
.primary-button,
.secondary-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.header-cta::after,
.primary-button::after,
.secondary-button::after,
.inline-link::after {
  content: "\2197";
  font-size: 0.92em;
}

.section-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero,
.services-section,
.portfolio-section,
.process-card,
.contact-card,
.about-main,
.about-side {
  padding: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  min-height: 720px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.about-main h2,
.services-section h2,
.showcase-section h2,
.portfolio-section h2,
.process-card h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.hero-description,
.about-main p,
.service-card p,
.portfolio-card p,
.process-item p,
.contact-intro,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-description {
  max-width: 640px;
  margin: 22px 0 28px;
  font-size: 0.98rem;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.header-cta {
  padding: 14px 22px;
  border-radius: 999px;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button,
.header-cta {
  border: 1px solid var(--line);
  background: #fff;
}

.hero-stats {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat-card,
.service-card,
.portfolio-card,
.strength-item,
.contact-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

body.dark-mode .stat-card,
body.dark-mode .service-card,
body.dark-mode .portfolio-card,
body.dark-mode .strength-item,
body.dark-mode .contact-list a {
  background: rgba(25, 29, 27, 0.95);
}

.stat-card {
  flex: 1 1 180px;
  min-width: 180px;
  padding: 18px 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  letter-spacing: -0.08em;
}

.stat-card span,
.strength-item span,
.service-card p,
.portfolio-card p,
.process-item p,
.contact-intro,
.contact-list span,
.site-footer p {
  font-size: 0.94rem;
}

.brand-name,
.main-nav a,
.header-cta,
.primary-button,
.secondary-button,
.filter-btn,
.contact-list strong {
  font-size: 0.95rem;
}

.section-kicker {
  font-size: 0.82rem;
}

.service-card h3,
.portfolio-card h3,
.process-item strong,
.strength-item strong {
  font-size: 1rem;
}

.stat-card span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.portrait-panel {
  width: min(100%, 470px);
  padding: 16px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(233, 226, 216, 0.8));
  box-shadow: 0 26px 70px rgba(22, 22, 22, 0.14);
}

.portrait-panel img {
  aspect-ratio: 1 / 1.18;
  border-radius: 28px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(22, 22, 22, 0.1);
}

body.dark-mode .floating-note {
  background: rgba(25, 29, 27, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.note-top {
  top: 30px;
  right: 10px;
}

.note-bottom {
  bottom: 34px;
  left: -4px;
}

.note-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.about-grid,
.split-section {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.strength-list,
.process-list,
.contact-list {
  display: grid;
  gap: 14px;
}

.strength-item {
  padding: 18px 18px 16px;
}

.strength-item strong,
.portfolio-card h3,
.service-card h3,
.process-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.services-section,
.showcase-section,
.portfolio-section {
  margin-top: 22px;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 880px;
}

.services-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

.showcase-carousel {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 16px;
  align-items: center;
}

.carousel-track-wrap {
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 12px);
  gap: 18px;
  transition: transform 0.35s ease;
}

.carousel-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.carousel-card img {
  aspect-ratio: 1.08 / 0.9;
  object-fit: cover;
  cursor: zoom-in;
}

.zoom-hint {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.carousel-nav {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.carousel-nav:hover {
  background: var(--text);
  color: #fff;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  overflow: hidden;
}

.service-card img,
.portfolio-card img,
.portfolio-card video {
  aspect-ratio: 1.2 / 0.9;
  object-fit: cover;
}

.service-card div,
.portfolio-card-body {
  padding: 18px;
}

.portfolio-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-btn {
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text);
  color: #fff;
}

.portfolio-grid {
  grid-template-columns: repeat(2, 1fr);
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card.hidden {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.image-lightbox.open {
  display: grid;
}

.lightbox-inner {
  position: relative;
  width: min(100%, 980px);
}

.lightbox-inner img {
  max-height: 82vh;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: 0;
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-weight: 700;
}

.inline-link {
  margin-top: 10px;
  color: var(--accent);
}

.split-section {
  grid-template-columns: 1fr 0.95fr;
}

.process-item {
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.process-item:last-child {
  border-bottom: 0;
}

.process-item span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  font-weight: 700;
}

.contact-intro {
  margin: 18px 0 20px;
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link.instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: currentColor;
  outline: none;
}

.social-link.whatsapp {
  color: #1f9d55;
}

.social-link.facebook {
  color: #1877f2;
}

.social-link.instagram {
  color: #c13584;
}

.social-link.telegram {
  color: #229ed9;
}

.social-link.linkedin {
  color: #0a66c2;
}

.contact-list a {
  display: block;
  padding: 16px 18px;
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list strong {
  word-break: break-word;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.contact-form button {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

.form-row textarea {
  min-height: 132px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 95, 84, 0.12);
}

.form-alert,
.empty-state {
  border-radius: 14px;
  padding: 13px 15px;
}

.form-alert {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.form-alert.success {
  background: rgba(15, 95, 84, 0.12);
  color: var(--accent-strong);
}

.form-alert.error {
  background: rgba(180, 35, 24, 0.12);
  color: #9f1b12;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: 24px;
  background: #121212;
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .primary-button {
  color: #0f1614;
  background: var(--accent);
}

body.dark-mode .carousel-card {
  background: rgba(25, 29, 27, 0.95);
}

body.dark-mode .carousel-nav,
body.dark-mode .lightbox-close {
  background: #1b201e;
  color: var(--text);
}

body.dark-mode .lightbox-inner img {
  background: #171b19;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] body {
  font-family: "NotoKufiArabic", "Segoe UI", sans-serif;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-stats,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .portfolio-tabs {
  direction: rtl;
}

html[dir="rtl"] .hero,
html[dir="rtl"] .about-grid,
html[dir="rtl"] .split-section {
  direction: rtl;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .about-main,
html[dir="rtl"] .about-side,
html[dir="rtl"] .service-card div,
html[dir="rtl"] .portfolio-card-body,
html[dir="rtl"] .process-card,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .site-footer {
  text-align: right;
}

html[dir="rtl"] .note-top {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .note-bottom {
  left: auto;
  right: -4px;
}

@media (max-width: 1040px) {
  .site-header {
    border-radius: 30px;
    padding: 16px;
  }

  .hero,
  .about-grid,
  .split-section,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 8px;
  }
}

@media (max-width: 780px) {
  .site-header,
  .main-nav,
  .header-actions,
  .hero-actions,
  .hero-stats,
  .site-footer {
    display: block;
  }

  .main-nav,
  .header-actions {
    margin-top: 12px;
  }

  .main-nav a,
  .header-cta {
    display: inline-flex;
    margin: 6px 10px 0 0;
  }

  html[dir="rtl"] .main-nav a,
  html[dir="rtl"] .header-cta {
    margin: 6px 0 0 10px;
  }

  .hero,
  .services-section,
  .showcase-section,
  .portfolio-section,
  .process-card,
  .contact-card,
  .about-main,
  .about-side {
    padding: 24px;
  }

  .hero h1,
  .about-main h2,
  .services-section h2,
  .showcase-section h2,
  .portfolio-section h2,
  .process-card h2,
  .contact-card h2 {
    font-size: clamp(1.55rem, 6.4vw, 2.4rem);
  }

  .showcase-carousel {
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .carousel-track {
    grid-auto-columns: calc(100% - 2px);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .floating-note {
    position: static;
    margin-top: 12px;
  }

  .portrait-panel {
    width: 100%;
  }
}
