:root {
  --main-bg: radial-gradient(circle at top, #0a0f1a 0%, #121826 60%, #0b0f17 100%);
  --text-light: #e0e6f0;
  --accent: #5de2ff;
  --highlight: #9ee7ff;
  --card-bg: rgba(25, 35, 50, 0.85);
}

body {
  margin: 0;
  font-family: "Cairo", Arial, sans-serif;
  color: var(--text-light);
  background: var(--main-bg);
  overflow-x: hidden;
}

/* ======= قسم المقدمة ======= */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 0;
}

.hero-text {
  flex: 1 1 340px;
  max-width: 600px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0008;
  padding: 32px 28px;
  min-width: 260px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(93, 226, 255, 0.25);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.hero-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h4 {
  color: var(--accent);
  font-size: 1.2em;
}

.hero-text h2 {
  color: var(--accent);
  font-size: 2.2em;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(93, 226, 255, 0.5);
}

.hero-text span {
  color: var(--highlight);
  text-shadow: 0 0 12px rgba(158, 231, 255, 0.5);
}

.hero-text p {
  font-size: 1.1em;
  line-height: 2.1;
  margin-bottom: 18px;
}

/* أيقونات التواصل */
.social-icons {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
}

.social-icons li a {
  color: var(--accent);
  font-size: 1.5em;
  background: rgba(10, 15, 25, 0.8);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 8px rgba(93, 226, 255, 0.3);
  transition: all 0.3s ease;
}

.social-icons li a:hover {
  background: var(--accent);
  color: #0a0f1a;
  box-shadow: 0 0 20px rgba(93, 226, 255, 0.7);
  transform: scale(1.1);
}

/* الزر */
.hero-buttons a {
  background: var(--accent);
  color: #0a0f1a;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(93, 226, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-buttons a:hover {
  background: #9ee7ff;
  box-shadow: 0 0 35px rgba(158, 231, 255, 0.8);
  transform: scale(1.05);
}

/* صورة المقدمة */
.hero-img img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(93, 226, 255, 0.6);
  object-fit: cover;
  background: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.hero-img.visible img {
  opacity: 1;
  transform: scale(1);
}

/* ======= قسم عني ======= */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 0;
}

.about-img img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 25px rgba(93, 226, 255, 0.7);
  object-fit: cover;
}

.about-content {
  flex: 1 1 320px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(93, 226, 255, 0.2);
  padding: 24px 28px;
  max-width: 600px;
  border: 1px solid rgba(93, 226, 255, 0.2);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content h4 {
  color: var(--accent);
  
}

.about-content h2 {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(225, 231, 232, 0.4);
}

.about-content h2 span {
  color: var(--highlight);
  text-shadow: 0 0 15px rgba(158, 231, 255, 0.5);
}

/* ======= قسم الخدمات ======= */
.projects-section {
  text-align: center;
  margin-top: 40px;
}

.projects-section h2 {
  color: var(--accent);
  font-size: 2em;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(93, 226, 255, 0.6);
}

.projects-section span {
  color: var(--highlight);
}

.projects-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.projects-card-box {
  background: rgba(10, 15, 25, 0.85);
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(93, 226, 255, 0.15);
  border: 1px solid rgba(93, 226, 255, 0.2);
  padding: 24px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.projects-card-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-card-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 25px rgba(93, 226, 255, 0.5);
}

.projects-card-box__icons {
  color: var(--accent);
  font-size: 2.4em;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(93, 226, 255, 0.6);
}

/* ======= الفوتر ======= */
footer {
  background: #0a0f1a;
  color: var(--accent);
  text-align: center;
  padding: 18px 0;
  margin-top: 40px;
  border-radius: 18px 18px 0 0;
  font-size: 1.1em;
  box-shadow: 0 -2px 8px rgba(93, 226, 255, 0.3);
}

/* ======= استجابة للجوال ======= */
@media (max-width: 768px) {
  .hero-section, .about-section {
    flex-direction: column;
    text-align: center;
  }

  .projects-card-box {
    width: 90%;
  }
}
