     :root {
      --bg-color: #1f242d;
      --second-bg-color: #323946;
      --text-color: #fff;
      --main-color: #0ef;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      text-decoration: none;
      border: none;
      outline: none;
      scroll-behavior: smooth;
      font-family: 'Tajawal', 'Poppins', sans-serif;
    }

section {
  min-height: 100vh; /* كل قسم بطول الشاشة */
  display: flex;
  flex-direction: column; /* جعل العناصر عمودية */
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 2rem; /* زيادة الحشو من الجوانب */
  gap: 2rem; /* مسافة بين العناصر داخل القسم */
}


    html {
      font-size: 62.5%;
      overflow-x: hidden;
    }

    body {
      background: var(--bg-color);
      color: var(--text-color);
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: auto;
      padding: 0 2rem;
    }

 /* الهيدر */
header.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.8rem 5%;
  background: var(--bg-color);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 6px rgba(215, 75, 75, 0.05);
}

/* اللوقو */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.8rem;
}

.logo img {
  height: 40px;
  width: auto;
  animation: floatImage 3s ease-in-out infinite;
}

.logo span {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--main-color);
  animation: fadeSlideUp 1s ease-in-out;
}

/* الأنيميشنات */
@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


nav.nav {
  flex: 1; /* يأخذ المساحة المتبقية بين الشعار والزر */
  display: flex;
  justify-content: center; /* هذا يوسّط النصوص */
}
nav.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav.nav ul li {
  position: relative;
}

nav.nav ul li a {
  color: var(--text-color);
  font-size: 1.6rem;
  transition: color 0.3s;
  padding: 0.8rem 1rem;
  border-radius: 6px;
}

nav.nav ul li a:hover {
  color: var(--main-color);
  background: rgba(0, 255, 255, 0.05);
}

/* زر القائمة (hamburger) */
.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* زر القائمة في الشاشات الصغيرة */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2000;
  }

  nav.nav {
    position: relative;
  }

    nav.nav ul {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav.nav ul.show {
    display: flex;
  }

  nav.nav ul li a {
    font-size: 1.4rem;
    color: #333;
    background-color: transparent;
    padding: 10px;
    border-radius: 6px;
  }

  nav.nav ul li a:hover {
    background-color: #f1f1f1;
    color: var(--main-color);
  }

  .nav .dropdown:hover .dropdown-menu {
    position: static;
  }

  .nav .dropdown-menu {
    position: relative;
    top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav .dropdown-menu li a {
    padding-left: 20px;
  }
}



/* الهيدر عند التمرير */
header.header.scrolled {
  padding: 1rem 5%;
  background: var(--bg-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* القائمة المنسدلة */
.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* لأن الموقع RTL */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  z-index: 999;
  overflow: hidden;
}

.nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* عناصر القائمة المنسدلة */
.nav .dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.nav .dropdown-menu li:last-child {
  border-bottom: none;
}

.nav .dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* تأثير التحويم */
.nav .dropdown-menu li a:hover {
  background-color: #007bff1a; /* أزرق شفاف */
  color: #00cfd6;
}

#hero {
  margin-top: 100px; /* يعادل ارتفاع الهيدر */
}
.hero {
  min-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom, var(--bg-color) 70%, var(--second-bg-color) 100%);
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 2rem;
}

.features-bar {
  margin-bottom: 4rem;
}


/* ========= العنوان (يظهر بأنيميشن كتابة) ========= */
.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4.8rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--main-color);
  width: 0;
  animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite;
}

.hero-text span {
  color: var(--main-color);
}

.hero-text p {
  font-size: 1.8rem;
  margin: 2rem 0;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 3s;
}

.hero-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--main-color);
  color: var(--second-bg-color);
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 3.5s;
}

.hero-btn:hover {
  background: #00cfd6;
}

/* ========= الصورة (حركة لطيفة) ========= */
.hero-image {
  flex: 1;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards, floatImage 4s ease-in-out infinite;
  animation-delay: 4s, 0s; /* أول أنيميشن تظهر تدريجياً ثم تبدأ الفلوت */
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.08);
}


/* ==================== الأنميشن ==================== */
@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* أنيميشن كتابة */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* وميض الخط عند الكتابة */
@keyframes blink {
  50% { border-color: transparent; }
}


/* ----------------------------------- */
/* البطاقات داخل الهيرو */
/* ----------------------------------- */
.features-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--second-bg-color);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
  animation: fadeInUp 1s ease-in-out;
}

/* أنميشن الدخول */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item {
  flex: 1 1 260px;
  background: var(--bg-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  position: relative;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.feature-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-item:hover img {
  transform: scale(1.1) rotate(3deg);
}

.feature-item h3 {
  font-size: 2rem;
  color: var(--main-color);
  margin-top: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.feature-item:hover h3 {
  color: #0ff;
  text-shadow: 0 0 10px #0ef;
}

.feature-item p {
  font-size: 1.5rem;
  color: #ccc;
  margin-top: 0.5rem;
}


/* قسم من نحن */
.about-section {
  min-height: 100vh;
  padding: 8rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.about-section.animate {
  opacity: 1;
  transform: translateY(0);
}


.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
  align-items: center;
}

/* الصورة */
.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
}

.about-section.animate .about-image img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.3s;
}

/* النص */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3rem;
  color: var(--main-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.animate .about-text h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.about-text p {
  font-size: 1.7rem;
  line-height: 1.8;
  margin: 1.5rem 0;
  color: var(--text-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.animate .about-text p:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.about-section.animate .about-text p:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.about-section.animate .about-text p:nth-of-type(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

/* ميديا كويري للهواتف */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
  }

  .about-text h2 {
    margin-top: 2rem;
  }
}
/* أنيميشن عام للظهور */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* قسم الخدمات */
.services-section {
  padding: 8rem 2rem;
  background: var(--second-bg-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeSlideUp 1s ease forwards;
}

.services-section h2 {
  font-size: 3.6rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.services-section p {
  font-size: 1.8rem;
  color: #ddd;
  margin-bottom: 4rem;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* شبكة البطاقات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 4rem;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* كل بطاقة */
.service-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  color: var(--text-color);
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.service-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 1.6rem;
  color: #ccc;
}

/* فيديو الخدمات */
.services-video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.services-video video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}


/* عنوان قسم الأعمال */
.projects-section h2 {
  font-size: 3.5rem;
  color: var(--main-color);
  text-align: center;
  margin-bottom: 2rem;
}
.projects-video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.projects-video video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* وصف تحت العنوان */
.projects-section p {
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  margin-bottom: 5rem;
}

/* شبكة البطاقات */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

/* كل بطاقة مشروع */
.project-card {
  width: 280px;
  background: var(--second-bg-color);
  border-radius: 10px;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInCard 0.6s forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.3s;
}
.project-card:nth-child(2) {
  animation-delay: 0.6s;
}
.project-card:nth-child(3) {
  animation-delay: 0.9s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* صورة المشروع */
.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  height: auto;
}

/* عنوان المشروع */
.project-card h3 {
  font-size: 1.9rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

/* أنميشن البطاقات */
@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.work-video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.work-video video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}


/* ------------------------ */
/* قسم التواصل */
/* ------------------------ */
.contact-section {
  padding: 8rem 0;
}


.contact-section h2 {
  font-size: 3.6rem;
  color: var(--main-color);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInTitle 1s ease forwards;
}

.contact-section p {
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  margin-bottom: 4rem;
}

/* نموذج التواصل */
#contact .contact-form {
  width: 100%;
  max-width: 600px; /* أقصى عرض للصناديق */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%; /* عرض كامل */
  padding: 1.8rem 1.5rem; /* حجم أكبر للحشو */
  font-size: 1.8rem;
  border-radius: 10px;
  background: var(--second-bg-color);
  color: var(--text-color);
  resize: vertical; /* يسمح بتغيير حجم textarea عمودياً فقط */
  border: 1px solid #444;
  transition: border-color 0.3s ease;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  border-color: var(--main-color);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* زر الإرسال */
#contact .contact-form button {
  width: 50%;
  align-self: center; /* زر في الوسط */
  padding: 1.2rem 2rem;
  background: var(--main-color);
  color: var(--second-bg-color);
  font-weight: bold;
  font-size: 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact .contact-form button:hover {
  background: #00cfd6;
}

/* ------------------------ */
/* Animations */
/* ------------------------ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.site-footer {
  background: var(--second-bg-color);
  color: var(--text-color);
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.footer-info {
  flex: 1 1 300px;
}

.footer-info h3 {
  font-size: 2.4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-info a {
  color: var(--main-color);
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: #0ff;
  text-decoration: underline;
}

.footer-map {
  flex: 1 1 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.footer-social {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-size: 2rem;
  color: var(--main-color);
  transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
  transform: scale(1.1);
  color: #0ff;
}

.footer-bottom {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* أيقونات التواصل */
.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  display: inline-block;
  color: var(--text-color);
  font-size: 2.2rem; /* حجم الأيقونات */
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--main-color);
}

/* مثال لأيقونات باستخدام فونت أوسم */
.footer-social a i {
  vertical-align: middle;
}

/* نص الفوتر السفلي */
.footer-bottom {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 1.2rem;
  color: #999;
  font-weight: 400;
}

/* أزرار الأدوات (واتساب، تبديل الثيم، تغيير اللغة) أصغر */
.whatsapp-float {
  padding: 8px;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.theme-toggle {
  width: 35px;
  height: 35px;
  top: 15px;
  left: 15px;
}

.lang-switch {
  top: 15px;
  right: 15px;
  padding: 0.4rem 0.8rem;
  font-size: 1.3rem;
}


/* ----------------------------- */
/* Responsive Design Media Queries */
/* ----------------------------- */

/* الهواتف الصغيرة جداً */
@media (max-width: 480px) {
  html { font-size: 50%; }

  .hero-container,
  .about-container,
  .services-grid,
  .projects-grid,
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text h1,
  .about-text h2,
  .services-section h2,
  .contact-section h2 {
    font-size: 3rem;
  }

  .hero-btn {
    font-size: 1.4rem;
    padding: 1rem 2rem;
  }

  .feature-item,
  .service-card {
    flex: 1 1 100%;
  }

  .footer-map iframe {
    height: 200px;
  }

  .lang-switch,
  .theme-toggle,
  .whatsapp-float {
    width: 35px;
    height: 35px;
  }
}

/* التابلت */
@media (max-width: 768px) {
  html { font-size: 55%; }

  .hero-container,
  .about-container,
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image,
  .about-image {
    order: 2;
    margin-top: 2rem;
  }

  .hero-text,
  .about-text {
    order: 1;
  }

  .features-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 3rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1.4rem;
    padding: 1.2rem;
  }

  .contact-form button {
    font-size: 1.6rem;
  }

  .site-footer {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .footer-map iframe {
    height: 220px;
  }
}

/* الشاشات المتوسطة (لابتوب صغير) */
@media (max-width: 1024px) {
  html { font-size: 60%; }

  .features-bar {
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  header.header {
    padding: 1rem 2rem;
    font-size: 90%;
  }

  .logo img {
    height: 40px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-info h3 {
    font-size: 1.8rem;
  }

  .footer-map iframe {
    width: 100%;
    height: 250px;
  }
}
