/* ============================================================
   أسامة العولقي — الموقع الشخصي
   ============================================================ */

:root {
  --primary: #1f5a7a;
  --primary-dark: #143f57;
  --primary-light: #e7f1f6;
  --accent: #f2c98a;
  --ink: #17303f;
  --muted: #637782;
  --white: #ffffff;
  --bg: #f7fafb;
  --line: #dce8ee;
  --shadow: 0 14px 40px rgba(31, 90, 122, 0.10);
  --radius: 18px;
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------------- الهيدر ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(20, 63, 87, 0.10);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(31, 90, 122, 0.25);
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.94rem;
  color: #435d6b;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 11px 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- ترحيب ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0 130px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 201, 138, 0.18), transparent 32%),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.10), transparent 30%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.hero-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-one { width: 420px; height: 420px; top: -150px; inset-inline-end: -120px; }
.hero-shape-two { width: 300px; height: 300px; bottom: -120px; inset-inline-start: -100px; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.35;
}
.hero-name {
  display: block;
  color: var(--accent);
}
.hero-lead {
  max-width: 600px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--accent);
  color: #3d2f19;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.btn-primary:hover { background: #ffdb9f; }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-tags li {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual { position: relative; display: grid; place-items: center; }
.portrait-frame {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(230, 241, 246, 0.85));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  animation: floaty 6s ease-in-out infinite;
}
.portrait-letter {
  font-size: clamp(7rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  opacity: 0.92;
}
.portrait-dot { position: absolute; border-radius: 50%; background: var(--accent); }
.dot-one { width: 16px; height: 16px; top: 18%; inset-inline-start: 16%; }
.dot-two { width: 10px; height: 10px; bottom: 20%; inset-inline-end: 14%; background: var(--primary); opacity: 0.45; }
.floating-card {
  position: absolute;
  bottom: -14px;
  inset-inline-start: -10px;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.floating-icon { font-size: 1.4rem; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}
.scroll-arrow { font-size: 1.4rem; line-height: 1; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------------- أقسام عامة ---------------- */
.section { padding: 100px 0; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.section-heading h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.4;
}
.section-heading p { margin: 0; color: var(--muted); }

/* ---------------- نبذة عني ---------------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin: 0 0 18px; color: #3f5866; font-size: 1.02rem; }
.about-text strong { color: var(--primary); }
.quote {
  margin: 28px 0;
  padding: 20px 26px;
  border-inline-start: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 14px 14px 0;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 3px;
}
.about-card {
  background: var(--primary-light);
  border: 1px solid #cfe3ec;
  border-radius: var(--radius);
  padding: 30px 26px;
}
.about-card h3 { margin: 0 0 20px; color: var(--primary-dark); font-size: 1.25rem; }
.love-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #31505f;
  border-bottom: 1px dashed #bcd6e2;
}
.love-list li:last-child { border-bottom: 0; }
.love-list span { font-size: 1.2rem; }

/* ---------------- مهاراتي ---------------- */
.skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(31, 90, 122, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-8px);
  border-color: #b9d6e4;
  box-shadow: var(--shadow);
}
.skill-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--primary-light);
  font-size: 1.7rem;
}
.skill-card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--primary-dark); }
.skill-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.skill-number {
  position: absolute;
  bottom: -18px;
  inset-inline-end: 10px;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.gallery-block { margin-top: 70px; }
.gallery-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.gallery-title span { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-inline-start: 8px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(31, 90, 122, 0.06);
}
.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  padding: 16px 20px;
  font-weight: 800;
  color: var(--primary-dark);
}
.gallery-item figcaption span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------- تواصل ---------------- */
.contact { background: var(--white); }
.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 30px;
  border-radius: 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 201, 138, 0.20), transparent 30%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 20px 50px rgba(20, 63, 87, 0.18);
}
.contact-card .section-kicker { color: var(--accent); }
.contact-card h2 { color: var(--white); }
.contact-card > p { max-width: 560px; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.85); }
.phone-number {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 10px 24px;
  border: 1px dashed rgba(242, 201, 138, 0.6);
  border-radius: 14px;
  transition: background 0.25s ease;
}
.phone-number:hover { background: rgba(255, 255, 255, 0.08); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-card .btn-outline { border-color: var(--white); }
.contact-card .btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.copy-feedback { min-height: 26px; margin: 14px 0 0 !important; font-size: 0.9rem; font-weight: 700; color: var(--accent) !important; }

/* ---------------- الفوتر ---------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 26px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer strong { color: var(--accent); }
.site-footer p { margin: 0; }

/* ---------------- حركات الظهور ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.skill-card:nth-child(2), .gallery-item:nth-child(2) { transition-delay: 0.08s; }
.skill-card:nth-child(3), .gallery-item:nth-child(3) { transition-delay: 0.16s; }
.skill-card:nth-child(4) { transition-delay: 0.24s; }
.skill-card:nth-child(5) { transition-delay: 0.32s; }

/* ---------------- الجوال ---------------- */
@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 520px; }
  .floating-card { inset-inline-start: 50%; transform: translateX(-50%); bottom: -30px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; order: -1; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(20, 63, 87, 0.10);
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-link::after { display: none; }
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 38px; height: 38px; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 110px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .contact-card { padding: 50px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card { min-height: 210px; padding: 24px 16px; }
  .gallery-title span { display: block; margin: 4px 0 0; }
  .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .phone-number { font-size: 1.5rem; width: 100%; }
}

@media (max-width: 380px) {
  .skills-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
