/* الخط العام */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  background-color: #222; /* خلفية داكنة */
  color: #ccc; /* لون نص رمادي فاتح */
  scroll-behavior: smooth;
}

/* رأس الصفحة */
header {
  background: #333; /* رمادي غامق */
  color: #ff6600; /* برتقالي غامق */
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  border-bottom: 1px solid #ff6600;
  border-radius: 0 0 12px 12px;
}

/* التنقل */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffa64d;
}

/* القسم التعريفي */
.hero {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://via.placeholder.com/1400x500') no-repeat center center/cover;
  color: #ffcc99;
  padding: 80px 20px 40px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  position: relative;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ff6600;
  margin-bottom: 15px;
  object-fit: cover;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #ff9900;
}

.highlight {
  color: #ff6600;
}

/* الأقسام */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 30px auto;
  background: #333; /* خلفية داكنة */
  color: #ccc;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255,102,0,0.2);
}

section h2 {
  text-align: center;
  color: #ff6600;
  margin-bottom: 30px;
}

/* المهارات */
.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: auto;
}

.skills-list li {
  background: #ff6600;
  color: #222;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 0 10px #ff6600aa;
  transition: background 0.3s;
  text-align: center;
}

.skills-list li:hover {
  background: #ffa64d;
  color: #111;
}

/* الخبرات والتعليم */
.experience-item,
.education-item {
  background: #444;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px #ff6600aa;
  color: #eee;
}

.experience-item h3 {
  color: #ff6600;
  margin-bottom: 10px;
}

.experience-item p {
  margin: 6px 0;
}

/* جدول الأجور */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  color: #ccc;
}

.salary-table th,
.salary-table td {
  border: 1px solid #ff6600;
  padding: 8px 12px;
  text-align: center;
  background-color: #555;
}

.salary-table thead th {
  background-color: #ff6600;
  color: #222;
}

/* معرض الأعمال */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: #444;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px #ff6600aa;
  text-align: center;
  transition: transform 0.3s ease;
  color: #eee;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  background: #ff6600;
  color: #222;
}

/* قسم التواصل */
.contact-section {
  text-align: center;
  padding: 30px 0;
  color: #000000;
  font-size: 1.1em;
}

/* التذييل */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #000000;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 8px #ff6600aa;
}

/* أزرار التواصل الطافية */
.floating-buttons {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-btn {
  width: 55px;
  height: 55px;
  background-color: #ff6600;
  color: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px #ff6600aa;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.15);
  background-color: #ffa64d;
  color: #222;
}

/* كلمة "للتواصل" فوق أزرار الواتساب والبريد */
.contact-label {
  position: fixed;
  bottom: 160px;
  left: 25px;
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #ff6600;
  width: fit-content;
  max-width: 0;
  letter-spacing: 2px;
  background: rgba(255 102 0 / 0.9);
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px #ff6600aa;
  animation: typingSmooth 2.5s forwards;
  z-index: 1100;
  box-sizing: content-box;
}

.contact-label::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #ff6600;
  margin-left: 5px;
  animation: blinkSmooth 1.2s infinite;
  vertical-align: bottom;
}

@keyframes typingSmooth {
  from {
    max-width: 0;
    border-color: transparent;
  }
  to {
    max-width: 8.5em;
    border-color: #ff6600;
  }
}

@keyframes blinkSmooth {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
