@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-blue: hsl(221, 69%, 14%);
  --secondary-blue: #142a59;
  --primary-gold: #C5A059;
  --light-gold: #d6b87d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --text-light: #ffffff;
  --glass-white: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(11, 27, 61, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gold {
  color: var(--primary-gold);
}

.section-padding {
  padding: 80px 0;
}

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

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-gold);
}

.btn-gold {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  background-color: var(--primary-gold);
  color: var(--text-light);
  border: 2px solid var(--primary-gold);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
  transition: var(--transition);
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--primary-gold);
  box-shadow: none;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
  background: var(--glass-white);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  object-fit: contain;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--primary-blue);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.lang-switcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-gold);
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: 2px solid var(--primary-gold);
  padding: 5px 15px;
  border-radius: 20px;
}

.lang-switcher a:hover {
  background: var(--primary-gold);
  color: var(--bg-white);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 27, 61, 0.6) 0%, rgba(11, 27, 61, 0.9) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content h1 span {
  color: var(--primary-gold);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.type {
  font-size: 1.8rem; 
  line-height: 1.4;
  white-space: pre; 
  color:var(--primary-gold);  
  font-weight: 700;   
  height: 2em;
}


/* Top Features Grid */
.top-features {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding: 0 20px;
}

.top-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.top-feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid var(--primary-gold);
}

.top-feature-card:hover {
  transform: translateY(-10px);
}

.top-feature-card img {
  width: 60px;
  margin-bottom: 20px;
}

/* About Us Full */

/* slider .................... */

.about_us {
  background: var(--primary-blue);
  color: var(--text-light);
  height: 700px;
  margin-bottom: 5rem;
}


.sub-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  width: 70%;
  margin: auto;
  gap: 7rem;
}

.slides {
  display: flex;
  position: relative;
  width: 100%;
  object-fit: cover;
  min-height: 600px;
  background-image: url(imges/4.jpg);
  background-repeat: no-repeat;
  background-position: center;
  animation-name: slides;
  animation-duration: 50s;
  animation-delay: 3s;
  animation-iteration-count: infinite;
  border-radius: 2rem;
}

@keyframes slides {
  20% {
    background-image: url(imges/3.jpg);
  }

  30% {
    background-image: url(imges/4.jpg);
  }

  40% {
    background-image: url(imges/5.jpg);
  }

  50% {
    background-image: url(imges/6.jpg);
  }

  60% {
    background-image: url(imges/7.jpg);
  }

  70% {
    background-image: url(imges/777.jpg);
  }
}


.about_us_text {
  width: 100%;
}

.about_us_text h2 {
  font-size: 3rem;
  color: #D7C080
}

.about_us_text p {
  color: #fff;
  font-size: 20px;
  text-align: justify;
  line-height: 2.5rem;
}

/* CEO Message */
.ceo-section {
  background: var(--bg-light);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ceo-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ceo-image img {
  width: 100%;
  display: block;
}

.ceo-signature {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ceo-signature h4 {
  font-size: 1.4rem;
  color: var(--primary-blue);
}

.ceo-signature span {
  color: var(--primary-gold);
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}

/* Why Work With Us */
.why-us-section {
  background: var(--primary-blue);
  color: var(--text-light);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-us-list {
  margin-top: 20px;
}

.why-us-list li {
  position: relative;
  padding-inline-start: 35px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.why-us-list li::before {
  content: '\f058';
  /* FontAwesome Check Circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-size: 1.2rem;
}

[dir="rtl"] .why-us-list li::before {
  left: auto;
  right: 0;
}

.why-us-img img {
  width: 100%;
  border-radius: 8px;
  border: 4px solid var(--primary-gold);
}

/* Special Features (هذا ما نتميز به) */
.special-features {
  background: var(--bg-white);
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.special-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid var(--primary-blue);
  transition: var(--transition);
}

.special-card:hover {
  border-top-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.special-card img {
  width: 50px;
  margin-bottom: 20px;
}

.special-card ul {
  text-align: right;
  margin-top: 15px;
}

[dir="ltr"] .special-card ul {
  text-align: left;
}

.special-card ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  position: relative;
  padding-inline-start: 20px;
}

.special-card ul li::before {
  content: '\f0da';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-gold);
  position: absolute;
  left: 0;
}

[dir="rtl"] .special-card ul li::before {
  left: auto;
  right: 0;
}

/* Services */
.services-section {
  background: var(--bg-light);
}

.services-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 10px 25px;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-blue);
  color: var(--text-light);
  border-color: var(--primary-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-icon {
  position: absolute;
  bottom: -25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--primary-gold);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

[dir="ltr"] .service-icon {
  right: auto;
  left: 25px;
}

.service-content {
  padding: 35px 25px 25px;
}

/* Strategic Portfolio */
.portfolio-section {
  background: var(--primary-blue);
  color: var(--text-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 27, 61, 0.95) 0%, rgba(11, 27, 61, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.portfolio-overlay h3 {
  color: var(--primary-gold);
  font-size: 2rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-overlay p {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* parteners ............................................*/

.parteners {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parteners img {
  width: 900px;

}

.parteners h2 {
  color: #09374b;
  background-color: #D7C080;
  padding: 0.5rem;
  width: 35%;
  text-align: center;
  border-radius: 2rem;
}


/* contact us .......................*/
.contact-info {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: #09374b;
  background-color: #D7C080;
  border-radius: 1rem;
}

.contact-info .info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.contact-info .social {
  margin-top: 1.5rem;
}

.contact-info .social a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #09374b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-info .social a:hover {
  background: #0b4c65;
}

/* counter..................... */
.counter-section {
  background-color: #104e8b;
  /* نفس لون الشركة تقريباً */
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  align-items: center;
  flex-wrap: wrap;
}

.counter-box {
  text-align: center;
}

.counter-box h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.counter-box p {
  font-size: 1.3rem;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--text-light);
  padding: 80px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--primary-gold);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-gold);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--primary-gold);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gold);
}

[dir="ltr"] .footer-title::after {
  right: auto;
  left: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-inline-start: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--primary-gold);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.design-by {
  margin-top: 5px;
  color: var(--primary-gold);
  font-weight: 600;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive .........................................................................................................*/
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .ceo-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: var(--transition);
  }

  [dir="ltr"] .nav-links {
    right: auto;
    left: -100%;
  }

  .nav-links.active {
    right: 0;
  }

  [dir="ltr"] .nav-links.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {

  /* ضبط عرض الأقسام النصية لتأخذ الشاشة بالكامل */
  .sub-container,
  .ceo-text,
  .why-choose-us .text {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: right;
    /* ضبط المحاذاة لليمين */
    padding: 0 10px;
    /* مسافة أمان من حواف الشاشة */
  }

  /* تحسين شكل الفقرات للقراءة على الجوال */
  .about_us p,
  .ceo-text p,
  .why-choose-us ul li {
    text-align: justify;
    /* يجعل نهايات السطور متساوية ومرتبة */
    font-size: 1.1rem;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {

  /* إلغاء الارتفاع الثابت وإجبار القسم على التمدد مع المحتوى */
  .services-section,
  .portfolio-section,
  .about_us,
  section {
    height: auto !important;
    min-height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* ترتيب أزرار الفلترة (الكل، المقاولات، الخ) لمنع التزاحم */
  .services-filter {
    display: flex;
    flex-direction: column;
    /* جعل الأزرار فوق بعضها */
    gap: 15px;
    margin-bottom: 2rem;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    /* الزر يأخذ عرض الشاشة */
    text-align: center;
  }

  /* شركاء النجاح (الصور والعنوان) */
  .parteners img {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0 15px;
  }

  .parteners h2 {
    width: 80%;
    font-size: 1.5rem;
  }

  /* قسم هذا ما نتميز به (البطاقات) */
  .special-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* جعل البطاقات فوق بعضها في الجوال */
    gap: 20px;
  }

  /* توسيط نصوص بطاقات المميزات مع ضبط النقاط */
  .special-card ul {
    text-align: center;
  }

  .special-card ul li {
    padding-inline-start: 0;
  }

  .special-card ul li::before {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    margin-inline-end: 8px;
  }

  /* توسيط الفوتر في الجوال */
  .footer-top {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
    text-align: center;
  }

  .footer-title::after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  /* قسم رسالة الرئيس (الجوال) */
  .mobile-only-title {
    display: block !important;
  }

  .desktop-only-title {
    display: none !important;
  }

  .ceo-grid {
    display: flex !important;
    flex-direction: column-reverse;
    /* يجعل الصورة تظهر قبل النص وفوراً تحت العنوان المخصص للجوال */
  }
}

@media (max-width: 768px) {

  /* إعطاء مساحة علوية (Padding) لقسم الغلاف لتفادي الاصطدام بالهيدر */
  .hero {
    padding-top: 130px !important;
    /* زيادة المسافة لإنزال المحتوى تحت الهيدر */
    min-height: 100vh;
    align-items: flex-start;
    /* لضمان عدم تمركز المحتوى بشكل يقطعه */
  }

  /* تصغير حجم الخط الرئيسي ليتناسب مع عرض الجوال */
  .hero-content h1,
  .hero .main {
    font-size: 2rem !important;
    /* حجم خط مناسب للجوال */
    line-height: 1.4 !important;
    margin-top: 20px;
    padding: 0 15px;
    /* مسافة أمان من الأطراف */
  }

  /* تصغير العناوين الفرعية أو الفقرات في نفس القسم */
  .hero-content p,
  .type {
    font-size: 1.1rem !important;
    padding: 0 10px;
  }
  .hero-content h1 span {
  color: var(--primary-gold);
  font-size: 1.7rem;
}
.type {
        min-height: 100% !important;
    }
}


