:root {
  --primary: #0abab5;
  --primary-dark: #099a98;
  --text: #333333;
  --background: #ffffff;
  --section-padding: 5rem 2rem;
  --font-primary: 'Poppins', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
}

body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  transition: direction 0.3s;
  line-height: 1.6;
}

header {
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: background 0.3s;
}

header.scrolled {
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  height: 50px;
  width: auto;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  font-family: var(--font-primary);
}

#lang-toggle {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#lang-toggle:hover {
  background: var(--primary);
  color: var(--background);
}

main {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--background);
}

section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

#hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.coach-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--primary);
  margin: 0 0 2rem 0;
}

.intro p {
  font-size: 1.25rem;
  margin: 1.5rem 0;
}

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

.service-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 3rem auto;
}

input, textarea {
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
}

button[type="submit"] {
  background: var(--primary);
  color: var(--background);
  border: none;
  border-radius: 30px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
}

footer {
  background: var(--primary);
  color: var(--background);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 2rem;
  font-family: inherit;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.footer-nav a {
  color: var(--background);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-links h4 {
  color: var(--background);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  color: var(--background);
  font-size: 1.5rem;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.logo-no-text {
  height: 80px;
  filter: brightness(0) invert(1);
}

.brand-text-footer {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  font-family: var(--font-primary);
}

@media (max-width: 1200px) {
  :root {
    --section-padding: 4rem 2rem;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .services-grid,
  .about-content,
  .contact-content {
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 3.5rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-content {
    gap: 3rem;
  }

  .coach-photo {
    max-width: 400px;
  }

  .footer-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }

  header {
    padding: 1rem;
  }

  .logo-area {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: relative;
    width: 100%;
  }

  .logo-container {
    flex: 0 1 auto;
    gap: 0.5rem;
  }

  .logo-text {
    height: 35px;
  }

  .brand-text {
    font-size: 1rem;
  }

  #lang-toggle {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    order: 2;
  }

  .nav-toggle {
    order: 3;
    margin-left: 0.5rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--background);
    padding: 80px 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease-in-out;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 80px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .intro p {
    font-size: 1.1rem;
    margin: 1rem 0;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 250px;
    margin: 1rem auto;
  }

  /* RTL Support for Mobile */
  [dir="rtl"] .main-nav {
    right: auto;
    left: -100%;
    transition: left 0.3s ease-in-out;
  }

  [dir="rtl"] .main-nav.active {
    right: auto;
    left: 0;
  }

  [dir="rtl"] .nav-toggle {
    margin-left: 0;
    margin-right: 0.5rem;
  }

  [dir="rtl"] #lang-toggle {
    margin-left: 0;
    margin-right: 0.5rem;
  }

  [dir="rtl"] .main-nav ul {
    align-items: flex-end;
  }

  .services-grid,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image,
  .contact-image-container {
    min-height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .social-icons {
    justify-content: center;
  }

  /* Testimonials adjustments */
  .testimonial-card {
    flex: 0 0 260px;
    width: 260px;
    padding: 1.5rem;
  }

  .testimonial-image {
    width: 150px;
    height: 150px;
  }

  /* Navigation adjustments */
  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Button adjustments */
  .hero-cta {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 2.5rem 1rem;
  }

  .logo-area {
    padding: 0.5rem;
  }

  .logo-text {
    height: 30px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  #lang-toggle {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1rem;
  }

  .hero-cta {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  .coach-photo {
    max-width: 250px;
  }

  .testimonial-card {
    flex: 0 0 240px;
    width: 240px;
    padding: 1.25rem;
  }

  .testimonial-image {
    width: 120px;
    height: 120px;
  }

  .testimonial-name {
    font-size: 1.1rem;
  }

  .testimonial-title {
    font-size: 0.9rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .read-more-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Form adjustments */
  input, textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  button[type="submit"] {
    width: 100%;
  }
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

[dir="rtl"] .service-card {
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

/* Add scroll behavior for header */
@media (min-width: 769px) {
  .scrolled {
    padding: 1rem 2rem;
  }
}

/* AOS animations will handle all the animation effects */

/* Testimonials Section */
#testimonials {
  background: linear-gradient(45deg, rgba(10,186,181,0.05), rgba(10,186,181,0.1));
  padding: var(--section-padding);
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1rem;
}

.testimonials-container {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  animation: scroll 35s linear infinite;
  padding: 1rem 0;
}

.testimonial-card {
  flex: 0 0 300px;
  background: var(--background);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remove last card margin since we don't need it for infinite scroll */
.testimonial-card:last-child {
  margin-right: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-300px * 4 - 2rem * 4)); /* Adjust based on card width and gap */
  }
}

/* Pause animation on hover */
.testimonials-track:hover {
  animation-play-state: paused;
}

/* RTL Support for testimonials */
[dir="rtl"] .testimonials-track {
  animation-direction: reverse;
}

.testimonial-image-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-image {
  width: 180px;
  height: 180px;
  border-radius: 90px;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid var(--primary);
  display: block;
}

.testimonial-name {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  text-align: center;
  width: 100%;
  font-family: inherit;
}

.testimonial-title {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
  font-family: inherit;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}

.read-more-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  font-family: inherit;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.read-more-btn:hover {
  background: var(--primary);
  color: var(--background);
}

/* RTL Support for read more button */
[dir="rtl"] .read-more-btn {
  font-family: var(--font-arabic);
}

@media (max-width: 768px) {
  .testimonial-image-container,
  .testimonial-image {
    width: 150px;
    height: 150px;
  }
  
  .testimonial-image {
    border-radius: 75px;
  }

  .testimonials-wrapper {
    padding: 0 3rem;
  }

  .nav-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .testimonial-card {
    flex: 0 0 260px;
    width: 260px;
    padding: 1.5rem;
  }

  .testimonials-track {
    padding: 1rem 0.25rem;
    margin-right: 0.5rem;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-260px * 4 - 2rem * 4)); /* Adjust for mobile card width */
    }
  }
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}

.prev-arrow {
  left: 0;
}

.next-arrow {
  right: 0;
}

.nav-arrow:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* RTL support for navigation arrows */
[dir="rtl"] .prev-arrow {
  left: auto;
  right: 0;
}

[dir="rtl"] .next-arrow {
  right: auto;
  left: 0;
}

[dir="rtl"] .prev-arrow i {
  transform: rotate(180deg);
}

[dir="rtl"] .next-arrow i {
  transform: rotate(180deg);
}

/* RTL Support for logo containers */
[dir="rtl"] .logo-container {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .brand-text,
[dir="rtl"] .brand-text-footer {
  font-family: var(--font-arabic);
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .logo-area {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-brand .logo-container {
  justify-content: center;
}

/* Ensure the navigation maintains proper RTL order */
[dir="rtl"] .main-nav ul {
  flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-text {
    height: 40px;
  }

  .logo-no-text {
    height: 60px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-text-footer {
    font-size: 1.5rem;
  }

  .logo-container {
    gap: 0.5rem;
  }
}

#about {
  padding: var(--section-padding);
  background: var(--background);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(10,186,181,0.15);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h2 {
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

/* RTL Support for about section */
[dir="rtl"] .about-content {
  direction: rtl;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    min-height: 300px;
    order: 2;
  }

  .about-text {
    order: 1;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

/* Ensure buttons and inputs use the correct font */
button,
input,
textarea {
  font-family: inherit;
}

/* Update specific elements that might need font adjustments */
.testimonial-name,
.testimonial-title,
.testimonial-text {
  font-family: inherit;
}

.read-more-btn {
  font-family: inherit;
}

.footer-content {
  font-family: inherit;
}

/* Ensure navigation uses correct font */
.main-nav {
  font-family: inherit;
}

/* Ensure social links use correct font */
.social-links {
  font-family: inherit;
}

#contact {
  padding: var(--section-padding);
  background: var(--background);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-container {
  padding: 2rem;
  text-align: center;
}

.contact-form-container h2 {
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(10,186,181,0.15);
}

/* RTL Support for contact section */
[dir="rtl"] .contact-content {
  direction: rtl;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    order: 1;
    padding: 1rem;
  }

  .contact-image-container {
    order: 2;
    min-height: 300px;
  }
}

#services h2,
#testimonials h2,
.contact-form-container h2 {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

/* Update contact form container to center align */
.contact-form-container {
  padding: 2rem;
  text-align: center;
}

/* Ensure form itself stays left-aligned */
.contact-form-container form {
  text-align: left;
}

/* RTL support for form alignment */
[dir="rtl"] .contact-form-container form {
  text-align: right;
}

/* Floating Icons Styles */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.icon {
  position: absolute;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(10, 186, 181, 0.2);
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Icon Positions */
.icon-1 {
  top: 15%;
  left: 0;
  animation-delay: 0s;
}

.icon-2 {
  top: 10%;
  right: 5%;
  animation-delay: 0.5s;
}

.icon-3 {
  top: 40%;
  left: -5%;
  animation-delay: 1s;
}

.icon-4 {
  top: 35%;
  right: -5%;
  animation-delay: 1.5s;
}

.icon-5 {
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.icon-6 {
  bottom: 15%;
  right: 0;
  animation-delay: 2.5s;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Hover effect for icons */
.icon:hover {
  animation-play-state: paused;
  transform: scale(1.2);
}

/* Responsive adjustments for floating icons */
@media (max-width: 768px) {
  .icon {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  
  .icon-1 { left: 5%; }
  .icon-2 { right: 10%; }
  .icon-3 { left: 0; }
  .icon-4 { right: 0; }
  .icon-5 { left: 10%; }
  .icon-6 { right: 5%; }
}

/* RTL Support for hero section */
[dir="rtl"] .hero-content {
  direction: rtl;
}

[dir="rtl"] .hero-image {
  justify-content: flex-start;
}

/* RTL Support for logo containers */
[dir="rtl"] .logo-container {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .brand-text,
[dir="rtl"] .brand-text-footer {
  font-family: var(--font-arabic);
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .logo-area {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-brand .logo-container {
  justify-content: center;
}

/* Ensure the navigation maintains proper RTL order */
[dir="rtl"] .main-nav ul {
  flex-direction: row-reverse;
}

[dir="rtl"] .main-nav a::after {
  right: 0;
  left: auto;
}

[dir="rtl"] .footer-nav {
  text-align: right;
}

/* Responsive Navigation and Footer */
@media (max-width: 768px) {
  .logo-area {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .footer-brand {
    text-align: center;
    margin: 0 auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* RTL support for hero section */
[dir="rtl"] .hero-content {
  direction: rtl;
}

[dir="rtl"] .hero-image {
  justify-content: flex-start;
}

/* RTL Support for logo containers */
[dir="rtl"] .logo-container {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .brand-text,
[dir="rtl"] .brand-text-footer {
  font-family: var(--font-arabic);
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .logo-area {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-brand .logo-container {
  justify-content: center;
}

/* Ensure the navigation maintains proper RTL order */
[dir="rtl"] .main-nav ul {
  flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-text {
    height: 40px;
  }

  .logo-no-text {
    height: 60px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-text-footer {
    font-size: 1.5rem;
  }

  .logo-container {
    gap: 0.5rem;
  }
}

/* Hero CTA Button Styles */
.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--background);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  margin-top: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}

.hero-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 186, 181, 0.4);
}

.hero-cta:active {
  transform: translateY(-1px);
}

/* RTL Support for hero CTA */
[dir="rtl"] .hero-cta {
  font-family: var(--font-arabic);
}

@media (max-width: 768px) {
  .hero-cta {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
  }
}

/* Navigation Styles */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

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

/* Section Background Images */
.section-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.section-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

/* Service Images */
.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

/* Update section positioning for background images */
#about, #contact {
  position: relative;
  background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.95));
}

/* Testimonials Section Fixes */
.testimonials-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1rem;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  animation: scroll 35s linear infinite;
  padding: 1rem 0;
}

.testimonial-card {
  flex: 0 0 300px;
  background: var(--background);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-image {
  width: 180px;
  height: 180px;
  border-radius: 90px;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid var(--primary);
}

@media (max-width: 768px) {
  .testimonial-image {
    width: 150px;
    height: 150px;
  }
  
  .testimonial-card {
    flex: 0 0 260px;
    width: 260px;
    padding: 1.5rem;
  }
}

/* Ensure proper section spacing */
section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Fix section headings alignment */
#services h2,
#testimonials h2,
#about h2,
.contact-form-container h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

/* Ensure proper grid layouts */
.services-grid,
.about-content,
.contact-content {
  display: grid;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.about-content,
.contact-content {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding: var(--section-padding);
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* Ensure proper RTL support */
[dir="rtl"] .main-nav a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .about-content,
[dir="rtl"] .contact-content {
  direction: rtl;
}

/* Fix footer spacing */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    margin-bottom: 2rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .intro p {
    font-size: 1.1rem;
    margin: 1rem 0;
  }
}

/* Fix testimonials scroll animation for mobile */
@media (max-width: 768px) {
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-260px * 4 - 2rem * 4));
    }
  }
}

@media (max-width: 576px) {
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-240px * 4 - 2rem * 4));
    }
  }
}

/* Ensure proper font sizes across devices */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-text-footer {
    font-size: 1.5rem;
  }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  .main-nav a,
  .footer-nav a,
  .social-icons a,
  button {
    padding: 0.8rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Navigation Styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1000;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.main-nav {
    transition: all 0.3s ease-in-out;
}

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

    .logo-area {
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--background);
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    [dir="rtl"] .main-nav {
        right: auto;
        left: -100%;
    }

    [dir="rtl"] .main-nav.active {
        right: auto;
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Adjust language toggle position */
    #lang-toggle {
        position: absolute;
        top: 1rem;
        right: 4rem;
    }

    [dir="rtl"] #lang-toggle {
        right: auto;
        left: 4rem;
    }
} 