/* === Visual Identity Colors === */
:root {
  --color-primary-dark: #232d45;
  /* أزرق داكن - خلفية رئيسية */
  --color-primary-blue: #234a7d;
  /* أزرق ملكي - جوهرة */
  --color-gold: #c9a14a;
  /* ذهبي - نص وزخارف */
  --color-white: #fff;
  /* أبيض - نصوص ثانوية */
  --color-bg-light: #f7f8fa;
  /* خلفية فاتحة اختيارية */
  --color-background: #e1e9f5;
  /* خلفية عامة */
}

/* === Header Styles === */
.main-header {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(44, 83, 100, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 1s cubic-bezier(.77, 0, .18, 1) both;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-logo {
  height: 58px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--color-primary-dark);
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: inherit;
}

.logo span:hover {
  color: var(--color-gold);
}

.logo a {
  color: var(--color-primary-dark);
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.3s;
}

.logo a:hover {
  color: var(--color-gold);
}

/* .navbar ul li a.active,
.navbar ul li a.active:hover {
  color: var(--color-gold);
}
.navbar ul li a.active::after {
  width: 100%;
  background: var(--color-gold);
} */
.navbar {
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar ul {
  flex: 1;
  display: flex;
  justify-content: center;
  /* توسيط التبويبات */
  gap: 3rem;
  /* زيادة المسافة بين التبويبات */
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.navbar ul li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.navbar ul li a:hover {
  color: var(--color-gold);
}

.navbar ul li a:hover::after {
  width: 100%;
}

.order-btn {
  background: linear-gradient(90deg, var(--color-primary-blue) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: bold;
  margin-right: 2rem;
  /* بدلاً من margin-left */
  margin-left: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.order-btn:hover {
  background: linear-gradient(90deg, #ffb347 0%, var(--color-gold) 100%);
  color: var(--color-primary-dark);
  transform: scale(1.07) rotate(-2deg);
}

.order-btn-desktop {
  display: inline-block;
}

.order-btn-mobile {
  display: none;
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-left: 1.5rem;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #000;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.77, 0, .18, 1);
}

@media (max-width: 900px) {
  .main-header .container {
    padding: 0.7rem 1rem;
  }

  .navbar ul {
    gap: 1.2rem;
  }

  .order-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
  }

  .order-btn-desktop {
    display: none !important;
  }

  .order-btn-mobile {
    display: inline-block !important;
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #fff !important;
  }

  .order-btn-mobile-li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .main-header .container {
    flex-direction: row-reverse;
  }

  .navbar {
    width: auto;
    flex: none;
  }

  .navbar ul {
    position: absolute;
    top: 70px;
    background: var(--color-bg-light);
    flex-direction: column;
    width: 200px;
    padding: 1.5rem 0;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(44, 83, 100, 0.15);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(.77, 0, .18, 1);
    z-index: 2001;
    text-align: center;
  }

  html[dir="rtl"] .navbar ul {
    right: auto;
    left: 0;
    direction: rtl;
  }

  html[dir="ltr"] .navbar ul {
    left: auto;
    right: 0;
    direction: ltr;
  }

  .navbar.active ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
    margin-left: 0;
    margin-right: 0.5rem;
    order: 2;
  }

  .logo {
    order: 1;
  }
}

/* Animation for header appearance */
/* @keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} */
/* === Footer === */
.main-footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2.5rem 0 0.5rem 0;
  position: relative;
  margin-top: 3rem;
  box-shadow: 0 -2px 16px rgba(44, 83, 100, 0.08);
  animation: fadeInUp 1.2s cubic-bezier(.77, 0, .18, 1) both;
  font-family: inherit;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  color: var(--color-white);
  font-weight: bold;
  letter-spacing: 1px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.footer-contact-list li {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact-list li:hover {
  color: var(--color-gold);
}

.footer-contact-list i {
  font-size: 1.1rem;
  min-width: 20px;
}

.footer-partner {
  margin-top: 1.2rem;
}

.footer-partner img {
  width: 110px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(44, 83, 100, 0.10);
  display: block;
}

.footer-links {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 220px;
  text-align: right;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1.05rem;
}

.footer-links ul li a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.footer-contact {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.footer-about {
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 340px;
  text-align: right;
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  width: 90px;
  margin-bottom: 1.1rem;
  margin-left: 0;
  margin-right: 0;
  display: block;
  align-self: flex-end;
}

.footer-logo {
  margin-bottom: 1.1rem;
  align-self: start;
}

.footer-about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 1.2rem;
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
  align-self: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-primary-blue);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 1.3rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(44, 83, 100, 0.10);
}

.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: scale(1.15) rotate(-8deg);
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem 0 0.2rem 0;
  font-size: 1rem;
  color: #bbb;
  border-top: 1px solid #333;
  margin-top: 2rem;
  letter-spacing: 1px;
  background: var(--color-primary-blue);
}

@media (max-width: 900px) {

  .footer-about,
  .footer-social,
  .footer-logo img {
    align-items: center !important;
    align-self: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .footer-logo img {
    margin: 0 auto 1.1rem auto;
  }

  .footer-about-text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .main-footer {
    padding: 1.5rem 0 0.5rem 0;
  }

  .footer-container {
    padding: 0 0.5rem;
    gap: 1rem;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-bottom {
    font-size: 0.95rem;
    padding: 0.7rem 0 0.2rem 0;
  }

  .footer-partner img {
    width: 80px;
  }
}

/* === Hero Section === */
.hero-section {
  position: relative;
  background: var(--color-bg-light);
  /* لون سكري ثابت */
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: unset;
  max-height: unset;
  object-fit: fill;
  background: none;
  z-index: 4;
  animation: heroBgFadeIn 1.5s 0.2s both;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-bg-img {
    object-fit: cover;
    background: none;
  }
}

.hero-left-img {
  position: absolute;
  bottom: 60px;
  /* رفع الصورة للأعلى */
  left: 0;
  width: 320px;
  max-width: 35vw;
  z-index: 3;
  animation: heroLeftIn 1.3s 0.5s both;
}

.hero-right-img {
  position: absolute;
  bottom: 60px;
  /* رفع الصورة للأعلى */
  right: 0;
  width: 320px;
  max-width: 35vw;
  z-index: 3;
  animation: heroRightIn 1.3s 0.7s both;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: #232526;
  animation: heroContentIn 1.2s 0.8s both;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  position: relative;
  color: #232526;
  letter-spacing: 1px;
}

.hero-highlight {
  color: #a36a2c;
  position: relative;
  z-index: 2;
}

.hero-underline {
  display: block;
  width: 180px;
  height: 7px;
  background: linear-gradient(90deg, #a36a2c 60%, #fff0 100%);
  margin: -18px auto 0 auto;
  border-radius: 4px;
  z-index: 1;
}

.hero-content p {
  font-size: 1.15rem;
  color: #232526;
  line-height: 2;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-bg-img {
    min-height: 180px;
  }

  .hero-left-img,
  .hero-right-img {
    bottom: 80px;
    /* رفع البرجين للأعلى أكثر */
    width: 240px;
    /* زيادة الحجم */
    max-width: 60vw;
    z-index: 2;
    /* خلف الرمال */
  }

  .hero-bg-img {
    z-index: 4;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 250px;
    padding-top: 20px;
  }

  .footer-logo {
    margin-bottom: 1.1rem;
    align-self: center;
  }

  .hero-content {
    max-width: 98vw;
    padding: 0 8px;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-bg-img {
    max-height: 100%;
    z-index: 4;
    object-fit: fill;
  }

  .hero-left-img,
  .hero-right-img {
    bottom: 200px;
    /* رفع البرجين للأعلى أكثر */
    width: 120px;
    /* زيادة الحجم */
    max-width: 70vw;
    z-index: 2;
    /* خلف الرمال */
  }

  .hero-bg-img {
    z-index: 4;
  }

  .hero-underline {
    width: 60px;
    height: 3px;
    margin-top: -5px;
  }
}

/* @keyframes heroBgFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroLeftIn {
  0% { opacity: 0; transform: translateX(-80px) scale(1.1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes heroRightIn {
  0% { opacity: 0; transform: translateX(80px) scale(1.1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes heroContentIn {
  0% { opacity: 0; transform: translateY(-40px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
} */

/* === About Us Section === */
.about-section {
  background: #fff;
  padding: 60px 0 40px 0;
  animation: aboutFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.about-image {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 550px;
  max-width: 95vw;
  border-radius: 36px;
  box-shadow: 0 4px 32px rgba(44, 83, 100, 0.10);
  object-fit: cover;
  animation: aboutImgIn 1.2s 0.3s both;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  direction: rtl;
  animation: aboutContentIn 1.2s 0.5s both;
}

.about-label {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 0.2rem 1.1rem 0.2rem 0.7rem;
  box-shadow: 0 1px 6px rgba(44, 83, 100, 0.06);
}

.about-title {
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

.about-text {
  font-size: 1.18rem;
  color: var(--color-primary-dark);
  line-height: 2.1;
  margin-bottom: 1.7rem;
  max-width: 520px;
}

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
  position: relative;
  z-index: 2;
}

.about-more:hover {
  color: var(--color-gold);
  transform: translateX(-6px) scale(1.07);
}

.about-arrow {
  font-size: 1.3rem;
  margin-right: 0.2rem;
  transition: color 0.3s, transform 0.2s;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 2.2rem;
    padding: 0 1.2rem;
  }

  .about-content {
    align-items: center;
    text-align: center;
    direction: rtl;
  }

  .about-text {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding: 30px 0 20px 0;
  }

  .about-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .about-image img {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
  }

  .about-title {
    font-size: 1.2rem;
  }

  .about-label {
    font-size: 0.95rem;
    padding: 0.15rem 0.7rem 0.15rem 0.5rem;
  }

  .about-text {
    font-size: 1rem;
    margin-bottom: 1.1rem;
  }

  .about-more {
    font-size: 1rem;
  }
}

/* @keyframes aboutFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes aboutImgIn {
  0% { opacity: 0; transform: scale(1.08) translateX(-60px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}
@keyframes aboutContentIn {
  0% { opacity: 0; transform: translateY(40px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
} */

/* === Services Section === */
.services-section {
  background: var(--color-bg-light);
  padding: 60px 0 40px 0;
  animation: servicesFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.services-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: servicesHeaderIn 1.1s 0.2s both;
}

.services-label {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: #fff;
  border-radius: 8px;
  padding: 0.2rem 1.1rem 0.2rem 0.7rem;
  box-shadow: 0 1px 6px rgba(44, 83, 100, 0.06);
}

.services-title {
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

.services-desc {
  font-size: 1.18rem;
  color: var(--color-primary-dark);
  line-height: 2.1;
  margin-bottom: 0;
}

.services-cards {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  width: 100%;
  animation: servicesCardsIn 1.2s 0.4s both;
}

.service-card {
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(44, 83, 100, 0.10);
  overflow: hidden;
  width: 370px;
  max-width: 95vw;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  animation: serviceCardIn 1.1s both;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(44, 83, 100, 0.18);
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.5);
  transition: filter 0.3s;
}

.service-card:hover .service-img {
  filter: grayscale(0.2) brightness(0.95);
}

.service-title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: bold;
  padding: 1.2rem 1.5rem 1.2rem 0.5rem;
  text-align: right;
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 0 0 28px 28px;
  letter-spacing: 0.5px;
}

.services-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.services-more:hover {
  color: var(--color-gold);
  transform: translateX(-6px) scale(1.07);
}

.services-arrow {
  font-size: 1.3rem;
  margin-right: 0.2rem;
  transition: color 0.3s, transform 0.2s;
}

@media (max-width: 1100px) {
  .services-cards {
    gap: 1.2rem;
  }

  .service-card {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .services-section {
    padding: 40px 0 20px 0;
  }

  .services-container {
    padding: 0 1.2rem;
  }

  .services-title {
    font-size: 1.3rem;
  }

  .service-card {
    width: 98vw;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 30px 0 15px 0;
  }

  .services-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .services-header {
    margin-bottom: 1.2rem;
  }

  .services-title {
    font-size: 1.1rem;
  }

  .services-desc {
    font-size: 0.98rem;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
  }

  .service-title {
    font-size: 1.1rem;
    padding: 0.7rem 1rem 0.7rem 0.3rem;
    border-radius: 0 0 18px 18px;
  }
}

/* @keyframes servicesFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes servicesHeaderIn {
  0% { opacity: 0; transform: translateY(-30px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes servicesCardsIn {
  0% { opacity: 0; transform: translateY(40px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes serviceCardIn {
  0% { opacity: 0; transform: scale(1.08) translateY(60px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
} */

/* === Portfolio Section (أعمالنا) === */
.portfolio-section {
  background: #fff;
  padding: 60px 0 40px 0;
  animation: portfolioFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

/* توسيع الحاوية الرئيسية قليلاً للسلايدر */
.portfolio-container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: portfolioHeaderIn 1.1s 0.2s both;
}

.portfolio-label {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 0.2rem 1.1rem 0.2rem 0.7rem;
  box-shadow: 0 1px 6px rgba(44, 83, 100, 0.06);
}

.portfolio-title {
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

/* توسيع السلايدر ليظهر بطاقتين كاملتين */
.portfolio-slider-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  position: relative;
  gap: 0.5rem;
  margin: 0 auto;
}

/* توسيع عرض السلايدر ليظهر بطاقتين فقط */
.portfolio-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  width: 100%;
  max-width: 900px;
  scrollbar-width: none;
  margin: 0 auto;
}

.portfolio-slider::-webkit-scrollbar {
  display: none;
}

/* بطاقتان في الشاشات الكبيرة */
/* بطاقتان متساويتان في الشاشات الكبيرة */
.portfolio-card {
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(44, 83, 100, 0.10);
  min-width: 45%;
  max-width: 45%;
  width: 45%;
  margin: 0 1%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  animation: portfolioCardIn 1.1s both;
  padding: 2.2rem 1.5rem 1.2rem 1.5rem;
  box-sizing: border-box;
}

/* صورة المشروع أسفل النص */
.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: fill;
  border-radius: 18px;
  margin-top: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(44, 83, 100, 0.10);
}

.portfolio-info {
  flex: 1;
  padding: 0;
  color: #232526;
  text-align: right;
  direction: rtl;
  width: 100%;
}

.portfolio-card-title {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 0.7rem;
  font-weight: bold;
  margin-top: 0;
}

.portfolio-card-desc {
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.portfolio-nav {
  background: linear-gradient(90deg, var(--color-bg-light) 0%, var(--color-primary-blue) 100%);
  color: var(--color-primary-dark);
  border: none;
  border-radius: 40%;
  width: 64px;
  height: 54px;
  font-size: 2.0rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.10);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.portfolio-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.portfolio-more:hover {
  color: var(--color-gold);
  transform: translateX(-6px) scale(1.07);
}

.portfolio-nav:hover {
  background: linear-gradient(90deg, var(--color-bg-light) 0%, var(--color-gold) 100%);
  transform: scale(1.12) rotate(-8deg);
}

@media (max-width: 900px) {
  .portfolio-section {
    padding: 40px 0 20px 0;
  }

  .portfolio-container {
    padding: 0 1.2rem;
  }

  .portfolio-title {
    font-size: 1.3rem;
  }

  /* بطاقة واحدة فقط */
  .portfolio-card {
    min-width: 96vw;
    max-width: 96vw;
    width: 96vw;
    margin: 0 2vw;
    border-radius: 16px;
    padding: 1.5rem 0.7rem 1.2rem 0.7rem;
  }

  .portfolio-img {
    width: 100%;
    height: 120px;
    margin-top: 1rem;
    border-radius: 10px;
  }

  .portfolio-card-title {
    font-size: 1.1rem;
  }

  .portfolio-card-desc {
    font-size: 0.98rem;
  }
}

@media (max-width: 600px) {
  .portfolio-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .portfolio-slider-wrapper {
    max-width: 100vw;
  }

  .portfolio-slider {
    max-width: 100vw;
  }

  .portfolio-header {
    margin-bottom: 1.2rem;
  }

  .portfolio-title {
    font-size: 1.1rem;
  }

  .portfolio-card {
    min-width: 97%;
    max-width: 97%;
    width: 97%;
    height: 350px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 1.1rem 0.3rem 0.7rem 0.3rem;
  }

  .portfolio-img {
    width: 100%;
    height: 70%;
    margin-top: 0.5rem;
    border-radius: 6px;
  }

  .portfolio-card-title {
    font-size: 0.98rem;
  }

  .portfolio-card-desc {
    font-size: 0.92rem;
  }

  .portfolio-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .portfolio-slider {
    padding-right: 4vw;
    padding-left: 4vw;
  }
}

/* @keyframes portfolioFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes portfolioHeaderIn {
  0% { opacity: 0; transform: translateY(-30px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes portfolioCardIn {
  0% { opacity: 0; transform: scale(1.08) translateY(60px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
} */

/* === Partners Section (شركاؤنا) === */
/* خلفية موحدة للشريطين مع حواف دائرية */
/* خلفية موحدة للشريطين مع حواف دائرية */
.partners-section {
  background: #fff;
  padding: 0;
  animation: partnersFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* الخلفية تمتد بعرض الشاشة بالكامل مع زيادة الارتفاع */
.partners-bg {
  background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-blue) 100%);
  box-shadow: 0 4px 32px rgba(44, 83, 100, 0.10);
  padding: 64px 0 64px 0;
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: partnersHeaderIn 1.1s 0.2s both;
}

.partners-label {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 0.2rem 1.1rem 0.2rem 0.7rem;
  box-shadow: 0 1px 6px rgba(44, 83, 100, 0.06);
}

.partners-title {
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

/* الشريطين فوق بعض بدون فراغ */
/* إضافة مسافة بين الشريطين */
.partners-marquee-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 38px;
  margin-top: 0;
  justify-content: center;
}

/* إزالة الخلفية الفردية لكل شريط */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
}

html[dir="rtl"] .partners-track {
  animation: marquee-ar-left 28s linear infinite;
}

html[dir="ltr"] .partners-track {
  animation: marquee-en-left 28s linear infinite;
}

html[dir="rtl"] .marquee-bottom .partners-track {
  animation: marquee-ar-right 28s linear infinite;
}

html[dir="ltr"] .marquee-bottom .partners-track {
  animation: marquee-en-right 28s linear infinite;
}

/* تكبير حجم الشعار وزيادة الوضوح */
.partner-logo {
  height: 170px;
  width: 250px;
  /* object-fit: contain; */
  filter: grayscale(0.1) brightness(1);
  transition: filter 0.3s, transform 0.3s;
  opacity: 0.97;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(44, 83, 100, 0.10);
}

.partner-logo:hover {
  filter: grayscale(0) brightness(1.08);
  opacity: 1;
  transform: scale(1.08) rotate(-2deg);
}

/* للغة العربية (rtl) */
@keyframes marquee-ar-left {
  0% {
    transform: translateX(50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes marquee-ar-right {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

/* للغة الإنجليزية (ltr) */
@keyframes marquee-en-left {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes marquee-en-right {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .partners-container {
    padding: 0 0.5rem;
  }

  .partners-bg {
    border-radius: 18px;
    padding: 32px 0 32px 0;
    width: 100vw;
    min-height: 260px;
  }

  .partners-marquee-wrapper {
    gap: 18px;
  }

  .partner-logo {
    height: 64px;
    width: 200px;
  }
}

@media (max-width: 600px) {
  .partners-title {
    font-size: 1.1rem;
  }

  .partners-header {
    margin-bottom: 1.1rem;
  }

  .partners-bg {
    padding: 16px 0 16px 0;
    width: 100vw;
    min-height: 250px;
    border-radius: 0;
  }

  .partners-marquee-wrapper {
    gap: 8px;
    margin-top: 0;
  }

  .partner-logo {
    height: 120px;
    margin: 10px 2px;
  }
}

/* @keyframes partnersFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes partnersHeaderIn {
  0% { opacity: 0; transform: translateY(-30px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
} */

/* === Contact Us Section (تواصل معنا) === */
.main-section-title {
  color: var(--color-primary-dark);
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2.2rem;
  margin-top: 64px;
  letter-spacing: 0.5px;
  font-family: inherit;
  animation: fadeInDown 1s cubic-bezier(.77, 0, .18, 1) both;
}

.contact-section {
  background: #fff;
  padding: 64px 0 0 0;
  direction: rtl;
  animation: contactFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-light);
  border-radius: 24px;
  box-shadow: 0 2px 24px rgba(44, 83, 100, 0.10);
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: contactContainerIn 1.1s 0.2s both;
}

.contact-title {
  color: var(--color-primary-dark);
  font-size: 2.3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2.2rem;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row-double {
  flex-direction: row;
  gap: 1.2rem;
}

.contact-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
  text-align: right;
}

.contact-input {
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(44, 83, 100, 0.06);
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  outline: none;
  transition: box-shadow 0.3s, border 0.3s;
  resize: none;
}

.contact-input:focus {
  box-shadow: 0 2px 12px rgba(163, 106, 44, 0.13);
  border: 1.5px solid var(--color-gold);
}

.contact-textarea {
  min-height: 90px;
  max-height: 220px;
}

.contact-submit {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 0.9rem 0;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(44, 83, 100, 0.10);
  width: 100%;
  letter-spacing: 1px;
}

.contact-submit:hover {
  background: var(--color-gold);
  color: #fff;
  transform: scale(1.04) rotate(-1deg);
}

/* يمكنك وضع هذا في style.css */
#form-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em 0;
}

.spinner {
  border: 4px solid var(--color-primary-dark);
  /* border-top: 4px solid var(--color-primary-dark); */
  border-radius: 20%;
  width: 16px;
  height: 26px;
  animation: spin 2s infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .main-section-title {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 1.2rem;
  }

  .contact-container {
    padding: 18px 8px 18px 8px;
    border-radius: 14px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-label {
    font-size: 1rem;
  }

  .contact-input {
    font-size: 1rem;
    border-radius: 10px;
    padding: 0.7rem 0.7rem;
  }

  .contact-row-double {
    flex-direction: column;
    gap: 0.7rem;
  }
}

@media (max-width: 600px) {
  .main-section-title {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 0.7rem;
  }

  .contact-section {
    padding: 18px 0 0 0;
  }

  .contact-title {
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
  }

  .contact-container {
    padding: 8px 14px 8px 14px;
    border-radius: 7px;
  }

  .contact-label {
    font-size: 0.98rem;
  }

  .contact-input {
    font-size: 0.98rem;
    border-radius: 7px;
    padding: 0.5rem 0.5rem;
  }

  .contact-submit {
    font-size: 1rem;
    border-radius: 18px;
    padding: 0.7rem 0;
  }
}

/* @keyframes contactFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contactContainerIn {
  0% { opacity: 0; transform: translateY(40px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
} */

.contact-row-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-form-wrapper {
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 340px;
  min-width: 420px;
  max-width: 580px;
  background: var(--color-bg-light);
}

.contact-map-wrapper {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.contact-map-wrapper iframe {
  width: 100%;
  min-height: 620px;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44, 83, 100, 0.10);
  background: #fff;
}

@media (max-width: 900px) {
  .contact-row-flex {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .contact-map-wrapper,
  .contact-form-wrapper {
    max-width: 100%;
  }

  .contact-map-wrapper iframe {
    min-height: 220px;
    border-radius: 10px;
  }
}

/* === قيمنا وأهدافنا، رؤيتنا Vision/Mission/Values Section === */
.vision-section {
  width: 100%;
  background: transparent;
  margin: 48px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 1px;
}

.vision-container {
  background: var(--color-bg-light);
  border-radius: 40px;
  box-shadow: 0 2px 16px rgba(44, 83, 100, 0.07);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1320px;
  width: 90%;
  margin: 0 auto;
  animation: fadeInUp 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.vision-block {
  margin-bottom: 0;
}

.vision-title {
  color: var(--color-gold);
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  font-family: inherit;
  letter-spacing: 1px;
}

.vision-text {
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  line-height: 1.1;
  margin: 0;
  font-family: inherit;
}

.vision-list {
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  line-height: 2.1;
  margin: 0;
  padding-right: 1.2em;
  list-style: disc inside;
  font-family: inherit;
}

.vision-list li {
  margin-bottom: 0.3em;
}

/* === Animation === */
/* @keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* === Responsive === */
@media (max-width: 900px) {
  .vision-container {
    padding: 32px 18px;
    border-radius: 24px;
    gap: 28px;
  }

  .vision-title {
    font-size: 1.5rem;
  }

  .vision-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .vision-container {
    padding: 18px 6px;
    border-radius: 14px;
    gap: 18px;
  }

  .vision-title {
    font-size: 1.1rem;
  }

  .vision-text {
    font-size: 0.95rem;
  }

  .vision-list {
    font-size: 0.95rem;
  }
}

/* === End Vision/Mission/Values Section === */

/* === Portfolio Main Page Custom === */
.portfolio-main-section {
  min-height: 100vh;
  padding: 48px 0;
  animation: fadeInUp 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.portfolio-main-container {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-main-card {
  background: var(--color-bg-light);
  border-radius: 36px;
  box-shadow: 0 4px 32px rgba(44, 83, 100, 0.10);
  padding: 36px 32px 24px 32px;
  flex: 1 1 480px;
  min-width: 600px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  animation: cardFadeIn 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

.portfolio-main-card:hover {
  box-shadow: 0 8px 40px rgba(44, 83, 100, 0.18);
  transform: translateY(-8px) scale(1.03);
}

.portfolio-main-title {
  color: var(--color-gold);
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: center;
  width: 100%;
  font-family: inherit;
}

.portfolio-main-desc {
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  line-height: 2.1;
  margin-bottom: 2.2rem;
  text-align: right;
  width: 100%;
  font-family: inherit;
}

.portfolio-main-img {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-main-img img {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(44, 83, 100, 0.10);
  object-fit: fill;
  background: #fff;
  transition: transform 0.3s;
}

.portfolio-main-card:hover .portfolio-main-img img {
  transform: scale(1.04) rotate(-1deg);
}

/* Animation */
/* @keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(60px) scale(1.03);}
  100% { opacity: 1; transform: translateY(0) scale(1);}
} */

/* Responsive */
@media (max-width: 900px) {
  .portfolio-main-container {
    gap: 1.2rem;
  }

  .portfolio-main-card {
    min-width: 320px;
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .portfolio-main-container {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }

  .portfolio-main-card {
    min-width: 85%;
    max-width: 85%;
    border-radius: 18px;
    min-height: 300px;
    max-height: 300px;
  }

  .portfolio-main-title {
    font-size: 1.2rem;
  }

  .portfolio-main-desc {
    font-size: 1rem;
  }

  .portfolio-main-img img {
    max-width: 90vw;
    height: 210px;
    border-radius: 10px;
    object-fit: fill;
  }
}