/* Arabic Fonts */
@import url(https://fonts.googleapis.com/earlyaccess/droidarabickufi.css);

@import url(https://fonts.googleapis.com/css?family=Cairo:400,500,300,700);

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}



/* Loading screen styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hide loading screen when JavaScript is loaded */
.loaded .loading-screen {
  display: none;
}
.loader-hidden {
  display: none;
} 


.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 5px solid;
  border-color: #fc5204 #fc5204 transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 5px solid;
  border-color: transparent #09049b #09049b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
    
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}


/* Translate Button */
.translate-btn {
  position: fixed;
  top: 150px;
  left: 10px;
  background-color: #ffffff;
  color: #000000;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  font-family: "Cairo", sans-serif;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.translate-btn:hover {
  background-color: #cecece;
}
.translate-btn.scrolled {
  top: 10px;
}

@media (max-width: 768px) {
  /* Translate Button */
  .translate-btn {
    top: 150px;
    padding: 6px 10px;
    font-size: 14px;
  }
}


/* -- Top bar -- */

.top-bar {
  background-color: #19166d;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
}

.content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-item {
  margin: 5px 15px;
  display: flex;
  align-items: center;
}

.contact-item i {
  margin-left: 8px;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
      flex-direction: column;
      align-items: flex-start;
  }

  .contact-item {
      margin: 5px 0;
  }
}
    

/* -- Navbar -- */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0px 5%;
  transition: ease-in-out 0.3s;
}

.navbar img {
    width: 250px;
    border-radius: 30px;
}

.logo strong {
    color: #133c4d;
    font-weight: 800;
    margin-right: 10px;
    -webkit-text-stroke: #133c4ddc 2px;
}

.navbar a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
}

.menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu li {
  padding: 3px 20px;
}

.menu li:last-child {
  background: #19166d;
  color: #fff;
  border-radius: 20px;
  margin: 0 5px;
}

.menu li a {
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  font-weight: bold;
  transition: ease-in 0.2s;
}

.menu a:hover {
    color: #fc5204;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 30px;
  height: 4px;
  background-color: #fc5204;
  margin: 4px 0;
}


/* Additional CSS for fixed navbar */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

@media (max-width: 768px) {
    .navbar img {
        width: 150px;
    }
    .menu {
      display: none;
      color: #fff;
    }
    .menu a:hover {
        color: #fc5204;
    }

    .menu-icon {
      display: block;
    }

    .menu.active {
      display: flex;
      flex-direction: column;
      background-color: #19166d;
      position: absolute;
      top: 145px;
      left: 0;
      width: 100%;
      padding: 10px;
      z-index: 999;
    }

    .menu.active li {
      padding: 20px;
    }
    .menu li:last-child {
      margin: 0;
    }

    .menu li a {
        font-size: 16px;
    }
}




/* -- Hero -- */

.hero {
    position: relative;
    height: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: url("img/bg3.jpg");
    background-position: center;
    background-size: cover;
}

.hero::before {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0e080686;
}

.hero .text {
    z-index: 99;
    margin-top: 150px;
    padding: 20px 100px;
    max-width: 800px;
}

.hero img {
  max-width: 80px;
}

.hero h1 {
    color: #fff;
    font-size: 52px;
    margin: 0;
}

.hero p {
    color: #eee;
    font-size: 20px;
}

.hero .btn {
    padding: 3px 15px;
    background: #fff;
    color: #000 !important;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    transition: ease-in 0.2s;
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    0% {
      box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.8);
    }
    100% {
      box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0);
    }
  }
.hero .btn:hover {
    background: #19166d;
    color: #fff !important;
}

.hero svg {
    position: absolute;
    bottom: 0;
    height: 150px;
    width: 100%;
}

.hero svg .main-curve {
    fill: #fff;
}

.hero svg .top-line {
    fill: none;
    stroke: #246666;
    stroke-width: 10;
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
        background-position: right;
    }
    .hero img {
      max-width: 50px;
    }
    .hero .text {
        margin-top: 20px;
        padding: 10px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero .btn {
        font-size: 14px;
    }
}



/* -- About -- */

.about {
    max-width: 1400px;
    padding: 120px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0 auto;
  }
  
.about .text {
    max-width: 800px;
}
  
.about h2 {
    position: relative;
    display: inline-block;
    font-size: 32px;
    color: #19166d;
}

.about h2:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #09049b;
    bottom: -8px;
    left: 0;
}

.about p {
    font-size: 18px;
    color: #133c4d;
}

.more-btn {
  background-color: #19166d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Cairo', sans-serif;
  margin-top: 20px;
}

.more-btn:hover {
  background-color: #19166ddd;
}

.about img {
    width: 500px;
    max-height: 450px;
    margin-right: 20px;
    border-radius: 10px;
}

.about .image-container {
  position: relative;
  text-align: center;
}

.about .commercial-register {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 900px) {
    .about {
      padding: 80px 10px;
      flex-wrap: wrap;
    }
    .about img {
        width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
        .about h2 {
            font-size: 24px;
        }
        .about p {
            font-size: 14px;
        }
        .more-btn {
          font-size: 12px;
          padding: 6px 14px;
        }
}
  



/* --- Services Cards --- */
.services {
  background: linear-gradient(to bottom, #ffffff 2%, #000c4ebc 5%, #19166d 100%);
    position: relative;
    text-align: center;
    padding: 80px 15px;
  }
  
  .services h2 {
    position: relative;
    display: inline-block;
    color: #fff !important;
    font-size: 32px;
  }
  
  .services h2::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 50%;
    height: 3px;
    background-color: #fc5204;
  }
  
  .services p {
    margin-bottom: 50px;
  }
  
  .services .cards-container {
    position: relative;
    z-index: 99;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    margin-top: 50px;
  }
  
  .services .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .services .card:hover {
    transform: translateY(-10px);
  }
  
  .services .card i {
    font-size: 38px;
    color: #fc5204;
    margin-bottom: 20px;
  }
  
  .services .card h3 {
    font-size: 20px;
    color: #19166d;
    margin-bottom: 15px;
  }
  
  .services .card p {
    font-size: 16px;
    color: #133c4d;
  }
  
  @media (max-width: 1024px) {
    .card {
      width: calc(50% - 20px);
    }
  }
  
  @media (max-width: 768px) {
    .card {
      width: 100%;
    }
    .services h2 {
      font-size: 24px;
    }
    .services p {
      font-size: 14px;
    }
    .services .card {
      max-width: 300px;
    }
    .services .card i {
      font-size: 28px;
    }
    .services .card h3 {
      font-size: 18px;
    }
    .services .card p {
      font-size: 14px;
    }
   
  }
  
  /* Arabic text alignment */
  .cards-container, .card {
    direction: rtl;
    text-align: right;
  }
  
  .cards-container h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
  }
  
  
  

/* --- Why Section --- */
.why {
    padding: 120px 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.why .text {
    max-width: 600px;
}

.why h3 {
    font-size: 32px;
    color: #19166d;
    margin-bottom: 20px;
    position: relative;
}

.why > .text > p {
    font-size: 18px;
    color: #133c4d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.list-menu {
    list-style-type: none;
    padding: 0;
}

.list-menu li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.list-menu li > div {
    display: flex;
    flex-direction: column;
}

.list-menu li span {
    font-size: 18px;
    font-weight: bold;
    color: #19166d;
    margin-bottom: 5px;
}

.list-menu li p {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.star {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    margin-top: 5px;
}

.image-container {
    position: relative;
    max-width: 600px;
}

.background-image {
    width: 100%;
    border-radius: 10px;
    min-height: 400px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.foreground-image {
    position: absolute;
    width: 70%;
    height: auto;
    top: 50%;
    left: 50%;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .why {
        flex-direction: column;
        padding: 80px 5%;
    }

    .why .text {
        margin-right: 0;
        margin-bottom: 50px;
        max-width: 100%;
    }

    .image-container {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .why {
        padding: 60px 5%;
    }

    .why h3 {
        font-size: 22px;
    }

    .why > .text > p, .list-menu li span {
        font-size: 14px;
    }

    .star {
        width: 18px;
        height: 18px;
        margin: 0 8px;
        margin-top: 3px;
    }

    .list-menu li p {
        font-size: 14px;
    }

    .image-container {
        max-width: 100%;
    }
    .background-image {
        min-height: auto;
    }
}



/* --- Contact Form Styles --- */

.contact {
    padding: 50px 15px;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
  
.background-border {
    z-index: 9;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
  
.background-wave {
    fill: #246666;
}
  
.contact .text {
    text-align: center;
}
  
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
}
  
.contact h2 {
    position: relative;
    display: inline;
    margin: 30px auto;
    color: #19166d;
    font-size: 32px;
}
  
.contact p {
    color: #19166d;
    margin-bottom: 40px;
}
  
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
  
.form-group {
    margin-bottom: 20px;
}
  
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #133c4d;
    font-weight: bold;
}
  
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
}
  
.form-group textarea {
    height: 100px;
    resize: vertical;
}
  
.submit-btn {
    background-color: #19166d;
    width: 100%;
    color: #fff;
    border: none;
    padding: 8px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Cairo', sans-serif;
}
  
  .submit-btn:hover {
    background-color: #19166ddd;
}

.contact-info {
    margin: 0 20px;
}

.contact-info h3, .contact-info p {
  color: #19166d;
}

.contact-info i {
  color: #fc5204;
}

.contact-info a {
    color: inherit;
}
  
  @media (max-width: 768px) {
    .contact-form {
      padding: 30px;
    }
    .contact h2 {
      font-size: 24px;
    }
    .contact p {
      font-size: 14px;
    }
    .form-group label {
      font-size: 14px;
    }
    .submit-btn {
      padding: 10px 30px;
      font-size: 14px;
    }
    .contact-info {
        padding: 15px;
        text-align: center;
    }
    .contact-info h3 {
        font-size: 16px;
    }
    .contact-info p {
        font-size: 14px;
    }
  }



  .footer {
    background-color: #19166d;
    color: #fff;
    padding: 50px 0 20px;
    font-family: 'Cairo', sans-serif;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-section {
    margin-bottom: 20px;
    min-width: 200px;
    max-width: 400px;
  }
  
  .footer-section h3 {
    position: relative;
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
  }

  .footer-section h3::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 30%;
    height: 3px;
    background-color: #ccc;
  }

  .footer-section img {
    max-width: 200px;
  }
  
  .footer-section ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
    color: #ccc;
  }
  
  .footer-section a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    color: #fc5204;
  }
  
  .footer-section p {
    margin-bottom: 10px;
  }
  
  .footer-section i {
    margin: 0 10px;
    color: #fc5204;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 10px;
    margin-top: 40px;
    border-top: 1px solid #246666;
  }
  
  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-section {
      margin-bottom: 30px;
    }

    .footer-section img {
      max-width: 150px;
    }
  
    .footer-section h3 {
      font-size: 16px;
    }

    .footer-section a {
      font-size: 14px;
    }
  
    .footer-section p {
      font-size: 14px;
    }
  
    .social-icons {
      justify-content: center;
    }
    
    .footer-bottom {
      font-size: 12px;
    }

  }