/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  line-height: 1.6;
  color: #fff;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #ffffff00;
  padding: 10px 0;
  position: relative;
}
.marquee-content {
  display: flex;
  animation: scroll-right 15s linear infinite;
}
.marquee-content img {
  margin-right: 50px;
  height: 150px;
  width: auto;
}
@keyframes scroll-right {
  0% {
    transform: translateX(200%);
  }
  100% {
    transform: translateX(-95%);
  }
}
/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  /* background: rgba(0, 0, 0, 0) !important; */
  background: linear-gradient(90deg, #0D1C38, #1d3d7c59 ) ;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98) !important;
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
}

.logo-img {
  width: 100px;
  height: auto;
  margin-left: 10px;
  border-radius: 8px;
}

.brand-text {
  color: #ff6b35;
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ff6b35 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #ff6b35;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero-section {
  background-image: url('../img/background.png');
  /* background: linear-gradient(to right, #281E29, #0D1C38); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;  
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  margin-top: 80px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.highlight {
  color: #ff6b35;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff6b35;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #ff6b35;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Floating Elements */
.hero-image {
  position: relative;
  z-index: 2;
}

.floating-elements {
  position: relative;
  height: 400px;
}

.element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  top: 10%;
  right: 20%;
  animation-delay: 1.5s;
}

.element-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 3s;
}

.element-4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #f1f1f1;
  text-align: center;
  margin-bottom: 3rem;
}

/* Services Section */
.services-section {
  background: linear-gradient(to top, #281E29, #0D1C38);
  padding: 80px 0;
}
.services-section h4 {
  color: #000000 !important;
}
.service-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}

.service-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #281E29, #0D1C38);
}

.about-content {
  padding-right: 2rem;
}

.about-text {
  font-size: 1.1rem;
  color: #f1f1f1;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-item i {
  color: #ff6b35;
  margin-left: 1rem;
  font-size: 1.2rem;
}

/* Stats */
.stats-container {
  padding: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff6b35;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #f1f1f1;
  font-weight: 500;
}

/* Portfolio Section */
.portfolio-section {
  background: linear-gradient(to bottom, #281E29, #0D1C38); 
  padding: 80px 0;
}

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(247, 147, 30, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(to top, #281E29, #0D1C38); 
  padding: 80px 0;
}

.contact-form {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-control::placeholder {
  color: #999;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  width: 250px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.footer-brand h4 {
  color: #ff6b35;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #ccc;
  line-height: 1.6;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6b35;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  color: #ff6b35;
  margin-left: 0.8rem;
  width: 20px;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000000;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ff6b35;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: #fff;
  margin: 2rem 0 1rem;
}

.copyright {
  color: #999;
  text-align: center;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-buttons {
    margin-top: 100px;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    margin-top: 100px !important;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    margin-top: 100px;
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .floating-elements {
    height: 300px;
  }
  
  .element {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Partners responsive */
  .partner-item {
    width: 150px;
    height: 100px;
  }
  
  .partners-track {
    gap: 1.5rem;
    animation: scroll 25s linear infinite;
    width: calc(200% + 1.5rem * 14);
  }
  
  .partners-section::before,
  .partners-section::after {
    width: 50px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
    margin-top: 100px !important;
  }
  
  .hero-buttons {
    margin-top: 100px;
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-outline-light {
    width: 100%;
    max-width: 250px;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .logo-img {
    width: 30px;
    height: 30px;
  }
  
  /* Partners mobile */
  .partner-item {
    width: 120px;
    height: 80px;
  }
  
  .partners-track {
    gap: 1rem;
    animation: scroll 20s linear infinite;
    width: calc(200% + 1rem * 14);
  }
  
  .partners-section::before,
  .partners-section::after {
    width: 30px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Partners Section */
.partners-section {
  background: linear-gradient(to top, #281E29, #0D1C38);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.partners-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 2rem;
  width: calc(200% + 2rem * 14); /* Double width for 7 partners + gaps */
  will-change: transform; /* Optimize for animation */
  backface-visibility: hidden; /* Improve performance */
  transform: translateZ(0); /* Force hardware acceleration */
}

.partner-item {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-right: 1rem;
}

.partner-item:hover {
  transform: translateY(-5px);
  border-color: #ff6b35;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo img {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pause animation on hover */
.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

/* Ensure smooth infinite loop */
.partners-track::after {
  content: '';
  display: block;
  width: 2rem;
  flex-shrink: 0;
}

/* Gradient overlays for smooth edges */
.partners-section::before,
.partners-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.partners-section::before {
  left: 0;
  /* background: linear-gradient(to right, #fff, transparent); */
}

.partners-section::after {
  right: 0;
  /* background: linear-gradient(to left, #fff, transparent); */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55a2b;
}