/* ============================================================
   MARYAM BINT AHMED AL HAMMADI — GOVERNANCE & AI INTELLIGENCE
   Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-deep:       #050810;
  --bg-mid:        #090d1a;
  --bg-surface:    #0d1526;
  --bg-card:       rgba(13, 21, 38, 0.85);
  --bg-glass:      rgba(255,255,255,0.04);

  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --gold-dim:      rgba(201,168,76,0.15);

  --teal:          #0fa8a0;
  --teal-light:    #23d4cb;
  --teal-glow:     rgba(15,168,160,0.2);

  --accent-blue:   #1a63cc;
  --accent-indigo: #3a4fc7;

  --text-primary:  #e8eaf5;
  --text-secondary:#9ba3be;
  --text-muted:    #5a6180;

  --border:        rgba(201,168,76,0.12);
  --border-teal:   rgba(15,168,160,0.2);

  --nav-height: 80px;

  --font-display: 'DM Serif Display', serif;
  --font-ui:      'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-tech:    'Rajdhani', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Utility ── */
.container { max-width: 1260px; margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }

/* ── Grid Node Background canvas (decorative) ── */
.grid-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── TEXT STYLES ── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  padding: 6px 14px;
  border: 1px solid var(--border-teal);
  border-radius: 2px;
  background: rgba(15,168,160,0.06);
  margin-bottom: 1.4rem;
}
.label-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.4; transform: scale(0.7); }
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-heading span { color: var(--gold-light); }

.section-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── GOLD RULE ── */
.gold-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 2rem;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  background: linear-gradient(180deg, rgba(5,8,16,0.98) 0%, rgba(5,8,16,0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav--scrolled {
  height: 64px;
  background: rgba(5,8,16,0.99);
}
.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.nav__brand-name {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  line-height: 1;
}
.nav__brand-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  transition: color 0.3s;
}
.nav__link:hover, .nav__link.active {
  color: var(--gold-light);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 1.1rem; right: 1.1rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: 1rem;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MOBILE NAV ── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(5,8,16,0.99);
  backdrop-filter: blur(24px);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  border-bottom: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { padding: 0.75rem 0; font-size: 0.9rem; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.22;
}
.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,8,16,0.98) 0%,
    rgba(5,8,16,0.9) 40%,
    rgba(5,8,16,0.5) 70%,
    rgba(5,8,16,0.15) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
}

/* ── HERO IMAGE (portrait side) ── */
.hero__image-frame {
  position: relative;
}
.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__image-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.25;
  pointer-events: none;
}

/* ── CARDS ── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

.card--teal {
  border-color: var(--border-teal);
}
.card--teal::before {
  background: linear-gradient(90deg, var(--teal), transparent);
}
.card--teal:hover { border-color: rgba(15,168,160,0.3); }

.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card__icon--gold { background: var(--gold-dim); color: var(--gold); }
.card__icon--teal { background: rgba(15,168,160,0.1); color: var(--teal-light); }

.card__title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.card__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── STAT BLOCK ── */
.stat-block {
  text-align: center;
  padding: 2rem 1.5rem;
}
.stat-block__number {
  font-family: var(--font-tech);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-block__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--teal), transparent);
}
.timeline__item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: translateX(-4.5px);
}
.timeline__year {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  margin-bottom: 0.4rem;
}
.timeline__title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.timeline__body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── HERO IMAGE PANEL ── */
.image-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.image-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,8,16,0.8) 100%);
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.25;
}
.page-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,8,16,0.85) 0%,
    rgba(5,8,16,0.6) 40%,
    rgba(5,8,16,0.95) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-hero__eyebrow-line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.page-hero__eyebrow-text {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ── SECTION DIVIDER ── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── GRID SYSTEMS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050810;
  border: none;
}
.btn--gold:hover {
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn--outline:hover {
  background: var(--gold-dim);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}
.btn--teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #050810;
  border: none;
  font-weight: 700;
}
.btn--teal:hover {
  box-shadow: 0 8px 30px var(--teal-glow);
  transform: translateY(-2px);
}

/* ── QUOTE BLOCK ── */
.quote-block {
  background: var(--bg-glass);
  border-left: 3px solid var(--gold);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  position: relative;
  border-radius: 0 4px 4px 0;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -1rem; left: 1.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}
.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── TAG PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid;
}
.pill--gold { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.pill--teal { color: var(--teal-light); border-color: var(--teal-light); background: rgba(15,168,160,0.08); }
.pill--blue { color: #6eb5ff; border-color: #6eb5ff; background: rgba(110,181,255,0.08); }

/* ── INFOGRAPHIC FLOW ── */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  flex-wrap: wrap;
}
.flow__step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.flow__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 1.2rem;
  color: var(--gold);
  font-size: 1.2rem;
}
.flow__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.flow__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 10;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__brand {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.footer__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.footer__heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--gold-light); }
.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer__social {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.3s;
}
.footer__social:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-dim);
}
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__credit {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}
.footer__credit a { color: var(--gold); transition: color 0.2s; }
.footer__credit a:hover { color: var(--gold-light); }

/* ── PAGE LOADERS ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.page-transition.visible { opacity: 1; pointer-events: all; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity:0; transform: translateX(-40px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform: translateX(40px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50%     { box-shadow: 0 0 40px rgba(201,168,76,0.6); }
}
@keyframes scan {
  0%   { top: 0; }
  100% { top: 100%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%     { opacity:0; }
}

.anim-fade-up    { animation: fadeInUp 0.7s ease forwards; }
.anim-fade       { animation: fadeIn 0.6s ease forwards; }
.anim-slide-left { animation: slideInLeft 0.7s ease forwards; }
.anim-slide-right{ animation: slideInRight 0.7s ease forwards; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-1-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 70px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav { padding: 0 1.5rem; }
  .flow { flex-direction: column; align-items: center; }
  .flow__step::after { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .page-hero { min-height: 45vh; }
}
