:root {
  --primary-bg: #3b0a73;
  --gradient-start: #ff6a00;
  --gradient-end: #ff3c8e;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --light-text: #ffffff;
}

body {
  font-family: "Poppins", "Tajawal", sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  overflow-x: hidden;
}

.rtl {
  direction: rtl;
  text-align: right;
}

/* Navigation */
.navbar {
  background-color: var(--primary-bg);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  color: var(--light-text) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-color: var(--primary-bg);
  color: var(--light-text);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../imgs/hero-bg.svg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.btn-gradient {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4);
  color: white;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
}

.section-padding {
  padding: 80px 0;
}

/* About Section */
.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.about-img:hover {
  transform: scale(1.03);
}

/* Services Section */
.services {
  background-color: #fff;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-top: 4px solid transparent;
  background-clip: padding-box;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid;
  border-image: linear-gradient(
      45deg,
      var(--gradient-start),
      var(--gradient-end)
    )
    1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Projects Section */
.projects {
  background-color: var(--primary-bg);
  color: var(--light-text);
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

/* Careers Section */
.careers {
  background-color: #f9f9f9;
}

.career-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid transparent;
  border-image: linear-gradient(
      45deg,
      var(--gradient-start),
      var(--gradient-end)
    )
    1;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.career-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.career-header h4 {
  margin: 0;
  flex: 1;
  margin-right: 15px;
}

.career-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.career-details p {
  margin: 0;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.career-desc {
  margin-bottom: 20px;
  color: #495057;
}

.career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  background: rgba(59, 10, 115, 0.1);
  color: var(--primary-bg);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 15px;
  position: relative;
  height: 100%;
}

.testimonial-card::after {
  content: "\201D";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  color: rgba(59, 10, 115, 0.1);
  font-family: sans-serif;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

/* Contact Section */
.contact {
  background-color: #fff;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-control {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-bg);
  box-shadow: 0 0 0 0.25rem rgba(59, 10, 115, 0.15);
}

/* Footer */
footer {
  background-color: var(--primary-bg);
  color: var(--light-text);
  padding: 60px 0 30px;
}

.footer-links h5 {
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

.rtl .footer-links h5::after {
  left: auto;
  right: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.rtl .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fadein.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
.delay-4 {
  transition-delay: 0.8s;
}

/* Language Switch */
.language-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.lang-btn:hover {
  transform: scale(1.1);
}

/* Swiper Styles */
.swiper {
  width: 100%;
  padding: 30px 10px 50px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.swiper-pagination-bullet {
  background: var(--light-text);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(
    45deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .career-header {
    flex-direction: column;
  }

  .career-header h4 {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
