/* Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Titillium+Web:400,600');


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: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #0190b0;
    -webkit-mask:
      repeating-conic-gradient(#0000 0deg,#000 1deg 70deg,#0000 71deg 90deg),
      radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
            mask-composite: intersect;
    animation: l5 1s infinite;
}

@keyframes l5 {to{transform: rotate(.5turn)}}
/* Hide loading screen when JavaScript is loaded */
.loaded .loading-screen {
    display: none;
}
  .loader-hidden {
    display: none;
} 
/* Hide loading screen when JavaScript is loaded */
.loaded .loading-screen {
  display: none;
}
.loader-hidden {
    display: none;
}
.translate-btn {
  position: fixed;
  top: 120px;
  left: 30px;
  background-color: #ffffff;
  color: #015c70;
  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: 9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.language-en .translate-btn {
    right: 30px;
}
  
/* Button on left for Arabic */
body:not(.language-en) .translate-btn {
    left: 30px;
}

.translate-btn:hover {
  background-color: #cecece;
}
.translate-btn.scrolled {
  top: 10px;
}

@media (max-width: 768px) {
  /* Translate Button */
  .translate-btn {
    top: 100px;
    padding: 6px 10px;
    font-size: 12px;
  }
}





/* --- Navbar --- */

.navbar {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cairo';
    text-transform: uppercase;
}

.logo {
    font-size: 32px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #00a5cb;
}

.logo img {
    width: 60px;
    margin-right: 10px;
}

.logo strong {
    font-weight: 800;
    margin-right: 10px;
    text-shadow: 2px 2px 4px rgba(117, 117, 117, 0.5);
    -webkit-text-stroke: #00a5cb 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 50px;
}

.nav-links a {
    color: #00a5cb;
    position: relative;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
    padding: .5em .8em;
    position: relative;
    text-decoration: none;
    font-size: 20px;
}

.nav-links * {
    box-sizing: border-box;
    transition: all .35s ease;
  }

  
  .nav-links a::before,
  .nav-links a::after {
    content: '';
    height: 14px;
    width: 14px;
    position: absolute;
    transition: all .35s ease;
    opacity: 0;
  }
  
  .nav-links a::before {
    content: '';
    right: 0;
    top: 0;
    border-top: 3px solid #117c9d;
    border-right: 3px solid #117c9d;
    transform: translate(-100%, 50%);
  }
  
  .nav-links a:after {
    content: '';
    left: 0;
    bottom: 0;
    border-bottom: 3px solid #117c9d;
    border-left: 3px solid #117c9d;
    transform: translate(100%, -50%)
  }
  
  .nav-links a:hover:before,
  .nav-links a:hover:after{
    transform: translate(0,0);
    opacity: 1;
  }
  
  .nav-links a:hover {
    color: #117c9d;
  }
  
.nav-links a:hover:before,
.nav-links a:hover:after,
.nav-links a.active:before,
.nav-links a.active:after {
    transform: translate(0,0);
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: #117c9d;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #117c9d;
    margin: 2px 0;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px 15px;
    }
    .logo {
        font-size: 22px;
        text-decoration: none;
        display: flex;
        align-items: center;
        color: #00a5cb;
    }
    .logo img {
        width: 40px;
        margin-right: 5px;
    }
    .logo strong {
        margin-right: 5px;
    }
    .nav-links {
        z-index: 999;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(to right, #00a5cb 50%, #0190b0 50%);
        padding: 1rem;
    }
    .nav-links a {
        color: #fff;
        font-size: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    
  .nav-links a::before {
    content: '';
    right: 0;
    top: 0;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-100%, 50%);
  }
  
  .nav-links a:after {
    content: '';
    left: 0;
    bottom: 0;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translate(100%, -50%)
  }
  .nav-links a:hover,
  .nav-links a.active {
      color: #eee;
  }
}




/* --- Hero --- */

.hero {
    padding-top: 100px;
    position: relative;
    height: 400px;
    background: url("img/bg1.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.829) 0%, 
        rgba(0, 0, 0, 0.534) 50%, 
        rgba(0, 0, 0, 0.171) 100%
    );
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero .text {
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    -webkit-text-stroke: #fff 1px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.329);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}


@media screen and (max-width: 768px) {
    .hero {
        padding-top: 50px;
        position: relative;
        height: 200px;
    }
    .hero .text {
        margin-left: 5%;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}



/* --- Mid Text --- */

.mid-text {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    font-size: 22px;
    -webkit-text-stroke: #666 1px;
    text-transform: uppercase;
    color: #666;
}

@media (max-width: 768px){
    .mid-text {
        padding: 20px 15px;
        font-size: 16px;
        overflow: hidden;
    }
}

/* --- About --- */

.about {
    padding: 80px 0;
}

.about-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
}

.about-text {
    max-width: 800px;
    padding-right: 50px;
}

.about h2 {
    text-transform: uppercase;
    font-size: 36px;
    color: #117c9d;
    margin-bottom: 20px;
    font-weight: bold;
}

.about p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-btn {
    display: inline-block;
    background-color: #05ade0;
    color: #ffffff;
    font-size: 18px;
    padding: 8px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.about-btn:hover {
    background-color: #00c3ff;
}

@media screen and (max-width: 768px) {
    .about {
        padding: 50px 15px;
        margin-left: 5%;
    }
    .about-container {
        flex-direction: column-reverse;
    }

    .about img {
        max-width: 150px;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .about h2 {
        font-size: 24px;
    }

    .about p {
        font-size: 14px;
    }

    .about-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}


/* --- Vision Mission Goal --- */

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
  }
  
  .card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
    width: 300px;
    transition: transform 0.3s ease-in-out;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card h2 {
    color: #117c9d;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .card p {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
  }
  
  @media (max-width: 768px) {
    .card-container {
      padding: 20px 5px;
      flex-direction: column;
      align-items: center;
    }
    
    .card {
      width: 90%;
      max-width: 250px;
      margin: 20px 0;
    }
  }



  .styled-header {
    text-align: center;
    position: relative;
  }
  
  .styled-header p {
    color: #333;
  }
  
  .styled-header::before,
  .styled-header::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10%;
    height: 4px;
    background-color: #81c9c8;
  }
  
  .styled-header::before {
    right: 15%;
  }
  
  .styled-header::after {
    left: 15%;
  }

  @media (max-width: 768px){

    .styled-header::before {
        right: 10%;
        display: none;
    }

    .styled-header::after {
        left: 10%;
        display: none;
    }
}
  

/* --- Clients Section --- */

.clients {
    position: relative;
    padding: 100px 0;
    background-color: #f8f8f8;
    background: url("img/bg3.jpg");
    background-size: cover;
}

.clients::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.308);
    z-index: 1;
}

.clients .container {
    position: relative;
    z-index: 99;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.clients .styled-header {
    max-width: 800px;
    margin: 0 auto;
}

.clients h2 {
    font-size: 32px;
    color: #fff;
}
  
.client-logos {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
  
.logo-wrapper {
    flex: 0 1 calc(33.333% - 30px);
    max-width: 300px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
  
.logo-wrapper:hover {
    transform: translateY(-5px);
}
  
.logo-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
  
@media screen and (max-width: 992px) {
    .logo-wrapper {
      flex: 0 1 calc(50% - 30px);
    }
}
  
@media screen and (max-width: 768px) {
    .clients {
      padding: 40px 0;
    }
    
    .clients h2 {
        font-size: 24px;
    }

    .client-logos {
      gap: 20px;
    }

    .logo-wrapper {
      flex: 0 1 calc(50% - 20px);
      height: 80px;
      max-width: 300px !important;
    }
}
  
  @media screen and (max-width: 480px) {
    .logo-wrapper {
      flex: 0 1 100%;
      max-width: 100%;
    }
  }


/* --- Services.html --- */

  
/* ---  Services --- */
.desc {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.service {
    max-width: 1200px;
    padding: 100px 10px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.service img {
  width: 350px;
  height: 250px;
}

.service .text {
  width: 50%;
  padding: 0 20px;
}
.service h3 {
    font-size: 24px;
    margin: 0;
}
.service p {
    color: #333;
    font-size: 18px;
}
/* service @media */
@media (max-width: 1024px){
    .service {
        flex-wrap: wrap;
    }
    .service img {
        width: 100%;
    }
}
@media (max-width: 800px){
    .service {
        padding: 80px 15px;
    }
    .service img {
        margin: 20px 0;
        width: 100%;
    }
    .service h2 {
        font-size: 16px;
    }
    .service p {
        font-size: 14px;
    }
    .service .text {
        width: 100%;
    }
}


/* --- Contact.html --- */

.contact-form {
    padding: 60px 0;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .contact-form h2 {
    text-align: center;
    color: #117c9d;
    margin-bottom: 20px;
  }
  
  .contact-form p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
  }
  
  .form-group textarea {
    resize: vertical;
  }
  
  .submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #117c9d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: #0e6a84;
  }
  
  @media (max-width: 768px) {
    .contact-form {
      padding: 40px 0;
    }
    
    .container {
      padding: 0 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .submit-btn {
      font-size: 14px;
    }
    .form-group label {
      font-size: 14px;
    }
    .form-group input,
    .form-group textarea {
      max-width: 90%;
    }
  }


/* --- Footer Section --- */

.footer {
    background-color: #015c70;
    color: #eee;
    padding: 40px 0 5px 0;
    font-family: 'Cairo', sans-serif;
  }
  
  .footer-container {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 20px;
  }
  
  .footer-section {
    margin-bottom: 20px;
  }

  .footer-section img{
    width: 50px;
  }
  
  .footer-section h3 {
    color: #fff;
    position: relative;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;  /* Adjust this value to change the line width */
    height: 3px;  /* Adjust this value to change the line thickness */
    background-color: #fff;  /* Change this to match your color scheme */
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: #81c9c8;
  }
  
  .social-icons {
    display: flex;
    gap: 10px;
  }
  
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #117c9d;
    border-radius: 50%;
    transition: ease 0.3s;
  }

  .social-icon i {
    color: #117c9d;
}
  
  .social-icon:hover {
    background-color: #dcfcfb;
    color: #ffffff;
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  @media screen and (max-width: 768px) {
    .footer-container {
      flex-direction: column;
    }
  
    .footer-section {
      flex-basis: 100%;
      text-align: center;
    }
  
    .social-icons {
      justify-content: center;
    }
    .footer-section h3::after {
        display: none;
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;  /* Adjust this value to change the line width */
        height: 3px;  /* Adjust this value to change the line thickness */
        background-color: #fff;  /* Change this to match your color scheme */
    }
  }