/* =========================================================================
   Mohammed El-Shayeb — design system
   Electric blue + cyan on deep navy. Dark (default) and light themes.
   ========================================================================= */
:root {
  --bg: #05070f;
  --bg-2: #0a1020;
  --surface: rgba(14, 21, 40, 0.72);
  --surface-solid: #0e1528;
  --surface-2: rgba(255, 255, 255, 0.035);
  --border: rgba(120, 160, 255, 0.14);
  --border-strong: rgba(120, 160, 255, 0.28);
  --text: #eaf1ff;
  --muted: #94a3c4;
  --dim: #64748b;
  --primary: #2f7bff;
  --primary-2: #1d5ef0;
  --accent: #00e5ff;
  --grad: linear-gradient(135deg, #2f7bff 0%, #00e5ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(47, 123, 255, 0.18), rgba(0, 229, 255, 0.12));
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(47, 123, 255, 0.25), 0 18px 50px -12px rgba(47, 123, 255, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Space Grotesk", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f6fc;
  --bg-2: #e9eef8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-2: rgba(15, 40, 100, 0.035);
  --border: rgba(20, 50, 120, 0.12);
  --border-strong: rgba(20, 50, 120, 0.22);
  --text: #0b1530;
  --muted: #51617f;
  --dim: #8090ad;
  --primary: #1f5fe0;
  --primary-2: #1a4fc0;
  --accent: #0891b2;
  --grad: linear-gradient(135deg, #1f5fe0 0%, #0891b2 100%);
  --grad-soft: linear-gradient(135deg, rgba(31, 95, 224, 0.1), rgba(8, 145, 178, 0.08));
  --shadow: 0 20px 50px -24px rgba(20, 40, 90, 0.35);
  --glow: 0 0 0 1px rgba(31, 95, 224, 0.2), 0 18px 40px -16px rgba(31, 95, 224, 0.35);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
body::before { /* ambient glows */
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47, 123, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(0, 229, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after { /* fine tech grid */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  opacity: .55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.latin { font-family: var(--font-latin); letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sr-only:focus { width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; clip-path: none; z-index: 200; background: var(--primary); color: #fff; border-radius: 0 0 12px 12px; }
svg.lucide { width: 1.15em; height: 1.15em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(47, 123, 255, .35); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(0,229,255,.4), 0 22px 50px -12px rgba(0,229,255,.5); }
.btn-sm { padding: .55em 1em; font-size: .85rem; border-radius: 11px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text);
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.icon-btn .lang-label { font-weight: 700; font-size: .8rem; font-family: var(--font-latin); }

/* ---------------------------------------------------------------- cards */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  background: var(--grad-soft); border: 1px solid var(--border);
}

/* =================================================================== HOME */
.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.home-toolbar {
  position: fixed; top: 18px; inset-inline-end: 18px; z-index: 20; display: flex; gap: 8px;
}
.home-stage {
  flex: 1; display: grid; grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
  align-items: center; gap: 24px; width: min(1180px, 100% - 32px); margin-inline: auto; padding: 32px 0;
}
.profile-card { position: relative; padding: 34px; overflow: hidden; z-index: 2; }
.profile-card::before { /* top light edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6;
}
.pc-head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.pc-photo {
  position: relative; width: 132px; flex-shrink: 0; aspect-ratio: 4 / 5; border-radius: 20px; padding: 3px;
  background: var(--grad); box-shadow: var(--glow);
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.pc-status {
  position: absolute; bottom: -8px; inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap;
  font-size: .7rem; font-weight: 700; padding: .25em .7em; border-radius: 999px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--success);
  display: inline-flex; align-items: center; gap: .35em;
}
[dir="ltr"] .pc-status { transform: translateX(-50%); }
.pc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.pc-name h1 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: 0; font-weight: 700; }
.pc-name .en-name { display: block; font-family: var(--font-latin); font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.pc-title { margin: 8px 0 0; color: var(--muted); font-size: .95rem; font-weight: 500; }
.pc-bio { color: var(--muted); font-size: .98rem; margin: 0 0 20px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pc-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pc-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 600; font-size: .9rem; text-align: center; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.pc-nav a svg { width: 22px; height: 22px; color: var(--accent); }
.pc-nav a:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--grad-soft); box-shadow: var(--glow); }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-actions .btn { flex: 1; }
.pc-social { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.pc-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--muted); transition: .2s; }
.pc-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* 3D robot stage */
.robot-stage { position: relative; height: min(78vh, 640px); }
.robot-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.robot-bubble {
  position: absolute; top: 4%; inset-inline-start: 50%; transform: translate(50%, 10px) scale(.95);
  padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--glow);
  opacity: 0; transition: opacity .45s ease, transform .45s ease; pointer-events: none; z-index: 3;
}
[dir="ltr"] .robot-bubble { transform: translate(-50%, 10px) scale(.95); }
.robot-bubble.show { opacity: 1; transform: translate(50%, 0) scale(1); }
[dir="ltr"] .robot-bubble.show { transform: translate(-50%, 0) scale(1); }
.robot-bubble::after {
  content: ""; position: absolute; bottom: -7px; inset-inline-start: 50%; width: 12px; height: 12px; margin-inline-start: -6px;
  background: var(--surface-solid); border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: rotate(45deg);
}
.robot-floor {
  position: absolute; inset: auto 10% 6% 10%; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, .28), transparent 70%); filter: blur(6px);
}
.home-footer { text-align: center; color: var(--dim); font-size: .8rem; padding: 0 16px 18px; }

/* ============================================================ INNER PAGES */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-latin);
  font-weight: 700; color: #fff; background: var(--grad); box-shadow: var(--glow); font-size: .9rem;
}
.brand small { display: block; font-family: var(--font-latin); font-size: .72rem; color: var(--muted); font-weight: 500; line-height: 1.1; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }
.topbar-actions { display: flex; gap: 8px; }
.menu-btn { display: none; }

.page-hero { padding: 64px 0 28px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: .85rem; margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.section { padding: 18px 0 64px; }

/* about */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.about-photo { padding: 10px; }
.about-photo img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.about-body { padding: 32px; }
.about-body p { color: var(--muted); }
.about-body .lead { color: var(--text); font-size: 1.15rem; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li svg { color: var(--accent); margin-top: .35em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.stat { padding: 18px; text-align: center; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.stat b { display: block; font-family: var(--font-latin); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }

/* skills */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 26px; }
.skill-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.skill-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); }
.skill-icon svg { width: 24px; height: 24px; }
.skill-card h2 { font-size: 1.15rem; margin: 0; }
.skill-card header small { color: var(--dim); font-family: var(--font-latin); }
.bar { margin-bottom: 14px; }
.bar-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; font-weight: 600; }
.bar-top b { font-family: var(--font-latin); color: var(--accent); }
.bar-track { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.lang-row { display: flex; gap: 14px; flex-wrap: wrap; }
.lang-pill { flex: 1; min-width: 220px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.lang-pill span { color: var(--muted); }

/* education */
.edu-card { padding: 24px; display: flex; gap: 18px; align-items: center; }
.edu-logo { width: 78px; height: 78px; border-radius: 16px; background: #fff; padding: 8px; flex-shrink: 0; display: grid; place-items: center; }
.edu-logo img { max-height: 100%; object-fit: contain; }
.edu-card h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.edu-card p { color: var(--muted); margin: 0; }
.h-sub { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 44px 0 18px; }
.h-sub svg { color: var(--accent); }
.cert-card { overflow: hidden; display: flex; flex-direction: column; }
.cert-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border); }
.cert-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cert-body h3 { margin: 0; font-size: 1.1rem; }
.cert-body p { color: var(--muted); margin: 0; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* services */
.service-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--glow); }
.service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body h2 { font-size: 1.12rem; margin: 0; }
.service-body p { color: var(--muted); margin: 0; flex: 1; font-size: .95rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.contact-list { padding: 10px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; transition: background .2s; }
.contact-item:hover { background: var(--surface-2); }
.contact-item .skill-icon { flex-shrink: 0; }
.contact-item h3 { font-size: .85rem; color: var(--dim); margin: 0 0 2px; font-weight: 600; }
.contact-item p, .contact-item a { margin: 0; font-weight: 600; }
.contact-item > div { min-width: 0; }
.contact-item a { direction: ltr; unicode-bidi: embed; overflow-wrap: anywhere; }
.contact-grid > *, .grid-2 > *, .grid-3 > *, .about-grid > * { min-width: 0; }
.socials { display: flex; gap: 10px; padding: 8px 16px 16px; }
.secret-form { padding: 30px; }
.secret-form h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.secret-form h2 svg { color: var(--accent); }
.secret-form p { color: var(--muted); }
.secret-form textarea {
  width: 100%; min-height: 160px; resize: vertical; padding: 16px; border-radius: 14px; margin: 6px 0 16px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); font: inherit;
}
.secret-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,229,255,.12); }

/* portfolio */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s; }
.filter-btn:hover { color: var(--text); border-color: var(--primary); }
.filter-btn.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.portfolio-card { overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.card-media-wrapper { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.portfolio-card:hover .card-cover-img { transform: scale(1.05); }
.video-play-btn { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.card-content { padding: 16px 18px; }
.card-title { font-size: 1.02rem; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-category { color: var(--accent); font-size: .82rem; font-weight: 600; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 16px; grid-column: 1 / -1; }
.video-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 4, 10, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-modal.active { display: flex; }
.video-modal-content { width: min(960px, 100%); }
.video-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.video-modal-header h3 { margin: 0; font-size: 1rem; }
.video-modal-body { aspect-ratio: 16 / 9; background: #000; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.video-modal-body iframe, .video-modal-body video { width: 100%; height: 100%; border: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 20px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 8px; }

/* maintenance overlay */
.maintenance { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--bg); }
.maintenance.show { display: flex; }
.maintenance .glass { padding: 40px; max-width: 520px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .home-stage { grid-template-columns: 1fr; padding: 76px 0 24px; gap: 0; }
  .robot-stage { order: -1; height: 250px; margin-bottom: 8px; }
  .robot-bubble { top: 0; font-size: .82rem; padding: 9px 14px; }
  .profile-card { max-width: 600px; margin-inline: auto; width: 100%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; padding: 12px 16px 18px; background: var(--surface-solid); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-btn { display: inline-grid; }
  .topbar-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .profile-card { padding: 22px 18px; border-radius: 20px; }
  .pc-head { gap: 16px; }
  .pc-photo { width: 96px; border-radius: 16px; }
  .pc-photo img { border-radius: 13px; }
  .pc-name h1 { font-size: 1.45rem; }
  .pc-name .en-name { font-size: .92rem; }
  .pc-title { font-size: .85rem; margin-top: 4px; }
  .pc-bio { font-size: .92rem; }
  .pc-nav { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pc-nav a { padding: 12px 4px; font-size: .8rem; border-radius: 14px; }
  .pc-nav a svg { width: 20px; height: 20px; }
  .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding: 40px 0 18px; }
  .about-body, .secret-form { padding: 22px; }
  .edu-card { flex-direction: column; text-align: center; }
  .brand small { display: none; }
  .home-toolbar { top: 12px; inset-inline-end: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* portfolio card extras (rendered by portfolio.js) */
.card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 15, .55)); pointer-events: none; }
.platform-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 4px; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(5, 7, 15, .7); border: 1px solid rgba(255,255,255,.15); }
.platform-badge.youtube { background: rgba(220, 38, 38, .85); }
.platform-badge.facebook { background: rgba(24, 119, 242, .85); }
.category-pill { display: inline-block; color: var(--accent); font-size: .8rem; font-weight: 700; margin-bottom: 4px; }
.card-action-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; cursor: pointer; }
.card-action-hint:hover { color: var(--accent); }
