:root {
  --gold: #f4c03b;
  --gold-soft: #ffd867;
  --gold-deep: #d79c10;

  --bg: #090c11;
  --bg-2: #10151d;
  --bg-3: #171d27;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);

  --text: #f5f7fb;
  --muted: #b8c0cd;
  --border: rgba(255, 255, 255, 0.09);

  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max-width: 1280px;

  --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
  --font-main: "Inter", "Cairo", sans-serif;
}

body.light-mode {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --bg-3: #eef2f8;

  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.98);

  --text: #10151d;
  --muted: #5a6472;
  --border: rgba(16, 21, 29, 0.09);

  --shadow: 0 18px 42px rgba(16, 21, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top right, rgba(244, 192, 59, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(244, 192, 59, 0.1), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: "Cairo", "Inter", sans-serif;
  text-align: right;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #05070b;
  display: grid;
  place-items: center;
  transition: 0.45s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-box {
  width: min(320px, calc(100% - 40px));
  text-align: center;
}

.loader-box img {
  width: 110px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 25px rgba(244, 192, 59, 0.16));
}

.loader-line {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  animation: loadingMove 1.4s infinite ease-in-out;
}

@keyframes loadingMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 16, 0.76);
  border-bottom: 1px solid var(--border);
}

body.light-mode .site-header {
  background: rgba(255, 255, 255, 0.82);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: fit-content;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(244, 192, 59, 0.18));
}

.brand-name {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.nav-links {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.lang-btn,
.theme-toggle,
.choice-btn {
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.lang-btn {
  min-width: 44px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.lang-btn.active,
.choice-btn.active {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #111;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover,
.choice-btn:hover,
.lang-btn:hover,
.cookie-fab:hover {
  transform: translateY(-2px);
}

.theme-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: 0.3s ease;
  font-size: 18px;
}

body.light-mode .theme-icon-sun {
  opacity: 1;
  transform: translateY(0);
}

body.light-mode .theme-icon-moon {
  opacity: 0;
  transform: translateY(100%);
}

body:not(.light-mode) .theme-icon-sun {
  opacity: 0;
  transform: translateY(-100%);
}

body:not(.light-mode) .theme-icon-moon {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  margin-inline-start: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 16s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48)),
    var(--hero-overlay);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 192, 59, 0.08);
  border: 1px solid rgba(244, 192, 59, 0.22);
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(244, 192, 59, 0.8);
}

.hero-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  margin: 20px 0 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 760px;
}

.hero-text {
  max-width: 760px;
  font-size: 18px;
  color: #e6eaf2;
  margin: 0;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #111;
  box-shadow: 0 14px 30px rgba(244, 192, 59, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: rgba(255, 80, 80, 0.14);
  color: #ffb5b5;
  border-color: rgba(255, 80, 80, 0.22);
}

.stats-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card,
.card,
.cta-box,
.startup-modal,
.cookie-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.stat-card {
  border-radius: 20px;
  padding: 20px;
}

.stat-card h3 {
  margin: 0;
  font-size: 30px;
  color: var(--gold);
}

.stat-card p {
  margin: 6px 0 0;
  color: #e5ebf7;
  font-size: 14px;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.28s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
}

.image-card,
.media-info-card,
.service-card,
.catalog-card,
.footer-card,
.cta-with-image {
  padding: 0;
}

.image-card img,
.media-box img,
.service-image img,
.footer-media img,
.cta-image img,
.testimonial-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-card {
 
  position: relative;
}

.image-card-overlay {
  position: absolute;
  inset: auto 24px 24px 24px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.72));
  color: #fff;
}

.image-card-overlay h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.image-card-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.88);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.center-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.split-image-grid,
.cards-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.split-image-grid {
  grid-template-columns: 1fr 1fr;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.media-info-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 420px;
}

.media-box {
  min-height: 100%;
}

.media-content,
.service-content,
.footer-content,
.cta-content {
  padding: 24px;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(244, 192, 59, 0.12), rgba(255,255,255,0.03));
}

.list {
  margin: 18px 0 0;
  padding-inline-start: 18px;
  color: var(--muted);
}

.list li {
  margin: 10px 0;
}

.service-card,
.catalog-card {
  display: flex;
  flex-direction: column;
}

.service-image {
  height: 240px;
  overflow: hidden;
}

.service-image img {
  transition: transform 0.45s ease;
}

.service-card:hover .service-image img,
.catalog-card:hover .service-image img,
.footer-card:hover .footer-media img,
.media-info-card:hover .media-box img,
.cta-with-image:hover .cta-image img {
  transform: scale(1.06);
}

.icon-box {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(244, 192, 59, 0.12);
  border: 1px solid rgba(244, 192, 59, 0.22);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 18px;
}

.link-arrow {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 800;
}

.link-arrow::after {
  content: " →";
}

body[dir="rtl"] .link-arrow::after {
  content: " ←";
}

.testimonial-banner {
  position: relative;
  height: 260px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.testimonial-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.56));
}

.testimonial-card strong {
  display: block;
  margin-top: 16px;
  color: var(--gold);
}

.cta-box {
  border-radius: 32px;
  padding: 0;
  background: linear-gradient(135deg, rgba(244, 192, 59, 0.13), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(244, 192, 59, 0.18);
  overflow: hidden;
}

.cta-with-image {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.cta-image {
  min-height: 100%;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-card {
  display: flex;
  flex-direction: column;
}

.footer-media {
  height: 220px;
  overflow: hidden;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.back-top {
  color: var(--gold);
  font-weight: 800;
}

/* Startup modal */
.startup-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(4, 6, 10, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.startup-modal-backdrop.show {
  display: flex;
}

.startup-modal {
  width: min(760px, 100%);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.startup-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 12px;
}

.startup-modal h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.startup-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
}

.startup-section {
  margin-top: 24px;
}

.startup-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.choice-btn {
  min-height: 50px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.cookie-note {
  color: var(--muted);
  margin: 0 0 12px;
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option input {
  margin-top: 4px;
  accent-color: var(--gold);
}

.cookie-option span {
  display: flex;
  flex-direction: column;
}

.cookie-option small {
  color: var(--muted);
  margin-top: 4px;
}

.startup-actions,
.cookie-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Cookie floating settings */
.cookie-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #111;
  box-shadow: 0 18px 42px rgba(244, 192, 59, 0.24);
  cursor: pointer;
  font-size: 22px;
}

body[dir="rtl"] .cookie-fab {
  right: auto;
  left: 18px;
}

.cookie-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 1200;
  width: min(420px, calc(100% - 36px));
  border-radius: 24px;
  padding: 20px;
  display: none;
}

body[dir="rtl"] .cookie-panel {
  right: auto;
  left: 18px;
}

.cookie-panel.show {
  display: block;
  animation: fadeUp 0.26s ease;
}

.cookie-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-panel-header h3 {
  margin: 0;
}

.cookie-panel-header button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.cookie-panel p {
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-left {
  transform: translateX(-44px);
}

.reveal.reveal-right {
  transform: translateX(44px);
}

.reveal.show {
  opacity: 1;
  transform: translate(0, 0);
}

/* RTL layout */
body[dir="rtl"] .section-head {
  text-align: right;
}

body[dir="rtl"] .center-head {
  text-align: center;
}

body[dir="rtl"] .brand,
body[dir="rtl"] .nav,
body[dir="rtl"] .header-actions,
body[dir="rtl"] .hero-buttons,
body[dir="rtl"] .language-switcher,
body[dir="rtl"] .footer-bottom,
body[dir="rtl"] .startup-actions,
body[dir="rtl"] .cookie-panel-actions {
  flex-direction: row-reverse;
}

body[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

@media (max-width: 1150px) {
  .hero-grid,
  .split-image-grid,
  .cards-grid,
  .footer-grid,
  .cta-with-image,
  .media-info-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .center-head {
    align-items: center;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-2);
  }

  .nav-links.show {
    display: flex;
  }

  body[dir="rtl"] .nav-links {
    align-items: flex-end;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 74px 0;
  }

  .startup-modal h2 {
    font-size: 28px;
  }

  .choice-grid.three,
  .choice-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 20px, var(--max-width));
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text,
  .section-head p,
  .startup-subtitle,
  .cookie-note {
    font-size: 16px;
  }

  .hero-buttons,
  .startup-actions,
  .cookie-panel-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .stat-card,
  .startup-modal,
  .cookie-panel {
    padding: 20px;
  }

  .hero-image-card {
    min-height: 320px;
  }

  .service-image,
  .footer-media,
  .testimonial-banner {
    height: 220px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .language-switcher {
    gap: 4px;
  }

  .lang-btn {
    min-width: 38px;
    height: 36px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .cookie-fab {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
}