/* Reception Display: full-screen, auto-rotating presentation for the office TV. */
:root {
  --dark-950: #0e0e0e;
  --dark-900: #141414;
  --dark-700: #2b2b2b;
  --gold-400: #dcc283;
  --gold-500: #c8a85a;
  --gold-grad: linear-gradient(135deg, #e3cb8b 0%, #c8a85a 45%, #a8863a 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --pad: clamp(24px, 5vw, 96px);
  --slide: 10s;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--dark-950); color: #fff; overflow: hidden; }
body { font-family: var(--font); font-size: clamp(16px, 1.5vw, 30px); line-height: 1.45; }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.7; }
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2) { letter-spacing: 0; line-height: 1.45; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.icon { width: 1.4em; height: 1.4em; flex: none; }

/* top bar */
.d-top { position: fixed; z-index: 10; inset: 0 0 auto 0; display: flex; align-items: center; gap: 16px; padding: 18px var(--pad); background: linear-gradient(180deg, rgba(14, 14, 14, .85), transparent); }
.d-mark { height: 2.6em; width: auto; }
.d-co { font-weight: 700; font-size: .85em; color: #eeebe5; }
.d-clock { margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-400); font-size: 1.05em; font-family: var(--font); }

/* deck and slides */
.d-deck { position: fixed; inset: 0; }
.d-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: calc(var(--pad) + 2.6em) var(--pad) calc(var(--pad) + 2em); opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; background: radial-gradient(1400px 700px at 85% 0%, rgba(200, 168, 90, .16), transparent 60%), var(--dark-900); overflow: hidden; }
.d-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.d-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.d-slide.is-active .d-bg { animation: kenburns calc(var(--slide) + 2s) ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.d-bg + .d-inner::before { content: none; }
.d-slide:has(.d-bg)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 14, 14, .94) 0%, rgba(14, 14, 14, .78) 55%, rgba(14, 14, 14, .4) 100%); }
html[dir="rtl"] .d-slide:has(.d-bg)::before { background: linear-gradient(270deg, rgba(14, 14, 14, .94) 0%, rgba(14, 14, 14, .78) 55%, rgba(14, 14, 14, .4) 100%); }
.d-inner { position: relative; z-index: 2; width: 100%; max-width: 1700px; margin-inline: auto; }
.d-slide.is-active .d-inner > * { animation: d-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.d-slide.is-active .d-inner > :nth-child(2) { animation-delay: .15s; }
.d-slide.is-active .d-inner > :nth-child(3) { animation-delay: .3s; }
.d-slide.is-active .d-inner > :nth-child(4) { animation-delay: .45s; }
@keyframes d-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.d-slide h2 { font-size: 2.6em; font-weight: 800; margin-bottom: 1em; display: flex; align-items: center; gap: .5em; }
.d-slide h2::before { content: ""; width: 1.2em; height: 4px; border-radius: 4px; background: var(--gold-grad); flex: none; }

/* intro */
.d-kicker { color: var(--gold-400); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 1em; margin: 0 0 .6em; }
html[lang="ar"] .d-kicker { letter-spacing: 0; }
.d-intro h1 { font-size: 4.2em; font-weight: 800; max-width: 15em; text-wrap: balance; }
.d-lead { font-size: 1.45em; color: #dcd8d0; max-width: 30em; margin: .9em 0 0; }

/* brand */
.d-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
.d-logo { width: min(30vw, 50vh); height: auto; }
.d-name-en { font-size: 1.9em; font-weight: 800; margin: 1.1em 0 .2em; }
.d-name-ar { font-family: var(--font-ar); font-size: 1.7em; font-weight: 700; color: var(--gold-400); margin: 0 0 .7em; }
.d-line { color: #bdb8ae; font-size: 1.05em; margin: 0; }

/* services */
.d-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.d-services li { display: flex; flex-direction: column; gap: .8em; padding: 1.3em 1.2em; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(220, 194, 131, .25); font-weight: 700; font-size: 1.1em; line-height: 1.3; }
.d-services .icon { width: 2em; height: 2em; color: var(--gold-400); }
.d-slide.is-active .d-services li { animation: d-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.d-slide.is-active .d-services li:nth-child(n) { animation-delay: calc(.25s + var(--i, 0) * .08s); }

/* fleet */
.d-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3em; align-items: center; }
.d-list { display: grid; gap: .55em; }
.d-list li { display: flex; align-items: center; gap: .7em; font-size: 1.3em; font-weight: 600; }
.d-list li::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--gold-grad); flex: none; }
.d-collage { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.d-collage figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark-700); }
.d-collage img { width: 100%; height: 100%; object-fit: cover; }

/* projects */
.d-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em 2em; max-width: 1500px; }
.d-projects li { display: flex; flex-direction: column; gap: .2em; padding: 1em 1.2em; border-inline-start: 4px solid var(--gold-500); background: rgba(14, 14, 14, .55); border-radius: 0 14px 14px 0; }
html[dir="rtl"] .d-projects li { border-radius: 14px 0 0 14px; }
.d-projects strong { font-size: 1.25em; }
.d-projects span { color: var(--gold-400); font-size: .95em; }

/* certificates */
.d-certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4em; }
.d-certs li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4em; padding: 1.6em 1em; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(220, 194, 131, .3); }
.d-certs .icon { width: 3.2em; height: 3.2em; color: var(--gold-400); margin-bottom: .4em; }
.d-certs img { width: 100%; max-height: 52vh; object-fit: contain; object-position: top; background: #fff; border-radius: 12px; padding: .5em; margin-bottom: .6em; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.d-certs strong { color: #fff; font-size: 1.45em; font-family: var(--font); }
.d-certs span { color: var(--gold-400); font-size: 1em; }

/* stats */
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: 1.5em; }
.d-stats li { padding: 1.4em; border-radius: 22px; background: rgba(14, 14, 14, .6); border: 1px solid rgba(220, 194, 131, .3); display: flex; flex-direction: column; gap: .3em; }
.d-num { font-size: 3.4em; white-space: nowrap; font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font); }
.d-stats li > span:last-child { font-size: 1.15em; color: #e8e5df; }

/* contact */
.d-contact-list { display: grid; gap: .8em; }
.d-contact-list li { display: flex; align-items: center; gap: .8em; font-size: 1.35em; font-weight: 600; }
.d-contact-list .icon { color: var(--gold-400); }
.d-contact-list a { color: #fff; text-decoration: none; }
.d-contact-logo { display: grid; place-items: center; }
.d-contact-logo img { width: min(26vw, 46vh); }

/* progress and controls */
.d-progress { position: fixed; z-index: 10; inset: auto 0 0 0; height: 5px; background: rgba(255, 255, 255, .08); }
.d-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
html[dir="rtl"] .d-progress span { margin-inline-start: auto; }
.d-progress.run span { animation: d-progress var(--slide) linear forwards; }
.d-progress.paused span { animation-play-state: paused; }
@keyframes d-progress { from { width: 0; } to { width: 100%; } }
.d-controls { position: fixed; z-index: 11; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: rgba(14, 14, 14, .78); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); font-size: 15px; transition: opacity .5s, transform .5s; }
body.idle .d-controls { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
body.idle { cursor: none; }
.d-controls button, .d-controls a { font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; min-height: 38px; min-width: 38px; padding: 6px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.d-controls [data-act="prev"], .d-controls [data-act="next"] { font-size: 22px; padding: 0 10px; line-height: 1; }
html[dir="rtl"] .d-controls [data-act="prev"], html[dir="rtl"] .d-controls [data-act="next"] { transform: scaleX(-1); }
.d-controls button:hover, .d-controls a:hover { border-color: var(--gold-500); color: var(--gold-400); }
.d-controls [aria-pressed="true"] { background: var(--gold-500); color: var(--dark-950); border-color: var(--gold-500); }
.d-dots { display: flex; gap: 6px; padding-inline: 6px; }
.d-dots .d-dot { min-width: 0; min-height: 0; width: 10px; height: 10px; padding: 0; border: 0; background: rgba(255, 255, 255, .3); }
.d-dots .d-dot.is-active { background: var(--gold-500); width: 26px; }

/* smaller screens (preview on a laptop or phone) */
@media (max-width: 900px), (max-height: 560px) {
  body { font-size: 15px; overflow: auto; }
  .d-slide { align-items: flex-start; overflow-y: auto; padding-top: 90px; padding-bottom: 110px; }
  .d-intro h1 { font-size: 2.4em; }
  .d-slide h2 { font-size: 1.8em; }
  .d-services, .d-certs { grid-template-columns: repeat(2, 1fr); }
  .d-split, .d-projects { grid-template-columns: 1fr; }
  .d-collage { display: none; }
  .d-logo, .d-contact-logo img { width: 50vw; }
  .d-contact-logo { display: none; }
  .d-co { display: none; }
  .d-controls { flex-wrap: wrap; justify-content: center; width: calc(100% - 24px); border-radius: 18px; bottom: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .d-slide, .d-slide.is-active { transition: none; }
  .d-slide.is-active .d-bg, .d-slide.is-active .d-inner > *, .d-slide.is-active .d-services li { animation: none; }
}
