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

:root {
  --primary: #015a58;
  --primary-light: #017a77;
  --primary-dark: #013d3c;
  --accent: #015a58;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #015a58 0%, #017a77 100%);
}

body {
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* LTR Support */
body[dir="ltr"],
body.lang-ltr {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body[dir="ltr"] .container,
body.lang-ltr .container {
  text-align: left;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 24px;
  right: 50%;
  transform: translateX(50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1200px;
}

.nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.logo-image {
  display: flex;
  align-items: center;
}

.logo-image img {
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    124.34deg,
    #015a58 -0.16%,
    rgba(0, 15, 15, 0.85) 57.47%
  );
}

.hero-overlay-image {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  max-width: 100%;
  height: auto;
}

.hero-overlay-image img,
.hero-overlay-image svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.hero-overlay-image img.overlay-svg {
  filter: brightness(0) invert(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
}

/* Simple load-in fade for hero elements */
.fade-in-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease-out forwards;
}

.fade-in-on-load.delay-0 {
  animation-delay: 0s;
}

.fade-in-on-load.delay-1 {
  animation-delay: 0.1s;
}

.fade-in-on-load.delay-2 {
  animation-delay: 0.2s;
}

.fade-in-on-load.delay-3 {
  animation-delay: 0.3s;
}

.fade-in-on-load.delay-4 {
  animation-delay: 0.4s;
}

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

.hero-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(1, 90, 88, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 100px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-tag i,
.hero-tag svg,
.hero-tag .elementor-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-tag svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--accent);
}

.hero-tag svg path {
  fill: currentColor;
}

.hero-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
}

.btn i,
.btn svg,
.btn .btn-icon,
.btn .btn-icon i,
.btn .btn-icon svg,
.btn .elementor-icon,
.btn .elementor-icon i,
.btn .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s ease;
  vertical-align: middle;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn .fa,
.btn .btn-icon .fa {
  font-weight: 900;
}

.btn .btn-icon {
  font-size: inherit;
}

.btn svg,
.btn .btn-icon svg {
  fill: currentColor;
  width: 1em;
  height: 1em;
}

.btn.large i,
.btn.large svg,
.btn.large .btn-icon {
  font-size: 18px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(1, 90, 88, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.btn-link:hover {
  gap: 12px;
}

.btn.large {
  padding: 20px 40px;
  font-size: 18px;
}

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

/* Stats */
.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 90, 88, 0.2);
  border-radius: 12px;
  color: var(--accent);
  font-size: 24px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 14px;
  z-index: 1;
}

/* Video Modal */
.hero-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.hero-video-modal.active {
  display: flex;
}

.hero-video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.hero-video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  z-index: 10001;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10002;
}

.hero-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-video-modal-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.hero-video-modal-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

.hero-video-modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-video-modal-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

@media (max-width: 768px) {
  .hero-video-modal-content {
    width: 95%;
    border-radius: 12px;
  }

  .hero-video-modal-close {
    top: -45px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Floating Animation - Smooth and Continuous */
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(6px, -6px);
  }
  50% {
    transform: translate(-6px, 6px);
  }
  75% {
    transform: translate(6px, 6px);
  }
}

/* Floating Animation for Visual Header (Icon + Title together) */
.visual-header {
  animation: float 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.visual-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Floating Animation for Achievement Cards (Icon + Text together) - exclude ones with animate class */
.achievement-card:not(.animate) {
  animation: float 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.achievement-card:not(.animate):nth-child(1) {
  animation-delay: 0s;
}

.achievement-card:not(.animate):nth-child(2) {
  animation-delay: 1.5s;
}

/* Section Styles */
section {
  padding: 70px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 15px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.section-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-tag {
  justify-content: center;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
}

/* Scroll-driven animations using Scroll-driven Animations API */
@keyframes slideInScroll {
  from {
    opacity: 0;
    transform: translateY(50px) translateX(var(--initial-x, 0));
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* Initial state for all animated elements - hidden until animation starts */
@supports (animation-timeline: view()) {
  section .section-tag.animate,
  section .section-title.animate,
  section .section-description.animate,
  .about-section .about-text.animate,
  .about-section .btn.animate,
  .about-section .feature-item.animate,
  .about-section .image-card.animate,
  .services-section .service-card.animate,
  .why-section .why-text.animate,
  .why-section .why-item.animate,
  .why-section .visual-card.animate,
  .why-section .achievement-card.animate,
  .testimonials-section .testimonial-card.animate,
  .categories-section .category-title-wrapper.animate,
  .categories-section .project-card.animate,
  .project-card.animate,
  .projects-carousel .project-card.animate,
  .owl-item .project-card.animate,
  .owl-carousel .owl-item .project-card.animate,
  .contact-section .contact-method.animate,
  .hero .hero-tag.animate,
  .hero .hero-title.animate,
  .hero .hero-description.animate,
  .hero .hero-actions.animate,
  .hero .stats-wrapper.animate,
  .hero .stat-card.animate,
  .cta-section .cta-title.animate,
  .cta-section .cta-text.animate,
  .cta-section .cta-actions.animate,
  .cta-section .cta-card.animate,
  .footer .footer-logo-section.animate,
  .footer .footer-social-section.animate,
  .footer .footer-links-section.animate,
  .footer .footer-copyright-section.animate {
    opacity: 0;
    transform: translateY(50px) translateX(var(--initial-x, 0));
    will-change: opacity, transform;
  }
}

/* All Sections - Section Headers */
section .section-tag.animate,
section .section-title.animate,
section .section-description.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* About Section - All Items */
.about-section .about-text.animate,
.about-section .btn.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

.about-section .feature-item.animate {
  --initial-x: -60px;
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

.about-section .feature-item.animate:nth-child(even) {
  --initial-x: 60px;
}

.about-section .image-card.animate {
  --initial-x: -40px;
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

.about-section .image-card.animate:nth-child(even) {
  --initial-x: 40px;
}

body[dir="rtl"] .about-section .feature-item.animate,
body.lang-rtl .about-section .feature-item.animate {
  --initial-x: 60px;
}

body[dir="rtl"] .about-section .feature-item.animate:nth-child(even),
body.lang-rtl .about-section .feature-item.animate:nth-child(even) {
  --initial-x: -60px;
}

body[dir="rtl"] .about-section .image-card.animate,
body.lang-rtl .about-section .image-card.animate {
  --initial-x: 40px;
}

body[dir="rtl"] .about-section .image-card.animate:nth-child(even),
body.lang-rtl .about-section .image-card.animate:nth-child(even) {
  --initial-x: -40px;
}

/* Services Section */
.services-section .service-card.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* Why Section */
.why-section .why-text.animate,
.why-section .why-item.animate,
.why-section .visual-card.animate,
.why-section .achievement-card.animate {
  animation: slideInScroll linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  will-change: opacity, transform;
  /* Ensure no conflicting transitions */
  transition: none !important;
  /* Ensure elements are visible for view timeline */
  view-timeline-inset: 0;
}

/* Testimonials Section */
.testimonials-section .testimonial-card.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* Projects Section */
.categories-section .category-title-wrapper.animate,
.categories-section .project-card.animate,
.project-card.animate,
.projects-carousel .project-card.animate,
.owl-item .project-card.animate,
.owl-carousel .owl-item .project-card.animate {
  animation: slideInScroll linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  will-change: opacity, transform;
  /* Ensure no conflicting transitions */
  transition: box-shadow 0.3s ease !important;
  /* Ensure elements are visible for view timeline */
  view-timeline-inset: 0;
  /* Ensure proper stacking context */
  transform-style: preserve-3d;
}

/* Contact Section */
.contact-section .contact-method.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* Hero Section */
.hero .hero-tag.animate,
.hero .hero-title.animate,
.hero .hero-description.animate,
.hero .hero-actions.animate,
.hero .stats-wrapper.animate,
.hero .stat-card.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* CTA Section */
.cta-section .cta-title.animate,
.cta-section .cta-text.animate,
.cta-section .cta-actions.animate,
.cta-section .cta-card.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* Footer Section */
.footer .footer-logo-section.animate,
.footer .footer-social-section.animate,
.footer .footer-links-section.animate,
.footer .footer-copyright-section.animate {
  animation: slideInScroll linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  flex-shrink: 0;
}

.feature-icon svg,
.feature-icon i,
.feature-icon .elementor-icon {
  color: #ffffff !important;
  fill: #ffffff !important;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.feature-icon svg {
  width: 14px !important;
  height: 14px !important;
}

.feature-icon svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.feature-icon svg * {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-light);
}

.about-images {
  display: grid;
  gap: 24px;
}

.image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card.large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

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

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-white);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.image-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Categories Section */
.categories-section {
  background: var(--bg-white);
}

.category-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 100px;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
}

.category-tab i,
.category-tab svg,
.category-tab .elementor-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.category-tab svg path {
  fill: currentColor;
}

.category-tab:hover,
.category-tab.active {
  background: var(--gradient);
  color: var(--text-white);
  border-color: var(--primary);
}

.category-tab:hover i,
.category-tab.active i,
.category-tab:hover svg,
.category-tab.active svg {
  color: var(--text-white);
}

/* Category Projects Wrapper */
.category-projects-wrapper {
  margin-bottom: 64px;
}

.category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.category-title-wrapper i,
.category-title-wrapper svg,
.category-title-wrapper .elementor-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.category-title-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.category-title-wrapper svg path {
  fill: var(--primary);
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Projects Carousel */
.projects-carousel {
  margin-bottom: 0;
}

.projects-carousel .project-card {
  margin: 0;
}

/* Ensure active carousel items are visible */
.projects-carousel.owl-carousel .owl-item.active .project-card {
  display: block !important;
}

.projects-carousel.owl-carousel .owl-item .project-card {
  display: block;
}

/* Owl Carousel Navigation */
.owl-carousel .owl-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.owl-carousel .owl-nav button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
  background: var(--gradient);
  border-color: var(--primary);
  color: var(--text-white);
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  margin: 0;
}

.owl-carousel .owl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.owl-carousel .owl-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.owl-carousel .owl-dots button.active,
.owl-carousel .owl-dots button:hover {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

.owl-carousel .owl-dots button span {
  display: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.project-card {
  background: var(--bg-white);
  border-radius: 24px;
  overflow: clip; /* Use clip instead of hidden for scroll-driven animations compatibility */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.project-card.animate {
  transition: box-shadow 0.3s ease !important;
  /* Let animation handle transform and opacity */
}

/* Prevent hover transform from interfering with scroll animation */
.project-card.animate:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12) !important;
  /* Don't override transform - let animation handle it */
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Override hover transform for animated cards - use box-shadow only */
.project-card.animate:hover {
  transform: none !important;
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

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

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--text-white);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.project-city-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.project-badge.status {
  background: var(--primary);
}

.project-badge.success {
  background: #27ae60;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 90, 88, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-view {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-white);
  border: none;
  border-radius: 50%;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: none; /* Prevent clicking on the eye icon separately since entire card is clickable */
}

.btn-view:hover {
  transform: scale(1.1);
}

.project-info {
  padding: 24px;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 13px;
}

.project-action {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient);
  color: var(--text-white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: none; /* Prevent separate click since entire card is clickable */
}

.project-card:hover .project-button {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 90, 88, 0.3);
}

.project-button i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-button i {
  transform: translateX(4px);
}

body[dir="rtl"] .project-card:hover .project-button i,
body.lang-rtl .project-card:hover .project-button i {
  transform: translateX(-4px);
}

.centered-action {
  text-align: center;
}

/* Services Section */
.services-section {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(1, 90, 88, 0.12);
}

.service-card.featured {
  background: var(--gradient);
  color: var(--text-white);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features li {
  color: var(--text-white);
}

.featured-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--accent);
  color: var(--text-white);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 20px;
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 24px;
}

.service-icon i,
.service-icon svg,
.service-icon .elementor-icon,
.service-icon .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.service-icon svg path {
  fill: var(--primary);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.service-card.featured .service-icon i,
.service-card.featured .service-icon svg,
.service-card.featured .service-icon .elementor-icon,
.service-card.featured .service-icon .fa {
  color: var(--text-white);
}

.service-card.featured .service-icon svg {
  fill: var(--text-white);
}

.service-card.featured .service-icon svg path {
  fill: var(--text-white);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.service-features i,
.service-features .fa,
.service-features .fa-check {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  color: var(--primary);
  font-size: 16px;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service-card.featured .service-features i,
.service-card.featured .service-features .fa,
.service-card.featured .service-features .fa-check {
  color: var(--text-white);
}

.service-card.featured .btn-link {
  color: var(--text-white);
}

/* Why Section */
.why-section {
  background: var(--bg-white);
  width: 100%;
  overflow-x: clip; /* Use clip instead of hidden for scroll-driven animations compatibility */
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.why-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.why-visual {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.why-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-item {
  display: flex;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

/* Ensure animated why-items don't have conflicting transitions */
.why-item.animate {
  transition: none !important;
}

.why-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.why-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 16px;
  color: var(--text-white);
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 15px;
  color: var(--text-light);
}

.why-visual {
  display: grid;
  gap: 24px;
}

.visual-card {
  padding: 32px;
  border-radius: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: clip; /* Use clip instead of hidden for scroll-driven animations compatibility */
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.visual-header i,
.visual-header svg,
.visual-header .elementor-icon,
.visual-header .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visual-header svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.visual-header svg path {
  fill: var(--primary);
}

.visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 200px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.chart-bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.5s ease;
}

.chart-bar:hover {
  opacity: 0.8;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.achievement-card {
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.achievement-card i,
.achievement-card svg,
.achievement-card .elementor-icon,
.achievement-card .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.achievement-card svg {
  width: 48px;
  height: 48px;
  fill: var(--accent);
}

.achievement-card svg path {
  fill: var(--accent);
}

.achievement-card h4 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.achievement-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.testimonial-card.featured {
  background: var(--gradient);
  color: var(--text-white);
}

.testimonial-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.testimonial-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.testimonial-card.featured .testimonial-header h4,
.testimonial-card.featured .testimonial-header p {
  color: var(--text-white);
}

.testimonial-header p {
  font-size: 13px;
  color: var(--text-light);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  color: var(--accent);
  font-size: 14px;
}

.testimonial-rating i,
.testimonial-rating .fa,
.testimonial-rating .fa-star {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  display: inline-block;
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.testimonial-rating .far.fa-star {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.2);
}

.testimonial-card.featured .testimonial-rating i,
.testimonial-card.featured .testimonial-rating .fa,
.testimonial-card.featured .testimonial-rating .fa-star {
  color: rgba(255, 255, 255, 0.8);
}

.testimonial-card.featured .testimonial-rating .far.fa-star {
  color: rgba(255, 255, 255, 0.3);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.testimonial-card.featured .testimonial-text {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-quote {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 48px;
  color: var(--border);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-quote i,
.testimonial-quote .fa,
.testimonial-quote .fa-quote-right {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 48px;
  display: inline-block;
  color: var(--border);
  opacity: 0.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.testimonial-card.featured .testimonial-quote {
  color: rgba(255, 255, 255, 0.2);
}

.testimonial-card.featured .testimonial-quote i,
.testimonial-card.featured .testimonial-quote .fa,
.testimonial-card.featured .testimonial-quote .fa-quote-right {
  color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* CTA Section */
.cta-section {
  background: var(--bg-white);
  padding: 80px 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 32px;
}

.cta-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.cta-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-method {
  display: flex;
  gap: 20px;
}

.contact-method-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 16px;
  border-radius: 16px;
  margin: -16px;
}

.contact-method-link:hover {
  background: rgba(1, 90, 88, 0.05);
  transform: translateY(-2px);
}

.contact-method-link:hover .method-icon {
  transform: scale(1.1);
}

.method-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 12px;
  color: var(--text-white);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.method-icon i,
.method-icon svg,
.method-icon .elementor-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.method-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.method-icon svg path {
  fill: var(--text-white);
}

.contact-method h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-method p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* Contact Form */
.contact-form {
  padding: 40px;
  border-radius: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Tajawal", sans-serif;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1, 90, 88, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Form 7 Styles */
.wpcf7-form {
  font-family: "Tajawal", sans-serif;
}

.wpcf7-form .aljoud-form-group {
  margin-bottom: 24px;
}

.wpcf7-form .aljoud-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: right;
}

body[dir="ltr"] .wpcf7-form .aljoud-form-group label,
body.lang-ltr .wpcf7-form .aljoud-form-group label {
  text-align: left;
}

.wpcf7-form .aljoud-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .wpcf7-form .aljoud-form-row {
    grid-template-columns: 1fr;
  }
}

.wpcf7-form .aljoud-form-input,
.wpcf7-form .aljoud-form-select,
.wpcf7-form .aljoud-form-textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Tajawal", sans-serif;
  transition: all 0.3s ease;
  background: var(--bg-white);
  color: var(--text-dark);
  box-sizing: border-box;
}

body[dir="ltr"] .wpcf7-form .aljoud-form-input,
body.lang-ltr .wpcf7-form .aljoud-form-input,
body[dir="ltr"] .wpcf7-form .aljoud-form-select,
body.lang-ltr .wpcf7-form .aljoud-form-select,
body[dir="ltr"] .wpcf7-form .aljoud-form-textarea,
body.lang-ltr .wpcf7-form .aljoud-form-textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wpcf7-form .aljoud-form-input:focus,
.wpcf7-form .aljoud-form-select:focus,
.wpcf7-form .aljoud-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1, 90, 88, 0.1);
}

.wpcf7-form .aljoud-form-input::placeholder,
.wpcf7-form .aljoud-form-textarea::placeholder {
  color: rgba(102, 102, 102, 0.6);
}

.wpcf7-form .aljoud-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
  padding-left: 50px;
  padding-right: 20px;
}

body[dir="ltr"] .wpcf7-form .aljoud-form-select,
body.lang-ltr .wpcf7-form .aljoud-form-select {
  background-position: right 20px center;
  padding-right: 50px;
  padding-left: 20px;
}

.wpcf7-form .aljoud-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7-form .aljoud-form-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient);
  color: var(--text-white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Tajawal", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  position: relative;
}

body[dir="ltr"] .wpcf7-form .aljoud-form-submit,
body.lang-ltr .wpcf7-form .aljoud-form-submit {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  flex-direction: row-reverse;
}

.wpcf7-form .aljoud-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(1, 90, 88, 0.3);
}

.wpcf7-form .aljoud-form-submit::after {
  content: "\f1d8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  display: inline-block;
}

body[dir="ltr"] .wpcf7-form .aljoud-form-submit::after,
body.lang-ltr .wpcf7-form .aljoud-form-submit::after {
  order: -1;
  transform: scaleX(-1);
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.wpcf7-not-valid {
  border-color: #dc3545 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.wpcf7-validation-errors {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.wpcf7-mail-sent-ok {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: 80px 0 32px;
  text-align: center;
}

/* Logo Animation */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animated-logo {
  animation: logoFloat 3s ease-in-out infinite;
}

.footer-logo-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-image-wrapper {
  margin-bottom: 0;
  display: inline-block;
}

.footer-logo-image {
  max-width: 150px;
  height: auto;
  display: block;
}

.footer-logo-text-wrapper {
  display: inline-block;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.footer-logo .logo-dot {
  display: none;
}

.footer-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Social Media Section */
.footer-social-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
}

.social-link i,
.social-link svg,
.social-link .elementor-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.social-link svg path {
  fill: var(--text-white);
}

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

/* Footer Links Section */
.footer-links-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-link:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

body[dir="rtl"] .footer-link:not(:last-child)::after,
body.lang-rtl .footer-link:not(:last-child)::after {
  left: auto;
  right: -12px;
}

/* Footer Copyright Section */
.footer-copyright-section {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
}

.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Legacy styles for backward compatibility */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-company {
  max-width: 100%;
}

.footer-about {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--text-white);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(1, 90, 88, 0.3);
}

.back-to-top i,
.back-to-top .fa,
.back-to-top svg,
.back-to-top .elementor-icon {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro",
    "Font Awesome 5 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.back-to-top svg path {
  fill: var(--text-white);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #017a77;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(1, 90, 88, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }

  .section-title {
    font-size: 48px;
  }

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

  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-text {
    margin-bottom: 32px;
  }

  .why-items {
    gap: 24px;
  }

  .why-item {
    gap: 20px;
  }

  .why-number {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .why-item h4 {
    font-size: 18px;
  }

  .visual-card {
    padding: 24px;
  }

  .visual-header {
    margin-bottom: 24px;
  }

  .visual-chart {
    height: 160px;
    gap: 12px;
  }

  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-card {
    padding: 24px;
  }

  .achievement-card h4 {
    font-size: 32px;
  }

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

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

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

  .footer-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    top: 16px;
    width: calc(100% - 32px);
  }

  .nav-container {
    padding: 12px 24px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    margin-top: 16px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    gap: 16px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-glass-card {
    padding: 32px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 16px;
  }

  .stats-wrapper {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 36px;
  }

  .projects-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    gap: 8px;
  }

  .category-tab {
    padding: 12px 24px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 40px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .cta-title {
    font-size: 36px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .why-section {
    padding: 0;
  }

  .why-grid {
    gap: 32px;
    width: 100%;
    max-width: 100%;
  }

  .why-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .why-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .why-text {
    font-size: 15px;
    margin-bottom: 24px;
    word-wrap: break-word;
  }

  .why-items {
    gap: 20px;
    width: 100%;
  }

  .why-item {
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .why-item > div:last-child {
    min-width: 0;
    flex: 1;
  }

  .why-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
  }

  .why-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .why-item p {
    font-size: 14px;
  }

  .why-visual {
    gap: 20px;
  }

  .visual-card {
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .visual-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .visual-header i,
  .visual-header svg,
  .visual-header .elementor-icon,
  .visual-header .fa {
    font-size: 20px;
  }

  .visual-header svg {
    width: 20px;
    height: 20px;
  }

  .visual-header h4 {
    font-size: 16px;
  }

  .visual-chart {
    height: 140px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .chart-bar {
    font-size: 10px;
    padding-bottom: 6px;
    min-width: 0;
    flex: 1;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .achievement-card {
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .achievement-card i,
  .achievement-card svg,
  .achievement-card .elementor-icon,
  .achievement-card .fa {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .achievement-card svg {
    width: 36px;
    height: 36px;
  }

  .achievement-card h4 {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .achievement-card p {
    font-size: 13px;
  }

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

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-logo-section {
    margin-bottom: 32px;
  }

  .footer-social-section {
    margin-bottom: 32px;
  }

  .footer-links-section {
    margin-bottom: 32px;
    gap: 16px;
  }

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

/* ========================================
   LTR (Left-to-Right) Language Support
   ======================================== */

body[dir="ltr"],
body.lang-ltr {
  direction: ltr;
  text-align: left;
}

/* Navigation - LTR */
body[dir="ltr"] .nav-link::after,
body.lang-ltr .nav-link::after {
  right: auto;
  left: 0;
}

body[dir="ltr"] .nav-container,
body.lang-ltr .nav-container {
  flex-direction: row-reverse;
}

body[dir="ltr"] .logo,
body.lang-ltr .logo {
  flex-direction: row-reverse;
}

/* Buttons - LTR */
/* Button order is handled in widget HTML based on language */

/* Arrow Icons - Flip for LTR */
body[dir="ltr"] .btn i.fa-arrow-left,
body.lang-ltr .btn i.fa-arrow-left {
  transform: scaleX(-1);
}

body[dir="ltr"] .btn i.fa-arrow-right,
body.lang-ltr .btn i.fa-arrow-right {
  transform: scaleX(-1);
}

/* Flip all arrow icons in LTR */
body[dir="ltr"] i.fa-arrow-left,
body.lang-ltr i.fa-arrow-left,
body[dir="ltr"] .fa-arrow-left,
body.lang-ltr .fa-arrow-left {
  transform: scaleX(-1);
  display: inline-block;
}

body[dir="ltr"] i.fa-chevron-left,
body.lang-ltr i.fa-chevron-left,
body[dir="ltr"] .fa-chevron-left,
body.lang-ltr .fa-chevron-left {
  transform: scaleX(-1);
  display: inline-block;
}

/* Hero Section - LTR */
body[dir="ltr"] .scroll-indicator,
body.lang-ltr .scroll-indicator {
  right: auto;
  left: 50%;
}

body[dir="ltr"] .back-to-top,
body.lang-ltr .back-to-top {
  left: auto;
  right: 32px;
}

/* Section Tags - LTR */
body[dir="ltr"] .section-tag,
body.lang-ltr .section-tag {
  flex-direction: row-reverse;
}

body[dir="ltr"] .tag-dot,
body.lang-ltr .tag-dot {
  order: -1;
}

/* Feature Items - LTR */
body[dir="ltr"] .feature-item,
body.lang-ltr .feature-item {
  flex-direction: row-reverse;
}

/* Why Items - LTR */
body[dir="ltr"] .why-item,
body.lang-ltr .why-item {
  flex-direction: row-reverse;
}

/* Contact Methods - LTR */
body[dir="ltr"] .contact-method,
body.lang-ltr .contact-method {
  flex-direction: row-reverse;
}

/* Project Meta - LTR */
body[dir="ltr"] .project-meta,
body.lang-ltr .project-meta {
  flex-direction: row-reverse;
}

body[dir="ltr"] .meta-item,
body.lang-ltr .meta-item {
  flex-direction: row-reverse;
}

/* Footer - LTR */
body[dir="ltr"] .footer-content,
body.lang-ltr .footer-content {
  direction: ltr;
}

body[dir="ltr"] .footer-bottom,
body.lang-ltr .footer-bottom {
  flex-direction: row-reverse;
}

/* Footer Links - LTR */
body[dir="ltr"] .footer-links,
body.lang-ltr .footer-links {
  text-align: left;
}

/* Footer Legal - LTR */
body[dir="ltr"] .footer-legal,
body.lang-ltr .footer-legal {
  flex-direction: row-reverse;
}

/* Form Elements - LTR */
body[dir="ltr"] .form-row,
body.lang-ltr .form-row {
  direction: ltr;
}

body[dir="ltr"] .contact-form,
body.lang-ltr .contact-form {
  text-align: left;
}

body[dir="ltr"] .form-group label,
body.lang-ltr .form-group label {
  text-align: left;
}

/* Testimonial Header - LTR */
body[dir="ltr"] .testimonial-header,
body.lang-ltr .testimonial-header {
  grid-template-columns: auto 1fr auto;
  direction: ltr;
}

body[dir="ltr"] .testimonial-quote,
body.lang-ltr .testimonial-quote {
  left: auto;
  right: 24px;
}

/* Project Badge - LTR */
body[dir="ltr"] .project-badge,
body.lang-ltr .project-badge {
  right: auto;
  left: 16px;
}

/* Featured Badge - LTR */
body[dir="ltr"] .featured-badge,
body.lang-ltr .featured-badge {
  left: auto;
  right: 24px;
}

/* Service Features - LTR */
body[dir="ltr"] .service-features li,
body.lang-ltr .service-features li {
  flex-direction: row-reverse;
}

/* Image Overlay - LTR */
body[dir="ltr"] .image-overlay,
body.lang-ltr .image-overlay {
  text-align: left;
}

/* Video Modal Close - LTR */
body[dir="ltr"] .hero-video-modal-close,
body.lang-ltr .hero-video-modal-close {
  right: auto;
  left: 0;
}

/* Social Links - LTR */
body[dir="ltr"] .social-links,
body.lang-ltr .social-links {
  direction: ltr;
}

/* Stat Card - LTR */
body[dir="ltr"] .stat-card,
body.lang-ltr .stat-card {
  flex-direction: row-reverse;
}

/* Project Category - LTR */
body[dir="ltr"] .project-category,
body.lang-ltr .project-category {
  flex-direction: row-reverse;
}

/* Project Location - LTR */
body[dir="ltr"] .project-location,
body.lang-ltr .project-location {
  flex-direction: row-reverse;
}

/* Scroll Indicator Text - LTR */
body[dir="ltr"] .scroll-indicator,
body.lang-ltr .scroll-indicator {
  direction: ltr;
}

/* Section Header Centered - LTR */
body[dir="ltr"] .section-header.centered,
body.lang-ltr .section-header.centered {
  direction: ltr;
}

body[dir="ltr"] .section-header.centered .section-tag,
body.lang-ltr .section-header.centered .section-tag {
  direction: ltr;
}

/* Hero Tag - LTR */
body[dir="ltr"] .hero-tag,
body.lang-ltr .hero-tag {
  flex-direction: row-reverse;
}

/* Category Tabs - LTR */
body[dir="ltr"] .category-tab,
body.lang-ltr .category-tab {
  flex-direction: row-reverse;
}

/* Visual Header - LTR */
body[dir="ltr"] .visual-header,
body.lang-ltr .visual-header {
  flex-direction: row-reverse;
}

/* About Grid - LTR (swap columns) */
body[dir="ltr"] .about-grid,
body.lang-ltr .about-grid {
  direction: ltr;
}

body[dir="ltr"] .about-content,
body.lang-ltr .about-content {
  order: 2;
}

body[dir="ltr"] .about-images,
body.lang-ltr .about-images {
  order: 1;
}

/* Why Grid - LTR (swap columns) */
body[dir="ltr"] .why-grid,
body.lang-ltr .why-grid {
  direction: ltr;
}

body[dir="ltr"] .why-content,
body.lang-ltr .why-content {
  order: 2;
}

body[dir="ltr"] .why-visual,
body.lang-ltr .why-visual {
  order: 1;
}

/* Contact Grid - LTR (swap columns) */
body[dir="ltr"] .contact-grid,
body.lang-ltr .contact-grid {
  direction: ltr;
}

body[dir="ltr"] .contact-info,
body.lang-ltr .contact-info {
  order: 2;
}

body[dir="ltr"] .contact-form,
body.lang-ltr .contact-form {
  order: 1;
}

/* CTA Grid - LTR (swap columns) */
body[dir="ltr"] .cta-card,
body.lang-ltr .cta-card {
  direction: ltr;
}

body[dir="ltr"] .cta-content,
body.lang-ltr .cta-content {
  order: 2;
}

body[dir="ltr"] .cta-image,
body.lang-ltr .cta-image {
  order: 1;
}

/* Responsive LTR Adjustments */
@media (max-width: 768px) {
  body[dir="ltr"] .nav-links,
  body.lang-ltr .nav-links {
    left: auto;
    right: 0;
  }
}
