/* ======================================================================
   DESIGN SYSTEM TOKENS & RESET
   ====================================================================== */
:root {
  --font-display: 'Times New Roman', Times, serif;
  --font-body: 'Times New Roman', Times, serif;
  --font-mono: 'Times New Roman', Times, serif;
  --font-ar: 'Times New Roman', Times, serif;

  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, .0, .2, 1);

  /* purple scale — brand core */
  --p-950: #150826;
  --p-900: #1e0d38;
  --p-800: #2b1352;
  --p-700: #3d1c74;
  --p-600: #5726a6;
  --p-500: #7c3aed;
  --p-400: #9b6bf5;
  --p-300: #c3aefb;
  --p-200: #e2d6fc;
  --p-100: #f1ebfd;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-img: 18px;
  --header-h: 84px;
}

/* ---------- Dark theme (default) ---------- */
:root, [data-theme="dark"] {
  --bg: #08060d;
  --bg-elevated: #120e1c;
  --bg-elevated-2: #1a1428;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .12);
  --border-soft: rgba(255, 255, 255, .07);
  --text: #faf9fc;
  --text-muted: #a89dc2;
  --text-faint: #655d7d;
  --accent: var(--p-400);
  --accent-strong: var(--p-300);
  --accent-solid: var(--p-500);
  --on-accent: #ffffff;
  --invert-img: none;
  --scrim: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .85) 100%);
  --shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

/* ======================================================================
   RESET
   ====================================================================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Times New Roman', Times, serif; /* تعديل مباشر */
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: 'Times New Roman', Times, serif; }

h1, h2, h3, h4 { 
  margin: 0; 
  font-family: 'Times New Roman', Times, serif; /* تعديل مباشر */
  font-weight: 500; 
}

/* ======================================================================
   LAYOUT UTILITIES
   ====================================================================== */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section {position: relative; }
.section.tight { padding-block: 96px; }
.section.on-elevated { background: var(--bg-elevated); }

.eyebrow {
  /* لو عايز الـ Eyebrow كمان يبقى ماشي بنفس الستايل أو تسيبه زي ما هو */
  font-family: 'Times New Roman', Times, serif;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: .7em;
  margin-bottom: 1.2em;
}
[dir="rtl"] .eyebrow { font-family: 'Times New Roman', Times, serif; font-weight: 600; font-size: .85rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; flex: none; }

.section-head { max-width: 680px; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--text); font-family: 'Times New Roman', Times, serif; }
.section-head p { margin-top: 1.1em; color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; font-family: 'Times New Roman', Times, serif; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; flex-wrap: wrap; }

/* ======================================================================
   BUTTONS
   ====================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: .92rem;
  padding: .95em 1.7em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent-solid); color: #fff; }
.btn-primary:hover { background: var(--p-400); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.btn img { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); object-fit: contain; }
.btn:hover img { transform: translateX(3px); }
[dir="rtl"] .btn:hover img { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .btn img { transform: scaleX(-1); }
[dir="rtl"] .btn-outline img { transform: scaleX(-1); }

/* ======================================================================
   LOADER
   ====================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .mark{width: 120px !important; height: 120px !important; position: relative;}
#loader .mark img{width: 100% !important; height: 100% !important; object-fit: contain !important;}
[data-theme="dark"] #loader .mark img { filter: brightness(0) invert(1); }
[data-theme="light"] #loader .mark img { filter: none; }
@keyframes markPulse { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
#loader .bar { width: 180px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
#loader .bar::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: barSlide 1.1s ease-in-out infinite;
}
@keyframes barSlide { 0% { inset-inline-start: -40%; } 100% { inset-inline-start: 100%; } }
#loader .word { font-family: 'Times New Roman', Times, serif; font-size: .75rem; text-transform: uppercase; color: var(--text-faint); }
body.no-scroll { overflow: hidden; height: 100vh; }

/* ======================================================================
   HEADER / NAV
   ====================================================================== */
header.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  padding-block: 22px;
  transition: padding .4s var(--ease), background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
header.site-header.scrolled {
  padding-block: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border-soft);
}
.brand { display: flex; align-items: center; gap: .7em; flex: none; }
.brand img { height: 120px; width: auto; filter: var(--invert-img); }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); font-weight: 600; }
.brand-text span { font-size: .6rem; color: var(--text-faint); font-family: 'Times New Roman', Times, serif; text-transform: uppercase; }

nav.links { display: flex; align-items: center; gap: 2rem; }
nav.links a {
  font-size: .87rem; color: var(--text-muted); font-weight: 500;
  position: relative; padding-block: .2em;
  transition: color .3s ease;
  text-decoration: none;
}
/* إرجاع تأثير الخط المتحرك عند الـ Hover أو الـ Active فقط */
nav.links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
nav.links a:hover, nav.links a.active { color: var(--text); }
nav.links a:hover::after, nav.links a.active::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
  position: relative;
}
.icon-btn:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.icon-btn img { width: 17px; height: 17px; object-fit: contain; }
img.for-dark-theme { display: none; }
img.for-light-theme { display: none; }
[data-theme="dark"] img.for-dark-theme { display: inline-block; }
[data-theme="light"] img.for-light-theme { display: inline-block; }
#themeToggle .sun, #themeToggle .moon { position: absolute; transition: opacity .3s ease, transform .4s var(--ease); }
[data-theme="dark"] #themeToggle .sun { opacity: 0; transform: rotate(-60deg) scale(.5); }
[data-theme="dark"] #themeToggle .moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] #themeToggle .sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] #themeToggle .moon { opacity: 0; transform: rotate(60deg) scale(.5); }

#langToggle { 
  width: auto; 
  padding-inline: .85em; 
  gap: .4em; 
  font-size: .85rem;
  font-family: 'Times New Roman', Times, serif;
  text-transform: uppercase;
}
#langToggle img, #langLink img { width: 15px; height: 15px; object-fit: contain; }

.nav-cta { display: none; }
@media (min-width: 1001px) { .nav-cta { display: flex; } }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 1.5px; background: var(--text); display: block; transition: transform .3s ease, opacity .3s ease; }

.mobile-nav {
  position: fixed; inset: 0; background: var(--bg); z-index: 199;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.8rem;
  transform: translateY(-100%); transition: transform .5s var(--ease); 
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
[dir="rtl"] .mobile-nav a { font-family: var(--font-ar); }
.mobile-nav .btn { margin-top: .6rem; }

@media (max-width: 1000px) {
  nav.links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 480px) {
  .brand-text span { display: none; }
  .header-tools { gap: .4rem; }
  .icon-btn { width: 34px; height: 34px; }
  #langToggle { padding-inline: .6em; }
  .brand img { height: 30px; }
}

/* scroll progress bar */
#scrollProgress {
  position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 210;
  background: var(--accent-solid); transform-origin: left center; transform: scaleX(0);
  transition: transform .1s linear;
}
[dir="rtl"] #scrollProgress { transform-origin: right center; }

/* dropdown menu */

.dropdown-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 15px; 
  margin-bottom: -15px;
}

/* تعديل زر الخدمات الأساسي ليقبل السهم */
.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-arrow {
  font-size: 0.55rem;
  transition: transform 0.3s ease;
}

/* صندوق القائمة المنسدلة الكرييتف */
.creative-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
}

/* تأثير الـ Hover لإظهار القائمة والسهم */
.dropdown-wrapper:hover .creative-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-wrapper:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* تنسيق عناصر القائمة الداخلية */
.dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none !important;
}

.dropdown-item:hover {
  background: var(--surface);
  transform: translateX(4px);
}

.dropdown-item .item-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.dropdown-item .item-desc {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* إلغاء الخطوط الافتراضية للروابط داخل القائمة */
.creative-dropdown a {
  border-bottom: none !important;
}
.creative-dropdown a::after {
  display: none !important;
}

/* إزالة السهم الافتراضي الخاص بـ details */
.mobile-dropdown-details summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-dropdown-summary {
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  transition: color 0.3s ease;
}

.mobile-dropdown-summary:hover {
  color: var(--accent);
}

.mobile-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* تدوير السهم تلقائياً عند فتح القائمة بناءً على حالة open */
.mobile-dropdown-details[open] .mobile-arrow {
  transform: rotate(180deg);
}

/* محتوى القائمة مع أنيميشن سلس ومحترف */
.mobile-dropdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
}

.mobile-dropdown-details[open] .mobile-dropdown-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.8rem;
}

.mobile-dropdown-content a {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem !important;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-dropdown-content a:hover {
  color: var(--text);
}

/* ======================================================================
   SIGNATURE DIAGONAL CUT FRAME
   ====================================================================== */
.cut-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-img);
  border: 1px solid var(--border);
  aspect-ratio: 4/3.1;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.cut-frame:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 42px 6px color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-5px);
}
.cut-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.cut-frame:hover img { transform: scale(1.05); }
.cut-frame.tall { aspect-ratio: 3/4; }
.cut-frame.wide { aspect-ratio: 16/10; }
.cut-frame.square { aspect-ratio: 1/1; }

/* ======================================================================
   REVEAL / SCROLL ANIMATION
   ====================================================================== */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="scale"].in-view { transform: scale(1); }

[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal-stagger].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: .02s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: .1s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: .18s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: .26s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: .34s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: .42s; }
[data-reveal-stagger].in-view > *:nth-child(7) { transition-delay: .5s; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  #loader .mark img, #loader .bar::after { animation: none !important; }
}

/* ======================================================================
   CREDENTIAL MARQUEE
   ====================================================================== */
.creds-creative {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  margin-top: 3rem;
}

.creds-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.cred-number {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
}

.cred-label {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* لو الشاشة صغيرة، نخفي الخط الفاصل عشان التصميم ما يتزنقش */
@media (max-width: 768px) {
  .cred-divider {
    display: none;
  }
  .creds-grid {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer-creative {
  background: linear-gradient(180deg, #101017 0%, #07070a 100%);
  border-top: 2px solid rgba(176, 136, 249, 0.4);
  padding: 6rem 0 2.5rem;
  position: relative;
  overflow: clip; /* تم استخدام clip لمنع أي مساحة وهمية برة الحدود */
  font-family: 'Times New Roman', Times, serif;
  direction: inherit;
}

/* حاوية الخلفية المتحركة للنجوم */
.footer-animated-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.stars-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #c4a5ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #b088f9;
  animation: twinkleMove 6s infinite ease-in-out;
}

.star:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 35%; animation-delay: 1.5s; }
.star:nth-child(3) { top: 30%; left: 70%; animation-delay: 3s; }
.star:nth-child(4) { top: 60%; left: 85%; animation-delay: 2s; }
.star:nth-child(5) { top: 75%; left: 50%; animation-delay: 4s; }

@keyframes twinkleMove {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.4);
  }
}

/* إضاءة ناعمة داخل حدود الفوتر */
.footer-creative::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 100px; /* تم تقليل الارتفاع لمنع التمدد للخارج */
  background: radial-gradient(ellipse at bottom, rgba(176, 136, 249, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.footer-creative .container {
  position: relative;
  z-index: 2;
}

.footer-creative .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
  text-align: start;
}

.footer-brand-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 100px;
  width: auto;
}

.footer-brand-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 500;
}

.footer-brand-desc {
  font-family: 'Times New Roman', Times, serif;
  color: #d1d1d6;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
}

.footer-col h4 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: #c4a5ff;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 28px;
  height: 2px;
  background: #c4a5ff;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-list li, 
.footer-links-list a, 
.footer-links-list span {
  font-family: 'Times New Roman', Times, serif;
  color: #cccccc;
  font-size: 1rem;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.3s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(176, 136, 249, 0.6);
  text-decoration: none !important;
}

.ltr-text {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
  text-decoration: none !important;
}

[dir="rtl"] .ltr-text {
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.9rem;
  color: #aaaaaa;
}

@media (max-width: 768px) {
  .footer-creative .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* ======================================================================
   HOME PAGE
   ====================================================================== */
.about-snippet-section {
  padding-block: 140px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.about-snippet-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-snippet-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* الجانب الأيسر */
.snippet-left {
  position: relative;
  min-height: 380px;
}



[dir="rtl"] .big-watermark {
  left: auto;
  right: -20px;
}

/* إطار الصورة الفخم */
.image-frame {
  position: relative;
  width: 100%;
  height: 420px; /* تحديد ارتفاع ثابث ومريح جداً للعين */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  will-change: transform;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* بيخلي الصورة تملأ المكان باحترافية من غير ما تكش أو تعرض غصب عنها */
  object-position: center; /* تثبيت تركيز الصورة في المنتصف */
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-snippet-wrapper:hover .image-frame img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 17, 0.6) 100%);
  pointer-events: none;
}

/* الجانب الأيمن */
.snippet-right h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.snippet-right h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.snippet-right p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

/* الزر والخلفية */
.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.explore-btn .line-arrow {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.explore-btn .line-arrow::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

[dir="rtl"] .explore-btn .line-arrow::after {
  right: auto;
  left: 0;
  content: '←';
}

.explore-btn:hover {
  color: var(--accent);
}

.explore-btn:hover .line-arrow {
  width: 80px;
  background: var(--accent);
}

.explore-btn:hover .line-arrow::after {
  opacity: 1;
  right: -5px;
}

[dir="rtl"] .explore-btn:hover .line-arrow::after {
  left: -5px;
  right: auto;
}
/* حل جذري وقاطع لمنع أي مساحة سوداء تحت الفوتر وتثبيته في أسفل الشاشة */
html {
  background-color: #07070a !important;
  height: 100%;
}

body {
  background-color: #07070a !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  overflow-x: hidden;
}

/* إجبار الفوتر على أخذ مسافة الـ auto ليلزق تماماً في القاع */
footer.footer-creative {
  margin-top: auto !important;
}

/* كود الـ Hero Section والنجوم */
.page-hero {
  position: relative;
  overflow: hidden;
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background-color: #050508;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  padding-top: 100px;
}

.unique-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: unique-twinkle var(--duration) ease-in-out infinite, unique-drift var(--drift-duration) linear infinite;
}

@keyframes unique-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes unique-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}
.hero-home {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding-block: 140px 70px;
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-home .container { position: relative; z-index: 2; }
.hero-home-grid {
  display: flex;
  flex-direction: column;
  align-items: center;    /* بيسنتر كل العناصر في النص بالعرض */
  text-align: center;     /* بيخلي الكلام كله سنتر */
  max-width: 800px;
  margin: 0 auto;         /* بيدي توسيط عام للـ grid في الصفحة */
}
.hero-home h1 { 
  font-family: 'Times New Roman', Times, serif; /* أضفنا الخط هنا للعنوان الرئيسي */
  font-size: clamp(2.7rem, 6vw, 5.2rem); 
  line-height: 1.02; 
  font-weight: 400; 
  color: var(--text); 
}
.hero-home h1 em { 
  font-family: 'Times New Roman', Times, serif; /* والكلمة المائلة كمان */
  font-style: italic; 
  color: var(--accent); 
  font-weight: 500; 
}
.hero-home p.lede { 
  font-family: 'Times New Roman', Times, serif; /* ونص الـ lede الفخم */
  color: var(--text-muted); 
  max-width: 52ch; 
  font-size: 1.08rem; 
  margin-top: 1.5rem; /* ظبطناها شوية عشان تبعد عن العنوان وتدي راحة للعين */
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.scroll-cue {
  position: absolute; bottom: 28px; inset-inline: 0; display: flex; justify-content: center; gap: .6em; align-items: center;
color: var(--text-faint); font-family: 'Times New Roman', Times, serif; font-size: .68rem; text-transform: uppercase;  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(.3); opacity: .3; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.3); opacity: .3; transform-origin: bottom; } }

.capability-strip { padding-block: 110px; overflow: hidden; }
.capability-track {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: .5rem 1.5rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.capability-track::-webkit-scrollbar { display: none; }
.cap-card {
  scroll-snap-align: start; flex: 0 0 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 2.2rem 1.9rem; transition: border-color .35s ease, transform .35s var(--ease);
}
.cap-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.cap-card .num { font-family: 'Times New Roman', Times, serif; color: var(--accent); font-size: .75rem; }.cap-card h4 { font-size: 1.2rem; margin: 1rem 0 .6em; color: var(--text); }
.cap-card p { color: var(--text-muted); font-size: .93rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--border); }
.stat { padding: 2.4rem 1.6rem; border-inline-end: 1px solid var(--border); }
.stat:last-child { border-inline-end: none; }
.stat .n { font-family: var(--font-display); font-size: 2.3rem; color: var(--text); }
.stat .l { font-size: .85rem; color: var(--text-muted); margin-top: .4em; }

.cta-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4vw; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); color: var(--text); max-width: 14ch; }
.cta-band p { color: var(--text-muted); margin-top: 1.2rem; max-width: 44ch; }
.contact-card { background: var(--surface); border: 1px solid var(--border); padding: 2.2rem; border-radius: var(--radius-md); }
.contact-row { display: flex; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--border-soft); }
.contact-row:last-child { border-bottom: none; }
.contact-row .lbl { font-family: 'Times New Roman', Times, serif; font-size: .68rem; text-transform: uppercase; color: var(--accent); width: 90px; flex: none; padding-top: .2em; }[dir="rtl"] .contact-row .lbl { font-family: var(--font-ar); width: 110px; }
.contact-row .val { color: var(--text); font-size: .98rem; min-width: 0; overflow-wrap: anywhere; }
.contact-row .val span { display: block; color: var(--text-muted); font-size: .85rem; margin-top: .2em; }

/* ======================================================================
   PAGE HERO BANNER
   ====================================================================== */
.page-hero {
  min-height: 64vh; display: flex; align-items: flex-end; position: relative; overflow: hidden;
  padding-block: 150px 60px; background: var(--bg);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 13, .55) 0%, rgba(8, 6, 13, .92) 100%), linear-gradient(90deg, rgba(8, 6, 13, .5), rgba(60, 20, 110, .25)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; max-width: 16ch; }
.page-hero p { color: #cfc4ea; max-width: 56ch; margin-top: 1rem; font-size: 1.05rem; }
.breadcrumb { font-family: 'Times New Roman', Times, serif; font-size: .72rem;  text-transform: uppercase; color: #b39ee0; margin-bottom: 1.4rem; display: flex; gap: .6em; align-items: center; }
[dir="rtl"] .breadcrumb { font-family: var(--font-ar); }
.breadcrumb a { color: #b39ee0; }
.breadcrumb a:hover { color: #fff; }

/* ======================================================================
   ABOUT PAGE
   ====================================================================== */
.split-scroll { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.split-scroll .sticky-visual { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; height: fit-content; }
.split-block { padding-block: 70px; border-top: 1px solid var(--border); }
.split-block:first-child { border-top: none; padding-top: 0; }
.split-block h3 { font-size: 1.7rem; margin-bottom: .7em; color: var(--text); }
.split-block p { color: var(--text-muted); font-size: 1.02rem; }

.values-timeline { margin-top: 1rem; }
.tl-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.tl-row:first-child { padding-top: 0; }
.tl-row .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); font-weight: 300; }
.tl-row h4 { font-size: 1.08rem; color: var(--text); font-weight: 600; font-family: var(--font-body); }
[dir="rtl"] .tl-row h4 { font-family: var(--font-ar); }

/* ======================================================================
   SERVICES PAGE
   ====================================================================== */
.services-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 5vw; align-items: start; }
.services-visual { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.services-visual .cut-frame { aspect-ratio: 3/3.6; }
.svc-img { opacity: 0; transform: scale(1.0); transition: opacity .7s var(--ease), transform 5s ease-out; }
.svc-img.active { opacity: 1; transform: scale(1.07); }
.svc-visual-label {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: baseline; gap: .7em;
  background: rgba(8, 6, 13, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: .7em 1.1em; border-radius: 10px;
}
[dir="rtl"] .svc-visual-label { left: auto; right: 18px; }
.svc-visual-label .svc-num { font-family: 'Times New Roman', Times, serif; color: var(--accent-strong); font-size: .85rem;}
.svc-visual-label .svc-name { font-family: 'Times New Roman', Times, serif; color: #fff; font-size: 1.15rem; }
[dir="rtl"] .svc-visual-label .svc-name { font-family: var(--font-ar); }
.service-acc { border-top: 1px solid var(--border); }
.service-acc-item { border-bottom: 1px solid var(--border); }
.service-acc-head {
  display: flex; align-items: center; gap: 1.6rem; padding-block: 2rem; cursor: pointer;
  background: none; border: 0; width: 100%; text-align: start; color: var(--text);
}
.service-acc-head .num { font-family: 'Times New Roman', Times, serif; font-size: 1.8rem; color: var(--accent); font-weight: 300; flex: none; width: 60px; }
.service-acc-head h3 { font-size: 1.3rem; flex: 1; font-weight: 500; }
.service-acc-head .plus { width: 26px; height: 26px; position: relative; flex: none; }
.service-acc-head .plus::before, .service-acc-head .plus::after { content: ""; position: absolute; background: var(--text); transition: transform .35s var(--ease); }
.service-acc-head .plus::before { inset-inline-start: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
.service-acc-head .plus::after { inset-inline-start: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.service-acc-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.service-acc-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.service-acc-item.open .service-acc-body { max-height: 220px; }
.service-acc-body-inner { padding: 0 0 2.2rem 76px; color: var(--text-muted); max-width: 64ch; font-size: 1rem; }
[dir="rtl"] .service-acc-body-inner { padding: 0 76px 2.2rem 0; }
@media (max-width: 640px) { .service-acc-body-inner { padding-inline-start: 0; } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); margin-top: 1rem; }
.pillar { background: var(--bg); padding: 2.4rem 1.9rem; }
.pillar .tag { font-family: 'Times New Roman', Times, serif; color: var(--accent); font-size: .72rem; text-transform: uppercase; }
.pillar h4 { font-size: 1.15rem; margin: 1rem 0 .6em; color: var(--text); }
.pillar p { color: var(--text-muted); font-size: .93rem; }

/* ======================================================================
   FACILITIES PAGE
   ====================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(240px, auto); gap: 1.2rem; margin-top: 1rem; }
.bento-card {
  border: 1px solid var(--border); border-radius: var(--radius-img); padding: 1.8rem;
  display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: visible;
  transition: border-color .35s ease, transform .35s var(--ease), box-shadow .35s ease; background: var(--surface);
}
.bento-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -12px color-mix(in srgb, var(--accent) 35%, transparent); }
.bento-card.big { grid-column: span 2; grid-row: span 2; }
.bento-card .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }
.bento-card h4 { color: var(--text); font-size: 1.2rem; margin: .6rem 0 .4em; }
.bento-card p { color: var(--text-muted); font-size: .92rem; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--border); margin-top: 1rem; }
.why-col { padding: 2.6rem 2.2rem; border-inline-end: 1px solid var(--border); }
.why-col:last-child { border-inline-end: none; }
.why-col.mid { background: var(--bg-elevated-2); }
.why-col h4 { font-size: 1.3rem; margin-bottom: 1.1rem; color: var(--text); }
.why-col ul li { position: relative; padding-inline-start: 1.2em; margin-bottom: .85em; font-size: .94rem; color: var(--text-muted); }
[dir="rtl"] .why-col ul li { padding-inline-start: 0; padding-inline-end: 1.2em; }
.why-col ul li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--accent); }
[dir="rtl"] .why-col ul li::before { inset-inline-start: auto; inset-inline-end: 0; }
.why-col p { color: var(--text-muted); font-size: .95rem; }

/* ======================================================================
   PROJECTS PAGE
   ====================================================================== */
.filter-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  padding: .6em 1.3em; border: 1px solid var(--border); border-radius: 30px; background: none; color: var(--text-muted);
  font-size: .85rem; cursor: pointer; transition: all .3s ease;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.gallery figure { position: relative; cursor: pointer; border-radius: var(--radius-img); }
.gallery .cut-frame { aspect-ratio: 4/3.3; }
.gallery figcaption {
  position: absolute; inset-inline: 14px; bottom: 12px; color: #fff; font-family: 'Times New Roman', Times, serif; font-size: .72rem;
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
[dir="rtl"] .gallery figcaption { font-family: var(--font-ar); }
.gallery figure::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-img); background: linear-gradient(to top, rgba(8, 6, 13, .85), transparent 55%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.gallery figure:hover::before { opacity: 1; }
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery figure img { transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

#lightbox {
  position: fixed; inset: 0; background: rgba(6, 4, 10, .95); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img { max-width: min(90vw, 1100px); max-height: 82vh; object-fit: contain; box-shadow: var(--shadow); }
#lightbox .lb-cap { color: #fff; font-family: 'Times New Roman', Times, serif; font-size: .8rem; margin-top: 1.2rem; text-align: center; }
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
  position: absolute; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .3s ease;
}
#lightbox .lb-close:hover, #lightbox .lb-prev:hover, #lightbox .lb-next:hover { background: rgba(255, 255, 255, .16); }
#lightbox .lb-close { top: 26px; inset-inline-end: 26px; }
#lightbox .lb-prev { top: 50%; inset-inline-start: 26px; transform: translateY(-50%); }
#lightbox .lb-next { top: 50%; inset-inline-end: 26px; transform: translateY(-50%); }
@media (max-width: 700px) {
  #lightbox .lb-prev, #lightbox .lb-next { width: 38px; height: 38px; }
}

/* ======================================================================
   CONTACT PAGE
   ====================================================================== */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.contact-info-block { padding-block: 2rem 0; }
.contact-info-block .contact-row { padding-block: 1.4rem; }
.map-panel {
  margin-top: 2.4rem; aspect-ratio: 16/11; border: 1px solid var(--border); border-radius: var(--radius-img);
  position: relative; overflow: hidden; background: var(--bg-elevated);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.map-panel:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.map-panel iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.05); transition: filter .4s ease; }
.map-panel:hover iframe { filter: grayscale(0) contrast(1); }

.form-card { background: var(--surface); border: 1px solid var(--border); padding: 2.6rem; border-radius: var(--radius-md); }
.field { position: relative; margin-bottom: 1.7rem; }
.field input, .field select, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border);
  padding: .9em 0; color: var(--text); font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color .3s ease; resize: none;
}
.field textarea { min-height: 90px; }
.field label {
  position: absolute; top: .9em; inset-inline-start: 0; color: var(--text-faint); font-size: 1rem;
  transition: all .25s var(--ease); pointer-events: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field.filled label {
  top: -1.1em; font-size: .72rem; color: var(--accent); 
}
.field select { color: var(--text); appearance: none; }
.field select ~ label { top: -1.1em; font-size: .72rem; color: var(--accent); }

/* ======================================================================
   RESPONSIVE OVERRIDES
   ====================================================================== */
@media (max-width: 900px) {
  .split-scroll, .services-wrap, .contact-split, .cta-band { grid-template-columns: 1fr; gap: 3rem; }
  .split-scroll .sticky-visual, .services-visual { position: relative; top: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-inline-end: none; border-bottom: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .pillars, .why-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.big { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.big { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

/*scroll about us */

/* إعدادات النعومة الفائقة */
[data-reveal="left"],
[data-reveal="bottom"] {
  opacity: 0;
  /* زودنا الوقت لـ 1.5 ثانية واستخدمنا منحنى حركة أنعم بكثير */
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

/* قللنا المسافة شوية عشان الحركة تبدأ بهدوء وتتوقف بنعومة */
[data-reveal="left"] {
  transform: translateX(-35px) scale(0.98);
}

[data-reveal="bottom"] {
  transform: translateY(35px) scale(0.98);
}

/* الحالة النهائية عند التفعيل */
[data-reveal="left"].revealed,
[data-reveal="bottom"].revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.home-cta-section {
  text-align: center;
  padding-block: 6rem 5rem;
}

.home-cta-content {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.home-cta-content .eyebrow {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

.home-cta-content h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}

.home-cta-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 0.8rem;
}

.home-cta-content .hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* === تصميم الأزرار العصرية المبتكرة === */
.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px; /* شكل انسيابي عصري */
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.modern-btn .btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* الزر الأساسي (Primary) */
.primary-modern {
  background: var(--accent, #7c3aed);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.35);
}

.primary-modern:hover .btn-icon {
  transform: translateX(4px); /* حركة خفيفة للسهم لليمين عند الـ Hover */
}

/* الزر الثانوي الشفاف (Outline) */
.outline-modern {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(10px);
}

.outline-modern:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  transform: translateY(-3px);
}

.outline-modern:hover .btn-icon {
  transform: scale(1.1) rotate(-10deg); /* حركة لطيفة للأيقونة */
}

/* حركة السكرول (Scroll Reveal Animation) */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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