/* static/css/style.css */

/* --- Google Font: Cairo --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* --- General & Body --- */
body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    color: #444;
    padding-top: 80px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
}

/* --- Header & Navbar --- */
#header .navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}

#header .nav-link {
    color: #333;
    font-weight: 500;
    padding: 1rem;
    transition: 0.3s;
}

#header .nav-link:hover,
#header .nav-item .active {
    color: #007bff;
}

/* --- Hero Section --- */
.hero-section h1 {
    font-size: 36px;
    font-weight: 700;
}

/* --- Page Sections --- */
.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #333;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #007bff;
    bottom: 0;
    left: calc(50% - 25px);
}

/* --- Services Section --- */
.service-icon-box {
    text-align: center;
    padding: 30px 20px;
    transition: all ease-in-out 0.3s;
    background: #fff;
    border: 1px solid #e6e6e6;
    margin-bottom: 24px;
}
.service-icon-box .icon {
    margin: 0 auto;
    width: 64px;
    height: 64px;
    background: #007bff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
    color: #fff;
    font-size: 28px;
}
.service-icon-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}
.service-icon-box p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}
.service-icon-box:hover {
    border-color: #fff;
    box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

/* --- Clients & Partners (old styles, can be removed) --- */
.logo-grid img {
    max-width: 150px;
    opacity: 0.7;
    transition: 0.3s;
    padding: 15px 0;
}
.logo-grid img:hover {
    opacity: 1;
}

/* --- Footer --- */
#footer {
    background: #111;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}
#footer h3 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding: 0;
    margin: 0 0 15px 0;
}
#footer p {
    font-size: 15;
    font-style: italic;
    padding: 0;
    margin: 0 0 40px 0;
}

/* --- Logo Slider Styles (FIXED) --- */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Animate to -50% of the total width for a seamless loop */
    transform: translateX(-50%);
  }
}

.logo-slider {
  background: white;
  box-shadow: 0 4px 10px -5px rgba(0, 0, 0, .1);
  padding: 20px 0;
  margin: 40px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  /* This creates the fade-out effect on the sides */
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
  top: 0;
}

.logo-slider::before {
  left: 0;
}

.logo-slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

.logo-slider .logo-slide-track {
  animation: scroll 40s linear infinite;
  /* This tells the track to not wrap its children */
  white-space: nowrap;
  /* This ensures the animation doesn't pause on hover */
  animation-play-state: running;
}

.logo-slider:hover .logo-slide-track {
  animation-play-state: running;
}

.logo-slider .slide {
  display: inline-block; /* Display logos in a line */
  height: 60px; /* Controls the track height */
  margin: 0 40px;
}

.logo-slider .slide img {
  height: 100%;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logo-slider .slide img:hover {
  filter: none;
  opacity: 1;
}

/* --- Call To Action (CTA) Section --- */
.cta {
  /* CHANGE THE IMAGE PATH HERE */
  background: url('../img/background.png') center center;
  background-size: cover;
  padding: 40px 0;
  position: relative; /* Required for the overlay */
  z-index: 1;
}

/* This creates the blue overlay */
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 103, 255, 0.8);
  z-index: -1;
}

.cta h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.cta p {
  color: #fff;
}

.cta .cta-btn {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 35px;
  border-radius: 50px;
  transition: 0.5s;
  margin-top: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.cta .cta-btn:hover {
  background: #fff;
  color: #007bff;
}