/* Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

html {
    scroll-behavior: smooth;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    display: block;
    margin: 20px auto;
    position: relative;
    background: radial-gradient(ellipse at center, #3A4D67 69%, rgba(0, 0, 0, 0) 70%), linear-gradient(to right, rgba(0, 0, 0, 0) 47%, #3A4D67 48%, #3A4D67 52%, rgba(0, 0, 0, 0) 53%);
    background-size: 20px 20px, 20px auto;
    background-repeat: repeat-x;
    background-position: center bottom, center -5px;
  }
  
  .loader::before,
  .loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background: radial-gradient(ellipse at center, #3A4D67 69%, rgba(0, 0, 0, 0) 70%), linear-gradient(to right, rgba(0, 0, 0, 0) 47%, #3A4D67 48%, #3A4D67 52%, rgba(0, 0, 0, 0) 53%);
    background-size: 20px 20px, 20px auto;
    background-repeat: no-repeat;
    background-position: center bottom, center -5px;
    transform: rotate(0deg);
    transform-origin: 50% 0%;
    animation: animPend 1s linear infinite alternate;
  }
  
  .loader::after {
    animation: animPend2 1s linear infinite alternate;
    left: 100%;
  }
  
  @keyframes animPend {
    0% {
      transform: rotate(22deg);
    }
    50% {
      transform: rotate(0deg);
    }
  }
  
  @keyframes animPend2 {
    0%, 55% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(-22deg);
    }
  }

.loaded .loading-screen,
.loader-hidden {
    display: none;
}

/* Language Toggle Button */
.translate-btn {
  position: fixed;
  top: 230px;
  left: 20px;
  background-color: #D8D5BB;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

.translate-btn i {
  color: #3A4D67;
}

.translate-btn:hover {
  background-color: #3A4D67;
  transform: scale(1.05);
}

.translate-btn:hover i {
  color: #FFF;
}

.translate-btn.scrolled {
  top: 120px;
}

/* WhatsApp Icon */
.whatsapp-icon {
    z-index: 99;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
  }
  
  .whatsapp-icon i {
    font-size: 32px;
  }
  
  .whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 999;
  }
  
  .popup-container {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'Cairo', sans-serif;
    position: relative;
    width: 500px;
    max-height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  
  .popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-control {
    width: 100%;
    padding: 10px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #3A4D67;
    background: none;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
  }
  
  textarea.form-control {
    border: 2px solid #3A4D67;
    border-radius: 5px;
  }
  
  .form-control:focus {
    outline: none;
    border-color: #D8D5BB;
  }
  
  label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
  
  .required {
    color: red;
  }
  
  .btn {
    background-color: #3A4D67;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #2a3a4f;
  }

/* Top Contact Bar */
.top_contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.icon-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A4D67, #2a3a4f);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 15px;
}

.icon-container i {
  font-size: 20px;
  color: white;
}

.text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.label {
  font-weight: bold;
  font-size: 14px;
}

.value {
  font-size: 14px;
  color: #666;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .navbar img {
      max-width: 200px;
  }
  
  .menu {
    display: flex;
    list-style-type: none;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .menu li {
    padding: 0 20px;
  }
  
  .menu li a {
    text-decoration: none;
    font-size: 18px;
    color: #3A4D67;
    font-weight: bold;
    transition: ease-in 0.2s;
  }
  
  .menu a:hover {
      color: #D8D5BB;
  }
  
  .menu-icon {
    display: none;
    cursor: pointer;
  }
  
  .bar {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #3A4D67;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .navbar .btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3A4D67;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border: 2px solid #3A4D67;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .navbar .btn:hover {
    background-color: #D8D5BB;
    border-color: #D8D5BB;
    color: #3A4D67;
  }
  
  .navbar-fixed {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 999;
      animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  @keyframes slideDown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url("img/bg.jpg") center/cover no-repeat;
    height: 65vh;
    background-color: #3A4D67;
    color: #fff;
    text-align: center;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 77, 103, 0.774);
  }
  
  .hero-content {
    z-index: 9;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
  }
  
  .hero-title {
    position: relative;
    z-index: 1;
    font-size: 72px;
    font-weight: bold;
    color: #D8D5BB;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
  }
  
  .hero-description {
    position: relative;
    z-index: 1;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    color: #ddd;
  }

/* Goals Section */
.goals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin: -80px auto 60px;
    position: relative;
    z-index: 10;
  }
  
  .goal-card {
    max-width: 350px;
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #dfce97;
  }
  
  .goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .goal-card h3 {
    font-size: 18px;
    color: #3A4D67;
    margin-bottom: 15px;
    margin-right: 60px;
  }
  
  .goal-card ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    font-size: 15px;
    color: #333;
    text-align: right;
  }
  
  .goal-card li {
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
  .goal-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0b3064, #d8d5bb00);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
  }

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px;
    background-color: #3A4D67;
  }
  
  .about .logo {
    flex-shrink: 0;
  }
  
  .about .logo img {
    width: 200px;
    height: auto;
  }
  
  .about .text {
    flex-grow: 1;
    text-align: right;
    max-width: 800px;
  }
  
  .about h2 {
    font-size: 32px;
    font-weight: bold;
    color: #D8D5BB;
    margin-bottom: 5px;
  }
  
  .about h3 {
    font-size: 24px;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .about p {
    font-size: 16px;
    line-height: 1.8;
    color: #eee;
  }

/* Services Section */
.services_container {
    padding: 40px 20px;
}

.styled-header {
    text-align: center;
    position: relative;
    margin: 60px 0 40px 0;
  }
  
  .styled-header h2 {
    display: inline-block;
    font-size: 36px;
    color: #3A4D67;
    margin: 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
  }

  .styled-header p {
    color: #666;
    margin-top: 10px;
  }
  
  .styled-header::before,
  .styled-header::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10%;
    height: 2px;
    background-color: #D8D5BB;
  }
  
  .styled-header::before {
    right: 30%;
  }
  
  .styled-header::after {
    left: 30%;
  }

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
  }
  
  .service-card {
    padding: 20px;
    width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .service-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .img_container {
    width: 100%;
    height: 80px;
    position: relative;
    margin-bottom: 15px;
  }
  
  .img_container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(36, 61, 97, 0.055), rgba(11, 51, 107, 0.5));
    border-radius: 8px;
    pointer-events: none;
  }
  
  .service-card h3 {
    font-size: 18px;
    color: #3A4D67;
    margin: 15px 0 10px;
    font-weight: bold;
  }
  
  .service-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .service-card li {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    padding-right: 15px;
    position: relative;
    line-height: 1.6;
  }
  
  .service-card li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #D8D5BB;
    font-weight: bold;
  }

/* Vision Section */
.vision {
    padding: 60px 40px;
    margin-top: 40px;
    text-align: center;
    background: linear-gradient(135deg, #3A4D67, #2a3a4f);
  }
  
  .vision h2 {
    color: #D8D5BB;
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .vision h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D8D5BB;
  }
  
  .vision-content {
    max-width: 900px;
    margin: 30px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
  }
  
  .vision-content p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    text-align: center;
    margin: 0;
  }

/* Footer */
.footer {
    background-color: #3A4D67;
    color: #fff;
    padding: 40px 0 10px;
    font-family: 'Cairo', sans-serif;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 50px;
    gap: 20px;
  }
  
  .footer-section {
    min-width: 200px;
    margin-bottom: 20px;
  }
  
  .footer-logo {
    width: 300px;
  }
  
  .footer-section h3 {
    color: #D8D5BB;
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .footer-section ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    color: #D8D5BB;
  }
  
  .footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .footer-section i {
    color: #D8D5BB;
    margin-left: 8px;
  }
  
  .social-icons {
    display: flex;
    gap: 10px;
  }
  
  .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #D8D5BB;
    color: #3A4D67;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
  }
  
  .social-icon:hover {
    background-color: #fff;
    transform: scale(1.1);
    text-decoration: none;
  }
  
  .social-icon i {
    color: #3A4D67;
    margin: 0;
  }
  
  .social-icon:hover i {
    color: #3A4D67;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

/* Mobile Responsive */
@media (max-width: 768px) {
  .top_contact {
    display: none;
  }

  .navbar {
    padding: 10px;
  }

  .navbar img {
    width: 120px;
  }

  .menu {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .menu.active {
    z-index: 99;
    display: flex;
    flex-direction: column;
    background-color: #3A4D67;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 10px;
    animation: slideDownMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu.active li {
    padding: 15px;
    animation: fadeInItem 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
  }

  .menu.active li:nth-child(1) { animation-delay: 0.05s; }
  .menu.active li:nth-child(2) { animation-delay: 0.1s; }
  .menu.active li:nth-child(3) { animation-delay: 0.15s; }
  .menu.active li:nth-child(4) { animation-delay: 0.2s; }
  .menu.active li:nth-child(5) { animation-delay: 0.25s; }

  @keyframes fadeInItem {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .menu.active li a {
    color: #fff;
    font-size: 16px;
  }

  .navbar .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero {
    height: 50vh;
    background-position: right;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 14px;
  }

  .goals {
    gap: 20px;
    margin-top: -50px;
    flex-direction: column;
    align-items: center;
  }

  .goal-card {
    max-width: 90%;
    width: 100%;
  }

  .goal-card h3 {
    font-size: 15px;
    margin-right: 55px;
  }

  .goal-card ul {
    font-size: 12px;
  }

  .goal-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .about {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }

  .about .text {
    text-align: center;
  }

  .about .logo img {
    width: 150px;
  }

  .about h2 {
    font-size: 22px;
  }

  .about h3 {
    font-size: 18px;
  }

  .about p {
    font-size: 13px;
  }

  .styled-header h2 {
    font-size: 24px;
  }

  .styled-header p {
    font-size: 13px;
  }

  .services {
    gap: 20px;
  }

  .service-card {
    width: 100%;
    max-width: 350px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card li {
    font-size: 12px;
  }

  .vision {
    padding: 40px 20px;
  }

  .vision h2 {
    font-size: 24px;
  }

  .vision-content {
    padding: 20px;
  }

  .vision-content p {
    font-size: 13px;
  }

  .footer-content {
    padding: 0 20px;
    flex-direction: column;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-section p {
    font-size: 13px;
  }

  .footer-section ul li a {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .social-icons {
    justify-content: center;
  }

  .popup-container {
    width: 95%;
    padding: 20px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-control {
    font-size: 14px;
    padding: 8px;
  }

  label {
    font-size: 13px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .whatsapp-icon {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon i {
    font-size: 28px;
  }

  .translate-btn {
    top: 100px;
  left: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }
    .translate-btn.scrolled {
      top: 100px;
    }
}
