/* =========================================================
   عرض «مواقعي في مادة بناء ونشر المواقع»
   التنسيق الأساسي — RTL — خط Cairo
   ========================================================= */

/* ---------- الخطوط ---------- */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE,
    U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24,
    U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42,
    U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54,
    U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64,
    U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E,
    U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9,
    U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- المتغيرات ---------- */
:root {
  --blue: #1D4ED8;
  --blue-600: #2563EB;
  --blue-700: #1E40AF;
  --blue-900: #172554;
  --blue-deep: #050B1D;
  --blue-light: #93C5FD;
  --sky: #38BDF8;
  --ink: #0B1220;
  --body: #16233B;
  --muted: #475569;
  --paper: #F7F9FF;
  --white: #FFFFFF;
  --font: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 24px;
  --shadow-soft: 0 24px 60px -34px rgba(15, 23, 42, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- إعادة الضبط ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  overflow: hidden;
  background: var(--blue-deep);
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  font-size: clamp(28px, 1.55vw, 31px);
  line-height: 1.6;
  color: var(--body);
  background: var(--blue-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

::selection {
  background: rgba(29, 78, 216, 0.22);
  color: var(--ink);
}

/* رابط تجاوز المحتوى */
.skip-link {
  position: fixed;
  top: 12px;
  right: 50%;
  z-index: 200;
  transform: translate(50%, -160%);
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translate(50%, 0);
}

/* ---------- سطح العرض ---------- */
.deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.994);
  transition:
    opacity 0.55s ease,
    transform 0.7s var(--ease),
    visibility 0s linear 0.7s;
  will-change: opacity, transform;
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.7s var(--ease),
    visibility 0s linear 0s;
}

.slide__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  width: min(1280px, 100%);
  height: 100%;
  margin-inline: auto;
  padding: clamp(96px, 12vh, 124px) clamp(20px, 4.5vw, 64px)
    clamp(108px, 13vh, 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 78, 216, 0.32) transparent;
}

.slide__inner::-webkit-scrollbar {
  width: 8px;
}

.slide__inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.3);
}

/* ---------- خلفيات الشرائح ---------- */
.slide--light {
  background:
    linear-gradient(160deg, #FBFCFE 0%, #F0F4FF 52%, #E8EFFF 100%);
}

.slide--light::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 82% 16%, rgba(29, 78, 216, 0.16), transparent 31%),
    radial-gradient(circle at 12% 88%, rgba(56, 189, 248, 0.16), transparent 34%);
  filter: blur(6px);
  pointer-events: none;
}

.slide--light::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 8%, transparent 72%);
  pointer-events: none;
}

.slide--cover,
.slide--closing {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 18%, rgba(37, 99, 235, 0.55), transparent 43%),
    radial-gradient(circle at 88% 84%, rgba(56, 189, 248, 0.26), transparent 40%),
    linear-gradient(135deg, #04091A 0%, #0A1A44 52%, #12379B 100%);
}

.slide--cover::before,
.slide--closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 6%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 6%, transparent 70%);
  pointer-events: none;
}

/* ---------- الشريط العلوي والعداد ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.2vh, 22px) clamp(16px, 4vw, 48px);
  pointer-events: none;
}

.brand,
.counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 10px;
  padding: 8px 16px 8px 10px;
  pointer-events: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-600) 60%, var(--sky));
  box-shadow: 0 8px 18px -10px rgba(29, 78, 216, 0.9);
}

.brand__mark svg {
  width: 25px;
  height: 25px;
}

.brand__text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.counter {
  gap: 9px;
  padding: 9px 18px;
  pointer-events: auto;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.counter__label {
  color: var(--muted);
  font-weight: 600;
}

.counter__value {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* ---------- أزرار التنقل ---------- */
.controls {
  position: fixed;
  inset-inline: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s ease,
    opacity 0.22s ease,
    background-color 0.22s ease;
}

.nav-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-btn--prev {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.55);
}

.nav-btn--next {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 58%, #3B82F6 100%);
  box-shadow: 0 16px 32px -14px rgba(29, 78, 216, 0.85);
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.nav-btn--prev:hover:not(:disabled) {
  background: var(--white);
}

.nav-btn--next:hover:not(:disabled) {
  box-shadow: 0 20px 38px -14px rgba(29, 78, 216, 0.95);
}

.nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.nav-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- شريط التقدم ---------- */
.progress {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  height: 5px;
  background: rgba(100, 116, 139, 0.35);
}

.progress__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 12.5%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  transition: width 0.55s var(--ease);
}

/* ---------- العناصر المشتركة ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 4px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.eyebrow--light {
  align-self: center;
  color: var(--blue-light);
}

.eyebrow--light::before {
  background: linear-gradient(90deg, var(--blue-light), var(--sky));
}

h2 {
  margin: 0;
  font-size: clamp(44px, 4.3vw, 68px);
  font-weight: 900;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(28px, 1.8vw, 34px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 55%, #3B82F6 100%);
  box-shadow: 0 18px 38px -18px rgba(29, 78, 216, 0.8);
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 42px -18px rgba(29, 78, 216, 0.9);
}

.btn:active {
  transform: translateY(0);
}

/* ---------- حركة الظهور ---------- */
.reveal {
  opacity: 0;
}

.slide.is-active .reveal {
  animation: reveal-up 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   الشريحة 1 — الغلاف
   ========================================================= */
.cover {
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  text-align: center;
}

.cover__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vh, 30px);
  width: 100%;
  max-width: 1040px;
}

.cover__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: #DBEAFE;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cover__badge svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: #7DD3FC;
}

.cover__title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(50px, 6.4vw, 102px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--white);
  text-wrap: balance;
}

.text-gradient {
  display: block;
  color: #BFDBFE;
  background: linear-gradient(95deg, #DBEAFE 0%, #93C5FD 42%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover__rule {
  width: 124px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue-light));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

.cover__author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  font-size: 28px;
  line-height: 1.5;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cover__author-label {
  color: #BFDBFE;
  font-weight: 500;
}

.cover__author-name {
  font-size: clamp(32px, 2.6vw, 42px);
  font-weight: 800;
  color: var(--white);
}

.cover__glow {
  position: absolute;
  z-index: 0;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
  animation: glow-float 18s ease-in-out infinite alternate;
}

.cover__glow--one {
  top: -24%;
  right: -12%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.72), transparent 66%);
}

.cover__glow--two {
  bottom: -30%;
  left: -14%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 66%);
  animation-delay: -9s;
}

@keyframes glow-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.06);
  }
}

/* =========================================================
   الشريحة 2 — من أنا؟
   ========================================================= */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.intro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vh, 22px);
  min-width: 0;
}

.intro__note {
  margin: 0;
  font-size: clamp(28px, 1.6vw, 31px);
  line-height: 1.72;
  color: var(--muted);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(160deg, #0B1B4D 0%, #14328C 48%, var(--blue) 100%);
  box-shadow: 0 34px 72px -38px rgba(29, 78, 216, 0.8);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.22), transparent 45%);
  pointer-events: none;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-card__avatar {
  display: grid;
  place-items: center;
  width: clamp(106px, 9vw, 134px);
  aspect-ratio: 1;
  margin: 0 auto clamp(16px, 2.4vh, 24px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: clamp(38px, 3.4vw, 50px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.profile-card__name {
  margin: 0 0 6px;
  font-size: clamp(32px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 1.4;
}

.profile-card__role {
  margin: 0;
  font-size: 28px;
  line-height: 1.6;
  color: #DBEAFE;
}

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(18px, 2.4vh, 26px);
}

.profile-card__tags span {
  padding: 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1.5;
  color: #EFF6FF;
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   الشرائح 3–6 — المشاريع
   ========================================================= */
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 64px);
  isolation: isolate;
}

.project__watermark {
  position: absolute;
  z-index: -1;
  bottom: -0.28em;
  left: -0.04em;
  display: block;
  font-size: clamp(120px, 12vw, 190px);
  font-weight: 900;
  line-height: 1;
  color: rgba(29, 78, 216, 0.055);
  pointer-events: none;
  user-select: none;
}

.project__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.8vh, 18px);
  min-width: 0;
}

.project__desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project__desc p {
  margin: 0;
  font-size: clamp(28px, 1.6vw, 31px);
  line-height: 1.66;
  color: var(--muted);
}

.project__media {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
}

.browser-frame {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 36px 72px -38px rgba(15, 23, 42, 0.6),
    0 0 0 10px rgba(255, 255, 255, 0.34);
}

.browser-frame__bar {
  display: flex;
  gap: 8px;
  padding: 2px 4px 12px;
}

.browser-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.browser-frame__bar span:nth-child(1) {
  background: #FCA5A5;
}

.browser-frame__bar span:nth-child(2) {
  background: #FCD34D;
}

.browser-frame__bar span:nth-child(3) {
  background: #86EFAC;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: var(--white);
}

/* =========================================================
   الشريحة 7 — ما تعلّمته
   ========================================================= */
.lessons-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
}

.lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 4px;
}

.lesson {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(29, 78, 216, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.4);
}

.lesson::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.lesson__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 18px;
  color: var(--blue);
  background: #EFF6FF;
}

.lesson__icon svg {
  width: 30px;
  height: 30px;
}

.lesson h3 {
  margin: 2px 0 0;
  font-size: clamp(30px, 2.1vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.lesson p {
  margin: 0;
  font-size: clamp(28px, 1.55vw, 30px);
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================
   الشريحة 8 — شكرًا لكم
   ========================================================= */
.closing {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing__title {
  margin: 0;
  font-size: clamp(56px, 7vw, 110px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
}

.closing__lead {
  max-width: 900px;
  margin: clamp(12px, 1.8vh, 20px) 0 0;
  font-size: clamp(28px, 1.7vw, 34px);
  line-height: 1.65;
  color: #DBEAFE;
}

.closing__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(980px, 100%);
  margin-top: clamp(22px, 3.4vh, 36px);
  text-align: start;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    transform 0.24s var(--ease),
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.link-card--gallery:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.link-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-card__top svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--blue-light);
}

.link-card__label {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: #BFDBFE;
}

.link-card__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  overflow-wrap: anywhere;
}

.link-card__cta {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--blue-light);
}

.link-card--pending {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.04);
}

.link-card--pending .link-card__cta {
  color: rgba(219, 234, 254, 0.65);
  font-weight: 600;
}

.link-card__pending-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  color: #BFDBFE;
  background: rgba(255, 255, 255, 0.08);
}

.link-card__pending-icon svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   الشاشات المتوسطة
   ========================================================= */
@media (max-width: 1080px) {
  .project {
    gap: 30px;
  }

  .project__watermark {
    font-size: 130px;
  }
}

/* في الشاشات المتوسطة أو المنخفضة الارتفاع:
   تتحول بطاقات «ما تعلّمته» إلى صفوف أفقية مدمجة لتبقى واضحة دون ازدحام */
@media (max-width: 1400px), (max-height: 800px) {
  #slide-7 .slide__inner {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .lessons {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lesson {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    padding: 16px 20px;
  }

  .lesson__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
  }

  .lesson h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 30px;
  }

  .lesson p {
    grid-column: 2;
    grid-row: 2;
    font-size: 28px;
    line-height: 1.5;
  }
}

@media (max-width: 880px) {
  .slide__inner {
    padding-top: 92px;
    padding-bottom: 104px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-card {
    width: min(520px, 100%);
    justify-self: center;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project__watermark {
    display: none;
  }

  .project__media {
    width: 100%;
    max-width: 640px;
  }

  .lessons {
    grid-template-columns: 1fr;
  }

  .closing__links {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   الهاتف
   ========================================================= */
@media (max-width: 600px) {
  body {
    font-size: 28px;
  }

  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    padding: 6px 12px 6px 8px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand__mark svg {
    width: 23px;
    height: 23px;
  }

  .brand__text {
    font-size: 28px;
  }

  .counter {
    padding: 8px 13px;
  }

  .counter__label {
    display: none;
  }

  .slide__inner {
    padding: 84px 18px 102px;
  }

  .cover__content {
    gap: 18px;
  }

  .cover__title {
    font-size: clamp(44px, 12vw, 56px);
    max-width: 100%;
  }

  .cover__badge {
    padding: 7px 16px;
  }

  .cover__rule {
    width: 86px;
  }

  .cover__author {
    flex-direction: column;
    gap: 2px;
    padding: 9px 20px;
    text-align: center;
  }

  .cover__author-name {
    font-size: 32px;
  }

  h2 {
    font-size: clamp(40px, 10vw, 48px);
  }

  .intro {
    gap: 20px;
  }

  .intro__text {
    gap: 12px;
  }

  .lead,
  .intro__note,
  .project__desc p {
    font-size: 28px;
    line-height: 1.6;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 16px 18px;
    border-radius: 20px;
    text-align: start;
  }

  .profile-card__avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 64px;
    margin: 0;
    font-size: 30px;
  }

  .profile-card__name {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 30px;
  }

  .profile-card__role {
    grid-column: 2;
    grid-row: 2;
    font-size: 28px;
    line-height: 1.45;
  }

  .profile-card__tags {
    display: none;
  }

  .project {
    gap: 20px;
  }

  .project__desc {
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .browser-frame {
    padding: 8px;
    border-radius: 16px;
    box-shadow:
      0 24px 48px -30px rgba(15, 23, 42, 0.55),
      0 0 0 6px rgba(255, 255, 255, 0.3);
  }

  .browser-frame__bar {
    padding-bottom: 8px;
  }

  .browser-frame img {
    border-radius: 10px;
  }

  .lessons-wrap {
    gap: 14px;
  }

  .lessons {
    gap: 14px;
  }

  .lesson {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    padding: 16px;
    border-radius: 18px;
  }

  .lesson__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .lesson__icon svg {
    width: 26px;
    height: 26px;
  }

  .lesson h3 {
    font-size: 30px;
  }

  .lesson p {
    line-height: 1.55;
  }

  .closing__title {
    font-size: clamp(48px, 13vw, 64px);
  }

  .closing__lead {
    font-size: 28px;
    line-height: 1.6;
    margin-top: 10px;
  }

  .closing__links {
    gap: 12px;
    margin-top: 14px;
  }

  #slide-8 .slide__inner {
    padding-top: 80px;
    padding-bottom: 94px;
  }

  .link-card {
    padding: 16px;
    border-radius: 18px;
  }

  .link-card__cta {
    margin-top: 0;
  }

  .controls {
    gap: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding-inline: 12px;
  }

  .nav-btn {
    min-height: 52px;
    padding: 9px 18px;
    gap: 6px;
  }

  .nav-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 370px) {
  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand__text,
  .counter,
  .nav-btn {
    font-size: 28px;
  }

  .nav-btn {
    padding-inline: 14px;
  }
}

/* هواتف قصيرة الشاشة: مساحات أكثر إحكامًا مع الحفاظ على وضوح الخط */
@media (max-width: 600px) and (max-height: 700px) {
  .slide__inner {
    padding-top: 76px;
    padding-bottom: 92px;
  }

  .cover__content {
    gap: 12px;
  }

  .cover__badge {
    padding: 5px 14px;
  }

  .cover__title {
    font-size: clamp(40px, 11.5vw, 48px);
  }

  .cover__author {
    padding: 7px 16px;
  }

  .cover__author-name {
    font-size: 30px;
  }

  #slide-8 .slide__inner {
    padding-top: 78px;
    padding-bottom: 92px;
  }

  .closing__links {
    margin-top: 14px;
  }

  .closing__lead {
    margin-top: 10px;
  }
}

/* =========================================================
   تقليل الحركة
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
  }

  .slide.is-active .reveal {
    animation: none;
  }
}

/* =========================================================
   الطباعة / تصدير PDF — كل شريحة في صفحة أفقية مستقلة
   ========================================================= */
@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  html,
  body {
    width: 297mm;
    height: 210mm;
    overflow: visible !important;
    background: #FFFFFF !important;
  }

  body {
    font-size: 28px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skip-link,
  .topbar,
  .controls,
  .progress {
    display: none !important;
  }

  .deck {
    position: static;
    height: auto;
    overflow: visible;
  }

  .slide {
    position: relative;
    inset: auto;
    display: flex !important;
    width: 297mm;
    height: 210mm;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: page;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide__inner {
    width: 100%;
    height: 100%;
    padding: 12mm 14mm;
    overflow: hidden !important;
    scrollbar-width: none;
  }

  .slide__inner::-webkit-scrollbar {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .cover__glow {
    animation: none !important;
  }

  .cover__title {
    font-size: 64px;
    max-width: 15ch;
  }

  .cover__badge,
  .cover__author,
  .cover__author-label {
    font-size: 28px;
  }

  .cover__author-name {
    font-size: 36px;
  }

  h2 {
    font-size: 46px;
  }

  .lead {
    font-size: 30px;
  }

  .intro {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 12mm;
  }

  .intro__note,
  .project__desc p,
  .lesson p,
  .link-card__value {
    font-size: 28px;
  }

  .project {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 10mm;
  }

  .project__watermark {
    display: none;
  }

  .project__media {
    width: 100%;
    max-width: none;
  }

  .browser-frame {
    box-shadow: none;
  }

  .lessons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5mm;
  }

  .lesson {
    display: flex;
    flex-direction: column;
    gap: 3mm;
    padding: 5mm;
    box-shadow: none;
  }

  .lesson h3 {
    margin: 1mm 0 0;
    font-size: 30px;
  }

  .lesson p {
    font-size: 28px;
    line-height: 1.45;
  }

  .lesson__icon {
    width: 54px;
    height: 54px;
  }

  .closing__title {
    font-size: 68px;
  }

  .closing__lead {
    font-size: 30px;
  }

  .closing__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .link-card {
    padding: 5mm;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .link-card__label,
  .link-card__cta {
    font-size: 28px;
  }

  .btn,
  .profile-card {
    box-shadow: none;
  }

  a {
    text-decoration: none;
  }
}
