/* إعادة ضبط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hia', sans-serif;
    line-height: 1.6;
    color: #eee;
    background-color: #1f2a38;
    scroll-behavior: smooth;
    direction: rtl;
    padding-top: 70px;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    height: 70px;
    background-color: #0f1822;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    order: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    order: -1;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    font-size: 16px;
    color: #eee;
    padding: 5px 0;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #ffcc66;
}

/* Banner */
.banner {
    position: relative;
    background: linear-gradient(rgba(31,42,56,0.6), rgba(31,42,56,0.6)), url('https://apollo-agency.com/wp-content/uploads/2023/08/service-banner.jpg') center/cover no-repeat;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveBG 20s linear infinite;
    mix-blend-mode: lighten;
    z-index:1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Keyframes */
@keyframes moveBG {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* Hero */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  text-align: right;
  color: white;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 600px;
  z-index: 2;
}

/* بطاقة الترحيب */
.welcome-card {
    background-color: #283544;
    color: #ffcc66;
    text-align: center;
    padding: 60px 30px;
    border-radius: 12px;
    margin: 20px 50px 40px 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.welcome-card h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.welcome-card p {
    font-size: 18px;
    color: #ccc;
}

/* قسم حلول إبداعية */
.creative-solutions {
    padding: 80px 50px;
    background-color: #1f2a38;
    text-align: center;
}

.creative-solutions h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #ffcc66;
}

.solutions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 40px;
    justify-items: center;
}

.solution-card {
    background-color: #283544;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s, box-shadow 0.5s, background 0.5s;
}

.solution-card i {
    font-size: 50px;
    color: #ff9900;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffcc66;
}

.solution-card p {
    font-size: 16px;
    color: #ccc;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255,153,0,0.3);
    background-color: #374756;
}

/* Services */
.services {
    padding: 80px 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: #283544;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s, box-shadow 0.5s, background 0.5s;
}

.service-card i {
    font-size: 50px;
    color: #ff9900;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffcc66;
}

.service-card p {
    font-size: 16px;
    color: #ccc;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255,153,0,0.3);
    background-color: #374756;
}

/* Contact */
.contact {
    padding: 80px 50px;
    background: #1f2a38;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #ffcc66;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    color: #ffcc66;
}

.form-group input,
.form-group select {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #ff9900;
    color: #1f2a38;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #ffcc66;
}

/* About */
.about {
    padding: 80px 50px;
    background: #283544;
    color: #eee;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffcc66;
}

.about .social a {
    margin-right: 15px;
    font-size: 24px;
    color: #ff9900;
    transition: 0.3s;
}

.about .social a:hover {
    color: #ffcc66;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1f2a38;
    color: #ccc;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #ff9900;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #1f2a38;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

#backToTop:hover {
    background: #ffcc66;
}

/* Media Queries */
@media screen and (max-width:1000px){
    .services{grid-template-columns:repeat(2,1fr);}
    .solutions-container{grid-template-columns:repeat(2,1fr);}
}

@media screen and (max-width:700px){
    .services{grid-template-columns:1fr;}
    .solutions-container{grid-template-columns:1fr;}
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup {
    background: #283544;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: #ffcc66;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.popup button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff9900;
    color: #1f2a38;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* ===========================
   Hero Section - خاص بقسم خدماتنا فقط
   =========================== */
.hero {
    position: relative;
    text-align: right;
    height: 80vh;               /* ارتفاع القسم، يمكن تغييره */
    width: 100%;
    overflow: hidden;
}

/* الخلفية */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;          /* لتغطية كامل القسم */
    object-position: center;    /* يركز الصورة */
    filter: brightness(60%);    /* للتعتيم وحماية وضوح النص */
    z-index: 1;
}

/* محتوى النصوص فوق الخلفية */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-70%);
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: #ffcc66;  /* يمكن تغييره حسب وضوح الخلفية */
}

/* ===========================
   Media Queries للتجاوب
   =========================== */
@media screen and (max-width: 1000px) {
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content p {
        font-size: 18px;
    }
}

@media screen and (max-width: 700px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
}
.hero-content {
    padding: 0 15px; /* حماية إضافية على الحواف */
    word-wrap: break-word;
}



/* قسم لماذا نحن */
.why-us {
  padding: 80px 20px;
  background: transparent; /* الخلفية شفافة الآن */
  text-align: center;
}

.why-us h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #ffcc66;
  font-weight: 700;
}

.why-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: rgba(255, 255, 255, 0.05); /* خفيف وشفاف قليلاً لإبراز البطاقات */
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card i {
  font-size: 2.5rem;
  color: #ff5c00;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fdfdfd;
}

.why-card p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.7;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* أيقونة واتساب */
#whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-button img {
  width: 100%;
  height: 100%;
}

#whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}





/* زر الهامبرغر للهواتف */
.hamburger {
  display: none; /* يظهر فقط على الشاشات الصغيرة */
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* نافذة القائمة المنبثقة */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  color: #fff;
  transition: left 0.3s ease;
  z-index: 1050;
  padding-top: 80px;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0 20px;
}

.mobile-nav-links li {
  margin: 25px 0;
}

.mobile-nav-links li a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-links li a:hover {
  color: #ff5c00;
}

/* إظهار زر الهامبرغر على الشاشات الصغيرة */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none; /* إخفاء القائمة الكبيرة على الموبايل */
  }
}

.service-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}








/* ===========================
   تحسين التجاوب دون تغيير التصميم
   =========================== */

/* Hero Section */
.hero {
  position: relative;
  height: 80vh; /* ارتفاع القسم كما هو */
  width: 100%;
  overflow: hidden; /* يمنع خروج النصوص */
  text-align: right;
  color: white;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(60%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  right: 10%;  /* يحافظ على مكان النص من اليمين كما هو */
  max-width: 700px;
  padding: 0 15px; /* حماية إضافية على الحواف */
  z-index: 2;
  transform: translateY(-50%);
  word-wrap: break-word;
}

/* خطوط Hero Section متجاوبة */
.hero-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: #ffcc66;
}

/* حماية النصوص في باقي الأقسام */
.welcome-card,
.creative-solutions,
.services,
.contact,
.about,
footer {
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
}

/* حماية النصوص داخل البطاقات */
.welcome-card h1,
.welcome-card p,
.creative-solutions h2,
.solution-card h3,
.solution-card p,
.service-card h3,
.service-card p,
.contact h2,
.contact label,
.contact input,
.contact select,
.about h2,
.about .social a,
footer {
  word-wrap: break-word;
  max-width: 100%;
}

/* Media Queries بسيطة للموبايل */
@media screen and (max-width: 1000px) {
  .hero-content {
    right: 7%;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content p {
    font-size: 18px;
  }
}

@media screen and (max-width: 700px) {
  .hero-content {
    top: 45%;
    right: 5%;
    left: 5%;
    text-align: center; /* للنصوص على الموبايل */
    transform: translateY(-50%);
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 16px;
  }
}

/* حماية النصوص والبطاقات لتكون متجاوبة */
.solution-card, .service-card, .why-card, .welcome-card {
  max-width: 100%;
  box-sizing: border-box;
}

/* نصوص البطاقات متجاوبة */
.solution-card h3,
.service-card h3,
.why-card h3,
.welcome-card h1 {
  font-size: clamp(16px, 2vw, 22px); /* يتقلص ويكبر حسب الشاشة */
}

.solution-card p,
.service-card p,
.why-card p,
.welcome-card p {
  font-size: clamp(12px, 1.5vw, 18px);
}

/* Grid للبطاقات متجاوب */
.solutions-container,
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Media Queries للتجاوب على الشاشات الصغيرة */
@media screen and (max-width: 1000px) {
  .solutions-container, .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .solutions-container, .services {
    grid-template-columns: 1fr;
  }
  
  /* تقليص النصوص والبطاقات قليلاً */
  .solution-card, .service-card, .why-card, .welcome-card {
    padding: 20px;
  }
}
/* Grid متجاوب للبطاقات */
.solutions-container,
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* الحد الأدنى للعرض 180px */
  gap: 20px;
}

/* نصوص البطاقات */
.solution-card h3,
.service-card h3,
.why-card h3,
.welcome-card h1 {
  font-size: clamp(14px, 2vw, 22px);
}

.solution-card p,
.service-card p,
.why-card p,
.welcome-card p {
  font-size: clamp(12px, 1.5vw, 18px);
}

/* حماية padding البطاقات */
.solution-card, .service-card, .why-card, .welcome-card {
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries لتعديل المسافات والخطوط على الشاشات الصغيرة */
@media screen and (max-width: 500px) {
  .solutions-container,
  .services {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* يقل حجم البطاقات تلقائيًا */
  }

  .solution-card, .service-card, .why-card, .welcome-card {
    padding: 15px;
  }

  .solution-card h3,
  .service-card h3,
  .why-card h3,
  .welcome-card h1 {
    font-size: clamp(12px, 3vw, 20px);
  }

  .solution-card p,
  .service-card p,
  .why-card p,
  .welcome-card p {
    font-size: clamp(10px, 2.5vw, 16px);
  }
}

.form-message p {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}
.form-message .success { background: #d4edda; color: #155724; }
.form-message .error { background: #f8d7da; color: #721c24; }




:root {
  --orange: #ff8a00;
  --dark: #0f0f0f;
  --glass: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: rgb(31, 42, 56);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* LOGO */
.logo span {
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

.logo strong {
  color: var(--orange);
}

/* LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  color: #ddd;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.4s ease;
}

.nav-links li a:hover {
  color: var(--orange);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  transition: 0.4s;
}

/* MOBILE MENU */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
    background: rgb(31, 42, 56);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 22px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 22px;
  color: white;
  transition: 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--orange);
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 16px 25px;
  }
}













.navbar {
  display: flex;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
  direction: ltr; /* يمنع الانعكاس */
}

.logo img {
  width: 50px;
  margin-right: 10px;
}

.logo span {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.logo strong {
  color: #ff7a00;
}

@media (max-width: 768px) {
  .logo img {
    width: 34px;
  }

  .logo span {
    font-size: 18px;
  }
}











/* =========================
   FORCE HERO TO LTR (FIX FINAL)
========================= */

/* فك ارتباط الهيرو من RTL */
.hero {
  direction: ltr;
  text-align: left;
}

/* حرر النص من اليمين */
.hero-content {
  left: 10% !important;
  right: auto !important;
  text-align: left !important;
  direction: ltr !important;
}

/* تأكيد اتجاه النص نفسه */
.hero-content h1,
.hero-content p {
  text-align: left !important;
  direction: ltr !important;
}




.contact h2 {
  white-space: nowrap;   /* يمنع أي كسرة سطر */
  display: inline-block; /* يحافظ عليه في سطر واحد */
}
/* لقسم Contact Us */
.contact h2 {
  white-space: nowrap;   /* على الشاشات الكبيرة */
  display: inline-block;
}

/* للشاشات الصغيرة، السماح للكسر */
@media (max-width: 700px) {
  .contact h2 {
    white-space: normal;  /* يسمح بالكسر */
    font-size: 24px;      /* تصغير النص على الموبايل */
  }
}









/* قسم About Creative Storm */
.about h3 {
    font-size: 18px;        /* حجم الخط الأساسي */
    line-height: 1.5;       /* مسافة مناسبة بين السطور */
    text-align: left;       /* محاذاة للنص من اليسار */
    max-width: 100%;        /* لا يتجاوز عرض الحاوية */
    margin: 0 auto;         /* يحافظ على التوسيط العام للصفحة */
}

/* Media Queries للشاشات الصغيرة */
@media (max-width: 700px) {
    .about h3 {
        font-size: 16px;    /* تصغير الخط على الموبايل */
        line-height: 1.4;   /* تقليل المسافة بين السطور */
        padding: 0 10px;    /* حواف داخلية صغيرة */
    }

    .about {
        padding: 40px 10px; /* تقليل الحشو الأعلى والأسفل */
    }
}















/* وضع الـ labels على يسار */
.contact .form-group label {
    display: block;       /* تأكد أن كل label في سطر منفصل */
    text-align: left;     /* محاذاة للنص على اليسار */
    direction: ltr;       /* اتجاه النص من اليسار لليمين */
    margin-bottom: 5px;   /* مسافة بسيطة عن الحقل */
    color: #ffcc66;       /* نفس لون النص الحالي */
}

/* ضمان أن الحقول نفسها لاتتأثر */
.contact .form-group input,
.contact .form-group select,
.contact .form-group textarea {
    direction: ltr;       /* اجعل النص داخل الحقول من اليسار لليمين */
}







.why-us {
  padding: 50px 20px;
  background-color: #1f2a38;
  direction: ltr !important; /* إجبار الاتجاه الداخلي على LTR */
}

.why-us h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

/* Grid مستقل للبطاقات */
.why-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, 300px); /* أعمدة ثابتة 300px */
  justify-content: center; /* توسيط الصف */
  gap: 20px;
  direction: ltr !important;
}

/* كل بطاقة */
.why-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px; /* ارتفاع ثابت */
  max-height: 360px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.why-card i {
  font-size: 36px;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.why-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}
/* البطاقة شبه شفافة */
.why-card {
  background-color: rgba(55, 71, 86, 0.80); /* أبيض مع شفافية 80% */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px;
  max-height: 360px;
  text-align: left;
  color: #fff; /* نص أبيض على الخلفية الداكنة */
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

.why-card i {
  font-size: 36px;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffcc66; 
}

.why-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #fff; 
}








/* الحاوية الأساسية لقسم الخدمات */
.services {
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px); /* أعمدة ثابتة تقريبًا */
  justify-content: center; /* توسيط الصف */
  gap: 20px;
  background-color: transparent; /* يتماشى مع خلفية الموقع */
  direction: ltr;
}

/* كل بطاقة خدمة */
.service-card {
   background-color: rgba(55, 71, 86, 0.80); /* أبيض مع شفافية 80% */
  border-radius: 12px;
  padding: 20px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px; /* ارتفاع موحد لجميع البطاقات */
  max-height: 360px;
  overflow: hidden;
  text-align: left;
  color: #fff; /* نص أبيض على الخلفية الداكنة */
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

.service-card i {
  font-size: 36px;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffcc66; 
}

.service-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #fff; 
}






/* الهيدر ثابت */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 20px;
  background-color: #1f2a38;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* الصورة في منتصف الهيدر فقط على الشاشات الكبيرة */
@media (min-width: 768px) {
  .header-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* على الشاشات الصغيرة (Mobile) اجعل الصورة تختفي أو تنتقل */
@media (max-width: 767px) {
  .header-image {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto; /* لو تريدها تظهر فوق أو أسفل الروابط */
    display: block;
  }
}

/* تأثير الصورة عند Hover */
.header-image img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 50%;
}

.header-image img:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* روابط Navbar */
.nav-links {
  display: flex;
  gap: 20px;
}

/* في الموبايل اجعل الروابط مخفية خلف البرجر */
@media (max-width: 767px) {
  .nav-links {
    display: none; /* أو طبق toggle مع JS عند الضغط على البرجر */
    flex-direction: column;
    background-color: #1f2a38;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px;
  }
}



@media (max-width: 767px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #1f2a38;
    z-index: 1000;
  }

  /* روابط مخفية خلف البرجر */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #1f2a38;
    padding: 20px;
  }

  /* الشعار + الصورة */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين الشعار والصورة */
  }

  .header-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .header-image img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  /* البرجر على اليمين */
  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: white;
  }
}






/* فقط للهواتف */
@media (max-width: 767px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* شعار على اليسار، right-container على اليمين */
    padding: 0 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #1f2a38;
    z-index: 1000;
  }

  /* روابط الهيدر مخفية خلف البرجر */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #1f2a38;
    padding: 20px;
  }

  /* Right container */
  .right-container {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين البرجر والصورة */
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: white;
  }

  .header-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .header-image img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
}








.why-us .why-card .card-image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us .why-card .card-image img:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.services .service-card .card-image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .service-card .card-image img:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}







/* جعل وصف About Creative Storm بخط مائل */
.about h3 {
    font-style: italic;
}

/* جعل كل الشروحات داخل البطاقات بخط مائل */
.service-card p,
.why-card p,
.solution-card p {
    font-style: italic;
}

/* التأكد أن العناوين لا تتأثر */
.service-card h3,
.why-card h3,
.solution-card h3,
.about h2,
.about h3,
h1, h2, h3 {
    font-style: normal;
}
/* وصف About يكون مائل */
.about-description{
    font-style: italic;
}