@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Noto+Naskh+Arabic:wght@400;600;700&family=Cinzel:wght@400;600;700&display=swap');

:root{
  --blue: #0D8ABC;
  --blue-dark: #0a6a92;
  --blue-deep: #073a52;
  --white: #ffffff;
  --offwhite: #f6faff;
  --red: #CE1126;
  --green: #007A3D;
  --ink: #1a2530;
  --ink-soft: #56636e;
  --gold: #c9a24b;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -20px rgba(13,138,188,.35);
  --shadow-soft: 0 10px 26px -16px rgba(26,37,48,.25);
  --max-width: 1180px;
  --nav-height: 84px;
}

*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Noto Naskh Arabic', serif;
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.9;
  overflow-x: hidden;
  direction: rtl;
}

img{ max-width: 100%; display:block; }

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

ul{ list-style: none; }

h1,h2,h3,h4{
  font-family: 'Aref Ruqaa', serif;
  color: var(--blue-deep);
  line-height: 1.4;
}

.eng{ font-family: 'Cinzel', serif; letter-spacing: .5px; }

.container{
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.star-bullet{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue);
}

.section-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .95rem;
  margin-bottom: 10px;
}

.section-tag svg{ width: 18px; height: 18px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Noto Naskh Arabic', serif;
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--red), #a10d1d);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(206,17,38,.55);
}

.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(206,17,38,.65); }

.btn-outline{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.75);
}

.btn-outline:hover{
  background: rgba(255,255,255,.15);
  transform: translateY(-3px);
}

.btn-blue{
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(13,138,188,.55);
}

.btn-blue:hover{ transform: translateY(-3px); background: var(--blue-dark); }

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible{ opacity: 1; transform: translateY(0); }

::selection{ background: var(--blue); color: var(--white); }

.navbar{
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 999;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(7,58,82,.32);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .4s ease, box-shadow .4s ease;
}

.navbar.is-scrolled{
  background: rgba(7,58,82,.82);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.5);
}

.navbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img{ width: 100%; height: 100%; object-fit: contain; }

.brand-text{ display: flex; flex-direction: column; }

.brand-text .ar{
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--white);
}

.brand-text .en{
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.72);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a{
  position: relative;
  padding: 10px 16px;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  transition: color .3s ease, background .3s ease;
}

.nav-links a::after{
  content: '';
  position: absolute;
  right: 16px; left: 16px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}

.nav-links a:hover, .nav-links a.active{ color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }

.nav-join{
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px !important;
}

.nav-join::after{ display: none; }

.nav-toggle{
  display: none;
  width: 42px;
  height: 34px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span{
  position: absolute;
  right: 0; left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform .35s ease, opacity .35s ease, top .35s ease;
}

.nav-toggle span:nth-child(1){ top: 4px; }
.nav-toggle span:nth-child(2){ top: 15px; }
.nav-toggle span:nth-child(3){ top: 26px; }

.nav-toggle.is-open span:nth-child(1){ top: 15px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ top: 15px; transform: rotate(-45deg); }

@media (max-width: 940px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    min-height: calc(100vh - var(--nav-height));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: linear-gradient(160deg, var(--blue-deep), var(--ink));
    transform: translateX(100%);
    transition: transform .45s ease;
    padding: 28px 24px 40px;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-links li{ width: 100%; }
  .nav-links a{
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
  }
  .nav-links a::after{
    right: 28%;
    left: 28%;
    bottom: 4px;
  }
  .nav-join{ margin-top: 6px; }
}

@media (max-width: 560px){
  .navbar{ height: 72px; }
  :root{ --nav-height: 72px; }
  .navbar .container{ padding: 0 16px; }
  .brand{ gap: 8px; }
  .brand-mark{ width: 42px; height: 42px; }
  .brand-text .ar{ font-size: 1.12rem; }
  .brand-text .en{ font-size: .5rem; letter-spacing: 1.5px; }
  .nav-toggle{ width: 38px; height: 32px; }
  .nav-links{ padding: 24px 18px 32px; }
}

footer.site-footer{
  background: var(--blue-deep);
  color: rgba(255,255,255,.85);
  padding: 70px 0 0;
  margin-top: 120px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.footer-brand{ display: flex; flex-direction: column; gap: 16px; }

.footer-brand .brand-mark{ width: 60px; height: 60px; }

.footer-brand p{ color: rgba(255,255,255,.68); font-size: .96rem; max-width: 320px; }

.footer-col h4{ color: var(--white); font-size: 1.1rem; margin-bottom: 18px; }

.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }

.footer-col a{ color: rgba(255,255,255,.72); transition: color .3s ease, padding-right .3s ease; }

.footer-col a:hover{ color: var(--gold); padding-right: 6px; }

.footer-social{ display: flex; gap: 12px; margin-top: 6px; }

.footer-social a{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}

.footer-social a:hover{ background: var(--red); border-color: var(--red); transform: translateY(-4px); }

.footer-social svg{ width: 19px; height: 19px; fill: var(--white); }

.footer-bottom{
  padding: 26px 0 34px;
  text-align: center;
}

.footer-credit{ font-size: .9rem; color: rgba(255,255,255,.6); }

.footer-credit a{ color: var(--gold); font-weight: 600; }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
  .footer-brand{ align-items: center; }
  .footer-social{ justify-content: center; }
}

.built-by{
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(7,58,82,.85);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 14px 26px -14px rgba(0,0,0,.55);
  transition: transform .3s ease, background .3s ease;
}

.built-by:hover{ transform: translateY(-4px); background: var(--red); }

.built-by-mark{
  color: var(--gold);
  animation: spin-slow 6s linear infinite;
  display: inline-block;
}

@keyframes spin-slow{ from{ transform: rotate(0); } to{ transform: rotate(360deg); } }

.page-hero{
  padding: calc(var(--nav-height) + 80px) 0 90px;
  background: linear-gradient(155deg, var(--blue-deep), var(--blue) 65%, var(--blue-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before{
  content:'';
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .35;
}

.page-hero .container{ position: relative; z-index: 2; }

.page-hero .eyebrow{
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}

.page-hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.page-hero p{ max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.85); font-size: 1.08rem; }

@media (max-width: 600px){
  .page-hero{ padding: calc(var(--nav-height) + 50px) 0 60px; }
}
