/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #222b36;
  --navy_alter:#bf8b7e;
  --col-dark:#a67265;

  --col-lang: #bec5a8;
  --cream: #f2f0ef;
  --gold: #938d65;
  --accent: #c19a6b;
  --text-gray: #666;
  --white: #ffffff;
  --header:#f9f9f9;
  --serv_icon:#d4b7ac;
  --serv_tit:#bd8b7d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Josefin Slab', serif;
  color: var(--navy_alter);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Top Bar Styles */
.top-bar {
  background-color: var(--navy_alter);
  color: white;
  padding: 0px 0;
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact-info {
  display: flex;
  gap: 25px;
  align-items: center;
}

.top-phone,.top-email {  display: flex;  align-items: center;  gap: 8px;  color: var(--cream) ;  font-size: 14px;  font-weight: 700;}
[dir="rtl"]
.top-phone,.top-email {  display: flex;  align-items: center;  gap: 8px;  color: var(--cream) ;  font-size: 12px;  font-weight: 700;}

.top-phone i,
.top-email i {
  color: var(--cream);
  font-size: 12px;
}

/* Header Styles - Updated */
.header {
  background-color: var(--header);
  height: calc(26vh - 20px); /* Prevent logo cut-off */
  min-height: 140px;
  position: sticky;
  top: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 30px; 
}

.nav-left li a,
.nav-right li a {
  color: var(--col-dark);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: lowercase;
  font-weight: 600;  /* Semi-bold */
  position: relative;
  padding: 5px 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: var(--accent);
   color: #8c5d52;  /* Even darker on hover */
  font-weight: 700;  /* Bolder on hover */
}

.logo { 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  height: calc(26vh - 20px); /* Prevent logo cut-off */
  max-height: 160px; /* Reduced for safety */
  display: flex; 
  align-items: center; 
  padding: 10px 0; /* Vertical padding to prevent cut-off */
} 

.logo img { 
  height: 100%; 
  width: auto; 
  object-fit: contain; 
  transition: opacity 0.3s ease; 
} 

.logo:hover img { 
  opacity: 0.8; 
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}
.dropdown {
  position: relative;
}

.dropdown-menu {  position: absolute;  top: 100%;  left: 50%;  transform: translateX(-50%) translateY(10px);  background-color: var(--cream);
  min-width: 250px;  padding: 15px 0;  opacity: 0;  visibility: hidden;  transition: all 0.3s ease;  z-index: 1001;
  border-top: 2px solid var(--accent);  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);  text-align: left; }



.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li { 
  padding: 6px 8px;
}

.dropdown-menu li a {
 /* font-size: 12px;*/
  letter-spacing: 1.5px;
  display: block;
  white-space: nowrap;
  /*color: var(--navy_alter);*/
  transition: all 0.3s ease;
   color: var(--col-dark);
  font-size: 14px;
}

.dropdown-menu li a:hover {
  color: var(--accent);
  padding-left: 10px;
  background-color: rgba(0, 0, 0, 0.03);
}

/* NEW SLIDER STYLES - Inspired by Verge Events */
.hero-slider {
  background-color: var(--white);
  height: 30vh;
  min-height: 300px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* NEW: Horizontal scrolling image container */
.slide-images {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.slide-images img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.slide-images img:hover {
  opacity: 0.9;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy_alter);
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Slider dots indicator */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* About Section Styles */
.about-section {
  background-color: var(--white);
  padding: 80px 40px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Yeseva One', cursive;
  font-size: 42px;
  text-align: center;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 24px;
  text-align: center;
  color: var(--navy_alter);
  margin-bottom: 30px;
  font-weight: 300;
  font-size: 29px;
  font-weight: bold;
}

.divider {
  width: 100px;
  height: 2px;
  background: var(--gold);
  margin: 30px auto;
}

.about-text {
  line-height: 1.9;
  color: var(--col-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--col-dark);
  font-size: 18px;
  font-weight: 500;
}

/* Founder Section Styles */
.founder-section {
  background-color: var(--cream);
  padding: 80px 40px;
}

.founder-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.founder-image {
  text-align: center;
}

.founder-photo {
  width: 100%;
  max-width: 350px;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.founder-content h3 {
  font-family: 'Yeseva One', cursive;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 15px;
}

.founder-content p {
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--col-dark);
  font-size: 18px;
  font-weight: 500;
}

/* Services Section Styles */
.services-section {
  background-color: var(--cream);
  /*padding: 80px 40px;*/
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-item {
  background-color: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 16px;
  font-weight: 400;
  color: var(--navy_alter);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Contact Section Styles */

.contact-details {
  margin-top: 30px;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 14px;
}

.contact-details a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-details a:hover {
  color: var(--gold);
}

/* Footer Styles */
.footer {
  background-color: var(--cream);
  padding: 30px 40px;
  text-align: center;
}

.footer p {
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
}

.footer a {
  text-decoration: underline;
  color: var(--navy_alter);
}

.footer a:hover {
  color: var(--accent);
}

/* Fixed Social Icons */
.harmony-float-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 998;
}

.harmony-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.harmony-facebook {
  background: #1877F2;
  color: white;
}

.harmony-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.harmony-whatsapp {
  background: #25D366;
  color: white;
}

.harmony-call {
  background: #d4af37;
  color: white;
}

.harmony-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.harmony-icon svg {
  width: 24px;
  height: 24px;
}

/* Language Switcher - Now in Top Bar */
.language-switcher {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 15px;
}

.lang-btn {
  padding: 4px 12px;
  border: none;
  background: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 300;
}

.lang-btn.active {
  background-color: var(--col-lang);
  color: white;
}

.lang-btn:hover:not(.active) {
  background-color: rgba(193, 154, 107, 0.3);
}

/* Image Modal/Lightbox Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:var(--navy_alter);/* rgba(0, 0, 0, 0.95);*/
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10000;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
  z-index: 10001;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-prev,
.modal-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 5px;
  animation: fadeIn 0.3s ease;
}

.modal-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  font-family: 'Josefin Slab', serif;
}

/* Scroll Animations */
.about-container,
.founder-container,
.services-grid,
.contact-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-container.animate-in,
.founder-container.animate-in,
.services-grid.animate-in,
.contact-container.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* RTL Support */
[dir="rtl"] .slider-arrow.prev i {
  transform: rotate(180deg);
}

[dir="rtl"] .slider-arrow.next i {
  transform: rotate(180deg);
}

[dir="rtl"] .nav-left,
[dir="rtl"] .nav-right {
  direction: ltr;
}

[dir="rtl"] .founder-content {
  text-align: right;
}

[dir="rtl"] .about-text,
[dir="rtl"] .founder-content p {
  text-align: right;
}

[dir="rtl"] .dropdown-menu {
  text-align: right;
  right: 0;
  left: auto;
}

[dir="rtl"] .dropdown-menu li a:hover {
  padding-right: 10px;
  padding-left: 25px;
}

[dir="rtl"] .harmony-float-icons {
  left: 20px;
  right: auto;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: -40px;
}

[dir="rtl"] .modal-prev i {
  transform: rotate(180deg);
}

[dir="rtl"] .modal-next i {
  transform: rotate(180deg);
}

/* Arabic Font */
[lang="ar"] body {
  font-family: 'Noto Naskh Arabic', 'Josefin Slab', serif;
}
[lang="ar"] body {
  font-family: 'Noto Naskh Arabic', 'Josefin Slab', serif;
}

[lang="ar"] .section-title,
[lang="ar"] .founder-content h3 {
  font-family: 'Noto Naskh Arabic', 'Yeseva One', cursive;
}

/* UPDATED SLIDER STYLES - Continuous Carousel like Verge Events */
.hero-slider {
  background-color: var(--white);
  height: 30vh;
  min-height: 300px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Continuous Carousel Container */
.slide-images {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Walking/Scrolling Track */
.carousel-track {
  display: flex;
  gap: 0;
  height: 100%;
  animation: scroll-left 75s linear infinite;
  will-change: transform;
}

/* Pause animation on hover */
.slide-images:hover .carousel-track {
  animation-play-state: paused;
}

/* Individual Images in Carousel */
.carousel-track img {
  height: 100%;
  width: auto;
   min-width: 150px; /* adjust based on your design */
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.carousel-track img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Continuous Scrolling Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* For RTL - reverse animation */
[dir="rtl"] .carousel-track {
  animation: scroll-right 75s linear infinite;
}

@keyframes scroll-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Slider arrows - Optional, can be removed for pure carousel */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy_alter);
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Slider dots indicator */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Add to existing RTL section */
[dir="rtl"] .dropdown-menu {
  text-align: right;
  left: auto;
  right: 0;
  transform: translateX(0) translateY(10px);
}

[dir="rtl"] .dropdown:hover .dropdown-menu {
  transform: translateX(0) translateY(0);
}

[dir="rtl"] .dropdown-menu li a:hover {
  padding-right: 10px;
  padding-left: 25px;
}

[dir="rtl"] .service-item {
  text-align: center;
}

[dir="rtl"] .back-to-home a i {
  transform: rotate(180deg);
}

/* CRITICAL FIX: Update the .service-detail class to account for sticky header height */
.service-detail {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 220px; /* INCREASED from 100px to 220px */
  /* Alternative if needed: scroll-padding-top: 220px; on parent */
}

/* Also add scroll-padding to html for global offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 220px; /* Accounts for sticky header + top bar */
}

/* UPDATED: Service detail blocks with title at the top */
.service-detail {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* UPDATED: Title comes first in the visual order */
.service-detail h2 {
  font-family: 'Yeseva One', cursive;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 20px;
  order: 1; /* Title appears first */
}

/* Icon comes after title */
.service-detail-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
  order: 2; /* Icon appears second */
}

/* Description comes last */
.service-detail p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  font-weight: 300;
  order: 3; /* Description appears third */
}

.service-detail:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Services Page Styles */
.services-hero {
  background: linear-gradient(135deg, var(--serv_icon) 0%, var(--accent) 100%);
  padding: 100px 40px 80px;
  text-align: center;
  color: white;
}

.services-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Yeseva One', cursive;
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.95;
}

.services-detail-section {
  background-color: var(--cream);
  padding: 80px 40px;
}

.services-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
}

.services-cta {
  background-color: var(--navy_alter);
  padding: 80px 40px;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-family: 'Yeseva One', cursive;
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--white);
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--navy_alter);
  padding: 15px 40px;
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover {
  background-color: var(--serv_icon);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Cards Section Styles */
.services-cards-section {
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 60px 20px;*/
  display: flex;
  flex-direction: column;
  gap: 60px; /* Increased gap between service rows */
}

/* Update service-card to full width single column layout */
.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  scroll-margin-top: 220px;
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Service card header - side by side layout */
.service-card-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 35px 40px;
  background: linear-gradient(135deg, rgba(34, 43, 54, 0.05) 0%, rgba(193, 154, 107, 0.05) 100%);
  border-bottom: 1px solid rgba(34, 43, 54, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--serv_icon) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(34, 43, 54, 0.2);
}

.service-title {
  font-family: 'Yeseva One', serif;
  font-size: 32px;
  color: var(--navy_alter);
  margin: 0;
  flex: 1;
}

/* Main content area - split layout */
.service-card-content {
  display: flex;
  flex-direction: row;
  min-height: 400px;
}

/* Image slider takes 60% of width */
.service-image-slider {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  background: var(--navy_alter);
  height: 400px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-slides-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.service-slide {
  flex: 0 0 100%;
  position: relative;
  /*height: 100%;*/
}

.service-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Crop to fill container */
  cursor: pointer;
  transition: transform 0.5s ease;
}

.service-slide:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-slide:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  color: white;
  font-size: 40px;
  background: rgba(0, 0, 0, 0.5);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service info takes 40% of width */
.service-info {
  flex: 0 0 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(242, 240, 239, 0.5);
}

.service-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy_alter);
  margin-bottom: 30px;
  flex: 1;
}

.service-cta {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(34, 43, 54, 0.1);
}

.service-inquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--serv_icon) 0%, var(--accent) 100%);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Josefin Slab', serif;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(193, 154, 107, 0.3);
}

.service-inquire-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(193, 154, 107, 0.4);
}

/* Slider navigation */
.service-slider-prev,
.service-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy_alter);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-slider-prev:hover,
.service-slider-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.service-slider-prev {
  left: 20px;
}

.service-slider-next {
  right: 20px;
}

.service-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.service-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Update existing service-item styles */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-icon i {
  font-size: 50px;
  color: var(--white);
  transition: all 0.3s ease;
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  transition: all 0.3s ease;
}

.service-item h3 {
  font-family: 'Yeseva One', serif;
  font-size: 22px;
  color: var(--navy_alter);
  text-align: center;
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

/* Update the services-grid styles in your main CSS file */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Service Modal Styles */
.modal-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 15px;
  color: white;
}

.modal-title {
  font-family: 'Yeseva One', cursive;
  font-size: 18px;
  color: var(--text-gray);
  margin: 0;
  flex: 1;
}

.modal-counter {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
  margin-left: 15px;
}

.modal-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  pointer-events: none;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content:hover .modal-nav-btn {
  opacity: 1;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* RTL adjustments for modal */
[dir="rtl"] .modal-counter {
  margin-left: 0;
  margin-right: 15px;
}

[dir="rtl"] .modal-nav-btn.prev-btn i {
  transform: rotate(180deg);
}

[dir="rtl"] .modal-nav-btn.next-btn i {
  transform: rotate(180deg);
}

/* Developer Credit Styles */
.developer-credit {
  margin-top: 15px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #888;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.developer-whatsapp {
  color: #25D366;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.developer-whatsapp:hover {
  color: #128C7E;
  transform: scale(1.1);
}

.developer-whatsapp i {
  font-size: 16px;
  margin-left: 5px;
}

/* RTL specific styles */
body.rtl .service-card-header {
  text-align: right;
}

body.rtl .service-icon {
  margin-left: 20px;
  margin-right: 0;
}

/* RTL Support for service items */
body.rtl .service-item h3 {
  text-align: center;
}

/* RTL Support for Services Cards */
[dir="rtl"] .service-slider-prev {
  left: auto;
  right: 15px;
}

[dir="rtl"] .service-slider-next {
  right: auto;
  left: 15px;
}

[dir="rtl"] .service-slider-prev i {
  transform: rotate(180deg);
}

[dir="rtl"] .service-slider-next i {
  transform: rotate(180deg);
}

[dir="rtl"] .service-inquire-btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .service-card-header {
  text-align: center;
}

[dir="rtl"] .service-title {
  text-align: center;
}

[dir="rtl"] .service-description {
  text-align: right;
}

[dir="rtl"] .cta-content {
  text-align: center;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle {
  text-align: center;
}

/* Fix for modal arrows in RTL */
[dir="rtl"] .modal-prev i {
  transform: rotate(180deg);
}

[dir="rtl"] .modal-next i {
  transform: rotate(180deg);
}

/* Fix for service card hover effects in RTL */
[dir="rtl"] .service-card:hover {
  transform: translateY(-10px) translateX(0);
}

/* Ensure service cards align properly in RTL */
[dir="rtl"] .services-cards-section {
  direction: rtl;
}

/* Fix for image overlay in RTL */
[dir="rtl"] .image-overlay {
  left: 0;
  right: 0;
}

/* Fix for service slider dots positioning in RTL */
[dir="rtl"] .service-slider-dots {
  left: 50%;
  transform: translateX(-50%);
}

/* Fix for CTA button positioning in RTL */
[dir="rtl"] .cta-button {
  display: inline-block;
}

/* Fix for navigation dropdown in RTL */
[dir="rtl"] .dropdown-menu {
  text-align: right;
}

[dir="rtl"] .dropdown-menu li a:hover {
  padding-right: 10px;
  padding-left: 25px;
}

/* Fix for logo positioning in RTL */
[dir="rtl"] .logo {
  left: 50%;
/*  transform: translateX(-50%);*/
}

/* Ensure proper text alignment in RTL for all text elements */
[dir="rtl"] .about-text,
[dir="rtl"] .founder-content p,
[dir="rtl"] .service-description {
  text-align: center;
}

/* Fix for CTA section text in RTL */
[dir="rtl"] .services-cta h2,
[dir="rtl"] .services-cta p {
  text-align: center;
}

/* Fix for footer text in RTL */
[dir="rtl"] .footer p {
  text-align: center;
}

/* Fix for top bar contact info in RTL */
[dir="rtl"] .top-contact-info {
  flex-direction: row;
}

/* Fix for language switcher in RTL */
[dir="rtl"] .language-switcher {
  flex-direction: row;
}

/* Fix for navigation items alignment in RTL */
[dir="rtl"] .nav-left,
[dir="rtl"] .nav-right {
  direction: rtl;
}

/* Fix for modal caption text alignment in RTL */
[dir="rtl"] .modal-caption {
  text-align: center;
}

/* RTL Support for developer credit */
[dir="rtl"] .developer-credit {
  font-family: 'Noto Naskh Arabic', 'Josefin Slab', serif;
}

[dir="rtl"] .developer-whatsapp i {
  margin-left: 0;
  margin-right: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation for scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.carousel-track {
  display: flex;
  gap: 0;
  height: 100%;
  animation: scroll-left 75s linear infinite;  /* Adjust speed here */
  will-change: transform;
 /* min-width: 200%;*/  /* ensures at least double container width */
}

[dir="rtl"] .carousel-track {
  animation: scroll-right 75s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* -50% moves exactly one set width when using 2 copies */
}

@keyframes scroll-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}