/* الإعدادات الأساسية */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --main-color: #1f5a7a;
}

body {
  font-family: "Cairo", sans-serif;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.8;
  direction: rtl;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
}

/* ترحيب */
.hero {
  background-color: var(--main-color);
  color: #fff;
  padding: 40px 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero .name {
  display: inline-block;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* الأقسام */
.section {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--main-color);
}

.about {
  font-size: 1rem;
  color: #444;
}

/* المهارات */
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills li {
  background-color: #e8f1f6;
  color: var(--main-color);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
}

/* المشاريع */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.project-card {
  background-color: #f4f7f9;
  border: 1px solid #e0e9ef;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.project-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.project-title {
  color: var(--main-color);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.project-desc {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
  margin-bottom: 14px;
}

.project-tag {
  align-self: flex-start;
  background-color: #e8f1f6;
  color: var(--main-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* التواصل */
.contact {
  list-style: none;
}

.contact li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact .label {
  font-weight: 700;
  color: var(--main-color);
  margin-left: 6px;
}

.contact a {
  color: var(--main-color);
  text-decoration: none;
  word-break: break-all;
}

.contact a:hover {
  text-decoration: underline;
}

/* واتساب */
.contact .whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact .whatsapp-link svg {
  width: 22px;
  height: 22px;
  fill: #25D366;
  flex-shrink: 0;
}

.contact .whatsapp-link:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 3px 5px rgba(37, 211, 102, 0.4));
}

.contact .whatsapp-link:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
  border-radius: 6px;
}

/* الجوال */
@media (max-width: 600px) {
  .container {
    margin: 16px auto;
    padding: 0 12px;
  }

  .hero {
    padding: 28px 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 18px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .skills li {
    font-size: 0.9rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 16px;
  }
}
