/* ===== السيرة الذاتية — حماسه عبدالله العدلاني — #1f5a7a + Cairo ===== */

:root {
  --brand: #1f5a7a;
  --brand-dark: #16425a;
  --brand-deep: #0e2c3d;
  --brand-light: #2e86ad;
  --sky: #7ec8e8;
  --ink: #12222e;
  --muted: #5b7386;
  --bg: #f4f8fb;
  --card: #ffffff;
  --line: #e2ecf3;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(18, 34, 46, 0.12);
  --shadow-sm: 0 8px 22px rgba(18, 34, 46, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* ===== الشريط العلوي ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 236, 243, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(31, 90, 122, 0.35);
}

.logo-name { font-size: 1rem; color: var(--brand-dark); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover { background: #e9f2f8; color: var(--brand); }

/* ===== الترحيب ===== */
.hero {
  position: relative;
  color: #fff;
  padding: 76px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(126, 200, 232, 0.30), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(46, 134, 173, 0.45), transparent 60%),
    linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, var(--brand-light));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(90deg, #ffffff, #bfe6f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin: 10px 0 12px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #a9dcf4;
  letter-spacing: 0.04em;
}

.lead {
  margin: 0;
  max-width: 48ch;
  color: #e8f5fc;
  font-size: 1.06rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
}

.chips li {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: background 0.18s ease, transform 0.18s ease;
}

.chips li:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* البصرية: الصورة + مدارات */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(126, 200, 232, 0.55), rgba(255, 255, 255, 0.06), rgba(126, 200, 232, 0.45));
  filter: blur(26px);
  animation: spin 16s linear infinite;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 78%;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.orbit {
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.orbit-1 { top: 4%;  inset-inline-start: 6%;  animation: float 5s ease-in-out infinite; }
.orbit-2 { bottom: 10%; inset-inline-start: -2%; animation: float 6.4s ease-in-out infinite 0.6s; }
.orbit-3 { top: 34%; inset-inline-end: -4%;   animation: float 5.8s ease-in-out infinite 1.2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* موجة سفلية */
.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 64px;
  background: var(--bg);
  clip-path: polygon(0 60%, 12% 48%, 28% 56%, 46% 40%, 64% 52%, 82% 36%, 100% 50%, 100% 100%, 0 100%);
}

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 90, 122, 0.35);
}

/* ===== الأقسام ===== */
.section { padding: 62px 0; }

.section-tint {
  background: linear-gradient(180deg, #e9f2f8, #f1f7fb);
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--brand-light);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.93rem;
}

.section-title {
  margin: 0 0 26px;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-dark);
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 76px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand-light), var(--sky));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
}

/* ===== النبذة ===== */
.bio p { margin: 0 0 14px; font-size: 1.06rem; }
.bio p:last-child { margin-bottom: 0; }

.drop::first-letter {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

/* ===== المهارات ===== */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.skill:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.skill-name { font-weight: 800; color: var(--brand-dark); }

.skill-val { color: var(--brand-light); font-size: 0.95rem; font-weight: 800; }

.bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dde9f1;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--level, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grow { from { width: 0; } }

/* ===== التواصل ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9f2f8, #dcecf6);
  color: var(--brand);
  margin-bottom: 8px;
}

.contact-label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

.contact-value { font-weight: 800; color: var(--ink); word-break: break-word; font-size: 1.03rem; }

.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ===== التذييل ===== */
.footer {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark));
  color: #cfe6f3;
  padding: 26px 0;
  text-align: center;
  font-size: 0.96rem;
}

.footer p { margin: 0; }

/* ===== التجاوب مع الموبايل ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { order: -1; }
  .lead { margin-inline: auto; }
  .chips, .hero-actions { justify-content: center; }
  .logo-name { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 84px; }
  .topbar-inner { justify-content: center; }
  .section { padding: 46px 0; }
  .card { padding: 24px 22px; }
  .orbit { width: 44px; height: 44px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .halo, .orbit, .bar i { animation: none; }
  html { scroll-behavior: auto; }
}
