/* ============================================================
   UDI Co — Luxury Dark Theme
   ============================================================ */
:root {
    --gold: #C9A961;
    --gold-light: #E5CD8F;
    --gold-dark: #9C7F3E;
    --navy: #0B1120;
    --bg: #05080F;
    --surface: #0F172A;
    --surface-2: #131C33;
    --text: #E8E6E1;
    --muted: #8B94A7;
    --line: rgba(201,169,97,.18);
    --line-soft: rgba(255,255,255,.06);
    --radius: 4px;
    --ease: cubic-bezier(.22,1,.36,1);
    --header-h: 90px;
    --font-ar: 'Tajawal', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    max-width: 100vw;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.lang-ar { font-family: var(--font-ar); font-weight: 400; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4, body.lang-ar h5, body.lang-ar .display-title, body.lang-ar .brand-text { font-family: var(--font-ar); font-weight: 700; }
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en .display-title, body.lang-en .brand-text { font-family: var(--font-display); font-weight: 500; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
@media (max-width: 991px) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; } .cursor-dot, .cursor-ring { display: none !important; } }

a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { color: #fff; line-height: 1.2; margin: 0 0 1rem; }
p { color: var(--muted); }
::selection { background: var(--gold); color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

.container-xl { max-width: 1320px; }
section { position: relative; overflow-x: clip; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 80px 0; } .section-sm { padding: 60px 0; } }

/* ---- Typography helpers ---- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--gold); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500;
    margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
body.lang-ar .eyebrow { letter-spacing: .05em; font-size: .9rem; }
.display-title { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.section-title { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 1.25rem; }
.section-title em { font-style: italic; color: var(--gold); }
body.lang-ar .section-title em { font-style: normal; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--gold); }
.lead-text { font-size: 1.15rem; color: var(--muted); }
.text-gold { color: var(--gold) !important; }
.gold-line { width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.5rem 0; }

/* ---- Buttons ---- */
.btn-gold, .btn-outline-gold, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 36px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
    border: 1px solid var(--gold); position: relative; overflow: hidden; transition: all .45s var(--ease);
    border-radius: var(--radius); white-space: nowrap;
}
body.lang-ar .btn-gold, body.lang-ar .btn-outline-gold, body.lang-ar .btn-ghost { letter-spacing: 0; font-size: .95rem; }
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold::before { content: ''; position: absolute; inset: 0; background: var(--gold-light); transform: translateX(-101%); transition: transform .45s var(--ease); z-index: 0; }
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold:hover { color: #000; box-shadow: 0 10px 40px rgba(201,169,97,.35); transform: translateY(-2px); }
.btn-outline-gold { background: transparent; color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #000; box-shadow: 0 10px 40px rgba(201,169,97,.25); }
.btn-ghost { border-color: rgba(255,255,255,.2); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 12px 24px; font-size: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
body.lang-ar .link-arrow { letter-spacing: 0; font-size: .95rem; }
.link-arrow i { transition: transform .3s; }
.link-arrow:hover i { transform: translateX(6px); }
[dir=rtl] .link-arrow:hover i { transform: translateX(-6px); }
[dir=rtl] .bi-arrow-right::before { content: "\f12f"; }
[dir=rtl] .bi-arrow-left::before { content: "\f138"; }

/* ---- Preloader ---- */
#preloader { position: fixed; inset: 0; background: var(--bg); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity .8s, visibility .8s; }
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-inner img { max-height: 70px; margin: 0 auto 24px; }
.preloader-logo { font-family: var(--font-display); font-size: 2rem; letter-spacing: .3em; color: var(--gold); display: block; margin-bottom: 24px; text-transform: uppercase; }
body.lang-ar .preloader-logo { font-family: var(--font-ar); letter-spacing: 0; }
.preloader-bar { width: 200px; height: 1px; background: rgba(255,255,255,.1); margin: 0 auto; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--gold); animation: loadbar 1.2s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---- Cursor ---- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99998; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--gold); transition: opacity .3s; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(201,169,97,.6); transition: width .3s, height .3s, border-color .3s, background .3s; }
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(201,169,97,.1); border-color: var(--gold); }

/* ---- Scroll progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10000; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width .1s linear; }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all .5s var(--ease); padding: 22px 0; }
.site-header.scrolled { padding: 10px 0; background: rgba(5,8,15,.82); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line-soft); }
.site-header.hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 46px; width: auto; transition: height .4s; }
.site-header.scrolled .brand-logo { height: 38px; }
.brand-mark { width: 46px; height: 46px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--font-display); font-size: .95rem; letter-spacing: .08em; font-weight: 600; }
.brand-text { font-size: 1.15rem; color: #fff; letter-spacing: .04em; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 16px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78); position: relative; font-weight: 500; }
body.lang-ar .nav-links a { letter-spacing: 0; font-size: .98rem; }
.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .85rem; letter-spacing: .05em; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s; }
.lang-switch:hover { background: var(--gold); color: #000; }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: var(--radius); }
.menu-toggle span { display: block; width: 20px; height: 1px; background: #fff; transition: all .4s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199px) { .nav-links { display: none; } .menu-toggle { display: flex; } }

.mobile-menu { position: fixed; inset: 0; z-index: 999; background: var(--bg); clip-path: circle(0 at calc(100% - 60px) 50px); transition: clip-path .8s var(--ease); display: flex; align-items: center; }
[dir=rtl] .mobile-menu { clip-path: circle(0 at 60px 50px); }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 60px) 50px); }
[dir=rtl] .mobile-menu.open { clip-path: circle(150% at 60px 50px); }
.mobile-menu-inner { width: 100%; padding: 100px 40px 60px; max-width: 700px; margin: 0 auto; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 40px; }
.mobile-menu li a { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); padding: 10px 0; color: #fff; font-family: var(--font-display); border-bottom: 1px solid var(--line-soft); transform: translateY(30px); opacity: 0; transition: all .6s var(--ease); }
body.lang-ar .mobile-menu li a { font-family: var(--font-ar); }
.mobile-menu.open li a { transform: none; opacity: 1; }
.mobile-menu.open li:nth-child(n) a { transition-delay: calc(.1s + var(--i, 0) * .05s); }
.mobile-menu li a:hover { color: var(--gold); padding-inline-start: 12px; }
.mobile-menu-footer { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* ---- Socials ---- */
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); border-radius: var(--radius); transition: all .35s; font-size: 1rem; }
.socials a:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-3px); }

/* ---- Hero ---- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero-slide.active img { transform: scale(1); }
.hero-slide .fallback { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(201,169,97,.16), transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(30,58,138,.35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--bg) 100%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.6) 50%, rgba(5,8,15,.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); z-index: 1; }
[dir=rtl] .hero-overlay { background: linear-gradient(270deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.6) 50%, rgba(5,8,15,.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(201,169,97,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,97,.05) 1px, transparent 1px); background-size: 120px 120px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 80px 0; }
.hero-text { display: none; }
.hero-text.active { display: block; }
.hero-text .eyebrow, .hero-text h1, .hero-text p, .hero-text .hero-actions { animation: rise 1s var(--ease) both; }
.hero-text h1 { animation-delay: .15s; }
.hero-text p { animation-delay: .3s; font-size: 1.15rem; max-width: 600px; margin-bottom: 2.5rem; }
.hero-text .hero-actions { animation-delay: .45s; display: flex; gap: 16px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; bottom: 50px; inset-inline-end: 5%; z-index: 3; display: flex; align-items: center; gap: 20px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 40px; height: 2px; background: rgba(255,255,255,.25); border: 0; padding: 0; transition: all .4s; position: relative; overflow: hidden; }
.hero-dots button.active { background: rgba(255,255,255,.25); }
.hero-dots button.active::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: dotfill 7s linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-counter { font-family: var(--font-display); color: var(--gold); font-size: 1.1rem; letter-spacing: .1em; }
.hero-scroll { position: absolute; bottom: 50px; inset-inline-start: 5%; z-index: 3; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.hero-scroll .line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollline 2s ease infinite; }
@keyframes scrollline { to { top: 100%; } }
.hero-side-text { position: absolute; top: 50%; inset-inline-end: -20px; transform: translateY(-50%) rotate(90deg); z-index: 2; color: rgba(255,255,255,.15); font-size: .75rem; letter-spacing: .5em; text-transform: uppercase; white-space: nowrap; }
[dir=rtl] .hero-side-text { transform: translateY(-50%) rotate(-90deg); }
@media (max-width: 767px) { .hero-controls, .hero-side-text { display: none; } .hero-scroll { display: none; } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding: 22px 0; background: var(--navy); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; }
[dir=rtl] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 60px; font-family: var(--font-display); font-size: 1.3rem; color: rgba(255,255,255,.5); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
body.lang-ar .marquee-item { font-family: var(--font-ar); letter-spacing: 0; }
.marquee-item i { color: var(--gold); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---- About block ---- */
.about-media { position: relative; }
.about-media .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .frame img { transform: scale(1.05); }
.about-media .frame .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface) 0%, var(--navy) 100%); display: grid; place-items: center; color: var(--gold); font-size: 4rem; opacity: .6; }
.about-media::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--line); z-index: -1; border-radius: var(--radius); }
[dir=rtl] .about-media::before { inset: 24px 24px -24px -24px; }
.about-badge { position: absolute; bottom: 40px; inset-inline-end: -30px; background: var(--gold); color: #000; padding: 28px 32px; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.about-badge strong { display: block; font-size: 2.8rem; line-height: 1; font-family: var(--font-display); }
.about-badge span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 991px) { .about-badge { inset-inline-end: 10px; } .about-media { margin-bottom: 60px; } }
.feature-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--text); }
.feature-list li i { color: var(--gold); margin-top: 4px; }

/* ---- Stats ---- */
.stats { border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(201,169,97,.04), transparent); }
.stat { text-align: center; padding: 50px 20px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-inline-start: 0; top: 30%; height: 40%; width: 1px; background: var(--line-soft); }
.stat strong { display: block; font-size: clamp(2.6rem, 4vw, 4rem); font-family: var(--font-display); color: #fff; line-height: 1; margin-bottom: 10px; }
.stat strong span { color: var(--gold); }
.stat p { margin: 0; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
body.lang-ar .stat p { letter-spacing: 0; font-size: 1rem; }
@media (max-width: 767px) { .stat + .stat::before { display: none; } .stat { padding: 30px 10px; } }

/* ---- Service cards ---- */
.service-card { position: relative; padding: 48px 40px; background: var(--surface); border: 1px solid var(--line-soft); height: 100%; overflow: hidden; transition: all .5s var(--ease); border-radius: var(--radius); display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(201,169,97,.14), transparent 60%); opacity: 0; transition: opacity .5s; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service-card:hover { transform: translateY(-10px); border-color: var(--line); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; transform: scaleX(1); }
.service-num { position: absolute; top: 24px; inset-inline-end: 28px; font-family: var(--font-display); font-size: 3.5rem; color: rgba(255,255,255,.04); line-height: 1; transition: color .5s; }
.service-card:hover .service-num { color: rgba(201,169,97,.14); }
.service-icon { width: 68px; height: 68px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); font-size: 1.8rem; margin-bottom: 28px; transition: all .5s var(--ease); border-radius: var(--radius); position: relative; }
.service-card:hover .service-icon { background: var(--gold); color: #000; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 14px; position: relative; }
.service-card p { position: relative; flex: 1; margin-bottom: 24px; }
.service-card .link-arrow { position: relative; }

/* ---- Projects ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 56px; }
.filter-bar button { background: transparent; border: 1px solid var(--line-soft); color: var(--muted); padding: 10px 22px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; transition: all .35s; border-radius: var(--radius); }
body.lang-ar .filter-bar button { letter-spacing: 0; font-size: .95rem; }
.filter-bar button:hover, .filter-bar button.active { border-color: var(--gold); color: var(--gold); background: rgba(201,169,97,.06); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); grid-column: span 4; aspect-ratio: 4/5; background: var(--surface); transition: opacity .5s, transform .5s; }
.project-card.big { grid-column: span 8; aspect-ratio: auto; }
.project-card.hide { display: none; }
@media (max-width: 991px) { .project-card, .project-card.big { grid-column: span 6; aspect-ratio: 4/5; } }
@media (max-width: 575px) { .project-card, .project-card.big { grid-column: span 12; } }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(30%) brightness(.85); }
.project-card .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-2), var(--navy)); display: grid; place-items: center; color: rgba(201,169,97,.35); font-size: 3.5rem; }
.project-card:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,15,.95) 0%, rgba(5,8,15,.3) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.project-card .cat { color: var(--gold); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; transform: translateY(10px); opacity: .8; transition: all .5s var(--ease); }
body.lang-ar .project-card .cat { letter-spacing: 0; font-size: .9rem; }
.project-card h3 { font-size: 1.5rem; margin: 0; transform: translateY(10px); transition: transform .5s var(--ease); }
.project-card .meta { color: var(--muted); font-size: .85rem; margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: all .5s var(--ease); }
.project-card:hover .cat, .project-card:hover h3 { transform: none; opacity: 1; }
.project-card:hover .meta { max-height: 60px; opacity: 1; }
.project-card .corner { position: absolute; top: 24px; inset-inline-end: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; opacity: 0; transform: translate(10px,-10px); transition: all .5s var(--ease); border-radius: var(--radius); }
.project-card:hover .corner { opacity: 1; transform: none; background: var(--gold); color: #000; border-color: var(--gold); }

/* ---- Process timeline ---- */
.process { counter-reset: step; }
.process-item { position: relative; padding: 40px 32px; border: 1px solid var(--line-soft); background: var(--surface); height: 100%; border-radius: var(--radius); transition: all .5s var(--ease); }
.process-item:hover { border-color: var(--line); transform: translateY(-8px); background: var(--surface-2); }
.process-item .step { font-family: var(--font-display); font-size: 3.2rem; color: var(--gold); opacity: .25; line-height: 1; margin-bottom: 20px; transition: opacity .5s; }
.process-item:hover .step { opacity: 1; }
.process-item h4 { font-size: 1.15rem; }
.process-item p { margin: 0; font-size: .95rem; }
.process-line { position: absolute; top: 60px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4; }
@media (max-width: 991px) { .process-line { display: none; } }

/* ---- Team ---- */
.team-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.team-card .photo { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all .8s var(--ease); }
.team-card .photo .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(201,169,97,.35); font-size: 4rem; background: linear-gradient(135deg, var(--surface-2), var(--navy)); }
.team-card:hover .photo img { filter: grayscale(0); transform: scale(1.06); }
.team-card .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; background: linear-gradient(to top, rgba(5,8,15,.98), rgba(5,8,15,.6), transparent); transform: translateY(20px); transition: transform .5s var(--ease); }
.team-card:hover .info { transform: none; }
.team-card h4 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .pos { color: var(--gold); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
body.lang-ar .team-card .pos { letter-spacing: 0; font-size: .9rem; }
.team-card .links { display: flex; gap: 8px; margin-top: 14px; opacity: 0; transition: opacity .5s .1s; }
.team-card:hover .links { opacity: 1; }
.team-card .links a { width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); font-size: .9rem; }
.team-card .links a:hover { background: var(--gold); color: #000; }

/* ---- Testimonials ---- */
.testi-wrap { position: relative; }
.testi-card { background: var(--surface); border: 1px solid var(--line-soft); padding: 48px 40px; height: 100%; position: relative; border-radius: var(--radius); transition: all .5s var(--ease); }
.testi-card:hover { border-color: var(--line); transform: translateY(-6px); }
.testi-card .quote { position: absolute; top: 24px; inset-inline-end: 32px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: rgba(201,169,97,.12); }
.testi-card .stars { color: var(--gold); margin-bottom: 20px; font-size: .9rem; letter-spacing: 2px; }
.testi-card p.text { color: var(--text); font-size: 1.05rem; font-style: italic; margin-bottom: 28px; line-height: 1.8; }
body.lang-ar .testi-card p.text { font-style: normal; }
.testi-card .author { display: flex; align-items: center; gap: 16px; }
.testi-card .author .av { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); background: var(--navy); display: grid; place-items: center; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.testi-card .author .av img { width: 100%; height: 100%; object-fit: cover; }
.testi-card .author strong { display: block; color: #fff; font-weight: 500; }
.testi-card .author span { font-size: .85rem; color: var(--muted); }

/* ---- Clients ---- */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-logo { flex: 1 1 180px; max-width: 220px; height: 110px; display: grid; place-items: center; border: 1px solid var(--line-soft); background: var(--surface); padding: 20px; border-radius: var(--radius); transition: all .4s; filter: grayscale(100%) opacity(.6); }
.client-logo:hover { filter: none; border-color: var(--line); transform: translateY(-4px); }
.client-logo img { max-height: 55px; object-fit: contain; }
.client-logo span { color: rgba(255,255,255,.6); font-family: var(--font-display); text-align: center; font-size: 1rem; }

/* ---- Blog ---- */
.blog-card { background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); transition: all .5s var(--ease); }
.blog-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.blog-card .thumb .ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-2), var(--navy)); display: grid; place-items: center; color: rgba(201,169,97,.35); font-size: 3rem; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .date { position: absolute; top: 20px; inset-inline-start: 20px; background: var(--gold); color: #000; padding: 8px 14px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-align: center; line-height: 1.3; border-radius: var(--radius); }
.blog-card .date strong { display: block; font-size: 1.3rem; font-family: var(--font-display); }
.blog-card .body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { flex: 1; font-size: .95rem; }
.blog-card .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; margin-bottom: 14px; }
.article-body { font-size: 1.1rem; line-height: 1.9; color: var(--text); }
.article-body p { color: var(--text); }
.article-body img { border-radius: var(--radius); margin: 2rem 0; }
.article-hero { aspect-ratio: 21/9; overflow: hidden; border-radius: var(--radius); margin-bottom: 3rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---- CTA ---- */
.cta { position: relative; overflow: hidden; padding: 140px 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,169,97,.16) 0%, transparent 60%), var(--navy); }
.cta-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,169,97,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,97,.06) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, black, transparent 70%); }
.cta .container-xl { position: relative; }
.cta h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); max-width: 900px; margin: 0 auto 1.5rem; }
.cta p { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Page hero ---- */
.page-hero { padding: calc(var(--header-h) + 100px) 0 100px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(201,169,97,.14), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(30,58,138,.25), transparent 50%), var(--navy); }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,169,97,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,97,.05) 1px, transparent 1px); background-size: 100px 100px; mask-image: linear-gradient(to bottom, black, transparent); }
.page-hero-content { position: relative; }
.breadcrumb-lux { display: flex; gap: 12px; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
body.lang-ar .breadcrumb-lux { letter-spacing: 0; font-size: .95rem; }
.breadcrumb-lux .sep { color: var(--gold); }

/* ---- Details ---- */
.detail-sidebar { background: var(--surface); border: 1px solid var(--line-soft); padding: 36px; border-radius: var(--radius); position: sticky; top: 120px; }
.detail-sidebar h4 { font-size: 1.1rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.detail-list li:last-child { border: 0; }
.detail-list li span:first-child { color: var(--muted); }
.detail-list li span:last-child { color: #fff; text-align: end; }
.service-nav { list-style: none; padding: 0; margin: 0; }
.service-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line-soft); margin-bottom: 8px; color: var(--muted); border-radius: var(--radius); transition: all .3s; }
.service-nav a:hover, .service-nav a.active { border-color: var(--gold); color: #fff; background: rgba(201,169,97,.06); padding-inline-start: 24px; }
.service-nav a i { color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: '\f341'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,8,15,.5); color: var(--gold); font-size: 1.8rem; opacity: 0; transition: opacity .4s; }
.gallery a:hover::after { opacity: 1; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } }
.detail-main-img { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: 40px; }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.content-rich { font-size: 1.08rem; line-height: 1.9; }
.content-rich p { color: var(--text); }

/* ---- Contact ---- */
.contact-card { background: var(--surface); border: 1px solid var(--line-soft); padding: 36px; border-radius: var(--radius); height: 100%; transition: all .4s; }
.contact-card:hover { border-color: var(--line); transform: translateY(-4px); }
.contact-card .ic { width: 56px; height: 56px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 1.4rem; margin-bottom: 20px; border-radius: var(--radius); }
.contact-card h5 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
body.lang-ar .contact-card h5 { letter-spacing: 0; }
.contact-card p, .contact-card a { color: #fff; font-size: 1.05rem; margin: 0; }
.lux-form .form-control, .lux-form .form-select { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0; color: #fff; padding: 16px 0; font-size: 1rem; box-shadow: none; transition: border-color .3s; }
.lux-form .form-control:focus { border-bottom-color: var(--gold); background: transparent; color: #fff; box-shadow: none; }
.lux-form .form-control::placeholder { color: var(--muted); }
.lux-form textarea.form-control { min-height: 140px; resize: vertical; }
.lux-form label { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0; }
body.lang-ar .lux-form label { letter-spacing: 0; font-size: .9rem; }
.lux-form .text-danger { font-size: .8rem; }
.map-frame { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; filter: grayscale(100%) invert(92%) contrast(85%); aspect-ratio: 21/9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.alert-lux { border: 1px solid var(--gold); background: rgba(201,169,97,.08); color: var(--gold-light); padding: 18px 24px; border-radius: var(--radius); display: flex; gap: 12px; align-items: center; }

/* ---- Profile ---- */
.profile-viewer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 80vh; background: var(--surface); }
.profile-viewer iframe { width: 100%; height: 100%; border: 0; }

/* ---- 404 ---- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 14rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .6; }

/* ---- Footer ---- */
.site-footer { position: relative; background: var(--navy); padding: 100px 0 0; border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(201,169,97,.1), transparent 70%); pointer-events: none; }
.footer-desc { max-width: 380px; margin-bottom: 28px; }
.footer-title { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 28px; position: relative; padding-bottom: 14px; }
body.lang-ar .footer-title { letter-spacing: 0; font-size: 1.05rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 1px; background: var(--gold); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); font-size: .95rem; position: relative; padding-inline-start: 0; transition: all .3s; }
.footer-links a:hover { color: var(--gold); padding-inline-start: 10px; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; color: var(--muted); font-size: .95rem; }
.footer-contact li i { color: var(--gold); margin-top: 4px; }
.footer-contact a { color: var(--muted); }
.footer-bottom { margin-top: 80px; padding: 28px 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
.admin-link { color: rgba(255,255,255,.2); }
.admin-link:hover { color: var(--gold); }

/* ---- Floating ---- */
.whatsapp-float { position: fixed; bottom: 30px; inset-inline-start: 30px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; z-index: 900; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .3s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-top { position: fixed; bottom: 30px; inset-inline-end: 30px; width: 50px; height: 50px; border: 1px solid var(--gold); background: rgba(5,8,15,.8); color: var(--gold); z-index: 900; opacity: 0; visibility: hidden; transition: all .4s; border-radius: var(--radius); backdrop-filter: blur(10px); }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--gold); color: #000; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(5,8,15,.96); z-index: 20000; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .4s; padding: 40px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border: 1px solid var(--line); transform: scale(.9); transition: transform .4s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox-close { position: absolute; top: 24px; inset-inline-end: 24px; width: 50px; height: 50px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.2rem; }
.lightbox-close:hover { background: var(--gold); color: #000; }

/* ---- Reveal animations ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; } [data-delay="2"] { transition-delay: .2s; } [data-delay="3"] { transition-delay: .3s; } [data-delay="4"] { transition-delay: .4s; } [data-delay="5"] { transition-delay: .5s; } [data-delay="6"] { transition-delay: .6s; }

/* ---- Decorative ---- */
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; }
.orb-gold { background: rgba(201,169,97,.25); width: 400px; height: 400px; }
.orb-blue { background: rgba(30,58,138,.35); width: 500px; height: 500px; }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4; }
.big-word { position: absolute; top: 40px; inset-inline-end: 0; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,169,97,.1); pointer-events: none; user-select: none; text-transform: uppercase; white-space: nowrap; }
body.lang-ar .big-word { font-family: var(--font-ar); }

/* ---- Mobile hardening ---- */
@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .site-header { padding: 14px 0; }
    .brand-logo { height: 38px; }
    .brand-mark { width: 40px; height: 40px; font-size: .85rem; }
    .brand-text { font-size: 1rem; }
    .nav-actions { gap: 10px; }
    .lang-switch { padding: 8px 10px; }
    .hero { min-height: 100svh; }
    .hero-content { padding: 60px 0 100px; }
    .hero-text p { font-size: 1.02rem; }
    .display-title { font-size: clamp(2rem, 8.5vw, 3.2rem); }
    .section-title { font-size: clamp(1.7rem, 6.5vw, 2.6rem); }
    .page-hero { padding: calc(var(--header-h) + 60px) 0 60px; }
    .big-word { display: none; }
    .orb { width: 260px !important; height: 260px !important; }
    .about-media::before { display: none; }
    .about-badge { inset-inline-end: 12px; bottom: 16px; padding: 18px 22px; }
    .about-badge strong { font-size: 2rem; }
    .detail-sidebar { position: static; padding: 28px; }
    .service-card { padding: 34px 26px; }
    .contact-card { padding: 28px; }
    .blog-card .body { padding: 24px; }
    .footer-glow { width: 100vw; }
    .site-footer { padding-top: 70px; }
    .footer-bottom { margin-top: 50px; justify-content: center; text-align: center; }
    .cta { padding: 90px 0; }
    .reveal-left, .reveal-right { transform: translateY(40px); }
    .whatsapp-float { bottom: 20px; inset-inline-start: 20px; width: 50px; height: 50px; font-size: 1.4rem; }
    .back-top { bottom: 20px; inset-inline-end: 20px; width: 44px; height: 44px; }
    .lightbox { padding: 16px; }
    .profile-viewer { height: 70vh; }
}
@media (max-width: 575px) {
    .brand-text { display: none; }
    .lang-switch span { display: none; }
    .lang-switch { padding: 10px 12px; }
    .container-xl { padding-left: 20px; padding-right: 20px; }
    .hero-actions > a, .cta-actions > * { width: 100%; justify-content: center; }
    .eyebrow::before { width: 24px; }
    .stat strong { font-size: 2.4rem; }
    .breadcrumb-lux { flex-wrap: wrap; }
    .marquee-item { font-size: 1rem; gap: 30px; }
    .marquee-track { gap: 30px; }
    .mobile-menu-inner { padding: 90px 24px 40px; }
    .project-grid { gap: 16px; }
}
