/* =============================================
   Ahmed Al-Hazza — Personal landing page
   ============================================= */

:root {
  --blue-600: #1f4ae5;
  --blue-700: #1a3fd0;
  --blue-800: #1331a8;
  --white: #ffffff;
  --ink: #0f1d3a;
  --ink-soft: #4b587a;
  --bg: #f5f7fb;
  --card-green: #e7f7ef;
  --card-green-icon: #22c07e;
  --card-purple-a: #a86bff;
  --card-purple-b: #6d46ff;
  --spot-teal-a: #14b8a6;
  --spot-teal-b: #0d5d60;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 10px 30px rgba(19, 49, 168, 0.12);
  --font-ar: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] body { font-family: var(--font-en); }

.page {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------- Hero — full-width edge-to-edge blue band ---------- */
.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 84px 24px 96px;
  text-align: center;
  overflow: visible;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.lang-toggle {
  position: absolute;
  top: 28px;
  inset-inline-end: 40px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
  z-index: 4;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

.brand {
  position: absolute;
  top: 30px;
  inset-inline-start: 48px;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.5px;
  z-index: 4;
}
.brand-text { color: #ffffff; }
.brand-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ee48a;
  margin-inline-start: 6px;
  transform: translateY(-12px);
}

.avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  position: relative;
  z-index: 2;
}
.avatar img,
.avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  background: #e9efff;
}

.name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.bio {
  max-width: 560px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 2;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin: 4px 0 40px;
  position: relative;
  z-index: 2;
}
.location .pin { opacity: .9; }

/* ---------- Socials — sit astride the bottom curve ---------- */
.socials {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 3;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 29, 58, 0.15);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.social:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 29, 58, 0.22);
}

/* ---------- Cards ---------- */
.cards {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 29, 58, 0.18); }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  align-self: center;
  transition: background .2s ease, transform .2s ease;
}
.card:hover .card-cta {
  background: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}
html[dir="rtl"] .card-cta svg { transform: scaleX(-1); }

.card--green {
  background: var(--card-green);
  color: #0f1d3a;
}

/* Ma'een Foundation card — red brand color */
.card--maeen {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0f22 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 28px 24px 24px;
}
.card--maeen .card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin-bottom: 10px;
  min-height: 70px;
}
.card--maeen .card-logo img {
  max-width: 55%;
  max-height: 90px;
  object-fit: contain;
  display: block;
}
.card--maeen .card-body { text-align: center; }
.card--maeen .card-eyebrow { opacity: 0.6; }
.card--maeen .card-title { color: var(--white); }

.card--purple {
  background: linear-gradient(135deg, var(--spot-teal-a), var(--spot-teal-b));
  color: var(--white);
  text-align: center;
  align-items: center;
}
.card--purple .card-cta { align-self: center; }

.card-logo--spot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 120px;
}
.card-logo--spot img {
  max-width: 70%;
  max-height: 140px;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,0.95);
  padding: 18px 24px;
  border-radius: 18px;
}

.card-icon {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card--green .card-icon { background: var(--card-green-icon); }
.card--purple .card-icon { background: rgba(255,255,255,0.22); }

.card-eyebrow {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 8px;
  font-weight: 500;
}
.card-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.45;
}
.card-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.92;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 64px;
  padding-bottom: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 72px 18px 84px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  .brand { top: 20px; inset-inline-start: 22px; font-size: 24px; }
  .lang-toggle { top: 18px; inset-inline-end: 22px; }
  .cards { grid-template-columns: 1fr; margin-top: 40px; padding: 0 20px; }
  .card { min-height: 170px; }
  .footer { margin-top: 40px; }
}

/* ---------- LTR adjustments ---------- */
html[dir="ltr"] .hero { text-align: center; }
html[dir="ltr"] .location { direction: ltr; }
