/* ============ الموقع العام: تصميم حيّ بصور حقيقية وحركة وعمق ثلاثي الأبعاد ============ */
.s-body { background: #fff; overflow-x: hidden; }
.s-nav { position: fixed; inset-inline: 0; top: 0; z-index: 40; transition: background .3s, box-shadow .3s; }
.s-nav .wrap { display: flex; align-items: center; gap: 18px; height: 76px; }
.s-nav .nav-brand { color: #fff; }
.s-nav .nav-brand img { height: 48px; background: #fff; border-radius: 12px; padding: 3px; }
.s-nav .links { display: flex; gap: 22px; margin-inline-start: 16px; }
.s-nav .links a { color: rgba(255,255,255,.9); font-weight: 500; }
.s-nav.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(15,27,61,.08); }
.s-nav.solid .nav-brand, .s-nav.solid .links a { color: var(--navy); }
.s-nav .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.s-nav.solid .btn.ghost { color: var(--brand); border-color: var(--line); }

/* ---------- hero ---------- */
.s-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #0b1530; }
.s-hero .slides, .s-hero .slides div { position: absolute; inset: 0; }
.s-hero .slides div { background-size: cover; background-position: center; opacity: 0; animation: heroFade 21s infinite, kenburns 21s infinite; }
.s-hero .slides div:nth-child(2) { animation-delay: 7s; }
.s-hero .slides div:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade { 0% { opacity: 0 } 5% { opacity: 1 } 33% { opacity: 1 } 40% { opacity: 0 } 100% { opacity: 0 } }
@keyframes kenburns { 0% { transform: scale(1.12) translate(0, 0) } 40% { transform: scale(1) translate(-2%, 1%) } 100% { transform: scale(1) } }
.s-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8,18,48,.25) 10%, rgba(8,18,48,.55) 45%, rgba(10,30,90,.85) 100%); }
.s-hero .wrap { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 90px; padding-bottom: 60px; }
.s-hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.15; margin: 0 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.s-hero h1 .grad { background: linear-gradient(90deg, #8fd3ff, #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-hero p.lead { font-size: clamp(16px, 1.6vw, 20px); opacity: .92; max-width: 34em; }
.s-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.wa { background: #1faa59; }
.btn.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn.lg { padding: .85em 1.6em; font-size: 16px; border-radius: 14px; }
.reveal-up { opacity: 0; transform: translateY(26px); animation: up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-up.d1 { animation-delay: .15s } .reveal-up.d2 { animation-delay: .3s } .reveal-up.d3 { animation-delay: .45s }
@keyframes up { to { opacity: 1; transform: none } }

/* بطاقة الشعار ثلاثية الأبعاد */
.card3d-stage { perspective: 1100px; display: flex; justify-content: center; }
.card3d { width: min(380px, 80vw); aspect-ratio: 400/350; border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6); transform-style: preserve-3d; animation: float3d 7s ease-in-out infinite; position: relative; }
.card3d img { position: absolute; inset: 7%; width: 86%; transform: translateZ(40px); }
.card3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.7) 45%, transparent 60%); background-size: 250% 100%; animation: shine 6s linear infinite; pointer-events: none; }
@keyframes float3d { 0%,100% { transform: rotateY(-14deg) rotateX(8deg) translateY(0) } 50% { transform: rotateY(12deg) rotateX(-4deg) translateY(-14px) } }
@keyframes shine { from { background-position: 150% 0 } to { background-position: -100% 0 } }

/* طائرة تطير عبر الهيرو */
.fly { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.fly svg { width: 100%; height: 100%; }
.fly .trail { stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600 } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; z-index: 2; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { from { opacity: 1; transform: none } to { opacity: 0; transform: translateY(12px) } }

/* ---------- sections ---------- */
.s-sec { padding: 96px 0; position: relative; }
.s-sec.alt { background: linear-gradient(180deg, #f5f8fe, #fff); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--brand); background: #e8f0fd; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.s-title { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; color: var(--navy); }
.s-lead { color: var(--muted); font-size: 17px; max-width: 42em; }
.center { text-align: center; } .center .s-lead { margin-inline: auto; }
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -60px; position: relative; z-index: 5; }
.stat { background: #fff; border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 16px 40px rgba(15,27,61,.1); }
.stat b { display: block; font-size: 34px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }

/* بطاقات الخدمات مع ميلان ثلاثي الأبعاد */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 40px; perspective: 1200px; }
.svc { position: relative; display: block; height: 340px; border-radius: 22px; overflow: hidden; color: #fff !important; text-decoration: none !important; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s; box-shadow: 0 14px 40px rgba(15,27,61,.18); }
.svc:hover { box-shadow: 0 30px 60px rgba(15,27,61,.3); }
.svc .ph { position: absolute; inset: -10px; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.svc:hover .ph { transform: scale(1.1); }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,48,0) 30%, rgba(8,18,48,.88) 100%); }
.svc .tx { position: absolute; inset-inline: 22px; bottom: 20px; z-index: 2; transform: translateZ(50px); }
.svc h3 { font-size: 22px; margin: 0 0 4px; }
.svc p { margin: 0; font-size: 14px; opacity: .88; }
.svc .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(4px); }
.svc .en { position: absolute; top: 16px; inset-inline-start: 18px; z-index: 2; font-size: 12px; letter-spacing: .1em; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 99px; backdrop-filter: blur(4px); transform: translateZ(40px); }

/* الكرة الأرضية */
.globe-sec { background: radial-gradient(ellipse at 30% 50%, #13265e 0%, #070d22 70%); color: #fff; overflow: hidden; }
.globe-sec .s-title { color: #fff; }
.globe-sec .s-lead { color: rgba(255,255,255,.75); }
.globe-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
#globe { height: 560px; position: relative; cursor: grab; }
#globe canvas { outline: none; }
.globe-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.dest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dest-list button { all: unset; cursor: pointer; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: background .2s, transform .2s; }
.dest-list button:hover, .dest-list button.on { background: rgba(45,142,230,.35); transform: translateX(-4px); }
.dest-list b { display: block; } .dest-list small { opacity: .7; }

/* الوجهات */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; margin-top: 40px; }
.dest { position: relative; border-radius: 20px; overflow: hidden; color: #fff; }
.dest:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.dest:nth-child(6) { grid-column: span 2; }
.dest .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.dest:hover .ph { transform: scale(1.12) rotate(.5deg); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.dest .tx { position: absolute; bottom: 14px; inset-inline: 16px; z-index: 2; }
.dest h3 { margin: 0; font-size: 20px; } .dest small { opacity: .85; }
.dest .wa-mini { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(255,255,255,.9); color: #1faa59; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 99px; opacity: 0; transform: translateY(-6px); transition: .25s; text-decoration: none; }
.dest:hover .wa-mini { opacity: 1; transform: none; }

/* من نحن */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about .pics { position: relative; height: 460px; perspective: 1000px; }
.about .pics div { position: absolute; border-radius: 22px; background-size: cover; background-position: center; box-shadow: 0 25px 60px rgba(15,27,61,.25); transition: transform .6s; }
.about .pics .p1 { inset: 0 18% 22% 0; transform: rotateY(8deg) rotateZ(-2deg); }
.about .pics .p2 { inset: 40% 0 0 34%; transform: rotateY(-10deg) rotateZ(3deg) translateZ(40px); border: 6px solid #fff; }
.about .pics:hover .p1 { transform: rotateY(0) rotateZ(0); } .about .pics:hover .p2 { transform: translateZ(60px); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(21,83,182,.35); }
.feat b { display: block; } .feat span { color: var(--muted); font-size: 14px; }

/* خطوات */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: st; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,27,61,.1); }
.step::before { counter-increment: st; content: counter(st); position: absolute; top: -16px; inset-inline-start: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* CTA */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; color: #fff; padding: 64px 48px; background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,90,.9), rgba(21,83,182,.6)); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 10px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.contact-cards .c { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }

/* زر واتساب العائم */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5); animation: pulse 2.4s infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55) } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0) } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0) } }

/* صفحة الخدمة */
.svc-hero { position: relative; height: 62vh; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.svc-hero .ph { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 18s ease-out forwards; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,18,48,.35), rgba(8,18,48,.85)); }
.svc-hero .wrap { position: relative; z-index: 2; padding-bottom: 50px; width: 100%; }
.svc-hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 0; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { background: #f5f8fe; border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.s-footer { background: #070d22; color: #9aa6c2; padding: 50px 0 30px; }
.s-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.s-footer a { color: #cfd8ee; display: block; margin: 4px 0; }
.s-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .s-nav .links { display: none; }
  .s-hero .wrap, .globe-wrap, .about { grid-template-columns: 1fr; }
  .card3d { width: 240px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .dest-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .dest:nth-child(1), .dest:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  #globe { height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feats, .checks { grid-template-columns: 1fr; }
  .about .pics { height: 320px; }
  .s-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .s-sec { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .s-hero .slides div:first-child { opacity: 1; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}
