:root {
  --navy-deep: #071116;
  --navy: #0d2024;
  --navy-mid: #123139;
  --navy-light: #1d4a4c;
  --gold: #d8ad55;
  --gold-light: #f0d28a;
  --gold-glow: #ffe8a8;
  --gold-dim: #9c7835;
  --white: #fbf6e9;
  --white-soft: #eee5d4;
  --white-muted: rgba(251,246,233,.72);
  --glass: rgba(14, 37, 41, .7);
  --glass-light: rgba(216,173,85,.1);
  --glass-border: rgba(216,173,85,.25);
  --shadow-card: 0 18px 60px rgba(0,0,0,.3);
}

body { background-image: radial-gradient(circle at 12% 18%, rgba(216,173,85,.05) 0 1px, transparent 1px), radial-gradient(circle at 85% 70%, rgba(91,180,161,.06), transparent 28%); background-size: 34px 34px, auto; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: linear-gradient(115deg, transparent 0 38%, rgba(216,173,85,.025) 50%, transparent 62%); }
.section-wrapper { max-width: 1320px; }
.section-title { letter-spacing: .01em; }
.built-by { position: fixed; left: 1.15rem; bottom: 1.15rem; z-index: 850; display: inline-flex; align-items: center; gap: .34rem; padding: .25rem .5rem .25rem .3rem; border: 1px solid rgba(216,173,85,.48); border-radius: .35rem; color: var(--white-muted); background: linear-gradient(135deg, rgba(13,32,36,.94), rgba(216,173,85,.12)); box-shadow: 0 5px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.1); font: 600 .6rem var(--font-latin); letter-spacing: .035em; transition: var(--transition); backdrop-filter: blur(12px); }
.built-by::before { content: ''; position: absolute; inset: -3px; border: 1px solid rgba(216,173,85,.14); border-radius: inherit; pointer-events: none; }
.built-by strong { color: var(--gold-light); font-weight: 700; }
.built-by-icon { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-deep); background: linear-gradient(135deg, var(--gold-glow), var(--gold)); font-size: .62rem; }
.built-by-arrow { color: var(--gold); font-size: .65rem; transition: var(--transition); }
.built-by:hover { color: var(--white); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(216,173,85,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.built-by:hover .built-by-arrow { transform: translate(2px, -2px); color: var(--gold-glow); }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-light); background: rgba(255,255,255,.04); cursor: pointer; transition: var(--transition); }
.theme-toggle:hover { transform: rotate(-18deg) scale(1.08); background: var(--glass-light); border-color: var(--gold); }
.hero-content { max-width: 1000px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem); margin: 2.7rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(216,173,85,.2); max-width: 680px; }
.hero-stat { display: grid; gap: .15rem; text-align: center; }
.hero-stat strong { color: var(--gold-light); font: 700 clamp(1.7rem, 4vw, 2.5rem)/1 var(--font-latin); }
.hero-stat span { color: var(--white-muted); font-size: .8rem; }
.hero-stat + .hero-stat { border-inline-start: 1px solid rgba(216,173,85,.2); padding-inline-start: clamp(1.5rem, 6vw, 5rem); }
.section-kicker { display: block; color: var(--gold); font: 600 .72rem/1.4 var(--font-latin); letter-spacing: .18em; text-transform: uppercase; margin-bottom: .7rem; }
.gallery-note { display: flex; align-items: center; justify-content: center; gap: .35rem; color: var(--gold-dim); font-size: .85rem; margin-top: 1.3rem; }.gallery-note .material-icons { font-size: 1rem; }
.gallery-item::after { content: 'open_in_full'; position: absolute; top: 1rem; left: 1rem; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font: 1rem 'Material Icons'; opacity: 0; transition: var(--transition); }
.gallery-item:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1.5rem; background: rgba(2,8,10,.86); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-close { position: absolute; top: 1rem; left: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-light); background: transparent; cursor: pointer; }
.lightbox-figure { max-width: min(1000px, 88vw); text-align: center; }.lightbox-figure img { max-height: 78vh; width: auto; max-width: 100%; border: 1px solid var(--glass-border); border-radius: .8rem; box-shadow: 0 20px 70px rgba(0,0,0,.6); object-fit: contain; }.lightbox-figure figcaption { color: var(--white-soft); margin-top: .8rem; }.lightbox-arrow { position: absolute; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-light); background: rgba(13,32,36,.8); cursor: pointer; transform: translateY(-50%); }.lightbox-next { right: 2rem; }.lightbox-prev { left: 2rem; }.back-to-top { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 900; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--navy-deep); background: var(--gold); cursor: pointer; opacity: 0; transform: translateY(15px); pointer-events: none; transition: var(--transition); }.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
body.light-mode { --navy-deep: #f4efe4; --navy: #fffaf0; --navy-mid: #e8dfce; --white: #173039; --white-soft: #24444a; --white-muted: rgba(23,48,57,.72); --glass: rgba(255,255,255,.7); --glass-border: rgba(126,94,34,.22); --glass-light: rgba(163,120,41,.1); background-image: radial-gradient(circle at 12% 18%, rgba(163,120,41,.07) 0 1px, transparent 1px); }.light-mode .hero-bg { background: radial-gradient(ellipse at 70% 30%, rgba(201,168,76,.16), transparent 55%), linear-gradient(160deg, #fffaf0, #e8dfce); }.light-mode .nav-mobile, .light-mode .lightbox { background: rgba(244,239,228,.9); }.light-mode .nav-mobile-links a, .light-mode .hero-desc, .light-mode .hero-stat span { color: var(--white-muted); }
@media (max-width: 900px) { .theme-toggle { margin-inline-start: auto; } }
@media (max-width: 600px) { .hero-stats { gap: .8rem; }.hero-stat + .hero-stat { padding-inline-start: .8rem; }.hero-stat strong { font-size: 1.45rem; }.hero-stat span { font-size: .7rem; }.lightbox-next { right: .6rem; }.lightbox-prev { left: .6rem; }.lightbox-arrow { width: 40px; height: 40px; } }
@media (max-width: 600px) { .built-by { left: .7rem; bottom: .7rem; padding: .22rem .42rem .22rem .27rem; font-size: .54rem; gap: .26rem; }.built-by-icon { width: 15px; height: 15px; font-size: .56rem; }.built-by-arrow { font-size: .58rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Team and gallery showcase */
.team-tools { display: grid; gap: 1.4rem; margin: 2rem auto 2.8rem; }
.team-filters, .gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.team-filter, .gallery-filter { padding: .55rem 1rem; border: 1px solid var(--glass-border); border-radius: 999px; color: var(--white-muted); background: rgba(255,255,255,.035); font-family: var(--font-body); font-size: .85rem; cursor: pointer; transition: var(--transition); }
.team-filter:hover, .team-filter.is-active, .gallery-filter:hover, .gallery-filter.is-active { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); box-shadow: 0 5px 18px rgba(216,173,85,.2); }
.team-stat-strip { display: flex; align-items: center; justify-content: center; gap: 1.4rem; color: var(--white-muted); font-size: .88rem; }
.team-stat-strip strong { color: var(--gold-light); font: 700 1.35rem var(--font-latin); margin-inline-end: .25rem; }.team-stat-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.member-card, .member-card-sm { cursor: pointer; }
.member-card[data-hidden="true"], .member-card-sm[data-hidden="true"] { display: none; }
.member-card::before, .member-card-sm::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; background: linear-gradient(135deg, rgba(240,210,138,.3), transparent 35%) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: var(--transition); pointer-events: none; z-index: 2; }
.member-card:hover::before, .member-card-sm:hover::before { opacity: 1; }
.member-card .member-info, .member-card-sm .member-info { position: relative; z-index: 3; }
.member-card .member-name, .member-card-sm .member-name { margin-bottom: .35rem; }
.member-card .member-info::after { content: 'عرض الملف  →'; display: block; color: var(--gold); font-size: .72rem; opacity: 0; transform: translateY(5px); transition: var(--transition); }.member-card:hover .member-info::after { opacity: 1; transform: translateY(0); }
.team-join-cta { max-width: 720px; margin: 4rem auto 0; padding: 3rem 1.5rem; text-align: center; border: 1px solid var(--glass-border); border-radius: 1.5rem; background: radial-gradient(circle at 50% 0, rgba(216,173,85,.15), transparent 55%), rgba(255,255,255,.025); position: relative; overflow: hidden; }
.team-join-cta h3 { color: var(--gold-light); font: 700 clamp(1.8rem, 4vw, 2.7rem) var(--font-display); margin-bottom: .35rem; }.team-join-cta p { color: var(--white-muted); margin-bottom: 1.4rem; }
.gallery-toolbar { display: grid; gap: 1.25rem; margin: 2rem 0 1.5rem; }.gallery-count { color: var(--white-muted); font-size: .8rem; text-align: center; }.gallery-count strong { color: var(--gold-light); font: 700 1.15rem var(--font-latin); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 9px; gap: .85rem; margin-top: 1.5rem; }
.gallery-item { grid-column: span 4; aspect-ratio: auto; min-height: 230px; border-radius: 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: gallery-rise .7s both; }.gallery-item:nth-child(2n) { grid-row: span 34; }.gallery-item:nth-child(3n) { grid-row: span 27; }.gallery-item:nth-child(5n) { grid-row: span 40; }.gallery-item:nth-child(7n) { grid-column: span 6; grid-row: span 36; }.gallery-item:first-child { grid-column: span 6; grid-row: span 42; }.gallery-item:nth-child(4) { grid-row: span 39; }
.gallery-item[data-hidden="true"] { display: none; }.gallery-item img { filter: brightness(.78) saturate(.82); }.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(216,173,85,.16); }.gallery-item:hover img { transform: scale(1.1); filter: brightness(1) saturate(1.08); }.gallery-item .gallery-overlay { opacity: 1; }.gallery-item .gallery-overlay::after { content: 'مشاهدة اللحظة'; color: rgba(255,255,255,.85); font: 600 .78rem var(--font-body); }
@keyframes gallery-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.gallery-load-more { display: flex; align-items: center; gap: .35rem; margin: 2rem auto 0; padding: .65rem 1.2rem; border: 1px solid var(--glass-border); border-radius: 999px; color: var(--gold-light); background: transparent; font-family: var(--font-body); cursor: pointer; transition: var(--transition); }.gallery-load-more:hover { color: var(--navy-deep); background: var(--gold); transform: translateY(-2px); }.gallery-load-more.is-hidden { display: none; }
.profile-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 1rem; background: rgba(2,8,10,.82); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }.profile-modal.is-open { opacity: 1; pointer-events: auto; }.profile-card { display: grid; grid-template-columns: .85fr 1.15fr; max-width: 760px; width: 100%; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 1.4rem; background: linear-gradient(135deg, #13333a, #09171b); box-shadow: var(--shadow-card); transform: translateY(18px) scale(.98); transition: transform .35s ease; }.profile-modal.is-open .profile-card { transform: translateY(0) scale(1); }.profile-photo { min-height: 430px; background: var(--navy-light); }.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }.profile-content { padding: clamp(1.5rem, 4vw, 3rem); }.profile-department { color: var(--gold); font: 600 .7rem var(--font-latin); letter-spacing: .12em; text-transform: uppercase; }.profile-content h2 { color: var(--gold-light); font: 700 clamp(1.6rem, 4vw, 2.5rem) var(--font-display); margin: .55rem 0 .15rem; }.profile-content > p:not(.profile-bio) { color: var(--gold-dim); }.profile-bio { color: var(--white-muted); line-height: 2; margin: 1.2rem 0; }.profile-skills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }.profile-skills span { padding: .35rem .65rem; border: 1px solid var(--glass-border); border-radius: 999px; color: var(--gold-light); font-size: .75rem; }.profile-social { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold-light); font-size: .85rem; }.profile-close { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-light); background: rgba(7,17,22,.6); cursor: pointer; }
.profile-card { position: relative; }
.lightbox-figure { position: relative; }.lightbox-counter { display: block; color: var(--gold-light); font: .75rem var(--font-latin); margin-top: .4rem; }.lightbox-zoom { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-light); background: rgba(13,32,36,.75); cursor: pointer; }.lightbox-figure img.is-zoomed { max-width: none; max-height: 92vh; transform: scale(1.25); cursor: zoom-out; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8px; }.gallery-item, .gallery-item:first-child, .gallery-item:nth-child(7n) { grid-column: span 1; }.gallery-item:first-child, .gallery-item:nth-child(5n) { grid-row: span 34; }.gallery-item:nth-child(2n) { grid-row: span 28; }.profile-card { grid-template-columns: 1fr; max-width: 420px; max-height: 90vh; overflow-y: auto; }.profile-photo { min-height: 240px; max-height: 300px; }.team-stat-strip { gap: .7rem; font-size: .75rem; }.team-stat-strip strong { font-size: 1.1rem; } }
@media (max-width: 420px) { .team-filter, .gallery-filter { padding: .45rem .7rem; font-size: .75rem; }.gallery-grid { gap: .55rem; }.gallery-item { min-height: 160px; } }