@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --primary-color: rgb(62, 109, 143);
    --secondary-color: #ffffff;
    --accent-color: #ff3d3dad;
}

/* Basic Setup */
html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    overflow-x: hidden;
    overflow-y: auto; 
    height: 100%;
}

section {
    position: relative;
    padding: 4rem 1rem;
    width: 100%;
    height: auto;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

/* --- Navbar Styling --- */
header {
  /* هذه هي الخصائص التي ستبقى ثابتة */
  color: var(--secondary-color);
  font-size: larger;
  font-weight: 900;
  
  /* خصائص مهمة لتثبيت الـ Navbar في الأعلى */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* لضمان بقائه فوق كل العناصر */
  height: 100px; 
  /* الحالة الافتراضية (شبه شفاف للسماح للـ backdrop-filter بالعمل) */
  background-color: rgba(62, 109, 143, 0); /* تم التعديل هنا */
  backdrop-filter: blur(0); /* تم التعديل هنا */
  margin-bottom: 100px;
  opacity: 0.8;
  transition: 
  transform 0.72s ease,
  opacity 0.72s ease,
  background-color 0.72s ease,
  backdrop-filter 0.72s ease,
  box-shadow 0.72s ease;
  border-radius: 14px;
  padding-top: 20px;
  margin-top: -15px;
}

/* هذا الكلاس الجديد هو الذي سيتم إضافته بواسطة JavaScript عند النزول */
header.scrolled {

  opacity: 1;
  background-color: rgba(62, 109, 143, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}
#contact-page header{
    background-color: rgba(62, 109, 143, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    opacity: 1;
}
nav {
  padding: 1rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- Hero Slider (Swiper) --- */
#hero {
  padding:  0 !important; /* Remove padding from the section container */
  padding-bottom: 0 !important;
}
.hero-slider .swiper-slide > .relative.z-10 {
  padding-top: 100px; /* Provides space for the 80px header + a little extra margin */
}
.hero-slider {
    width: 100%;

}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
  /*  width: 50px !important;
    height: 50px !important;
    border-radius: 50%; */
    transition: background-color 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
    width: 12px !important;
    height: 12px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white !important;
    width: 30px !important;
    border-radius: 10px !important;
}


/* --- Service Card Hover Animation --- */
.service-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.service-card .fa-arrow-right {
  transition: transform 0.3s ease-in-out;
}

.service-card:hover .fa-arrow-right {
  transform: translateX(10px);
}

.service-card:hover .opacity-50 {
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out;
}
/* --- Mobile Menu --- */

@media (max-width: 767px) {
    .hidden.md\\:flex {
        display: none !important;
    }
}

.md\\:hidden {
    display: block;
}
@media (min-width: 768px) {
    .md\\:hidden {
        display: none !important;
    }
}


/* --- Mobile Menu --- */

/* The main menu container */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.6s ease-in-out;
  z-index: 1000;
  background-color: rgba(62, 109, 143, 0.95);
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#mobile-menu.active {
  transform: translateY(0);
}

/* Styling for the list items for animation */
#mobile-menu ul li {
  opacity: 0; /* Initially hidden */
  transform: translateY(20px); /* Initially moved down */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Animation for when the menu is active */
#mobile-menu.active ul li {
  opacity: 1; /* Fade in */
  transform: translateY(0); /* Move to original position */
}

/* Staggered animation delay for each list item */
#mobile-menu.active ul li:nth-child(1) { transition-delay: 0.3s; }
#mobile-menu.active ul li:nth-child(2) { transition-delay: 0.4s; }
#mobile-menu.active ul li:nth-child(3) { transition-delay: 0.5s; }
#mobile-menu.active ul li:nth-child(4) { transition-delay: 0.6s; }
#mobile-menu.active ul li:nth-child(5) { transition-delay: 0.7s; }
#mobile-menu.active ul li:nth-child(6) { transition-delay: 0.8s; }


/* The overlay behind the menu */
#mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Other Styles */

.contact-form input, .contact-form textarea {
    border-color: var(--primary-color);
}
.contact-form button {
    transition: all 0.3s ease;
}
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Oil Dot Blinking Animation --- */

@keyframes blink {
  0%, 100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }
  50% {
      opacity: 0.3;
      transform: translate(-50%, -50%) scale(0.8);
  }
}

.oil-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 1px solid white;
  box-shadow: 0 0 8px var(--accent-color);
  z-index: 20;
  transform: translate(-50%, -50%);
  animation-name: blink;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* --- Footer Styling --- */
.footer-link {
  position: relative;
  color: #E5E7EB;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: white;
  bottom: -4px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.footer-link:hover {
  color: white;
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* --- Contact Page Social Icons --- */
.social-icon-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon-contact:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.grid{
    align-items: center;
}
.founder-image{
    border: 11px solid var(--primary-color);
}
#reach>p{
font-weight: bolder!important;
}
#clients img{
    width: 320px!important;
}
@media (max-width:768px){
    #clients .opacity-40{
        opacity: 0.7!important;
        }
        #clients img{
            width: 280px!important;
        }
}

/* --- Animations --- */
.animate {
    opacity: 0;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    will-change: transform, opacity;
}

.slide-in-right { transform: translateX(-80%); }
.slide-in-left { transform: translateX(80%); }
.slide-in-top { transform: translateY(80%); }
.slide-in-bottom { transform: translateY(-80%); }

.fade-in-right { transform: translateX(-10%); }
.fade-in-left { transform: translateX(10%); }
.fade-in-top { transform: translateY(10%); }
.fade-in-bottom { transform: translateY(-10%); }

.zoom-in { transform: scale(0.85); }


.animate.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}
@media (max-width: 768px) {
  .nav-link{font-size: 11px;
  }
  footer>div{
    display: flex;
    flex-direction:column;
  }
  
}
@media (min-width: 769px) and (max-width: 1024px) {
  nav{
    font-size: 12px;
  }
}
/* ==========================
   Custom Scrollbar Styling
   ========================== */

/* --- Custom Scrollbar Styling --- */

/* للتحكم في عرض شريط التمرير بالكامل */
::-webkit-scrollbar {
  width: 5.5px; /* يمكنك تعديل عرض الشريط حسب رغبتك */
}

/* لتنسيق مسار شريط التمرير (الخلفية) */
::-webkit-scrollbar-track {
  background: transparent;/* يجعل الخلفية شفافة تماماً */
  visibility: hidden; 
}

/* لتنسيق الشريط نفسه (الجزء المتحرك) */
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color); /* --accent-color استخدام نفس اللون الأصفر المتغير */
  border-radius: 0px; /* لجعل حواف الشريط دائرية */
}

.copyright-bar {
  background-color: #f9f9f9;
  color: #111827;
  text-align: center;
  padding: 0px 10px;
  font-size: 14px;
  width: 35%;
  clip-path: polygon(
      0% 100%,
      100% 100%,
      100% 65px,
      calc(100% - 65px) 0%,
      65px 0%,
      0% 65px
  );
}

.copyright-bar {
  background-color: var(--secondary-color);
  color: black;
  text-align: center;
  padding: 0px 10px;
  font-size: 14px;
  width: 35%;
  clip-path: polygon(
      0% 100%,
      100% 100%,
      100% 65px,
      calc(100% - 65px) 0%,
      65px 0%,
      0% 65px
  );
}

.copyright-bar p {
  margin: 0;
}

.copyright-bar .credit-link {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

  .copyright-bar .credit-link:hover {
      color: var(--primary-color);
  }
  footer{
      padding-bottom: 0!important;
  }
  @media(max-width:375px){
      .copyright-bar {
              width: 100%;
              padding: 0px 10px;
              font-size: 10px; 
              width: 100%;
              clip-path: polygon(
              0% 100%,
              100% 100%,
              100% 30px,
              calc(100% - 15px) 0%,
              15px 0%,
              0% 30px
          );
      }
  }
@media(max-width:625px){
  .copyright-bar {
      clip-path: polygon(
          0% 100%,
          100% 100%,
          100% 45px,
          calc(100% - 30px) 0%,
          30px 0%,
          0% 45px
      );
 }
}
@media(max-width:1023px){
  .copyright-bar {
      width: 100%;
      padding: 5px 0;
  }

}
@media(min-width:1024px) and (max-width:1300px){
  .copyright-bar {
      width: 55%;
      padding: 5px 0;
  }
}

/* --- Horizontal Scroll for Services on Mobile --- */
/* --- Services Slider Styling --- */

/* On mobile screens */
@media (max-width: 767px) {
  #services .swiper-wrapper {
    /* نضيف مساحة سفلية لإظهار النقاط بشكل جيد */
    padding-bottom: 40px; 
  }

  #services .swiper-slide {
    /* نجعل الكروت مرنة لتناسب الشاشة */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* تنسيق نقاط التمرير لتكون مشابهة لنقاط الهيرو */
  #services .swiper-pagination-bullet {
      background: var(--primary-color) !important;
      opacity: 0.5 !important;
      width: 10px !important;
      height: 10px !important;
  }

  #services .swiper-pagination-bullet-active {
      opacity: 1 !important;
      width: 25px !important;
      border-radius: 10px !important;
  }
}

/* On larger screens, revert to grid layout */
@media (min-width: 768px) {
    #services .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* For tablets */
        gap: 2rem;
    }

    /* نتأكد أن عرض السلايد مناسب داخل الشبكة */
    #services .swiper-slide {
        width: 100% !important;
    }
}

@media (min-width: 1024px) {
    #services .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr); /* For desktops */
    }
}
/* --- Client Ticker Styling --- */

.client-ticker-container {
  /* على الشاشات الكبيرة، سيعمل كشبكة عادية */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 1200px; /* تحديد عرض أقصى للحاوية */
  margin: 0 auto; /* توسيط الحاوية */
}

.client-ticker-track {
  /* على الشاشات الكبيرة، المحتوى يملأ الشبكة */
  display: contents; 
}

.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo img {
  max-width: 300px; /* تحديد حجم الشعار */
  filter: brightness(0) invert(1); /* جعل الشعارات بيضاء لتناسب الخلفية */
  transition: opacity 0.3s ease;
}

.client-logo img:hover {
  opacity: 1;
}

/* --- Mobile Ticker Animation --- */
@media (max-width: 767px) {
  #clients .opacity-40 {
      opacity: 0.7 !important; /* لزيادة وضوح الشعارات على الموبايل */
  }

  .client-ticker-container {
      /* على الموبايل، سيكون إطارًا للشريط المتحرك */
      display: block;
      max-width: 100%;
      overflow: hidden; /* إخفاء أي جزء من الشريط يخرج عن الشاشة */
      /* لمسة جمالية لإخفاء الحواف بشكل ناعم */
      -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
      mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  }
  
  .client-ticker-track {
      /* على الموبايل، سيكون شريطًا مرنًا بعرض كبير جدًا */
      display: flex;
      align-items: center;
      /* حساب العرض: (عرض الشعار + المسافة) * عدد الشعارات الإجمالي */
      /* تقريبًا: 200px * 16 logos = 3200px */
      width: calc(200px * 16);
      gap: 40px; /* مسافة بين الشعارات */
      /* تطبيق الأنيميشن */
      animation: scroll-ticker 40s linear infinite;
  }

  .client-logo {
      flex-shrink: 0; /* منع الشعارات من الانكماش */
      width: 160px; /* تحديد عرض ثابت لكل شعار في الشريط */
  }

  .client-logo img {
     max-width: 100%;
  }
}
/* --- Disable Client Logo Entrance Animation on Mobile --- */
@media (max-width: 767px) {
  #clients .client-logo {
      /* نجعل الشعارات ظاهرة فوراً بدلاً من مخفية */
      opacity: 1;
      /* نلغي أي حركة (مثل الانزلاق من الجانب) */
      transform: none;
      animation: none;
  }
}
/* تعريف حركة الأنيميشن */
@keyframes scroll-ticker {
  0% {
      transform: translateX(0);
  }
  100% {
      /* تحريك الشريط بمقدار نصف عرضه (طول المجموعة الأولى من الشعارات) */
      transform: translateX(-50%);
  }
} 

/* --- Apple-Inspired Project Page Styling --- */



.apple-title {
    /* A font similar to Apple's marketing font */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

/* Scroll Animation Setup */
.apple-scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.apple-scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Aspect Ratio for video */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
}
.aspect-h-9 > iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}
/* --- Apple-Inspired Project Page (Light Theme) --- */

.apple-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

/* Scroll Animation Setup */
.apple-scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.apple-scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-info-box {
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 17 !important;
}
