/* ===========================
   RESET والأساسيات
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #f0f8ff;
  color: #1a2a3a;
  line-height: 1.8;
  direction: rtl;
}

/* ===========================
   متغيرات الألوان
=========================== */
:root {
  --primary: #2196F3;          /* أزرق سمائي */
  --primary-light: #64B5F6;    /* أزرق فاتح */
  --primary-dark: #1565C0;     /* أزرق غامق */
  --primary-bg: #E3F2FD;       /* خلفية زرقاء فاتحة جداً */
  --dark: #1a2a3a;
  --gray: #546e7a;
  --light-gray: #B0BEC5;
  --white: #ffffff;
  --bg: #f0f8ff;
  --section-bg: #E8F4FD;
}

/* ===========================
   أنيميشن - Keyframes
=========================== */

/* ظهور من الأسفل */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ظهور من اليمين */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ظهور من اليسار */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* نبض خلف الصورة */
@keyframes pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  50%  { transform: scale(1.08); opacity: 0.3; }
  100% { transform: scale(1);    opacity: 0.6; }
}

/* دوران الدوائر الخلفية */
@keyframes float {
  0%   { transform: translateY(0px);   }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px);   }
}

/* وميض خط تحت العنوان */
@keyframes expandLine {
  from { width: 0; }
  to   { width: 60px; }
}

/* ===========================
   كلاسات الأنيميشن
=========================== */
.fade-in {
  animation: fadeInUp 0.9s ease forwards;
}

.fade-in-delay {
  animation: fadeInUp 0.9s ease 0.3s forwards;
  opacity: 0;
}

/* هذه الكلاسات تُضاف بالـ JavaScript عند الظهور */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* عندما يصبح العنصر مرئياً */
.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ===========================
   أنماط مشتركة
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 55px;
  font-size: 1rem;
}

/* الخط المتحرك تحت العنوان */
.divider {
  width: 0;
  height: 4px;
  background: linear-gradient(to left, var(--primary-light), var(--primary-dark));
  margin: 12px auto 45px;
  border-radius: 2px;
  animation: expandLine 1s ease 0.3s forwards;
}

/* الأزرار */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 13px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* ===========================
   شريط التنقل
=========================== */
nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(33, 150, 243, 0.12);
  z-index: 1000;
  padding: 14px 0;
  transition: box-shadow 0.3s;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

/* خط متحرك تحت رابط التنقل عند الهوفر */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* زر القائمة للموبايل */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background-color: var(--dark);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ===========================
   قسم الرئيسية
=========================== */
#home {
  padding-top: 130px;
  padding-bottom: 90px;
  background: linear-gradient(135deg, #ffffff 0%, #E3F2FD 100%);
  overflow: hidden;
}

.home-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.home-text h4 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.home-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 15px;
}

.home-text h1 span {
  color: var(--primary);
}

.home-role {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 20px;
}

.home-text p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 35px;
  max-width: 500px;
  line-height: 1.9;
}

.home-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* صورة الرئيسية */
.home-image {
  flex-shrink: 0;
  position: relative;
}

/* الدائرة النابضة خلف الصورة */
.img-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.15;
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

.img-wrapper {
  position: relative;
  display: inline-block;
}

.img-wrapper img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 5px solid var(--primary-light);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.25);
  position: relative;
  z-index: 1;
}

/* دوائر الخلفية الزخرفية */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.circle-1 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(33,150,243,0.08), transparent);
  top: -50px;
  left: -60px;
  animation: float 6s ease-in-out infinite;
}

.circle-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(33,150,243,0.06), transparent);
  bottom: -30px;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

/* ===========================
   قسم عني - تصميم جديد
=========================== */
#about {
  background-color: var(--white);
}

/* التخطيط الرئيسي: عمودان */
.about-wrapper {
  display: flex;
  gap: 55px;
  align-items: flex-start;
}

/* ===== الجانب الأيسر: الصورة والإحصائيات ===== */
.about-left {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* صندوق الصورة */
.about-photo-box {
  position: relative;
  width: 240px;
  height: 240px;
}

.about-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  border: 4px solid var(--primary-light);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
  display: block;
}

/* شارة فوق الصورة */
.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* شريط الإحصائيات */
.about-stats {
  display: flex;
  align-items: center;
  background-color: var(--primary-bg);
  border-radius: 14px;
  padding: 16px 12px;
  width: 100%;
  border: 1px solid #c5dff8;
  margin-top: 20px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: #c5dff8;
  margin: 0 8px;
}

/* ===== الجانب الأيمن: التبويبات ===== */
.about-right {
  flex: 1;
  min-width: 0;
}

/* أزرار التبويب */
.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background-color: var(--primary-bg);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #c5dff8;
}

.tab-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* الزر النشط */
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* محتوى التبويب - مخفي بالافتراضي */
.tab-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.tab-content.active {
  display: block;
}

/* ===== تبويب المعلومات ===== */
.about-bio {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 22px;
  padding: 14px;
  background-color: var(--primary-bg);
  border-radius: 10px;
  border-right: 4px solid var(--primary);
}

/* شبكة بطاقات المعلومات */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg);
  border-radius: 10px;
  border: 1px solid #d0e8f8;
  transition: transform 0.25s, box-shadow 0.25s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.12);
}

.info-card i {
  font-size: 1.15rem;
  color: var(--primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 700;
}

.info-value a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== تبويب المهارات ===== */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-name {
  width: 145px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.skill-name i {
  color: var(--primary);
  font-size: 1rem;
}

.skill-bar {
  flex: 1;
  height: 10px;
  background-color: var(--primary-bg);
  border-radius: 5px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(to left, var(--primary-light), var(--primary-dark));
  border-radius: 5px;
  width: 0;
  transition: width 1.2s ease;
}

.skill-pct {
  width: 38px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}

/* ===== تبويب التعليم - خط زمني ===== */
.timeline {
  position: relative;
  padding-right: 25px;
}

/* الخط الرأسي */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-right: 20px;
}

/* النقطة على الخط الزمني */
.timeline-dot {
  position: absolute;
  right: -6px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-body {
  background-color: var(--bg);
  border: 1px solid #d0e8f8;
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.3s;
}

.timeline-body:hover {
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.12);
}

.timeline-year {
  display: inline-block;
  background-color: var(--primary-bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.timeline-body h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}

.timeline-body p {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.timeline-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ===========================
   قسم الخدمات
=========================== */
#services {
  background-color: var(--section-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid #D0E8F8;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(33, 150, 243, 0.15);
}

/* دائرة أيقونة الخدمة */
.card-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary-bg), #c2e0f8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background 0.3s, transform 0.3s;
}

.service-card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.1);
}

.card-icon i {
  font-size: 1.6rem;
  color: var(--primary);
  transition: color 0.3s;
}

.service-card:hover .card-icon i {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===========================
   قسم الأعمال - تصميم جديد
=========================== */
#portfolio {
  background-color: var(--section-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* البطاقة الأساسية */
.portfolio-card {
  background-color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #D0E8F8;
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(33, 150, 243, 0.18);
}

/* ===== صورة المشروع مع overlay ===== */
.portfolio-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-bg);
}

/* الصورة الحقيقية */
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.07);
}

/* طبقة شفافة تظهر عند الهوفر */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 101, 192, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;                        /* مخفي بالافتراضي */
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;                        /* يظهر عند الهوفر */
}

/* زر عرض المشروع في الـ overlay */
.overlay-btn {
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  transform: translateY(10px);
}

.portfolio-card:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ===== حالة ما إذا لم توجد الصورة بعد ===== */
/* onerror في HTML يضيف كلاس no-img عندما الصورة غير موجودة */
.no-img {
  background: linear-gradient(135deg, var(--primary-bg), #c2dcf5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-img img {
  display: none;                     /* إخفاء الصورة المكسورة */
}

.no-img::after {
  content: 'صورة المشروع';
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}

/* ===== معلومات المشروع ===== */
.portfolio-info {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* العنوان وأيقونة الرابط */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-header h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
}

/* أيقونة الرابط بجانب العنوان */
.project-link-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.project-link-icon:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  transform: rotate(-15deg) scale(1.1);
}

.portfolio-info p {
  color: var(--gray);
  font-size: 0.87rem;
  line-height: 1.65;
  flex: 1;
}

/* ===== علامات التقنيات ===== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-tags span {
  background-color: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #c5dff8;
}

/* ===========================
   قسم التواصل
=========================== */
#contact {
  background-color: var(--section-bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 25px;
  padding-right: 15px;
  border-right: 4px solid var(--primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
  padding: 14px;
  background-color: var(--white);
  border-radius: 10px;
  border: 1px solid #D0E8F8;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.1);
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2px;
  width: 22px;
  flex-shrink: 0;
}

.contact-item p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-item a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

/* نموذج التواصل */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 15px;
  border: 1.5px solid #D0E8F8;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background-color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  direction: rtl;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
}

#form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* ===========================
   التذييل
=========================== */
footer {
  background: linear-gradient(135deg, #1565C0, #1a2a3a);
  color: #90CAF9;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.95rem;
}

footer span {
  color: var(--primary-light);
  font-weight: 700;
}

/* ===========================
   الموبايل
=========================== */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    right: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(33,150,243,0.12);
    text-align: right;
  }

  .nav-links.open {
    display: flex;
  }

  .home-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 35px;
  }

  .home-text h1 {
    font-size: 2.2rem;
  }

  .home-text p {
    max-width: 100%;
  }

  .img-wrapper img {
    width: 220px;
    height: 220px;
  }

  .img-wrapper::before {
    width: 240px;
    height: 240px;
  }

  .home-buttons {
    justify-content: center;
  }

  /* قسم عني - الموبايل */
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .about-left {
    width: 100%;
  }

  .about-photo-box {
    width: 200px;
    height: 200px;
  }

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

  .tab-buttons {
    flex-wrap: wrap;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 8px 6px;
  }

  .skill-name {
    width: 120px;
    font-size: 0.85rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-item:hover {
    transform: none;
  }
}
