/* Updated CSS with modern enhancements, animations, and bilingual support */
:root {
  --primary: #0a5f7a;
  --primary-light: #1a8ca3;
  --secondary: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --gold: #d3582d;
  --light-blue: #e9f5f9;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --container: 1200px;
  --spacing: 1.9rem;
  --spacing-lg: 2.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", "Poppins", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  position: relative;
}

[dir="ltr"] body {
  font-family: "Poppins", "Tajawal", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--spacing);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.section.active .section-header {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--primary);
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-lang {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
/* ======= Header Styles ======= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  background-color: white;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  overflow: hidden;
}

.header {
  background-color: white;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
@keyframes LogoFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0px);
  }
}
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  max-width: 400px;
    animation: LogoFloat 3s ease-in-out infinite;

}

.logo-image {
  max-width: 180px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0 15px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #2c3e50;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2a8ec7;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d3582d;
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* Header Responsive Design */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 950px) {
  .header {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 12px;
  }
}

@media (max-width: 850px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 15px 15px 10px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 10px 8px;
    gap: 8px;
  }

  .logo-image {
    max-width: 140px;
    max-height: 45px;
  }

  .nav-menu {
    gap: 6px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 13px;
    padding: 4px 2px;
  }
}
/* End Header Responsive Design */

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.language-label {
  color: #2c3e50;
  font-size: 13px;
  font-weight: 600;
}
/* Switch */

.custom-toggle {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 30px;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    position: relative;
    cursor: pointer;
    height: 100%;
    border-radius: 30px;
    background: #2a8ec7;
    overflow: hidden;
    transition: all 0.3s ease;
}

.toggle-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toggle-text {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 1;
    transition: all 0.3s ease;
}

.toggle-text.ar {
    right: 5px;
    width: 24px;
}

.toggle-text.en {
    left: 5px;
    width: 24px;
}

.toggle-input:checked + .toggle-label .toggle-handle {
    transform: translateX(38px);
}

.toggle-input:checked + .toggle-label .toggle-text.ar {
    opacity: 0.5;
}

.toggle-input:checked + .toggle-label .toggle-text.en {
    opacity: 1;
}

.toggle-input:not(:checked) + .toggle-label .toggle-text.ar {
    opacity: 1;
}

.toggle-input:not(:checked) + .toggle-label .toggle-text.en {
    opacity: 0.5;
}
/* End Switch */

.language-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
  z-index: 10000; /* Above mobile menu */
}

.language-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.nav-menu.closing {
  animation: slideFadeDown 0.4s ease reverse;
}
.language-content {
  text-align: center;
  color: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}

.language-overlay.active .language-content {
  transform: translateY(0);
  opacity: 1;
}

.language-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

/* End Language Toggle */

/* Language Toggle Responsiveness */
@media (max-width: 480px) {
    .custom-toggle {
        width: 58px;
        height: 26px;
    }
    
    .toggle-handle {
        width: 18px;
        height: 18px;
    }
    
    .toggle-input:checked + .toggle-label .toggle-handle {
        transform: translateX(32px);
    }
    
    .toggle-text {
        font-size: 10px;
    }
    .toggle-text.ar {
    right: 3px;
}

.toggle-text.en {
    left: 3px;
}
}

/* Mobile Menu - Completely redesigned */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Active/Hover states for mobile toggle */
.mobile-toggle:hover {
  transform: scale(1.05);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 27px;
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 27px;
}
/* ===== Improved Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0; /* For RTL layout */
  width: 320px; /* Fixed width instead of full screen */
  height: 100%;
  background: rgba(255, 255, 255, 0.95); /* Light semi-transparent background */
  backdrop-filter: blur(12px); /* Glass effect */
  z-index: 999;
  transform: translateX(100%); /* Start off-screen */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  border-left: 1px solid rgba(0, 0, 0, 0.05); /* Delicate border */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
}

/* For LTR languages */
[dir="ltr"] .mobile-menu-overlay {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 8px 0 25px rgba(0, 0, 0, 0.15);
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 9999;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu-close {
  background: rgba(10, 95, 122, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(10, 95, 122, 0.2);
  transform: rotate(90deg);
}

.mobile-nav-menu {
  padding-top: 20px;
}

.mobile-nav-item {
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(15px);
}

.mobile-nav-item a {
  display: block;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
  position: relative;
  background: rgba(10, 95, 122, 0.03);
}

.mobile-nav-item a:hover {
  background: rgba(10, 95, 122, 0.08);
  transform: translateX(-5px);
}

.mobile-nav-item a:hover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 4px;
  background: var(--gold);
  border-radius: 0 10px 10px 0;
}

/* Animation for menu items */
.mobile-menu-overlay.active .mobile-nav-item {
  animation: slideFadeIn 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation delays for items */
.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(7) { animation-delay: 0.7s; }
/* Mobile menu responsive adjustments */
@media (max-width: 850px) {
  .mobile-toggle {
    display: flex;
  }
  
  /* Hide the old nav-menu that was previously used for mobile */
  .nav-menu {
    display: none !important;
  }
  
  .mobile-menu-close {
    font-size: 2.2rem;
  }
  
  .mobile-nav-item a {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Smaller screens */

@media (max-width: 580px) {
  .language-text {
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  /* Language toggle positioning */
  .language-toggle {
    position: absolute;
    top: 25px;
    right: 70px;
    min-width: auto;
  }
}
  /* Hero Carousel Styles */
        .hero {
     height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
              background-size: cover;
  background-position: center;

            text-align: center;
        }
        
        .hero-carousel {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
        }
        
     .hero-slide {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          opacity: 0;
          transition: opacity 1.5s ease-in-out;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
        }
        
        .hero-slide.active {
          opacity: 1;
          z-index: 1;
        }
        
        .hero-slide::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: linear-gradient(rgba(10, 95, 122, 0.7), rgba(10, 95, 122, 0.8));
        }
        
        .hero-content {
          max-width: 800px;
          color: white;
          margin: 0 auto;
          padding-top: 80px;
          position: relative;
          z-index: 2;
          animation: zoomIn 1.2s ease-out forwards;
        }
        
        @keyframes zoomIn {
          0% {
            transform: scale(0.9);
            opacity: 0;
          }
          100% {
            transform: scale(1);
            opacity: 1;
          }
        }
        
        .hero h1 {
          color: white;
          font-size: 3.5rem;
          margin-bottom: 1.5rem;
          line-height: 1.2;
          text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
          animation: fadeInUp 1s ease-out 0.3s forwards;
          opacity: 0;
        }
        
        .hero p {
          font-size: 1.5rem;
          margin-bottom: 2.5rem;
          opacity: 0.9;
          max-width: 700px;
          margin-left: auto;
          margin-right: auto;
          text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
          animation: fadeInUp 1s ease-out 0.6s forwards;
          opacity: 0;
        }
        
        .hero .btn {
          animation: fadeInUp 1s ease-out 0.9s forwards;
          opacity: 0;
        }
        
        @keyframes fadeInUp {
          0% {
            transform: translateY(30px);
            opacity: 0;
          }
          100% {
            transform: translateY(0);
            opacity: 1;
          }
        }
        
        .wave-overlay {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 100px;
          background-size: cover;
          background-position: bottom;
          z-index: 3;
        }
        
        .carousel-controls {
          position: absolute;
          bottom: 30px;
          left: 50%;
          transform: translateX(-50%);
          z-index: 10;
          display: flex;
          gap: 10px;
        }
        
        .carousel-indicator {
          width: 12px;
          height: 12px;
          border-radius: 50%;
          background: rgba(255, 255, 255, 0.5);
          cursor: pointer;
          transition: all 0.3s ease;
        }
        
        .carousel-indicator.active {
          background: white;
          transform: scale(1.2);
        }
     
        
       /* Hero Responsive */
@media (max-width: 768px) {
  .hero .hero-carousel .hero-slide:nth-child(4) {
    background-image: url('images/LogoHeroMobile.png') !important;
  }
}
/* End Hero Section */

/* About Section */
.about {
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 500px;
  background: url("./images/AboutUsCover.png") center/cover;
  animation: float 6s ease-in-out infinite;
}

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

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.quote {
  background: rgba(10, 95, 122, 0.05);
  border-right: 4px solid var(--gold);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

/* Vision/Mission/Values */
.core-values {
  background: linear-gradient(to bottom, #0a5f7a, #1a8ca3);
  color: white;
  padding: 6rem 0;

  overflow: hidden;
}
.core-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path fill="%23ffffff" opacity="0.1" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"/></svg>');
  background-size: 50% 100%;
  animation: waveBackground 25s linear infinite;
}

@keyframes waveBackground {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.value-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.value-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.value-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.value-item:nth-child(1) {
  animation-delay: 0.1s;
}
.value-item:nth-child(2) {
  animation-delay: 0.2s;
}
.value-item:nth-child(3) {
  animation-delay: 0.3s;
}
.value-item:nth-child(4) {
  animation-delay: 0.4s;
}
.value-item:nth-child(5) {
  animation-delay: 0.5s;
}

.value-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.2) rotate(10deg);
}

.value-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.value-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    box-shadow 0.3s ease;
}

.service-card:nth-child(1) {
  transition-delay: 0.1s;
}
.service-card:nth-child(2) {
  transition-delay: 0.2s;
}
.service-card:nth-child(3) {
  transition-delay: 0.3s;
}
.service-card:nth-child(4) {
  transition-delay: 0.4s;
}
.service-card:nth-child(5) {
  transition-delay: 0.5s;
}

.section.active .service-card {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  animation: waveRipple 1.5s ease-out;
}

@keyframes waveRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 95, 122, 0.3);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(10, 95, 122, 0);
  }
}

.service-img-container {
  height: 220px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img-container {
  transform: scale(1.05);
}

.service-content {
  padding: 1.8rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-content p {
  color: #555;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-item:nth-child(1) {
  transition-delay: 0.1s;
}
.contact-item:nth-child(2) {
  transition-delay: 0.2s;
}
.contact-item:nth-child(3) {
  transition-delay: 0.3s;
}

.section.active .contact-item {
  opacity: 1;
  transform: translateX(0);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-right: 4px solid var(--gold);
}

.contact-icon {
  background: var(--light-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(15deg) scale(1.1);
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-text p {
  color: #555;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 250px;
  background: #e9f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.6s ease-out 0.4s;
}

.section.active .contact-map {
  opacity: 1;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: fadeInRight 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.9rem 2.5rem 0.9rem 1.2rem; /* Added more right padding */
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin: 10px;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 95, 122, 0.2);
  transform: translateY(-2px);
}

/* Subscribe Section */
.subscribe {
  background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.subscribe-content {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.subscribe h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.subscribe h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
}

.subscribe p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.subscribe-form {
  max-width: 500px;
  margin: 0 auto 1rem;
}

.input-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-container .form-control {
  width: 100%;
  padding: 1.1rem 3.5rem 1.1rem 1.5rem;
  border: none;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  text-align: right;
  direction: rtl;
}

.btn-subscribe {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-subscribe:hover {
  background: #e6c260;
  transform: translateY(-50%) scale(1.1);
}

.subscribe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
}


/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-about {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.footer-about p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white !important; /* Ensure icons are always white */
}

/* Facebook */
.social-link:nth-child(1) {
  background: #3b5998; /* Facebook blue */
}

.social-link:nth-child(1):hover {
  background: #344e86; /* Darker Facebook blue */
}

/* Twitter */
.social-link:nth-child(2) {
  background: #1da1f2; /* Twitter blue */
}

.social-link:nth-child(2):hover {
  background: #0d95e8; /* Darker Twitter blue */
}

/* LinkedIn */
.social-link:nth-child(3) {
  background: #0077b5; /* LinkedIn blue */
}

.social-link:nth-child(3):hover {
  background: #00669c; /* Darker LinkedIn blue */
}

/* Instagram */
.social-link:nth-child(4) {
  background: #e1306c; /* Instagram pink */
}

.social-link:nth-child(4):hover {
  background: #c1225b; /* Darker Instagram pink */
}

.social-link:nth-child(5) {
  background: black; /* Vibrant TikTok pink */
}

.social-link:nth-child(5):hover {
  background: #333333; /* Dark gray on hover for subtle feedback */
}
/* Optional: Add hover animations */
.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

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

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  transform: translateX(5px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-wave {
  height: 150px;
  animation: waveMove 30s linear infinite;
}

/* Alert Animation */
.custom-alert {
  animation: alertIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes alertIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content,
  .contact-container,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-about {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* LTR Things */

.ltr-layout {
  direction: ltr;
  text-align: left;
}

.ltr-layout .navbar {
  justify-content: flex-start;
}

.ltr-layout .nav-links {
  margin-left: auto;
  margin-right: 0;
}

.ltr-layout .about-content {
  direction: ltr;
}

.ltr-layout .about-text {
  order: 1;
}

.ltr-layout .about-img {
  order: 2;
}

.ltr-layout .contact-container {
  direction: ltr;
}

.ltr-layout .contact-info {
  order: 1;
}

.ltr-layout .contact-form {
  order: 2;
}

.ltr-layout .quote {
  border-right: none;
  border-left: 4px solid var(--gold);
}

.ltr-layout .contact-icon {
  margin-right: 1rem;
  margin-left: 0;
}

.ltr-layout .form-group label {
  text-align: left;
}

.ltr-layout .input-container .form-control {
  text-align: left;
  direction: ltr;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
}

.ltr-layout .btn-subscribe {
  left: auto;
  right: 10px;
}

@keyframes slideFadeDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 850px) {


  .logo-image {
    max-width: 250px; /* Increased from 140px */
    max-height: 250px; /* Increased from 45px */
  }


  .language-label {
    font-size: 12px;
    display: none;
  }


}





/* Visitor counter styles & Responsive */
.footer-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.counter-icon {
  font-size: 1.4rem;
  color: var(--gold);
  background: rgba(42, 190, 176, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-text {
  display: flex;
  flex-direction: column;
}

.counter-text .counter-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: white;
  letter-spacing: -1px;
}

.counter-text span {
  font-size: 0.9rem;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

/* Counter animation */
@keyframes countUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-counter {
    padding: 12px 16px;
    max-width: 240px;
  }
  
  .counter-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  
  .counter-text .counter-number {
    font-size: 1.5rem;
  }
}

/* End Visitor counter styles & Responsive */


 /* ====== Chat Widget Styles ====== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Tajawal', 'Poppins', sans-serif;
  direction: rtl;
  
  /* Closed state dimensions */
  width: 70px;
  height: 70px;
  
  /* Smooth transition for open/close */
}
.chat-widget.open {
  width: auto;
  height: auto;
  overflow: visible; /* Shows full content when open */

}
.chat-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    overflow: hidden;
    bottom: 0;

}

        .chat-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.4s ease;
        }

        .chat-btn:hover::before {
            transform: scale(1.5);
        }

        .chat-btn:hover {
            transform: translateY(-5px) rotate(10deg);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .chat-btn.pulse {
            animation: pulse 2s infinite;
        }

      

        .chat-container {
            width: 350px;
            height: 500px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            transform: scale(0);
            transform-origin: bottom right;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .chat-container.active {
            transform: scale(1);
            opacity: 1;
        }

        .chat-header {
            background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
            color: white;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: 20px 20px 0 0;
        }

        .chat-header h3 {
            margin: 0;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chat-header h3 i {
            color: white;
        }

        .close-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .close-btn:hover {
            transform: rotate(90deg);
        }

        .agent-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            margin-top: 5px;
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #4caf50;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f9fbfd;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message {
            max-width: 80%;
            padding: 12px 15px;
            border-radius: 18px;
            position: relative;
            animation: fadeIn 0.4s ease forwards;
            opacity: 0;
            transform: translateY(10px);
        }

        .message.user {
            align-self: flex-end;
            background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
            color: white;
            border-bottom-right-radius: 5px;
        }

        .message.agent {
            align-self: flex-start;
            background: #e9f5f9;
            color: #333;
            border-bottom-left-radius: 5px;
        }

        .message.typing {
            background: #e9f5f9;
            width: 80px;
            padding: 15px;
        }

        .message-time {
            display: block;
            font-size: 0.7rem;
            opacity: 0.7;
            margin-top: 5px;
            text-align: right;
        }

        .chat-input {
            padding: 15px;
            background: white;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }

        .chat-input input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 30px;
            outline: none;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .chat-input input:focus {
            border-color: #0a5f7a;
        }

        .send-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0a5f7a, #1a8ca3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .send-btn:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 4px 10px rgba(10, 95, 122, 0.3);
        }

        .typing-indicator {
            display: flex;
            gap: 5px;
            align-items: center;
            padding: 5px 0;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #0a5f7a;
            opacity: 0.5;
            animation: typing 1.4s infinite;
        }

        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }

        /* Animations */
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(10, 95, 122, 0.6); }
            70% { box-shadow: 0 0 0 15px rgba(10, 95, 122, 0); }
            100% { box-shadow: 0 0 0 0 rgba(10, 95, 122, 0); }
        }


        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes typing {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
            30% { transform: translateY(-5px); opacity: 1; }
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .chat-container {
                width: 90vw;
                height: 80vh;
                max-height: 500px;
            }
            
            .chat-widget {
                bottom: 15px;
                right: 15px;
            }
            
            .chat-btn {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
        }

        /* LTR support */
        [dir="ltr"] .chat-widget {
            right: auto;
            left: 30px;
        }
        
        [dir="ltr"] .chat-container.active {
            transform-origin: bottom left;
        }
        
        [dir="ltr"] .message.user {
            border-bottom-right-radius: 18px;
            border-bottom-left-radius: 5px;
        }
        
        [dir="ltr"] .message.agent {
            border-bottom-left-radius: 18px;
            border-bottom-right-radius: 5px;
        }
        
        [dir="ltr"] .message-time {
            text-align: left;
        }

 /* ====== End Chat Widget Styles ====== */
