/*===== CSS Reset ===== */

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

/* ===== root ===== */
:root {
  --bg: #ffffff; 
  --card: #d5dee6;
  --text: #464a4e;
  --accent: #7ea6c9;
  --accent-strong: #04F1F4;
  --shadow: 0 10px 24px rgba(0,0,0,.12);
  --radius: 16px;
}

/* ==== Body ==== */
body {
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f5 100%) fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* ===== Header ===== */hk,
header {
  background: var(--card);
  padding: 20px 8px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  text-align: left;
}

#name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-family: 'Franklin Gothic Medium','Arial Narrow',Arial,sans-serif;
  color: #2f3438;
}


/* ===== Sections  ===== */
main {
  padding-top: 20px; 
}

section {
  width: 84%;
  margin: 0 auto 32px auto;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.profile-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  object-fit: cover;
  display: block;
}

/* ==== hero ==== */

.hero-text h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-text h3 {
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 600;
  color: #2f3438;
  opacity: .9;
  margin-bottom: 16px;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e1e1e;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f5 100%) fixed;

}

ul { padding-left: 22px; }
ul.square { list-style: square; }

.projects dt { font-weight: 800; margin-top: 10px; }
.projects dd { margin-left: 0; margin-bottom: 8px; }


/* ===== Navigation Bar ===== */
.navbar {
  display: flex;
  justify-content: space-between; 
  align-items: left;
  font-family: 'Inter', sans-serif;
}
.nav-left h1 {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin: 0;
}
.nav-right a {
  color: #617788;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
  transition: color 0.5s ease;
}

/* ===== Footer ===== */
footer {
  color: var(--accent);
  padding: 40px 0 70px;
  text-align: center;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { opacity: .75; }



/* ===== Mobile-friendly navbar ===== */
/* ===== Topbar look (مثل الصورة) ===== */
header {
  background: #1f2937;          /* غامق */
  color: #e5e7eb;
  padding: 12px 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
#name { color: #e5e7eb; font-weight: 700; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* زر الهمبرغر */
.menu-btn {
  display: none;                /* يظهر فقط على الموبايل */
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-btn:focus { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* الروابط على الديسكتوب: مصفوفة يمين */
.nav-right a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}
.nav-right a:hover { color: #ffffff; }

/* ===== موبايل: القائمة الجانبية ===== */
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }

  /* أخفي الروابط من الشريط العلوي وحوّلها لأوف-كانفاس */
  .nav-right {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: #111827;
    box-shadow: -8px 0 24px rgba(0,0,0,.35);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
  }
  .nav-right.open { transform: translateX(0); }

  .nav-right a {
    color: #e5e7eb;
    margin: 0;
    padding: 10px 8px;
    width: 100%;
    border-radius: 8px;
  }
  .nav-right a:active,
  .nav-right a:focus { background: #1f2937; }

  /* التعتيم */
  #overlay[hidden] { display: none; }
  #overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(1px);
    z-index: 1000;
  }
}


