/*
====================================================================
اسم الملف: styles.css
المشروع: مَشهَد 3D (Mashhad 3D)
الوحدة / الشاشة التابع لها: صفحة الهبوط الرسمية (landing_page)
الوظيفة: تنسيق الهوية البصرية الفاخرة (أسود فحمي #0E0E10، كروت #16161A،
         ذهبي مطفي #D4AF37، وأبيض نقي #FFFFFF)، الحركات السينمائية،
         سلايدر قبل/بعد، المعرض التفاعلي، والباقات مع دعم RTL الكامل
المدخلات: متغيرات CSS وأقسام index.html
المخرجات: واجهة متجاوبة عالية الأداء متوافقة مع prefers-reduced-motion
====================================================================
*/

:root {
  --bg-primary: #0e0e10;
  --bg-card: #16161a;
  --bg-elevated: #1e1e24;
  --gold: #d4af37;
  --gold-light: #ebd178;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-border: rgba(212, 175, 55, 0.28);
  --white: #ffffff;
  --text-muted: #a8a8b3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --whatsapp: #25d366;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-gold: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.08);
  --mx: 50%;
  --my: 25%;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--white);
}

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* خلفية هندسية ذهبية خفيفة متحركة مع مؤشر الفأرة (Parallax Glow) */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(680px circle at var(--mx) var(--my), rgba(212, 175, 55, 0.11), transparent 65%),
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  transition: background-position 0.15s ease-out;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1220px, 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.3;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gold-text {
  color: var(--gold);
}

.latin-brand {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.12em;
}

/* أزرار موحدة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b88e1f 100%);
  color: #0e0e10;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.42);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--gold-border);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* شريط التنقل الزجاجي الثابت */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(14, 14, 16, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* قسم Hero السينمائي */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.3vw, 3.35rem);
  font-weight: 900;
  line-height: 1.24;
}

.hero-desc {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(390px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-gold);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0a0a0c;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.82);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 4px;
  font-size: 0.9rem;
}

.hero-card-caption span:last-child {
  color: var(--gold);
  font-weight: 700;
}

/* سلايدر المقارنة قبل وبعد */
.compare-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.compare-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 14px;
}

.compare-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.compare-points li::before {
  content: "✦";
  color: var(--gold);
  font-weight: 900;
  flex-shrink: 0;
}

.compare-stage {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-gold);
  direction: ltr;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  --pos: 52%;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(14, 14, 16, 0.82);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.compare-label-before {
  left: 14px;
  color: #e4e4e7;
}

.compare-label-after {
  right: 14px;
  color: var(--gold-light);
  border-color: var(--gold-border);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--gold);
  z-index: 4;
  transform: translateX(-50%);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #0e0e10;
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

/* معرض الأعمال التفاعلي + فيديو 360 */
.gallery-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.aspect-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px;
  gap: 6px;
}

.aspect-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aspect-btn.active {
  background: var(--gold);
  color: #0e0e10;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.portfolio-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}

.portfolio-media-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0a0c;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: relative;
}

.portfolio-grid[data-aspect="1x1"] .portfolio-media-btn {
  aspect-ratio: 1 / 1;
}

.portfolio-media-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-media-btn img {
  transform: scale(1.03);
}

.portfolio-zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-card:hover .portfolio-zoom-hint {
  opacity: 1;
}

.portfolio-meta {
  padding: 12px 4px 4px;
}

.portfolio-meta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.portfolio-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* إطار فيديو الدوران 360 */
.spin-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-gold);
}

.spin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spin-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.spin-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.spin-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0a0a0c;
  border: 1px solid var(--border-subtle);
}

.spin-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spin-caption {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* مكوّن صمّم عينتك خلال 30 ثانية */
.builder-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.builder-group {
  margin-bottom: 24px;
}

.builder-group:last-child {
  margin-bottom: 0;
}

.builder-label {
  display: block;
  font-weight: 800;
  font-size: 0.96rem;
  margin-bottom: 10px;
  color: var(--gold-light);
}

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

.pill-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--gold-border);
  color: var(--white);
}

.pill-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-light);
}

.builder-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.builder-input:focus {
  border-color: var(--gold);
}

.builder-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
}

.builder-preview h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.whatsapp-preview-msg {
  background: #141916;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.92rem;
  color: #e4e4e7;
  white-space: pre-line;
  margin-bottom: 20px;
}

/* الباقات الثلاث */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
}

.package-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 45%);
  box-shadow: var(--shadow-gold);
}

.package-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #0e0e10;
  font-size: 0.78rem;
  font-weight: 800;
}

.package-name {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 800;
}

.package-tag {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.package-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  flex-shrink: 0;
}

.guarantee-banner {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  text-align: center;
  font-weight: 700;
  color: var(--gold-light);
}

/* الفوتر والزر العائم */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 96px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.floating-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #08150c;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-wa.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.floating-wa:hover {
  transform: translateY(-3px);
}

/* نافذة التكبير Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 20px;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--white);
  font-size: 1.1rem;
  z-index: 2;
}

.lightbox-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0a0a0c;
}

.lightbox-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.lightbox-footer h4 {
  margin: 0 0 2px;
}

.lightbox-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* حركات الظهور المتتابع عند التمرير */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .compare-wrapper,
  .portfolio-layout,
  .builder-box,
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .spin-card {
    position: static;
    max-width: 380px;
    margin-inline: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(14, 14, 16, 0.96);
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

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

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

  .compare-wrapper,
  .builder-box {
    padding: 24px 18px;
  }

  .floating-wa span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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