:root{
  --nav-h: 90px;  /* عدّل الرقم حسب ارتفاع الـ Navbar عندك */
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

:root{
  --navy:#004aad;
  --yellow:#fdd04c;
  --ink:#0b1220;
  --bg:#0a1633;
  --card:#0f2550;
  --surface:#ffffff;
  --muted:rgba(255,255,255,.74);
  --line:rgba(255,255,255,.14);
  --shadow:0 18px 45px rgba(0,0,0,.28);
  --radius:18px;
  --radius-sm:14px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#0b1220;
  background:linear-gradient(180deg,var(--bg),#061028 55%,#050b18);
}

a{color:inherit}

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

.skip{
  position:absolute;left:-999px;top:10px;
  background:var(--yellow);color:#000;
  padding:10px 12px;border-radius:10px;
}
.skip:focus{left:12px;z-index:9999}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(5,11,24,.75);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;min-height:68px;
}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand__mark{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--yellow),#ffe899);
  color:#111;font-weight:800;
}
.brand__text{color:#fff;font-weight:700;letter-spacing:.2px}

.nav{display:flex;gap:18px;align-items:center}
.nav a{
  color:rgba(255,255,255,.84);
  text-decoration:none;font-weight:600;font-size:14px;
  padding:10px 10px;border-radius:10px;
}
.nav a:hover{background:rgba(255,255,255,.07)}

.topbar__cta{display:flex;align-items:center;gap:10px}

.hamburger{
  display:none;cursor:pointer;border:0;
  background:transparent;padding:10px;border-radius:12px;
}
.hamburger:hover{background:rgba(255,255,255,.07)}
.hamburger span{display:block;width:22px;height:2px;background:#fff;margin:5px 0;border-radius:2px}

.mobile{border-top:1px solid rgba(255,255,255,.08);background:rgba(5,11,24,.9)}
.mobile__inner{padding:14px 18px 18px;display:grid;gap:10px}
.mobile__inner a{color:#fff;text-decoration:none;font-weight:650;padding:10px 12px;border-radius:12px}
.mobile__inner a:hover{background:rgba(255,255,255,.07)}

.hero{position:relative;overflow:hidden;padding:64px 0 42px}
.hero__grid{
  display:grid;gap:26px;
  grid-template-columns: 1.25fr .75fr;
  align-items:start;
}

.pill{
  display:inline-flex;align-items:center;
  padding:8px 12px;border-radius:999px;
  background:rgba(253,208,76,.14);
  border:1px solid rgba(253,208,76,.35);
  color:#fff;font-weight:700;font-size:12px;
}

h1{
  margin:14px 0 10px;
  color:#fff;font-size:44px;line-height:1.06;
  letter-spacing:-.8px;
}

.lead{color:rgba(255,255,255,.82);font-size:16px;line-height:1.6;max-width:62ch}

.hero__meta{margin:18px 0 18px;display:grid;gap:10px;max-width:680px}
.meta{display:flex;gap:12px;align-items:center}
.meta__label{
  min-width:86px;
  color:rgba(255,255,255,.65);
  font-size:13px;font-weight:700;
}
.meta__value{color:#fff;text-decoration:none;font-weight:650}
.meta__value:hover{text-decoration:underline}

.hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 16px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;text-decoration:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:750;
  border:1px solid transparent;
}
.btn--solid{background:var(--yellow);color:#141414;border-color:rgba(255,255,255,.05)}
.btn--solid:hover{filter:brightness(.97)}
.btn--ghost{background:rgba(255,255,255,.06);color:#fff;border-color:rgba(255,255,255,.15)}
.btn--ghost:hover{background:rgba(255,255,255,.10)}
.btn--small{padding:10px 12px;border-radius:12px;font-size:13px}

.hero__highlights{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.highlight{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:10px 12px;border-radius:14px;
  color:#fff;min-width:210px;
}
.highlight__k{display:block;font-size:12px;color:rgba(255,255,255,.65);font-weight:800}
.highlight__v{display:block;font-size:13px;font-weight:750;margin-top:2px}

.hero__card{position:relative}

/* Simplified hero right side: photo + quick links */
.hero__media{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  display:grid;
  gap:12px;
  justify-items:center;
  text-align:center;
}
.hero__photo{
  width:220px;
  height:220px;
  border-radius:999px;
  object-fit:cover;
  background:linear-gradient(135deg,var(--navy),#123e90);
  border:2px solid rgba(253,208,76,.35);
}
.hero__mediaLinks{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.hero__mediaNote{margin:0;color:rgba(255,255,255,.78);line-height:1.6;font-size:13px;max-width:40ch}
.avatar{
  width:74px;height:74px;border-radius:24px;
  background:linear-gradient(135deg,var(--navy),#123e90);
  border:1px solid rgba(253,208,76,.35);
  box-shadow:var(--shadow);
  display:grid;place-items:center;
  margin-bottom:14px;
}
.avatar span{color:var(--yellow);font-size:32px;font-weight:900;line-height:1}

.card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);
  padding:18px 18px 16px;
  box-shadow:var(--shadow);
}
.card__title{margin:0 0 10px;color:#fff;font-size:18px}
.card__list{margin:0;padding-left:18px;color:rgba(255,255,255,.82);line-height:1.65}
.card__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.hero__bg{position:absolute;inset:0;pointer-events:none;opacity:.75}
.shape{position:absolute;border-radius:999px;filter:blur(0px)}
.shape--a{width:420px;height:420px;right:-240px;top:-140px;background:radial-gradient(circle at 30% 30%, rgba(253,208,76,.55), rgba(253,208,76,0))}
.shape--b{width:520px;height:520px;left:-280px;bottom:-260px;background:radial-gradient(circle at 30% 30%, rgba(0,74,173,.65), rgba(0,74,173,0))}
.shape--c{width:320px;height:320px;right:120px;bottom:-180px;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,0))}

.section{padding:52px 0}
.section--alt{background:rgba(255,255,255,.03);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.section__head{max-width:74ch;margin-bottom:20px}
.section__head h2{margin:0 0 10px;color:#fff;font-size:28px;letter-spacing:-.2px}
.section__head p{margin:0;color:rgba(255,255,255,.78);line-height:1.7}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}

.panel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:18px;
}
.panel h3{margin:0 0 10px;color:#fff;font-size:18px}
.panel p,.panel li{color:rgba(255,255,255,.82);line-height:1.65}
.panel ul{margin:0;padding-left:18px}

.details{margin-top:12px}
.details summary{cursor:pointer;color:#fff;font-weight:850}
.details summary::-webkit-details-marker{color:var(--yellow)}
.linklist{margin:10px 0 0;padding-left:18px}
.linklist li{margin:6px 0}
.linklist a{color:var(--yellow);text-decoration:none;font-weight:850}
.linklist a:hover{text-decoration:underline}

.skillgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}

.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{
  font-size:12px;font-weight:800;
  padding:8px 10px;border-radius:999px;
  background:rgba(253,208,76,.12);
  border:1px solid rgba(253,208,76,.22);
  color:#fff;
}

.cards{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}
.proj{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:18px;
  display:flex;flex-direction:column;gap:10px;
  min-height:300px;
}
.proj h3{margin:0;color:#fff;font-size:18px;letter-spacing:-.1px}
.proj p{margin:0;color:rgba(255,255,255,.82);line-height:1.65}
.proj__top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.badge{
  display:inline-flex;align-items:center;
  padding:6px 10px;border-radius:999px;
  background:rgba(0,74,173,.25);
  border:1px solid rgba(0,74,173,.4);
  color:#fff;font-weight:850;font-size:11px;
}
.proj__bullets{margin:0;padding-left:18px;color:rgba(255,255,255,.82);line-height:1.65}
.proj__links{margin-top:auto;display:flex;gap:12px;flex-wrap:wrap}
.proj__links a{color:var(--yellow);text-decoration:none;font-weight:850}
.proj__links a:hover{text-decoration:underline}

.note{
  margin-top:16px;
  background:rgba(253,208,76,.10);
  border:1px solid rgba(253,208,76,.22);
  color:#fff;
  border-radius:var(--radius);
  padding:14px 16px;
  line-height:1.65;
}

.contact{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}
.contact__line{margin:0 0 10px}
.contact a{color:var(--yellow);text-decoration:none;font-weight:850}
.contact a:hover{text-decoration:underline}

.footer{padding:26px 0;border-top:1px solid rgba(255,255,255,.08)}
.footer__inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.footer p{margin:0;color:rgba(255,255,255,.72)}
.footer__link{color:#fff;text-decoration:none;font-weight:850}
.footer__link:hover{text-decoration:underline}

@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr;}
  h1{font-size:38px}
  .cards{grid-template-columns:1fr 1fr;}
  .skillgrid{grid-template-columns:1fr;}
  .grid-2{grid-template-columns:1fr;}
  .contact{grid-template-columns:1fr;}
  .nav{display:none}
  .hamburger{display:inline-flex}
}

@media (max-width: 600px){
  h1{font-size:32px}
  .cards{grid-template-columns:1fr;}
  .highlight{min-width:unset;width:100%}
}
.hero__photo--lg{
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__media--lg{
  padding: 28px;
  width: min(720px, 100%);
}
/* ================================
   Global Yellow Hover / Focus
   ================================ */
:root{
  --glow: rgba(253,208,76,.28);
  --glow-strong: rgba(253,208,76,.45);
}

/* Make interactive things feel consistent */
a, button, .btn, .nav a, .mobile__inner a, summary{
  transition: background .22s ease, color .22s ease, box-shadow .22s ease,
              border-color .22s ease, transform .18s ease, filter .22s ease;
}

a:hover{
  color: var(--yellow);
}

/* Keyboard focus (important for accessibility) */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(253,208,76,.22), 0 0 0 1px rgba(253,208,76,.35) inset;
  border-color: rgba(253,208,76,.45);
}

/* Nav hover -> yellow glow without layout shift */
.nav a:hover{
  background: rgba(253,208,76,.10);
  box-shadow: 0 0 0 1px rgba(253,208,76,.35) inset;
  color: #fff;
}

/* Mobile menu hover */
.mobile__inner a:hover{
  background: rgba(253,208,76,.10);
  box-shadow: 0 0 0 1px rgba(253,208,76,.35) inset;
}

/* Buttons (ghost hover becomes yellow-ish) */
.btn--ghost:hover{
  background: rgba(253,208,76,.12);
  border-color: rgba(253,208,76,.40);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* Solid button: add a subtle yellow glow on hover */
.btn--solid:hover{
  box-shadow: 0 12px 28px rgba(0,0,0,.25), 0 0 0 1px rgba(253,208,76,.45) inset;
  transform: translateY(-1px);
}

/* Tags hover */
.tag:hover{
  background: rgba(253,208,76,.14);
  border-color: rgba(253,208,76,.45);
  transform: translateY(-2px);
}

/* ================================
   Card Hover Spotlight (Reusable)
   Apply to hero photo card + panels + cards + highlights + projects
   ================================ */
.hero__media,
.panel,
.card,
.highlight,
.note,
.proj{
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Spotlight layer */
.hero__media::before,
.panel::before,
.card::before,
.highlight::before,
.note::before,
.proj::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity .22s ease;
  background:
    radial-gradient(
      520px circle at var(--mx, 50%) var(--my, 30%),
      rgba(253,208,76,.26),
      transparent 45%
    );
}

/* Inner border glow */
.hero__media::after,
.panel::after,
.card::after,
.highlight::after,
.note::after,
.proj::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity .22s ease;
  box-shadow: 0 0 0 1px rgba(253,208,76,.22) inset, 0 0 30px rgba(253,208,76,.12);
}

.hero__media:hover,
.panel:hover,
.card:hover,
.highlight:hover,
.note:hover,
.proj:hover{
  transform: translateY(-6px);
  border-color: rgba(253,208,76,.45);
  box-shadow: 0 18px 55px rgba(0,0,0,.50);
}

.hero__media:hover::before,
.panel:hover::before,
.card:hover::before,
.highlight:hover::before,
.note:hover::before,
.proj:hover::before,
.hero__media:focus-within::before,
.panel:focus-within::before,
.card:focus-within::before,
.highlight:focus-within::before,
.note:focus-within::before,
.proj:focus-within::before{
  opacity: 1;
}

.hero__media:hover::after,
.panel:hover::after,
.card:hover::after,
.highlight:hover::after,
.note:hover::after,
.proj:hover::after,
.hero__media:focus-within::after,
.panel:focus-within::after,
.card:focus-within::after,
.highlight:focus-within::after,
.note:focus-within::after,
.proj:focus-within::after{
  opacity: 1;
}

/* ================================
   Your Photo Card Tweaks
   1) Lift the buttons up
   2) Make photo glow on hover
   ================================ */

/* lift the capsules under the photo */
.hero__mediaLinks{
  margin-top: 10px;     /* نزّل الأزرار تحت شوي */
  padding-top: 6px;     /* مساحة إضافية لطيفة */
  gap: 12px;            /* مسافة بين الأزرار */
}

/* make the photo feel interactive */
.hero__photo{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hero__media:hover .hero__photo{
  transform: scale(1.01);
  border-color: rgba(253,208,76,.65);
  box-shadow: 0 0 0 10px rgba(253,208,76,.06);
}

/* optionally reduce vertical gap inside the photo card */
.hero__media{
  gap: 10px; /* كان 12px عندك */
}
/* Disable the yellow text hover ONLY for selected buttons */
.btn.no-yellow:hover{
  color: #141414 !important;   /* ثابت (مناسب لزر أصفر) */
}

/* (اختياري) إذا بدك حتى ما يصير glow/filter عليهم */
.btn.no-yellow:hover{
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Certificates list: keep "View" inline and aligned */
.certList{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

.certList li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mutedLine{
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

.list li{ margin: 6px 0; }

.certList{
  margin: 0;
  padding-left: 22px;   /* مساحة للدوت */
  list-style: disc;     /* رجّع الدوت */
}

.certList li{
  display: list-item;   /* مهم عشان يرجع الـ bullet */
  margin: 10px 0;
  color: rgba(255,255,255,.82);
}

/* نخلي النص والزر بنفس السطر */
.certList li{
  position: relative;
  padding-right: 110px; /* مساحة لزر View */
}

.certView{
  position: absolute;
  right: 0;
  top: 0;               /* نفس سطر البداية */
  transform: translateY(-2px);
}
/* ===== Contact (New Layout like reference) ===== */
.contactHead{
  text-align:center;
  max-width: 72ch;
  margin: 0 auto 22px;
}
.contactKicker{
  letter-spacing: .22em;
  font-weight: 900;
  font-size: 11px;
  color: rgba(255,255,255,.70);
}
.contactTitle{
  margin: 10px 0 8px;
  color:#fff;
  font-size: 34px;
  letter-spacing: -.3px;
}
.contactSub{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.contactGrid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.contactCard{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
}

.contactCardTop{
  display:flex;
  align-items:center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 12px;
}

.contactAvatar{
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(253,208,76,.30);
}

.contactName{color:#fff;font-weight:900}
.contactRole{color:rgba(255,255,255,.72);font-weight:700;font-size:13px;margin-top:2px}

.contactItems{display:grid;gap:10px;margin-top:6px}
.contactItem{
  display:flex;gap:10px;align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.contactIcon{
  width: 30px;height: 30px;border-radius: 10px;
  display:grid;place-items:center;
  background: rgba(253,208,76,.10);
  border: 1px solid rgba(253,208,76,.20);
  color: #fdd04c;
  font-weight: 900;
  flex: 0 0 auto;
}
.contactLabel{color:rgba(255,255,255,.65);font-size:12px;font-weight:900}
.contactValue{color:#fff;text-decoration:none;font-weight:750}
.contactValue:hover{color: var(--yellow); text-decoration: underline;}

.contactActions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 14px;
}
.contactSocial{
  display:flex; gap:10px; margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.socialBtn{
  display:inline-flex;align-items:center;justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  font-weight: 850;
}
.socialBtn:hover{
  background: rgba(253,208,76,.12);
  border-color: rgba(253,208,76,.35);
}

.contactRight{
  display:grid;
  gap: 12px;
}

.contactMapWrap{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow:hidden;
  height: 190px;
}
.contactMap{
  width: 100%;
  height: 190px;
  border: 0;
  filter: saturate(1.1) contrast(1.05);
}

.contactForm{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px;
  display:grid;
  gap: 10px;
}

.field{
  width: 100%;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 12px;
  color:#fff;
  outline: none;
}
.field::placeholder{color: rgba(255,255,255,.50); font-weight: 700;}
.field:focus{
  border-color: rgba(253,208,76,.45);
  box-shadow: 0 0 0 3px rgba(253,208,76,.14);
}
.field--msg{min-height: 110px; resize: vertical;}

.contactSend{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
}

/* Responsive */
@media (max-width: 980px){
  .contactGrid{grid-template-columns: 1fr;}
  .contactTitle{font-size: 30px;}
  .contactMapWrap, .contactMap{height: 210px;}
}
.brand__mark--img{
  padding: 0;
  overflow: hidden;
}

.brand__mark--img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* prevent yellow overlay from tinting the photo */
.hero__media::before,
.hero__media::after{
  z-index: 1;
}

.hero__photo{
  position: relative;
  z-index: 2;          /* فوق التأثير */
  background: none;    /* يمنع أي صبغة خلفية */
}

/* خفف التأثير داخل كرت الصورة فقط */
.hero__media::before{
  opacity: 0;          /* إذا بدك تلغيه نهائياً */
}

/* أو بدل السطر اللي فوق، خليه خفيف جداً:
.hero__media::before{
  opacity: .25;
}
*/
/* ===== Mobile hero fix ===== */
@media (max-width: 600px){

  /* قلل padding في الهيرو */
  .hero{
    padding: 34px 0 26px;
  }

  /* خلي الهيرو عمود واحد 100% */
  .hero__grid{
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  /* عنوان أصغر حتى ما يكسر التصميم */
  h1{
    font-size: 30px;
    line-height: 1.12;
  }

  /* خفف تفاصيل الميتا */
  .hero__meta{
    gap: 8px;
  }
  .meta__label{
    min-width: 74px;
    font-size: 12px;
  }
  .meta__value{
    font-size: 14px;
  }

  /* الأزرار الرئيسية: صفين بدل تزاحم */
  .hero__actions{
    gap: 10px;
  }
  .hero__actions .btn{
    width: calc(50% - 5px);
    justify-content: center;
  }

  /* كرت الصورة: أصغر ومش ضخم */
  .hero__media{
    width: 100% !important;
    padding: 16px !important;
  }
  .hero__photo,
  .hero__photo--lg{
    width: 240px !important;
    height: 240px !important;
    margin-bottom: 10px;
  }

  /* أزرار CV/GitHub تحت الصورة */
  .hero__mediaLinks{
    margin-top: 8px !important;
    gap: 10px;
  }
}

/* ===== Small phones (very narrow) ===== */
@media (max-width: 380px){
  .hero__actions .btn{
    width: 100%;
  }
  .hero__photo,
  .hero__photo--lg{
    width: 210px !important;
    height: 210px !important;
  }
}
/* ===== Mobile dropdown menu polish ===== */
.hamburger{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hamburger span{
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: transform .18s ease, opacity .18s ease;
}

/* optional: animate to X when open */
.hamburger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown container */
.mobile{
  position: absolute;         /* يطلع كدروب داون تحت التوب بار */
  left: 12px;
  right: 12px;
  top: 74px;                  /* حسب ارتفاع topbar */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,12,25,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  z-index: 100;
}

/* animation */
.mobile[hidden]{display:block; opacity:0; transform: translateY(-8px); pointer-events:none;}
.mobile{opacity:1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease;}

.mobile__inner{
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mobile__inner a{
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 12px 12px;
  font-weight: 800;
}

.mobile__inner a:hover{
  background: rgba(253,208,76,.10);
  border-color: rgba(253,208,76,.30);
}

/* Ensure topbar can host absolute dropdown */
.topbar{position: sticky;}
.topbar__inner{position: relative;}
/* ===== Softer Download CV button ===== */
.topbar__cta .btn,
a.topbar__cta, 
.topbar__cta a.btn{
  border-radius: 16px;
}

.topbar__cta .btn--ghost{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.topbar__cta .btn--ghost:hover{
  background: rgba(253,208,76,.10);
  border-color: rgba(253,208,76,.30);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
@media (max-width: 600px){
  .hide-mobile{
    display: none !important;
  }
}
