/* ==========================================
   CSS RESET & FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

:root {
  /* Color Palette */
  --primary-blue: #0A2E63;
  --primary-red: #D71920;
  --primary-red-hover: #b51218;
  --dark-blue: #051630;
  --dark-slate: #0d1e36;
  --light-bg: #f4f6f9;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
  
  /* Spacing Grid (8px system) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 9999px;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(10, 46, 99, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 46, 99, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(10, 46, 99, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);

  /* Performance transitions */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Container width */
  --max-width: 1280px;
  
  /* Scroll Progress */
  --scroll-percent: 0%;
}

/* Base Accessibility Rules */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================
   GLOBAL LAYOUT & TYPOGRAPHY
   ========================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-en);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  direction: ltr;
  text-align: left;
}

/* RTL Override */
body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-blue);
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 {
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Translation Helpers - target elements inside body to avoid hiding the html tag itself */
body:not(.rtl) [lang="ar"] {
  display: none !important;
}
body.rtl [lang="en"] {
  display: none !important;
}

/* Specific display rules for active languages */
body.rtl [lang="ar"] {
  display: inline-block;
}
body.rtl [lang="ar"].flex {
  display: flex;
}
body.rtl [lang="ar"].grid {
  display: grid;
}
body.rtl [lang="ar"].block {
  display: block;
}

body:not(.rtl) [lang="en"] {
  display: inline-block;
}
body:not(.rtl) [lang="en"].flex {
  display: flex;
}
body:not(.rtl) [lang="en"].grid {
  display: grid;
}
body:not(.rtl) [lang="en"].block {
  display: block;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  width: var(--scroll-percent);
  z-index: 1001;
  transition: width 0.1s ease;
}

body.rtl .scroll-progress {
  left: auto;
  right: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  position: relative;
}

.section-dark {
  background-color: var(--dark-blue);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--white);
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(10, 46, 99, 0.08);
  color: var(--primary-blue);
  border-radius: var(--radius-round);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-dark .section-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section-title {
  font-size: 36px;
  margin-bottom: var(--space-3);
  position: relative;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-5);
  font-size: 18px;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215, 25, 32, 0.3);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--dark-slate);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 46, 99, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.section-dark .btn-ghost {
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.section-dark .btn-ghost:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 80px;
}

#navbar.scrolled {
  height: 70px;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
}

.logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

#navbar.scrolled .logo img {
  height: 46px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-blue);
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary-red);
  background-color: rgba(215, 25, 32, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Language switcher pill */
.lang-switch {
  background-color: rgba(10, 46, 99, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-blue);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Hamburger menu icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 2px;
  transition: var(--transition-normal);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-10) var(--space-4) var(--space-4);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
    z-index: 1005;
  }

  body.rtl .nav-menu {
    right: auto;
    left: -100%;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

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

  body.rtl .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-actions {
    margin-top: auto;
    width: 100%;
    flex-direction: column;
    gap: var(--space-2);
  }

  .nav-actions .btn {
    width: 100%;
  }

  /* Hamburger active state */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-color: var(--dark-blue);
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* match the opacity of the active slide for dark tint readability */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 22, 48, 0.9) 0%, rgba(10, 46, 99, 0.6) 50%, rgba(215, 25, 32, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 16px;
  background-color: rgba(215, 25, 32, 0.2);
  border: 1px solid rgba(215, 25, 32, 0.3);
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 54px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

body.rtl .hero-title {
  font-size: 56px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px !important;
  }
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-red);
  margin-bottom: var(--space-2);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-5);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
}

/* Scroll indicator animation */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  gap: 8px;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: var(--radius-round);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 6px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================
   ABOUT US
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.about-visual {
  position: relative;
}

.about-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.about-img-container:hover img {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background-color: var(--primary-blue);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.rtl .about-experience-badge {
  right: auto;
  left: var(--space-4);
}

.about-experience-badge .years {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-red);
}

.about-experience-badge .text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-list {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .about-list {
    grid-template-columns: 1fr;
  }
}

.about-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.about-list-item::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(215, 25, 32, 0.1);
  color: var(--primary-red);
  border-radius: var(--radius-round);
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

body.rtl .about-list-item::before {
  content: '✓';
}

/* ==========================================
   OUR SERVICES
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-3);
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 46, 99, 0.15);
}

.service-icon-container {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(10, 46, 99, 0.05);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-container {
  background-color: var(--primary-red);
  color: var(--white);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
  transition: var(--transition-fast);
}

.service-card:hover h3 {
  color: var(--primary-red);
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.service-bullet-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-bullet-item {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ==========================================
   BRANDS LOGO GRID
   ========================================== */
.brands-section {
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.brand-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.brand-card:hover .brand-name {
  color: var(--primary-red);
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.why-card {
  background-color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.rtl .why-card {
  border-left: none;
  border-right: 4px solid var(--primary-red);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: rgba(10, 46, 99, 0.01);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: rgba(215, 25, 32, 0.08);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card h4 {
  font-size: 16px;
  color: var(--primary-blue);
  font-weight: 600;
}

/* ==========================================
   PREVIOUS PROJECTS
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-location-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(10, 46, 99, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 600;
}

body.rtl .project-location-badge {
  left: auto;
  right: 12px;
}

.project-info {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-partner {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-description {
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
}

/* ==========================================
   STATISTICS SECTION
   ========================================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.85;
}

/* ==========================================
   GALLERY (Masonry & Lightbox)
   ========================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  justify-content: center;
}

.gallery-filter-btn {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-round);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 46, 99, 0.9) 0%, rgba(10, 46, 99, 0.2) 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2);
  color: var(--white);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

.gallery-item-tag {
  font-size: 10px;
  background-color: var(--primary-red);
  padding: 2px 8px;
  border-radius: var(--radius-round);
  align-self: flex-start;
  margin-bottom: 4px;
  font-weight: 600;
}

.gallery-item-title {
  font-size: 14px;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 22, 48, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}



/* ==========================================
   TESTIMONIALS SLIDER
   ========================================== */
.testimonials-section {
  background-color: var(--light-bg);
}

.slider-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: var(--space-2);
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 300%; /* 3 slides */
}

.testimonial-slide {
  width: 33.333%;
  flex-shrink: 0;
  padding: var(--space-2);
}

.testimonial-card {
  background-color: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
}

.author-title {
  font-size: 12px;
  color: var(--primary-red);
  font-weight: 600;
  margin-top: 4px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--primary-red);
  width: 24px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-detail-card {
  background-color: var(--light-bg);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-detail-content p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.contact-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-1);
}

.contact-action-row .btn {
  flex-grow: 1;
}

/* Map frame wrapper */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Styling */
.contact-form-card {
  background-color: var(--white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-title {
  font-size: 22px;
  margin-bottom: var(--space-3);
}

.form-group {
  margin-bottom: var(--space-2);
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(10, 46, 99, 0.1);
}

/* Success state form */
.form-success-message {
  display: none;
  text-align: center;
  padding: var(--space-4) 0;
}

.form-success-message.active {
  display: block;
}

.form-success-message .success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  background-color: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-2);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: var(--dark-blue);
  color: var(--text-light);
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
  border-top: 4px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-widget h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: 8px;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-red);
}

body.rtl .footer-widget h3::after {
  left: auto;
  right: 0;
}

.footer-about img {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-about p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--white);
}

.social-icon:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-link-item a:hover {
  color: var(--white);
  padding-left: 6px;
}

body.rtl .footer-link-item a:hover {
  padding-left: 0;
  padding-right: 6px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   SERVICE REQUEST SECTION (LG Support Style)
   ========================================== */
.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.request-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.request-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.request-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  background-color: rgba(215, 25, 32, 0.05);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 24px;
  transition: var(--transition-normal);
}

.request-card:hover .request-icon-wrap {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: rotateY(180deg);
}

.request-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.request-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.request-action-btn {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.request-card:hover .request-action-btn {
  color: var(--primary-red);
}

/* ==========================================
   FLOATING ACTIONS
   ========================================== */
.floating-whatsapp {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999;
  font-size: 24px;
  transition: var(--transition-normal);
}

body.rtl .floating-whatsapp {
  right: auto;
  left: var(--space-3);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  background-color: #20ba5a;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================== */
.reveal {
  opacity: 0;
  transition: var(--transition-slow);
}

.reveal.reveal-up {
  transform: translateY(40px);
}

.reveal.reveal-down {
  transform: translateY(-40px);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-zoom {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: none;
}
