@import url("https://fonts.googleapis.com/css2?family=Clicker+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --bg-black-900: #f2f2fc;
  --bg-black-100: #fdf9ff;
  --bg-black-50: #e8dfec;
  --text-black-900: #302e4d;
  --text-black-700: #504e70;
  --skin-color: #ec1839; /* Default skin color fallback */
}

body.dark {
  --bg-black-900: #151515;
  --bg-black-100: #222222;
  --bg-black-50: #393939;
  --text-black-900: #ffffff;
  --text-black-700: #e9e9e9;
}

body {
  line-height: 1.5;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
}

::after,
::before {
  box-sizing: border-box;
}

ul {
  list-style: none;
}

.section {
  background-color: var(--bg-black-900);
  min-height: 100vh;
  display: block;
  padding: 0 30px;
  position: fixed;
  left: 270px;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.section.back-section {
  z-index: 1;
}

.section.active {
  z-index: 2;
  opacity: 1;
  animation: slideSection 1s ease;
}

@keyframes slideSection {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.hidden {
  display: none !important;
}

.padd-15 {
  padding: 0 15px;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
}

.section .container {
  padding-top: 60px;
  padding-bottom: 70px;
}

.section-title {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  color: var(--text-black-900);
  font-weight: 700;
  position: relative;
}

.section-title h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
}

.section-title h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  position: relative;
}

.btn {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 35px;
  background: var(--skin-color);
  color: white;
  border-radius: 40px;
  white-space: nowrap;
  border: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

.shadow-dark {
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

/* ================= Aside (Sidebar) ================= */
.aside {
  width: 270px;
  background-color: var(--bg-black-100);
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px;
  height: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--bg-black-50);
  transition: all 0.3s ease;
}

.aside .logo {
  position: absolute;
  top: 50px;
  font-size: 30px;
  text-transform: capitalize;
}

.aside .logo a {
  color: var(--text-black-900);
  font-weight: 700;
  padding: 15px 20px;
  font-size: 30px;
  letter-spacing: 5px;
  position: relative;
}

.aside .logo a span {
  font-family: "Clicker Script", cursive;
  font-size: 45px;
}

.aside .logo a::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 5px solid var(--skin-color);
  border-left: 5px solid var(--skin-color);
  bottom: 0;
  left: 0;
}

.aside .logo a::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 5px solid var(--skin-color);
  border-right: 5px solid var(--skin-color);
  top: 0;
  right: 0;
}

.aside .nav-toggler {
  height: 40px;
  width: 45px;
  border: solid 1px var(--bg-black-50);
  cursor: pointer;
  position: fixed;
  right: 15px;
  top: 15px;
  border-radius: 5px;
  background-color: var(--bg-black-100);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 11;
}

.aside .nav-toggler span {
  width: 18px;
  height: 2px;
  background-color: var(--skin-color);
  display: inline-block;
  position: relative;
}

.aside .nav-toggler span::before {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  top: -6px;
  left: 0;
}

.aside .nav-toggler span::after {
  content: "";
  height: 2px;
  width: 18px;
  background: var(--skin-color);
  position: absolute;
  top: 6px;
  left: 0;
}

.aside .nav {
  margin-top: 50px;
}

.aside .nav li {
  margin-bottom: 20px;
  display: block;
}

.aside .nav li a {
  font-size: 16px;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid var(--bg-black-50);
  color: var(--text-black-900);
  padding: 5px 15px;
}

.aside .nav li a.active {
  color: var(--skin-color);
}

.aside .nav li a i {
  margin-right: 15px;
}

/* ================= Home Section ================= */
.home {
  min-height: 100vh;
  display: flex;
  color: var(--text-black-900);
}

.home .home-info {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 15px;
}

h3.hello {
  font-size: 28px;
  margin: 15px 0;
}

h3.hello span {
  font-family: "Clicker Script", cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--skin-color);
}

h3.my-profession {
  font-size: 28px;
  margin: 15px 0;
}

.home .home-img {
  flex: 0 0 40%;
  max-width: 40%;
  text-align: center;
  position: relative;
}

.home-img::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 80px;
  bottom: -30px;
  right: 40px;
  border-bottom: 10px solid var(--skin-color);
  border-right: 10px solid var(--skin-color);
}

.home-img::before {
  content: "";
  position: absolute;
  height: 80px;
  width: 80px;
  top: -30px;
  left: 40px;
  border-top: 10px solid var(--skin-color);
  border-left: 10px solid var(--skin-color);
}

.home .home-img img {
  height: 400px;
  border-radius: 5px;
  margin: auto;
}

.typing {
  color: var(--skin-color);
}

.home-info p {
  margin-bottom: 70px;
  font-size: 20px;
  color: var(--text-black-700);
}

/* ================= About Section ================= */
.about .about-content {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .about-text {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .about-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-black-900);
}

.about .about-content .about-text h3 span {
  color: var(--skin-color);
}

.about .about-content .about-text {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-black-700);
}

/* Personal Info - Full Width */
.about .about-content .personal-info {
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 40px;
}

.about .about-content .personal-info .info-item {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Personal Info - Full Width */
/* ابحث عن هذا الجزء وقم بتحديث الـ font-size فقط */

.about .about-content .personal-info .info-item p {
  font-weight: 600;
  padding: 10px 0;
  font-size: 17px; /* <-- تم التعديل هنا: كبرنا الخط من 14 لـ 17 */
  color: var(--text-black-900);
  border-bottom: 1px solid var(--bg-black-50);
}

.about .about-content .personal-info .buttons {
  margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn {
  margin-right: 15px;
  margin-top: 10px;
}

.about .about-content .personal-info .info-item p span {
  font-weight: 400;
  color: var(--text-black-700);
  margin-left: 3px;
  display: inline-block;
}

/* ================= Education & Experience ================= */
.about .about-content .education,
.about .about-content .excperience {
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 30px;
}

.about .about-content h3.title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-black-900);
}

.about .about-content .timeline-box {
  flex: 0 0 100%;
  max-width: 100%;
}

.about .about-content .timeline {
  background-color: var(--bg-black-100);
  padding: 30px 15px;
  border: solid 1px var(--bg-black-50);
  border-radius: 10px;
  width: 100%;
  position: relative;
}

.about .about-content .timeline .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.about .about-content .timeline .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  left: 7px;
  top: 0;
  background-color: var(--skin-color);
  height: 100%;
}

.about .about-content .timeline .timeline-item .circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--skin-color);
}

.about .about-content .timeline .timeline-date {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-black-700);
}

.about .about-content .timeline .timeline-date .fa {
  margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: capitalize;
  color: var(--text-black-900);
}

.about .about-content .timeline .timeline-text {
  line-height: 25px;
  font-size: 16px;
  text-align: justify;
  color: var(--text-black-700);
}

/* ================= Services Section ================= */
.service .container {
  padding-bottom: 2px;
}

.service .service-item {
  margin-bottom: 30px;
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

.service .service-item .service-item-inner {
  background-color: var(--bg-black-100);
  border: 1px solid var(--bg-black-50);
  border-radius: 10px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.service .service-item .service-item-inner:hover {
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.service .service-item .service-item-inner .icon {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.service .service-item .service-item-inner .icon .fa {
  font-size: 40px;
  line-height: 60px;
  color: var(--skin-color);
  transition: all 0.3s ease;
}

.service .service-item .service-item-inner:hover .icon {
  background-color: var(--skin-color);
}

.service .service-item .service-item-inner:hover .icon .fa {
  font-size: 25px;
  color: #ffffff;
}

.service .service-item .service-item-inner h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-black-900);
  font-weight: 700;
  text-transform: capitalize;
}

.service .service-item .service-item-inner p {
  font-size: 1rem;
  color: var(--text-black-700);
  line-height: 25px;
}

/* ================= Portfolio Section ================= */
.portfolio .container {
  padding-bottom: 40px;
}

.portfolio .portfolio-heading {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.portfolio .portfolio-heading h2 {
  color: var(--text-black-900);
  font-weight: 500;
}

.portfolio .portfolio-item {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  margin-bottom: 30px;
}

.portfolio .portfolio-item-inner {
  border: 6px solid var(--bg-black-100);
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.portfolio .portfolio-item .portfolio-item-inner .portfolio-img img {
  width: 100%;
  display: block;
}

/* ================= Contact Section ================= */
/* ================= Contact Section Styling (Updated) ================= */

.contact-title {
  color: var(--skin-color);
  text-align: center;
  font-size: 25px;
  margin-bottom: 20px;
}

.contact-sub-title {
  color: var(--text-black-900);
  text-align: center;
  font-size: 15px;
  margin-bottom: 60px;
}

.contact .contact-info-item {
  flex: 0 0 25%;
  max-width: 25%;
  text-align: center;
  margin-bottom: 60px;
}

/* --- تنسيق حاوية الأيقونة (الدائرة) --- */
.contact .contact-info-item .icon {
  display: inline-block;
  width: 60px; /* عرض الدائرة */
  height: 60px; /* ارتفاع الدائرة */
  border-radius: 50%; /* جعلها دائرية */
  border: 1px solid var(--bg-black-50); /* حدود خفيفة */
  text-align: center;
  line-height: 60px; /* لتوسيط الأيقونة عمودياً */
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* --- تنسيق الرمز نفسه (داخل الدائرة) --- */
.contact .contact-info-item .icon .fa,
.contact .contact-info-item .icon .fa-brands,
.contact .contact-info-item .icon i {
  /* إضافة i لضمان التوافق */
  font-size: 25px;
  color: var(--skin-color);
  transition: all 0.3s ease;
  line-height: 60px; /* ضمان التوسيط */
}

/* --- تأثير الهوفر الجميل --- */
/* عند الوقوف على العنصر، الدائرة تمتلئ باللون */
.contact .contact-info-item:hover .icon {
  background-color: var(--skin-color);
  border-color: var(--skin-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px); /* حركة خفيفة للأعلى */
}

/* عند الوقوف على العنصر، الأيقونة تصبح بيضاء */
.contact .contact-info-item:hover .icon .fa,
.contact .contact-info-item:hover .icon .fa-brands,
.contact .contact-info-item:hover .icon i {
  color: #ffffff;
}

/* --- تنسيق النصوص (العناوين والروابط) --- */
.contact .contact-info-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  margin: 0 0 10px;
  text-transform: capitalize;
}

.contact .contact-info-item p {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-black-700);
  font-weight: 400;
  margin: 0;
  transition: all 0.3s ease;
}

/* تنسيق الروابط داخل النصوص */
.contact .contact-info-item p a {
  color: var(--text-black-700);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

/* تكبير وتلوين النص عند الهوفر */
.contact .contact-info-item:hover p a,
.contact .contact-info-item:hover p {
  color: var(--skin-color);
}

/* --- بقية تنسيقات الفورم (Form) كما هي --- */
.contact .contact-form {
  flex: 0 0 100%;
  max-width: 100%;
}

.contact .contact-form .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.contact .contact-form .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.contact .contact-form .form-item {
  margin-bottom: 30px;
}

.contact .contact-form .form-control {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--bg-black-50);
  border: 1px solid var(--bg-black-50);
  padding: 10px 25px;
  font-size: 16px;
  color: var(--text-black-700);
  transition: all 0.3s ease;
}

.contact .contact-form .form-control:focus {
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
  border-color: var(--skin-color);
}

.contact .contact-form textarea.form-control {
  height: 140px;
}

.contact .contact-form .btn {
  height: 50px;
  padding: 0 50px;
  cursor: pointer;
}
/* =======================================================
   تعديل نصوص قسم التواصل (Location, Phone, Email)
   ======================================================= */

/* 1. تحديث تنسيق الفقرة لتقبل الحركة */
.contact .contact-info-item p {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-black-700);
  font-weight: 400;
  margin: 0;

  /* الإضافات الجديدة للحركة */
  transition: all 0.3s ease;
  cursor: pointer; /* يغير شكل الماوس ليد */
  display: inline-block; /* ضروري جداً عشان خاصية الـ Scale تشتغل */
}

/* 2. إضافة تأثير التكبير واللون عند مرور الماوس */
.contact .contact-info-item p:hover {
  color: var(--skin-color); /* تغيير اللون للون الثيم */
  transform: scale(1.05); /* تكبير الحجم */
}

.contact .contact-form {
  flex: 0 0 100%;
  max-width: 100%;
}

.contact .contact-form .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.contact .contact-form .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.contact .contact-form .form-item {
  margin-bottom: 30px;
}

.contact .contact-form .form-item .form-control {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--bg-black-50);
  border: 1px solid var(--bg-black-50);
  padding: 10px 25px;
  font-size: 16px;
  color: var(--text-black-700);
  transition: all 0.3s ease;
}

.contact .contact-form .form-item .form-control:hover {
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.contact .contact-form .form-item textarea.form-control {
  height: 140px;
}

/* Contact Links Styling */
.contact .contact-info-item p a {
  color: var(--text-black-700);
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
  width: 100%;
}

.contact .contact-info-item p a:hover {
  color: var(--skin-color);
  transform: scale(1.05);
}

.contact .contact-form .btn {
  height: 50px;
  padding: 0 50px;
}

.contact .contact-info-item p {
  word-break: break-word;
  white-space: normal;
  display: block;
  margin: 0;
}

/* LinkedIn Icon Styling */
.contact .contact-info-item .fa-brands.fa-square-linkedin {
  font-size: 25px;
  color: var(--skin-color);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.contact .contact-info-item .fa-brands.fa-square-linkedin:hover {
  color: #0a66c2;
  transform: scale(1.2);
}

/* ==============================================================
   SKILLS ORBIT ANIMATION (Final & Clean Version)
   ============================================================== */

/* ================= SKILLS ORBIT ANIMATION (BIG SATELLITES VERSION) ================= */

.skill-orbit {
  flex: 0 0 100%;
  max-width: 100%;
  min-height: 400px; /* زيادة الارتفاع قليلاً لاستيعاب الحجم الجديد */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .skill-orbit {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.orbit-wrapper {
  position: relative;
  width: 320px; /* زيادة مساحة العمل */
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 1. المركز الثابت --- */
.center-icon {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--bg-black-100);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
  border: 4px solid var(--skin-color);
  z-index: 10;

  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  cursor: pointer;
}

.center-icon i {
  font-size: 45px;
  color: var(--skin-color);
  margin-bottom: 5px;
}
.center-icon span {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-black-900);
}

.center-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(var(--skin-color), 0.5);
}

/* --- 2. حاوية الدوران --- */
.orbit-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* --- 3. المهارات الفرعية (تم تكبيرها) --- */
.satellite {
  position: absolute;
  /* تكبير الحجم من 60px إلى 85px */
  width: 85px;
  height: 85px;
  background: var(--bg-black-900);
  border-radius: 50%;
  border: 1px solid var(--bg-black-50);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* تكبير الخط */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-black-700);

  top: 50%;
  left: 50%;

  /* ضبط التمركز بناءً على الحجم الجديد (نصف الـ 85) */
  margin-left: -42.5px;
  margin-top: -42.5px;

  /* زيادة مسافة البعد عن المركز (translate) لـ 145px لمنع التداخل */
  transform: rotate(calc(360deg / var(--total) * var(--i))) translate(145px)
    rotate(calc(-360deg / var(--total) * var(--i)));

  opacity: 0;
  transition: opacity 0.5s ease;
}

/* تكبير أيقونات المهارات الفرعية */
.satellite img {
  width: 32px; /* كان 22px */
  height: 32px;
  margin-bottom: 3px;
  object-fit: contain;
}

/* ================= Animation Logic ================= */

.orbit-wrapper:hover .satellite {
  opacity: 1;
}

.orbit-wrapper:hover .orbit-spinner {
  animation: spinRight 20s linear infinite;
}

.orbit-wrapper:hover .satellite {
  animation: fixSatellite 20s linear infinite;
}

@keyframes spinRight {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fixSatellite {
  from {
    /* هنا أيضاً نستخدم 145px */
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(145px)
      rotate(calc(-360deg / var(--total) * var(--i))) rotate(0deg);
  }
  to {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(145px)
      rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 575px) {
  .skill-orbit {
    min-height: 350px;
  }
  .orbit-wrapper {
    width: 260px;
    height: 260px;
  }

  .center-icon {
    width: 90px;
    height: 90px;
  }
  .center-icon i {
    font-size: 35px;
  }
  .center-icon span {
    font-size: 13px;
  }

  /* تصغيرها قليلاً في الموبايل لتناسب الشاشة */
  .satellite {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    font-size: 10px;
    /* تقليل المسافة في الموبايل */
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(110px)
      rotate(calc(-360deg / var(--total) * var(--i)));
  }

  .satellite img {
    width: 24px;
    height: 24px;
  }

  @keyframes fixSatellite {
    from {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(110px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(0deg);
    }
    to {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(110px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
    }
  }
}
/* --- 3. Satellites (Skills) --- */
/* --- 3. Satellites (Skills) - MODIFIED SIZE --- */
.satellite {
  position: absolute;
  width: 85px; /* تم التكبير من 60 إلى 85 */
  height: 85px; /* تم التكبير من 60 إلى 85 */
  background: var(--bg-black-900);
  border-radius: 50%;
  border: 1px solid var(--bg-black-50);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px; /* تم تكبير الخط قليلاً ليتناسب مع الدائرة */
  font-weight: 600;
  color: var(--text-black-700);

  top: 50%;
  left: 50%;

  /* مهم جداً: هذه القيم يجب أن تكون نصف العرض والارتفاع الجديد */
  margin-left: -42.5px; /* نصف 85 */
  margin-top: -42.5px; /* نصف 85 */

  /* Positioning Calculation */
  transform: rotate(calc(360deg / var(--total) * var(--i))) translate(140px)
    /* زدت المسافة قليلاً لـ 140 لعدم التداخل */
    rotate(calc(-360deg / var(--total) * var(--i)));

  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ===== Next.js Center Icon – Match Node.js Style ===== */

.center-icon.next-core {
  border-radius: 50%;
  background: #ffffff; /* نفس إحساس Node */
  border: 4px solid var(--skin-color); /* إطار أسود أنيق */
}

.center-icon.next-core img {
  width: 48px;
  height: 48px;
  object-fit: contain;

  /* تحويل الصورة لدايرة */
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
}

/* ابحث عن هذا الجزء في الأكواد الرئيسية (ليس داخل الموبايل) */

.satellite img {
  width: 35px;
  height: 35px;
  margin-bottom: 5px;
  object-fit: contain;
  border-radius: 50%; /* <-- تمت الإضافة هنا: تجعل الصورة دائرية */
}

/* ================= Animation Logic ================= */

/* Show Satellites on Hover */
.orbit-wrapper:hover .satellite {
  opacity: 1;
}

/* Rotate the Spinner Container */
.orbit-wrapper:hover .orbit-spinner {
  animation: spinRight 20s linear infinite;
}

/* Counter-Rotate Satellites to keep images upright */
.orbit-wrapper:hover .satellite {
  animation: fixSatellite 20s linear infinite;
}

/* Keyframes */
@keyframes spinRight {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fixSatellite {
  from {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(130px)
      rotate(calc(-360deg / var(--total) * var(--i))) rotate(0deg);
  }
  to {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(130px)
      rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
  }
}

/* ================= Inline CSS Replacement ================= */

/* Orbit row spacing */
.orbit-row {
  margin-top: 50px;
}

/* Orbit total count */
.total-4 {
  --total: 4;
}
.total-5 {
  --total: 5;
}

/* Orbit index positions */
.orbit-0 {
  --i: 0;
}
.orbit-1 {
  --i: 1;
}
.orbit-2 {
  --i: 2;
}
.orbit-3 {
  --i: 3;
}
.orbit-4 {
  --i: 4;
}

/* ================= Media Queries (Responsive) ================= */

@media (max-width: 1024px) {
  .home .home-img img {
    max-width: 250px;
  }
}

@media (max-width: 991px) {
  .aside {
    left: -270px;
  }
  .aside.open {
    left: 0;
  }
  .section {
    left: 0;
  }
  .aside .nav-toggler {
    display: flex;
  }
  .home .home-info {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
  .home .home-img {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  .home .home-img img {
    max-width: 350px;
  }
  .service .service-item,
  .portfolio .portfolio-item,
  .contact .contact-info-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .contact .contact-form .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .section-title h2 {
    font-size: 32px;
  }
  .home .home-info p {
    font-size: 16px;
  }
  .service .service-item,
  .portfolio .portfolio-item,
  .contact .contact-info-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  /* General Mobile Adjustments */
  .section-title h2 {
    font-size: 28px;
  }
  h3.hello,
  h3.my-profession {
    font-size: 20px;
  }
  .home .home-info p {
    font-size: 14px;
  }
  .home .home-img img {
    max-width: 260px;
  }

  /* Orbit Mobile Adjustments */
  .skill-orbit {
    min-height: 320px;
  }
  .orbit-wrapper {
    width: 240px;
    height: 240px;
  }
  .center-icon {
    width: 90px;
    height: 90px;
  }
  .center-icon i {
    font-size: 35px;
  }
  .center-icon span {
    font-size: 13px;
  }
  .satellite {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    /* Reduce radius for mobile (105px) */
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(105px)
      rotate(calc(-360deg / var(--total) * var(--i)));
  }

  @keyframes fixSatellite {
    from {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(105px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(0deg);
    }
    to {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(105px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
    }
  }
}

@media (max-width: 991px) {
  /* ... أكوادك السابقة هنا ... */

  /* هذا الكود يخفي الزخارف في الشاشات الأصغر من LG */
  /* في الشاشات الكبيرة سيعود للظهور تلقائياً لأننا لم نلغيه في الكود الرئيسي */
  .home-img::before,
  .home-img::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  /* ... أكوادك السابقة هنا ... */

  /* هذا الكود يخفي الزخارف في الشاشات الأصغر من LG */
  /* في الشاشات الكبيرة سيعود للظهور تلقائياً لأننا لم نلغيه في الكود الرئيسي */
  .home-img::before,
  .home-img::after {
    display: none;
  }
}

@media (max-width: 767px) {
  /* ... أكوادك القديمة الموجودة هنا اتركها كما هي ... */

  /* هذا الكود سيجعل عناصر المعلومات الشخصية تأخذ عرض الشاشة بالكامل */
  .about .about-content .personal-info .info-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==============================================================
   Surface Duo & Wide Mobile Fix (450px - 767px)
   تنسيق خاص للشاشات المتوسطة وعريضة مثل Surface Duo
   ============================================================== */

@media (min-width: 450px) and (max-width: 767px) {
  /* زيادة ارتفاع الحاوية */
  .skill-orbit {
    min-height: 400px;
  }

  /* تكبير مساحة العمل */
  .orbit-wrapper {
    width: 350px;
    height: 350px;
  }

  /* تكبير المركز ليصبح قريباً من حجم الديسك توب */
  .center-icon {
    width: 110px;
    height: 110px;
  }
  .center-icon i {
    font-size: 40px;
  }
  .center-icon span {
    font-size: 15px;
  }

  /* تكبير المهارات الفرعية */
  .satellite {
    width: 75px;
    height: 75px;
    margin-left: -37.5px; /* نصف العرض */
    margin-top: -37.5px; /* نصف الارتفاع */
    font-size: 11px;

    /* زيادة نصف قطر الدوران ليملأ الشاشة (140px) */
    transform: rotate(calc(360deg / var(--total) * var(--i))) translate(140px)
      rotate(calc(-360deg / var(--total) * var(--i)));

    /* الأنيميشن الجديد لهذه الشاشات */
    animation: orbitMoveTablet 20s linear infinite !important;
  }

  .satellite img {
    width: 30px;
    height: 30px;
  }

  /* تعريف حركة خاصة لهذه المقاسات */
  @keyframes orbitMoveTablet {
    from {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(140px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(0deg);
    }
    to {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(140px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
    }
  }
}

/* ==============================================================
   Surface Duo & Wide Mobile Fix (Corrected Rotation)
   ============================================================== */

@media (min-width: 450px) and (max-width: 767px) {
  /* 1. ضبط الحاوية الخارجية */
  .skill-orbit {
    min-height: 420px; /* زيادة الارتفاع لراحة الحركة */
  }

  .orbit-wrapper {
    width: 360px;
    height: 360px;
  }

  /* 2. إجبار الحاوية الأم على الدوران تلقائياً */
  /* هذا هو السطر الذي كان ناقصاً ويسبب "بوظان" الاتجاه */
  .orbit-spinner {
    animation: spinRight 20s linear infinite !important;
  }

  /* 3. تنسيق المركز */
  .center-icon {
    width: 110px;
    height: 110px;
  }
  .center-icon i {
    font-size: 40px;
  }
  .center-icon span {
    font-size: 15px;
  }

  /* 4. تنسيق العناصر الفرعية وحركتها */
  .satellite {
    width: 75px;
    height: 75px;
    margin-left: -37.5px;
    margin-top: -37.5px;
    font-size: 11px;
    opacity: 1; /* ظاهرة دائماً */

    /* الحركة: دوران عكسي للحفاظ على الاستقامة */
    animation: orbitMoveTablet 20s linear infinite !important;
  }

  .satellite img {
    width: 30px;
    height: 30px;
  }

  /* 5. تعريف حركة خاصة تضمن ثبات الاتجاه */
  @keyframes orbitMoveTablet {
    from {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(145px)
        /* نصف قطر واسع */ rotate(calc(-360deg / var(--total) * var(--i)))
        rotate(0deg);
    }
    to {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(145px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg); /* دوران عكسي يلغي دوران الأم */
    }
  }
}

/* ==============================================================
   iPhone SE & Small Mobile Fix (< 575px)
   تظبيط المقاسات والدوران لشاشات الموبايل الصغيرة
   ============================================================== */

@media (max-width: 575px) {
  /* 1. ضبط مساحة الحاوية */
  .skill-orbit {
    min-height: 380px; /* ارتفاع مناسب */
  }

  .orbit-wrapper {
    width: 310px; /* عرض مناسب لـ iPhone SE (375px) */
    height: 310px;
  }

  /* 2. إجبار الحاوية الأم على الدوران (تصحيح الاتجاه) */
  .orbit-spinner {
    animation: spinRight 20s linear infinite !important;
  }

  /* 3. تكبير المركز قليلاً ليكون واضحاً */
  .center-icon {
    width: 95px;
    height: 95px;
  }
  .center-icon i {
    font-size: 38px;
  }
  .center-icon span {
    font-size: 13px;
  }

  /* 4. ضبط المهارات الفرعية (حجم أكبر + دوران صحيح) */
  .satellite {
    width: 65px; /* تكبير الحجم ليكون واضح */
    height: 65px;
    margin-left: -32.5px;
    margin-top: -32.5px;
    font-size: 10px;
    opacity: 1;

    /* استخدام نصف قطر 115px (مناسب جداً لعرض 375px) */
    animation: orbitMoveMobile 20s linear infinite !important;
  }

  .satellite img {
    width: 26px;
    height: 26px;
  }

  /* 5. حركة الدوران العكسي (للحفاظ على الصور معدولة) */
  @keyframes orbitMoveMobile {
    from {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(115px)
        /* نصف القطر */ rotate(calc(-360deg / var(--total) * var(--i)))
        rotate(0deg);
    }
    to {
      transform: rotate(calc(360deg / var(--total) * var(--i))) translate(115px)
        rotate(calc(-360deg / var(--total) * var(--i))) rotate(-360deg);
    }
  }
}
