/*--------------------------------------------------------------
# 1. CSS VARIABLES & ROOT SETTINGS
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --default-font: "Vazirmatn", sans-serif;
  --heading-font: "Vazirmatn", sans-serif;
  --nav-font: "Vazirmatn", sans-serif;

  /* Colors */
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #555555;
  
  /* Primary & Secondary Colors */
  --primary-color: #116967;
  --secondary-color: #323A45;
  --accent-color: #3498db;
  
  /* Hover Colors */
  --primary-hover: #0e5655;
  --secondary-hover: #272e37;
  
  /* Light Variants */
  --primary-light: rgba(17, 105, 103, 0.1);
  --secondary-light: rgba(50, 58, 69, 0.1);
  
  /* RGB Values for utilities */
  --primary-rgb: 17, 105, 103;
  --secondary-rgb: 50, 58, 69;
  
  /* Shadows */
  --primary-shadow: rgba(17, 105, 103, 0.3);
  --secondary-shadow: rgba(50, 58, 69, 0.3);
  
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Color Presets */
.light-background {
  --background-color: #f7fcfc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: var(--primary-color);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: var(--primary-color);
}

/*--------------------------------------------------------------
# 2. GLOBAL STYLES
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# 3. REUSABLE COMPONENTS
--------------------------------------------------------------*/

/* Pulsating Play Button */
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--primary-color) 50%, color-mix(in srgb, var(--secondary-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation: pulsate-play-btn 2s infinite;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--primary-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  animation: none;
  border: none;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--primary-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Page Titles & Breadcrumbs */
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Global Sections */
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 120px;
  overflow: clip;
}

/* Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(
  135deg,
  #116967 0%,
  #1a7f7b 25%,
  #53b6b3 50%,
  #116967 75%,
  #323A45 100%
);
background-size: 200% 200%;
animation: shine 4s ease-in-out infinite;


  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.section-title p {
  margin-bottom: 0;
}

/* Call To Action */
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--default-color);
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 4px;
  transition: 0.3s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: var(--contrast-color);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}
/*--------------------------------------------------------------
# 4. HEADER & NAVIGATION
--------------------------------------------------------------*/
.header {
  position: relative;
  z-index: 1000;
}

/* Logo Section */
.logo-section {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: 25px 0;
  border-bottom: 1px solid var(--primary-light);
}

.logo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.main-logo-wrapper {
  flex: 1;
}

.main-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-logo:hover {
  transform: translateY(-2px);
}

.logo-image {
  flex-shrink: 0;
}

.logo-image img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.main-logo:hover .logo-image img {
  transform: scale(1.05);
}

.logo-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0 0 8px 0;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.main-logo:hover .logo-text h1 {
  color: var(--primary-color);
}

.logo-text p {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 500;
}

/* Contact Info */
.contact-info {
  flex-shrink: 0;
}

.contact-card {
  display: flex;
  gap: 30px;
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 20px;
  border: 1px solid var(--primary-light);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--primary-shadow);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 15px var(--primary-shadow);
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 2px 0;
  font-weight: 500;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin: 0;
}

/* Navigation Bar */

.navbar-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}


.sticky-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

.navbar-section.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.navmenu {
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link  {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 22px !important;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-item:hover .nav-link::before {
  width: 85%;
}

.nav-link:hover,
.nav-item:hover .nav-link {
  color: white;
  background: rgba(255, 255, 255, 0.258);
backdrop-filter: blur(4px);

}

.nav-link:focus,
.nav-link:focus-visible,
.nav-link:visited,
.nav-item:focus-within .nav-link,
.nav-link:active,
.nav-item:active .nav-link,
.show > .nav-link {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  backdrop-filter: blur(4px);
  border-color: transparent !important;
  outline: none !important;
}


/* Dropdown */
.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  padding: 15px 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 25px;
  color: var(--secondary-color);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  
  font-weight: 500;
  text-align: start; 
}


.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Language Switcher */
.navbar-actions {
  flex-shrink: 0;
  margin-left: 25px;
}

.language-selector {
  position: relative;
  padding: 5px;
}

.language-selector .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px !important;
  background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(4px);

  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-shadow);
  border: none;
}

.language-selector .nav-link::before {
  display: none;
}

.language-selector .nav-link:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-shadow);
  color: white;
}

.language-selector .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 150px;
  margin-top: 5px;
}

.language-selector .dropdown-item {
  text-align: center;
  font-weight: 500;
}

/* Mobile Navigation */
.mobile-nav-wrapper {
  display: none;

}

.mobile-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: absolute;
  right: 30px;
  top: 5px;  
  z-index: 1001;
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background:whitesmoke;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  right: 0;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(20px);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  scroll-behavior: smooth;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

/* Mobile Navigation Header */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.mobile-logo span {
  font-weight: 600;
  font-size: 1rem;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Mobile Menu */
.mobile-nav-menu {
  padding: 30px 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: 5px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  direction: rtl;
}

.mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  transform: translateX(10px);
}

.mobile-nav-link i {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
  opacity: 1;
  transform: translateX(5px);
}

/* Mobile Dropdown */
.mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--primary-light);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-item.dropdown-active .mobile-dropdown-menu {
  max-height: 300px;
  padding: 10px 0;
}

.mobile-nav-item.dropdown-active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-link {
  display: block;
  padding: 12px 50px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  direction: rtl;
}

.mobile-dropdown-link:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-left-color: var(--secondary-color);
  transform: translateX(10px);
}

/* Mobile Language Section */
.mobile-language-section {
  padding: 25px;
  border-top: 1px solid var(--primary-light);
  margin-top: 20px;
}

.mobile-language-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 500;
}

.mobile-language-options {
  display: flex;
  gap: 10px;
}

.mobile-lang-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--secondary-color);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.mobile-lang-btn:hover,
.mobile-lang-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--primary-shadow);
}

/* Mobile Contact Section */
.mobile-contact-section {
  padding: 25px;
  border-top: 1px solid var(--primary-light);
  background: var(--primary-light);
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.mobile-contact-item:last-child {
  margin-bottom: 0;
}

.mobile-contact-item i {
  width: 20px;
  color: var(--primary-color);
  font-size: 1rem;
}

.mobile-contact-item span {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Body lock when mobile menu is open */
body.mobile-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Custom Scrollbar */
.mobile-nav-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-nav-content::-webkit-scrollbar-track {
  background: var(--primary-light);
}

.mobile-nav-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ===========================
   Hero Section - 75% Height with Image Motion
   =========================== */

.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

/* Animated Background Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Carousel Styling - 75% Height */
.carousel-item {
    height: 75vh;
    position: relative;
}

.parallax-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    position: relative;
    transition: transform 0.1s ease-out;
}

/* Image Motion Layers */
.image-motion-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    z-index: 2;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.layer-1 {
    background-image: inherit;
    animation: imageRotate 30s linear infinite;
    opacity: 0.05;
}

.layer-2 {
    background-image: inherit;
    animation: imagePulse 20s ease-in-out infinite;
    opacity: 0.1;
}

.layer-3 {
    background-image: inherit;
    animation: imageSlide 25s linear infinite reverse;
    opacity: 0.08;
}

@keyframes imageRotate {
    from {
        transform: rotate(0deg) scale(1.1);
    }
    to {
        transform: rotate(360deg) scale(1.1);
    }
}

@keyframes imagePulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2) translate(20px, -20px);
        opacity: 0.15;
    }
}

@keyframes imageSlide {
    0% {
        transform: translate(-10%, -10%);
    }
    25% {
        transform: translate(-15%, -5%);
    }
    50% {
        transform: translate(-5%, -15%);
    }
    75% {
        transform: translate(-12%, -8%);
    }
    100% {
        transform: translate(-10%, -10%);
    }
}

.image-overlay-motion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 70%
    );
    animation: imageShimmer 8s ease-in-out infinite;
    z-index: 3;
}

@keyframes imageShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Parallax Effect */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Dynamic zoom on slide activation */
.carousel-item.active .hero-slide {
    animation: heroSlideZoom 6s ease-out forwards;
}

@keyframes heroSlideZoom {
    0% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Carousel Overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

/* Content Wrapper */
.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Title */
.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(
  135deg,
  #116967 0%,
  #1a7f7b 25%,
  #53b6b3 50%,
  #116967 75%,
  #323A45 100%
);
background-size: 200% 200%;
animation: shine 4s ease-in-out infinite;

    margin: 24px auto 0;
    border-radius: 2px;
   
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Hero Description */
.hero-description {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s ease, height 0.6s ease, top 0.6s ease, left 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 12px 30px var(  --heading-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.carousel-control {
    position: absolute;
    top: 300px; 
    transform: translateY(-50%);
    width: 50px;  
    height: 50px;  
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; 
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    animation: fadeInControl 0.5s ease 1s forwards;
    padding: 0; 
}

@keyframes fadeInControl {
    to {
        opacity: 1;
    }
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.control-text {
    display: none;
}


/* Carousel Indicators - Positioned for 75% height */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    margin: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background: #fff;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Animation Classes */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Apply delay from data attribute */
.animate-fade-in-up[data-delay="0.2s"] {
    animation-delay: 0.2s;
}

.animate-fade-in-up[data-delay="0.4s"] {
    animation-delay: 0.4s;
}

.animate-fade-in-up[data-delay="0.6s"] {
    animation-delay: 0.6s;
}

.animate-fade-in-up[data-delay="0.8s"] {
    animation-delay: 0.8s;
}

/* RTL Support */
.hero-rtl .content-wrapper {
    direction: rtl;
}

.hero-rtl .btn i {
    transform: rotate(180deg);
}

.hero-rtl .btn:hover i {
    transform: rotate(180deg) translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
        min-height: 500px;
    }

    .carousel-item {
        height: 75vh;
    }

    .hero-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    .hero-description {
        font-size: clamp(14px, 3vw, 18px);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .carousel-control {
        padding: 12px 16px;
    }

    .control-text {
        display: none;
    }

    .shape-1, .shape-2, .shape-3 {
        width: 100px;
        height: 100px;
    }

    .image-motion-element {
        width: 110%;
        height: 110%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .carousel-item {
        height: 70vh;
    }
}


/* Responsive - الشاشات الصغيرة */
@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/*--------------------------------------------------------------
# 6. FEATURED SERVICES SECTION
--------------------------------------------------------------*/
.featured-services {
  padding: 80px 0;
  background: linear-gradient(135deg, 
    var(--primary-light) 0%, 
    var(--secondary-light) 0.03) 50%, 
    var(--primary-light) 100%;
  position: relative;
  overflow: hidden;
}

.featured-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  z-index: 1;
}

.featured-services .container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.section-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-header .section-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-item {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--primary-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
    background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--secondary-light) 5%
);

  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-item:hover .service-background {
  opacity: 1;
}

.service-content {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  margin-bottom: 25px;
  position: relative;
}

.icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px var(--primary-shadow);
  position: relative;
  overflow: hidden;
}

.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover .icon::before {
  opacity: 1;
}

.icon i {
  font-size: 2rem;
  color: white;
  z-index: 1;
  position: relative;
}

.service-item:hover .icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px var(--primary-shadow);
}

.service-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.service-item h4 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.service-item:hover h4 a {
  color: var(--primary-color);
}

.service-item p {
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-arrow {
  text-align: center;
  margin-top: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateY(0);
}

.service-item:hover .service-arrow i {
  color: var(--primary-color);
   font-size: 1.2rem;
  transform: translateX(3px);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(17, 105, 103, 0.2);
}

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

.service-item:nth-child(odd) .icon {
  animation: float 6s ease-in-out infinite;
}

.service-item:nth-child(even) .icon {
  animation: float 6s ease-in-out infinite reverse;
}

/*--------------------------------------------------------------
# 7. ABOUT SECTION
--------------------------------------------------------------*/
/* Modern About Section - Fixed for Language Direction */
.modern-about {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(17, 105, 103, 0.02) 0%, rgba(255, 255, 255, 1) 50%, rgba(50, 58, 69, 0.02) 100%);
  position: relative;
  overflow: hidden;
  
  /* تحديد الاتجاه الأساسي */
  direction: ltr; /* افتراضي للإنجليزية */
  text-align: left; /* افتراضي للإنجليزية */
}

.modern-about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--secondary-light) 5%, transparent 60%);
  pointer-events: none;
}

.modern-about .title-badge {
  display: inline-flex;
  align-items: center !important;
  gap: 10px;
  background: linear-gradient(135deg, rgba(17, 105, 103, 0.1), var(--secondary-light) 0.1);
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(17, 105, 103, 0.2);
  
  /* تحديد الاتجاه للعناصر */
  direction: inherit;
  text-align: left;
}

.modern-about .title-badge i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.modern-about .title-badge span {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.modern-about .section-title {
  text-align: center;
}

.modern-about .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.modern-about .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
  text-align: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  
  /* تحديد الاتجاه */
  direction: ltr;
}

.image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--secondary-color);
  border-radius: 30px;
  z-index: -1;
}

.about-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-main-image {
  transform: scale(1.05);
}

.modern-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(17, 105, 103, 0.4);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-badge i {
  font-size: 2rem;
  color: #fff;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.badge-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.mission-card {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 25px;
  padding: 35px;
  margin-bottom: 30px;
  border: 2px solid rgba(17, 105, 103, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s ease;
}

.mission-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(17, 105, 103, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(17, 105, 103, 0.3);
}

.card-icon i {
  font-size: 1.8rem;
  color: white;
}

.card-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.card-content p {
  color: #666;
  line-height: 1.7;
  margin: 0;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.about-content-modern {
  /* تحديد الاتجاه الأساسي */
  text-align: left;
  direction: ltr;
}

.goals-section {
  background: white;
  border-radius: 25px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.goals-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(17, 105, 103, 0.1);
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.goals-header i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.goals-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.modern-goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.modern-goals-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  padding: 15px;
  background: rgba(17, 105, 103, 0.03);
  border-radius: 15px;
  transition: all 0.3s ease;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

.modern-goals-list li:hover {
  background: rgba(17, 105, 103, 0.08);
  transform: translateX(-5px);
}

.goal-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-icon i {
  color: white;
  font-size: 0.9rem;
}

.modern-goals-list li span {
  color: #444;
  line-height: 1.6;
  padding-top: 5px;
  
  /* تحديد الاتجاه */
  text-align: left;
  direction: ltr;
}

/* ==========================================
   LANGUAGE DIRECTION STYLES FOR ABOUT SECTION
   ========================================== */

/* للعربية: نضمن أن كل شيء يتبع الاتجاه الصحيح */
.modern-about.hero-rtl,
.modern-about.about-rtl {
  direction: rtl !important;
  text-align: right !important;
}


.modern-about.hero-rtl .section-subtitle,
.modern-about.about-rtl .section-subtitle {
  text-align: right !important;
  margin: 0 auto 60px;
}

.modern-about.hero-rtl .about-image-wrapper,
.modern-about.about-rtl .about-image-wrapper {
  direction: rtl !important;
}

.modern-about.hero-rtl .card-content h3,
.modern-about.hero-rtl .card-content p,
.modern-about.about-rtl .card-content h3,
.modern-about.about-rtl .card-content p {
  text-align: right !important;
  direction: rtl !important;
}

.modern-about.hero-rtl .goals-section,
.modern-about.about-rtl .goals-section {
  text-align: right !important;
  direction: rtl !important;
}

.modern-about.hero-rtl .goals-header,
.modern-about.about-rtl .goals-header {
  text-align: right !important;
  direction: rtl !important;
}

.modern-about.hero-rtl .goals-header h3,
.modern-about.about-rtl .goals-header h3 {
  text-align: right !important;
  direction: rtl !important;
}

.modern-about.hero-rtl .modern-goals-list,
.modern-about.about-rtl .modern-goals-list {
  text-align: right !important;
  direction: rtl !important;
}

.modern-about.hero-rtl .modern-goals-list li,
.modern-about.about-rtl .modern-goals-list li {
  text-align: right !important;
  direction: rtl !important;
  transform: translateX(5px); /* تأثير معكوس */
}

.modern-about.hero-rtl .modern-goals-list li:hover,
.modern-about.about-rtl .modern-goals-list li:hover {
  transform: translateX(5px); /* تأثير معكوس للـ hover */
}

.modern-about.hero-rtl .modern-goals-list li span,
.modern-about.about-rtl .modern-goals-list li span {
  text-align: right !important;
  direction: rtl !important;
}

/* للإنجليزية: نضمن أن النص يذهب لليسار بشكل صحيح */
.modern-about.hero-ltr,
.modern-about.about-ltr {
  direction: ltr !important;
  text-align: left !important;
}

.modern-about.hero-ltr .section-title,
.modern-about.about-ltr .section-title {
  text-align: center !important;
}

.modern-about.hero-ltr .section-subtitle,
.modern-about.about-ltr .section-subtitle {
  text-align: center !important;
}

.modern-about.hero-ltr .about-image-wrapper,
.modern-about.about-ltr .about-image-wrapper {
  direction: ltr !important;
}

/* RTL - Arabic */
.modern-about.hero-rtl .floating-badge,
.modern-about.about-rtl .floating-badge {
  bottom: 30px;
  right: 30px;
  left: auto !important;
}

/* LTR - English */
.modern-about.hero-ltr .floating-badge,
.modern-about.about-ltr .floating-badge {
  bottom: 30px;
  left: 30px;
  right: auto !important;
}


.modern-about.hero-ltr .card-content h3,
.modern-about.hero-ltr .card-content p,
.modern-about.about-ltr .card-content h3,
.modern-about.about-ltr .card-content p {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .goals-section,
.modern-about.about-ltr .goals-section {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .goals-header,
.modern-about.about-ltr .goals-header {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .goals-header h3,
.modern-about.about-ltr .goals-header h3 {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .modern-goals-list,
.modern-about.about-ltr .modern-goals-list {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .modern-goals-list li,
.modern-about.about-ltr .modern-goals-list li {
  text-align: left !important;
  direction: ltr !important;
}

.modern-about.hero-ltr .modern-goals-list li span,
.modern-about.about-ltr .modern-goals-list li span {
  text-align: left !important;
  direction: ltr !important;
}

/* تحسين للشاشات المختلفة */
@media (max-width: 768px) {
  .modern-about .section-title h2 {
    font-size: 2rem;
  }
  
  .modern-about.hero-rtl .modern-goals-list li:hover,
  .modern-about.about-rtl .modern-goals-list li:hover {
    transform: none; /* إلغاء التأثير في الشاشات الصغيرة */
  }
  
  .modern-about.hero-ltr .modern-goals-list li:hover,
  .modern-about.about-ltr .modern-goals-list li:hover {
    transform: none; /* إلغاء التأثير في الشاشات الصغيرة */
  }
}
/*--------------------------------------------------------------
# 8. STATS SECTION
--------------------------------------------------------------*/
.stats .stats-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.stats .stats-item i {
  color: var(--accent-color);
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
}

.stats .stats-item span {
  color: var(--heading-color);
  font-size: 36px;
  display: block;
  font-weight: 600;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# 9. APPOINTMENT SECTION
--------------------------------------------------------------*/
.appointment .php-email-form {
  width: 100%;
}

.appointment .php-email-form .form-group {
  padding-bottom: 8px;
}

.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px !important;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--accent-color);
}

.appointment .php-email-form input::placeholder,
.appointment .php-email-form textarea::placeholder,
.appointment .php-email-form select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.appointment .php-email-form input,
.appointment .php-email-form select {
  height: 44px;
}

.appointment .php-email-form textarea {
  padding: 10px 12px;
}

.appointment .php-email-form button[type=submit] {
  background: var(--accent-color);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.appointment .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# 10. TABS SECTION
--------------------------------------------------------------*/
.tabs {
  overflow: hidden;
}

.tabs .nav-tabs {
  border: 0;
}

.tabs .nav-link {
  border: 0;
  padding: 12px 15px 12px 0;
  transition: 0.3s;
  color: var(--default-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
}

.tabs .nav-link:hover {
  color: var(--accent-color);
}

.tabs .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.tabs .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.tabs .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tabs .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.tabs .details p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# 11. TESTIMONIALS SECTION
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: -40px 0 0 40px;
  position: relative;
  z-index: 2;
  border: 6px solid var(--background-color);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 45px;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 0 0 45px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 0 15px;
  padding: 20px 20px 60px 20px;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  position: relative;
  border-radius: 6px;
  z-index: 1;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# 12. DOCTORS SECTION
--------------------------------------------------------------*/
.doctors .team-member {
  background-color: var(--surface-color);
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.doctors .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.doctors .team-member .social {
  position: absolute;
  left: 0;
  bottom: 30px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
}

.doctors .team-member .social a {
  background: color-mix(in srgb, var(--contrast-color), transparent 25%);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 3px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  transition: ease-in-out 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.doctors .team-member .social a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.doctors .team-member .social i {
  font-size: 18px;
  line-height: 0;
}

.doctors .team-member .member-info {
  padding: 25px 15px;
}

.doctors .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
}

.doctors .team-member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.doctors .team-member:hover .social {
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# 13. GALLERY SECTION
--------------------------------------------------------------*/
.gallery {
  overflow: hidden;
}

.gallery .swiper-wrapper {
  height: auto;
}

.gallery .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.gallery .swiper-pagination .swiper-pagination-bullet {
  background-color: var(--background-color);
  border: 1px solid var(--accent-color);
  width: 12px;
    height: 12px;
  opacity: 1;
}

.gallery .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.gallery .swiper-slide-active {
  text-align: center;
}

@media (min-width: 992px) {
  .gallery .swiper-wrapper {
    padding: 40px 0;
  }

  .gallery .swiper-slide-active {
    background: var(--background-color);
    border: 6px solid var(--accent-color);
    padding: 4px;
    z-index: 1;
    transform: scale(1.2);
    transition: none;
  }
}

/*--------------------------------------------------------------
# 14. PRICING SECTION
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.pricing .pricing-item h3 {
  font-weight: 400;
  margin: -20px -20px 20px -20px;
  padding: 20px 15px;
  font-size: 16px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background: color-mix(in srgb, var(--default-color), transparent 95%);
}

.pricing .pricing-item h4 {
  font-size: 36px;
  font-weight: 600;
  font-family: var(--heading-font);
}

.pricing .pricing-item h4 sup {
  font-size: 20px;
  top: -15px;
  left: -3px;
}

.pricing .pricing-item h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 16px;
  font-weight: 300;
}

.pricing .pricing-item ul {
  padding: 15px 0;
  list-style: none;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
}

.pricing .pricing-item ul li {
  padding-bottom: 16px;
}

.pricing .pricing-item ul i {
  color: var(--accent-color);
  font-size: 18px;
  padding-right: 4px;
}

.pricing .pricing-item ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: line-through;
}

.pricing .btn-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  margin: 0 -20px -20px -20px;
  padding: 20px 15px;
  text-align: center;
}

.pricing .btn-buy {
  background: var(--accent-color);
  color: var(--contrast-color);
  display: inline-block;
  padding: 8px 35px 10px 35px;
  border-radius: 4px;
  transition: none;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--heading-font);
  font-weight: 600;
  transition: 0.3s;
}

.pricing .btn-buy:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.pricing .featured h3 {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pricing .advanced {
  background: var(--accent-color);
  color: var(--contrast-color);
  width: 200px;
  position: absolute;
  top: 18px;
  right: -68px;
  transform: rotate(45deg);
  z-index: 1;
  font-size: 14px;
  padding: 1px 0 3px 0;
}

/*--------------------------------------------------------------
# 15. Faq SECTION
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Modern FAQ Section - RTL/LTR Fixed
--------------------------------------------------------------*/
.modern-faq {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(17, 105, 103, 0.02) 100%);
}

.modern-faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* RTL Support for main FAQ container */
.modern-faq.faq-rtl {
  direction: rtl !important;
  text-align: right !important;
}

.modern-faq.faq-ltr {
  direction: ltr !important;
  text-align: left !important;
}

.faq-item {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(17, 105, 103, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(17, 105, 103, 0.12);
}

/* RTL/LTR Specific styles for FAQ items */
.faq-rtl .faq-item {
  text-align: right !important;
  direction: rtl !important;
}

.faq-ltr .faq-item {
  text-align: left !important;
  direction: ltr !important;
}

.faq-question-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
}

/* RTL/LTR specific wrapper adjustments */
.faq-rtl .faq-question-wrapper {
  flex-direction: row-reverse !important;
  gap: 20px !important;
}

.faq-ltr .faq-question-wrapper {
  flex-direction: row !important;
  gap: 20px !important;
}

.faq-q-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.faq-q-icon i {
  font-size: 1.3rem;
  color: white;
}

.faq-question-wrapper h3 {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
  transition: color 0.3s ease;
}

/* RTL/LTR specific heading styles */
.faq-rtl .faq-question-wrapper h3 {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: right !important;
  direction: rtl !important;
}

.faq-ltr .faq-question-wrapper h3 {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
  direction: ltr !important;
}

.faq-item:hover .faq-question-wrapper h3,
.faq-item.faq-active .faq-question-wrapper h3 {
  color: var(--primary-color);
}

/* RTL/LTR specific hover colors */
.faq-rtl .faq-item:hover .faq-question-wrapper h3,
.faq-rtl .faq-item.faq-active .faq-question-wrapper h3 {
  color: #116967 !important;
}

.faq-ltr .faq-item:hover .faq-question-wrapper h3,
.faq-ltr .faq-item.faq-active .faq-question-wrapper h3 {
  color: #116967 !important;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  position: relative;
}

/* RTL/LTR specific toggle positioning */
.faq-rtl .faq-toggle {
  position: absolute !important;
  left: 20px !important;
  right: auto !important;
}

.faq-ltr .faq-toggle {
  position: absolute !important;
  right: 20px !important;
  left: auto !important;
}

.faq-item.faq-active .faq-toggle {
  transform: rotate(180deg);
}

/* RTL/LTR specific toggle rotation */
.faq-rtl .faq-item.faq-active .faq-toggle {
  transform: rotate(180deg) !important;
}

.faq-ltr .faq-item.faq-active .faq-toggle {
  transform: rotate(180deg) !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

/* RTL/LTR specific answer padding */
.faq-rtl .faq-answer {
  padding: 0 0 0 70px !important;
}

.faq-ltr .faq-answer {
  padding: 0 70px 0 0 !important;
}

.faq-item.faq-active .faq-answer {
  max-height: 500px;
}

/* RTL/LTR specific active answer padding */
.faq-rtl .faq-item.faq-active .faq-answer {
  padding: 20px 0 0 70px !important;
}

.faq-ltr .faq-item.faq-active .faq-answer {
  padding: 20px 70px 0 0 !important;
}

.faq-answer p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* RTL/LTR specific paragraph styles */
.faq-rtl .faq-answer p {
  text-align: right !important;
  direction: rtl !important;
}

.faq-ltr .faq-answer p {
  text-align: left !important;
  direction: ltr !important;
}

/* Keep icon first for both directions */
.faq-rtl .faq-question-wrapper {
  flex-direction: row !important;
}

/* RTL icon spacing */
.faq-rtl .faq-q-icon {
  margin-left: 15px !important;
  margin-right: 0 !important;
}

/* LTR icon spacing */
.faq-ltr .faq-q-icon {
  margin-right: 15px !important;
  margin-left: 0 !important;
}


/* Responsive adjustments for RTL/LTR */
@media (max-width: 768px) {
  .faq-rtl .faq-question-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .faq-ltr .faq-question-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .faq-rtl .faq-toggle,
  .faq-ltr .faq-toggle {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    align-self: flex-end;
  }
  
  .faq-rtl .faq-answer,
  .faq-ltr .faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .faq-rtl .faq-item.faq-active .faq-answer,
  .faq-ltr .faq-item.faq-active .faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Animation direction for RTL */
.faq-rtl .faq-item {
  animation-direction: reverse;
}

.faq-ltr .faq-item {
  animation-direction: normal;
}

/* Legacy FAQ section RTL/LTR support */
.faq.faq-rtl .faq-container .faq-item {
  text-align: right !important;
  direction: rtl !important;
}

.faq.faq-ltr .faq-container .faq-item {
  text-align: left !important;
  direction: ltr !important;
}

.faq.faq-rtl .faq-container .faq-item h3 {
  margin: 0 0 0 30px !important;
  text-align: right !important;
  direction: rtl !important;
}

.faq.faq-ltr .faq-container .faq-item h3 {
  margin: 0 30px 0 0 !important;
  text-align: left !important;
  direction: ltr !important;
}

.faq.faq-rtl .faq-container .faq-item .faq-toggle {
  left: 20px !important;
  right: auto !important;
}

.faq.faq-ltr .faq-container .faq-item .faq-toggle {
  right: 20px !important;
  left: auto !important;
}

.faq.faq-rtl .faq-container .faq-item .faq-content {
  text-align: right !important;
  direction: rtl !important;
}

.faq.faq-ltr .faq-container .faq-item .faq-content {
  text-align: left !important;
  direction: ltr !important;
}

/* Ensure proper font direction for Arabic text */
.modern-faq.faq-rtl {
  font-family: 'Cairo', 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif !important;
}

.modern-faq.faq-ltr {
  font-family: 'Inter', 'Roboto', 'Arial', sans-serif !important;
}
/*--------------------------------------------------------------
# 16. CONTACT SECTION
--------------------------------------------------------------*/
.contact .info-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 24px 0 30px 0;
}

.contact .info-item i {
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 30px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# 17. SERVICE DETAILS SECTION
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# 19. UTILITY CLASSES
--------------------------------------------------------------*/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*--------------------------------------------------------------
# 20. RESPONSIVE DESIGN
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .section, section {
    scroll-margin-top: 100px;
  }
  
  .contact-card {
    gap: 20px;
    padding: 18px 25px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 991px) {
  .logo-content {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
  
  .contact-card {
    justify-content: center;
  }
  
  .logo-text h1 {
    font-size: 1.8rem;
  }
  
  .tabs .nav-link {
    border: 0;
    padding: 15px;
  }

  .tabs .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
  
  .contact-buttons {
    justify-content: flex-start;
    margin-top: 15px;
  }
  

}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

    .contact-info {
    display: none !important;
  }
  
  .navbar-content {
    justify-content: flex-end !important;
    gap: 15px;
  }
  
  .mobile-nav-wrapper {
    order: 1;
    display: block !important;
  }
  
  .navbar-actions {
    order: 2;
    margin-left: 15px;
  }
  
  .logo-section {
    padding: 20px 0;
  }
  
  .logo-image img {
    width: 70px;
    height: 70px;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  .logo-text p {
    font-size: 1rem;
  }
  
  .contact-card {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .language-selector .nav-link {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .hero {
    height: 70vh;
    min-height: 450px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero .btn {
    text-align: center;
    justify-content: center;
  }
  
  .hero .carousel-control {
    width: 50px;
    height: 50px;
  }
  
  .hero .carousel-control-prev {
    left: 1rem;
  }
  
  .hero .carousel-control-next {
    right: 1rem;
  }
  
  .featured-services {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-content {
    padding: 30px 20px;
  }
  
  .icon {
    width: 70px;
    height: 70px;
  }
  
  .icon i {
    font-size: 1.7rem;
  }
  
  .service-item h4 {
    font-size: 1.2rem;
  }
  
  .contact .php-email-form {
    padding: 20px;
  }

  
  .contact-bar-wrapper {
    padding: 20px;
  }
  
  .contact-title {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .contact-buttons {
    justify-content: center;
  }
  
  .contact-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
 
}

@media (max-width: 480px) {
  .logo-image img {
    width: 60px;
    height: 60px;
  }
  
  .logo-text h1 {
    font-size: 1.3rem;
  }
  
  .logo-text p {
    font-size: 0.9rem;
  }
  
  .contact-item {
    gap: 10px;
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .mobile-nav-content {
    width: 100%;
  }
  
  .hero {
    height: 65vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .content-wrapper {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-content {
    padding: 25px 15px;
  }
  
  .contact-buttons {
    flex-direction: column;
  }
  
  .contact-btn {
    width: 100%;
  }
  

}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .enhanced-footer {
    background: var(--footer-primary-color) !important;
    color: white !important;
  }
}

/*--------------------------------------------------------------
# Modern Stats Section
--------------------------------------------------------------*/
.modern-stats {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stats-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: translateX(100%);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
  position: relative;
  margin-bottom: 25px;
  display: inline-block;
}

.stat-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
}

.stat-icon i {
  font-size: 2.5rem;
  color: white;
}

.stat-decoration {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  animation: rotateBorder 20s linear infinite;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-content {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin: 0;
}

.stat-line {
  width: 0;
  height: 3px;
  background: white;
  margin: 20px auto 0;
  transition: width 0.6s ease;
  border-radius: 2px;
}

.stat-card:hover .stat-line {
  width: 60%;
}

/*--------------------------------------------------------------
# Modern Tabs Section
--------------------------------------------------------------*/
.modern-tabs {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(17, 105, 103, 0.03) 100%);
}

.modern-nav-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab-nav-item {
  position: relative;
}

.tab-nav-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 25px;
  background: white;
  border: 2px solid rgba(17, 105, 103, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: right;
}

.tab-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.tab-nav-link:hover::before,
.tab-nav-link.active::before {
  transform: scaleY(1);
}

.tab-nav-link:hover,
.tab-nav-link.active {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-color: var(--secondary-color);
  transform: translateX(-10px);
  box-shadow: 0 10px 30px rgba(17, 105, 103, 0.15);
}

.tab-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(17, 105, 103, 0.1), var(--secondary-light) 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tab-nav-link.active .tab-icon,
.tab-nav-link:hover .tab-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.tab-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.tab-nav-link.active .tab-icon i,
.tab-nav-link:hover .tab-icon i {
  color: white;
}

.tab-content-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.tab-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.tab-nav-link.active .tab-title,
.tab-nav-link:hover .tab-title {
  color: var(--primary-color);
}

.tab-subtitle {
  font-size: 0.85rem;
  color: #999;
}

.modern-tab-content {
  padding: 0;
}

.tab-content-card {
  background: white;
  border-radius: 25px;
  padding: 45px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(17, 105, 103, 0.1);
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-header {
  margin-bottom: 25px;
}

.tab-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.tab-text-content p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tab-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 105, 103, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(17, 105, 103, 0.1);
}

.feature-item i {
  color: var(--secondary-color);
  font-size: 1rem;
}

.feature-item span {
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
}

.tab-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.tab-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 105, 103, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-image-wrapper:hover::before {
  opacity: 1;
}

.tab-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tab-image-wrapper:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Modern News Section
--------------------------------------------------------------*/
.modern-news-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(17, 105, 103, 0.02) 0%, #ffffff 50%, rgba(50, 58, 69, 0.02) 100%);
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(17, 105, 103, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(17, 105, 103, 0.15);
  border-color: var(--secondary-color);
}

.news-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(17, 105, 103, 0.4);
}

.news-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  margin-bottom: 15px;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 0.85rem;
}

.news-date i {
  color: var(--secondary-color);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-title {
  color: var(--primary-color);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  gap: 12px;
  color: var(--secondary-color);
}

.read-more-link i {
  transition: transform 0.3s ease;
}

.read-more-link:hover i {
  transform: translateX(-3px);
}

.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(17, 105, 103, 0.3);
}

.modern-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(17, 105, 103, 0.4);
  color: white;
}

.modern-btn i {
  transition: transform 0.3s ease;
}

.modern-btn:hover i {
  transform: translateX(-5px);
}

/*--------------------------------------------------------------
# Modern Gallery Section
--------------------------------------------------------------*/
.modern-gallery {
  padding: 100px 0;
  background: white;
}

.gallery-item-modern {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-item-modern img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-modern:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-modern:hover img {
  transform: scale(1.15);
}

.gallery-overlay i {
  font-size: 3rem;
  color: white;
  transform: scale(0);
  transition: transform 0.3s ease 0.1s;
}

.gallery-item-modern:hover .gallery-overlay i {
  transform: scale(1);
}

/*--------------------------------------------------------------
# Modern CTA Section
--------------------------------------------------------------*/
.modern-cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content-wrapper {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-icon-wrapper {
  margin-bottom: 30px;
}

.cta-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cta-icon i {
  font-size: 3rem;
  color: white;
}

.modern-cta h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--primary-color);
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.cta-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  color: white;
}



/*--------------------------------------------------------------
# Responsive Design for New Sections
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .modern-about { padding: 70px 0; }
  .modern-stats { padding: 60px 0; }
  .modern-tabs { padding: 70px 0; }
  .modern-news-section { padding: 70px 0; }
  .modern-gallery { padding: 70px 0; }
  .modern-cta { padding: 70px 0; }
  .modern-faq { padding: 70px 0; }
  
  .stat-number { font-size: 3rem; }
  .modern-nav-tabs { gap: 10px; }
  .tab-nav-link { padding: 20px; }
  .tab-content-card { padding: 30px; }
  .modern-cta h3 { font-size: 2rem; }
  .modern-cta p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .about-image-wrapper { margin-bottom: 40px; }
  .floating-badge { bottom: 15px; right: 15px; padding: 15px 20px; }
  .badge-number { font-size: 1.5rem; }
  .stat-card { padding: 30px 20px; }
  .stat-number { font-size: 2.5rem; }
  .tab-nav-link { flex-direction: row; text-align: right; }
  .tab-title { font-size: 1rem; }
  .tab-content-card { padding: 25px; }
  .tab-header h3 { font-size: 1.6rem; }
  .news-image-wrapper { height: 200px; }
  .modern-cta h3 { font-size: 1.8rem; }
  .cta-actions { flex-direction: column; }
  .cta-primary-btn, .cta-secondary-btn { width: 100%; justify-content: center; }
  .faq-answer { padding: 0 20px; }
  .faq-item.faq-active .faq-answer { padding: 20px 20px 0; }
}

@media (max-width: 480px) {
  .mission-card, .goals-section { padding: 25px; }
  .card-icon { width: 60px; height: 60px; }
  .card-icon i { font-size: 1.5rem; }
  .stat-icon { width: 70px; height: 70px; }
  .stat-icon i { font-size: 2rem; }
  .tab-icon { width: 45px; height: 45px; }
  .tab-icon i { font-size: 1.2rem; }
  .gallery-item-modern img { height: 250px; }
  .cta-icon { width: 80px; height: 80px; }
  .cta-icon i { font-size: 2.5rem; }
  .faq-q-icon { width: 40px; height: 40px; }
  .faq-question-wrapper h3 { font-size: 1rem; }
}


/* ********************************** */

/*---------------------------------------------
 Modern Enhanced Footer Design
----------------------------------------------*/
.elegant-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #f8fafa;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  margin-top: 100px;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
  background-size: cover;
  opacity: 0.1;
}

.footer-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 0%, transparent 50%);
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 2;
}


/* Footer sections with proper column spans */
.footer-brand-section {
  grid-column: span 4;
  padding-right: 20px;
}

.footer-quick-links {
  grid-column: span 2;
}

.footer-services {
  grid-column: span 3;
}

.footer-contact {
  grid-column: span 3;
}

/* Enhanced Brand Section */

.footer-logo-container {
  position: relative;
  margin-bottom: 25px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  
  
  justify-content: center;

}


.footer-logo img {
  width: 160px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.footer-logo:hover::after {
  opacity: 0.3;
}

.footer-logo:hover img {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.footer-brand-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  background: linear-gradient(45deg, #fff, #e0f7fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(248, 250, 250, 0.9);
  margin-bottom: 30px;
  text-align: center;
}

/* Enhanced Social Media */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.footer-socials a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.footer-socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.footer-socials a:hover::before {
  left: 100%;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 30px rgba(28, 199, 181, 0.4);
  border-color: transparent;
}

/* Enhanced Section Headers */

.footer-section-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: right; 
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0; 
  width: 50px;
  height: 3px;
  background: linear-gradient(
  135deg,
  #116967 0%,
  #1a7f7b 25%,
  #5bc8c4 50%,
  #116967 75%,
  #323A45 100%
);
background-size: 200% 200%;
animation: shine 4s ease-in-out infinite;

  border-radius: 3px;
  transition: width 0.3s ease;
}


.footer-section-title:hover::after {
  width: 80px;
}

/* Enhanced Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
  position: relative;
}

.footer-links-list a {
  color: rgba(248, 250, 250, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
  display: inline-block;
}

.footer-links-list a::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links-list a:hover {
  color: #fff;
  padding-left: 25px;
  transform: translateX(5px);
}

.footer-links-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced Contact Section */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.footer-contact-list li:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.footer-contact-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(28, 199, 181, 0.3);

}


.footer-contact-icon i {
  color: #fff;
  font-size: 1rem;
}

.footer-contact-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 250, 250, 0.9);
}

/* Enhanced Footer Bottom */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 25px 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: rgba(248, 250, 250, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.footer-bottom-links a {
  color: rgba(248, 250, 250, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 10px;
  border-radius: 6px;
}

.footer-bottom-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Scroll to Top Button */
.footer-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(28, 199, 181, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.footer-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-scroll-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(28, 199, 181, 0.6);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-main > div {
  animation: fadeInUp 0.6s ease-out;
}

.footer-main > div:nth-child(2) { animation-delay: 0.1s; }
.footer-main > div:nth-child(3) { animation-delay: 0.2s; }
.footer-main > div:nth-child(4) { animation-delay: 0.3s; }

/* Responsive Design - Tablet */
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
  }
  
  .footer-brand-section {
    grid-column: span 6;
    text-align: center;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .footer-quick-links {
    grid-column: span 3;
  }
  
  .footer-services {
    grid-column: span 3;
  }
  
  .footer-contact {
    grid-column: span 6;
    margin-top: 20px;
  }
  
  .footer-contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 767px) {
  .elegant-footer {
    padding-top: 60px;
    margin-top: 50px;
  }
  
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-brand-section,
  .footer-quick-links,
  .footer-services,
  .footer-contact {
    grid-column: span 1;
    padding-right: 0;
    margin-bottom: 0;
  }
  
  .footer-brand-section {
    margin-bottom: 20px;
  }
  
  .footer-description {
    text-align: center;
  }
  
  .footer-contact-list {
    grid-template-columns: 1fr;
  }
  
  .footer-contact-list li {
    justify-content: center;
    text-align: left;
  }
  
  .footer-section-title {
    text-align: center;
  }
  
  .footer-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .footer-logo img {
    width: 120px;
  }
  
  .footer-socials a {
    width: 42px;
    height: 42px;
  }
  
  .footer-contact-list li {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .footer-contact-icon {
    margin: 0 auto;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-container {
    padding: 0 10px;
  }
}
