/* 
 * ==========================================
 * Arak Support Services - Official Stylesheet
 *شركة آراك للخدمات المساندة - الموقع الرسمي
 * ==========================================
 * Pure CSS3 (No Frameworks, No Build, No Tailwind)
 * Highly optimized for ultra-fast load speed & responsive fluid design.
 * Official Color Palette: White, Warm Gold, Beige, Dark Green, Dark Gray.
 */

/* ------------------------------------------
 * 1. FONTS & VARIABLES
 * ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --primary: #042a25;         /* Deep Emerald Green */
  --primary-light: #0a3d36;   /* Medium Emerald Green */
  --primary-dark: #021815;    /* Deep Forest Black */
  --secondary: #c5a880;       /* Warm Gold */
  --secondary-light: #dfcfb7; /* Light Champagne */
  --secondary-dark: #ab8857;  /* Dark Bronze Gold */
  --beige: #f7f4eb;           /* Soft Beige */
  --beige-light: #fdfaf6;     /* Pure Sand Pearl */
  --beige-dark: #e8e2d0;      /* Dark Warm Beige */
  --text-dark: #1f2937;       /* Rich Charcoal Gray */
  --text-light: #ffffff;      /* Pure White */
  --white: #ffffff;           /* Pure White */
  --text-muted: #6b7280;      /* Slate Gray */
  --border-color: #e5e7eb;    /* Light Border Gray */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-title: 'Tajawal', sans-serif;
  --font-body: 'Noto Kufi Arabic', sans-serif;
}

/* ------------------------------------------
 * 2. RESET & BASE STYLES
 * ------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--beige-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--beige);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

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

button, input, select, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

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

/* Islamic Geometric Pattern Accent */
.islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23c5a880' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4h4l-4 4V0zm0 4h6l-6 6V0zm0 4h8l-8 8V0zm0 4h10l-10 10V0zm0 4h12l-12 12V0zm0 4h14l-14 14V0zm0 4h16l-16 16V0zm0 4h18l-18 18V0zm0 4h20l-20 20V0zm0 4h22l-22 22V0zm0 4h24l-24 24V0zm0 4h26l-26 26V0zm0 4h28l-28 28V0zm0 4h30l-30 30V0zm0 4h32l-32 32V0zm0 4h34l-34 34V0zm0 4h36l-36 36V0zm0 4h38l-38 38V0zm0 4h40l-40 40V0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------
 * 3. LAYOUT & GRID UTILITIES
 * ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 80px 0;
  position: relative;
}

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

.section-beige {
  background-color: var(--beige);
}

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

.section-badge {
  color: var(--secondary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  background-color: rgba(197, 168, 128, 0.12);
  padding: 6px 16px;
  border-radius: 50px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-desc {
  color: #dfdfdf;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  margin: 16px auto 0 auto;
  border-radius: 10px;
}

/* ------------------------------------------
 * 4. HEADERS (TOP BAR & MAIN NAV)
 * ------------------------------------------ */
/* Top Header */
.top-header {
  background-color: var(--primary-dark);
  color: #dfdfdf;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact-info {
  display: flex;
  gap: 24px;
  direction: ltr;
}

.top-contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cccccc;
}

.top-contact-info a:hover {
  color: var(--secondary-light);
}

.top-contact-info svg {
  width: 14px;
  height: 14px;
  stroke: var(--secondary);
}

.top-social-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social-info span {
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--secondary-light);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #cccccc;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--secondary);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Main Navigation Header */
.main-header {
  position: absolute;
  top: 42px; /* Fits exactly below top-header */
  left: 0;
  width: 100%;
  z-index: 99;
  transition: var(--transition-smooth);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .top-header {
    display: none;
  }
  .main-header {
    top: 0;
  }
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo setup */
/* Logo setup */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-main-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(197, 168, 128, 0.15));
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container:hover .company-main-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(197, 168, 128, 0.35));
}

.logo-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--secondary); /* Premium gold border */
  box-shadow: 0 4px 15px rgba(4, 42, 37, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer reflection sheen on hover */
.logo-icon-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.logo-container:hover .logo-icon-bg::after {
  left: 150%;
}

.logo-container:hover .logo-icon-bg {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.25);
  border-color: var(--secondary-light);
}

/* Subtle pulse animation for logo on hover to increase brand engagement */
@keyframes logoPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.logo-container:hover .logo-icon-bg {
  animation: logoPulse 1.5s ease-in-out infinite;
}

.logo-icon-bg svg {
  width: 24px;
  height: 24px;
  color: var(--secondary); /* Gold icon */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-light); /* Starts light over Hero */
  line-height: 1.2;
  transition: var(--transition-smooth);
}

.logo-text span {
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Luxurious Gold typography highlight for ARAK / آراك */
.logo-highlight {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary), #f5dfb8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Navigation Links Desktop */
.navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85); /* Over Hero starts light */
}

.nav-link:hover {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: var(--secondary);
  color: var(--primary-dark) !important;
}

/* Header CTA Button */
.header-cta .btn {
  padding: 10px 20px;
  font-size: 12px;
}

/* Header scroll transitions */
.main-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(4, 42, 37, 0.06);
  padding: 10px 0;
  top: 0;
}

.main-header.scrolled .logo-text h3 {
  color: var(--primary);
}

.main-header.scrolled .navbar {
  background-color: rgba(4, 42, 37, 0.03);
  border-color: rgba(4, 42, 37, 0.06);
}

.main-header.scrolled .nav-link {
  color: var(--text-dark);
}

.main-header.scrolled .nav-link:hover {
  background-color: rgba(4, 42, 37, 0.05);
  color: var(--primary);
}

.main-header.scrolled .nav-link.active {
  background-color: var(--primary);
  color: var(--text-light) !important;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.main-header.scrolled .mobile-nav-toggle {
  color: var(--primary);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 991px) {
  .navbar, .header-cta {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .logo-text span {
    display: none !important; /* Hide subtitle to reduce mobile text clutter */
  }
  .logo-text h3 {
    font-size: 14px !important; /* Make title text size smaller and more readable */
  }
  .logo-container {
    gap: 8px !important; /* Tighter gap */
  }
  .logo-icon-bg {
    width: 36px !important; /* Smaller background for fallback icon */
    height: 36px !important;
    border-radius: 8px !important;
  }
  .logo-icon-bg svg {
    width: 18px !important; /* Smaller SVG inside fallback */
    height: 18px !important;
  }
  .company-main-logo {
    max-height: 36px !important; /* Ensure image logo matches smaller height */
    width: auto !important;
  }
  .lang-trigger-text {
    display: none !important; /* Hide Arabic/English text to save space */
  }
  .lang-dropdown-trigger {
    padding: 6px 10px !important; /* More compact trigger padding */
    gap: 4px !important;
  }
  .main-header .container {
    padding: 0 16px !important; /* Compact container padding for breathing space */
  }
}

@media (max-width: 400px) {
  .logo-text h3 {
    font-size: 12px !important; /* Extra small for narrow screens */
  }
  .main-header .container {
    padding: 0 10px !important; /* Even narrower padding */
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--white);
  z-index: 101;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  left: auto;
  right: 0; /* Align right since we are RTL */
}

/* If we put slide-in from right */
.mobile-drawer {
  right: -100%;
  left: auto;
}
.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-drawer-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: 12px;
}

.mobile-menu-link:hover, .mobile-menu-link.active {
  background-color: var(--beige);
  color: var(--primary);
}

.mobile-drawer-cta {
  margin-top: auto;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 42, 37, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------------------
 * 5. HERO SECTION
 * ------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
}

/* Hero gradient overlays to ensure text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(4, 42, 37, 0.98) 0%, rgba(4, 42, 37, 0.8) 40%, rgba(4, 42, 37, 0.3) 100%);
  z-index: 1;
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--beige-light), transparent);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(10, 61, 54, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  color: var(--secondary-light);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 24px;
  animation: pulseGlow 3s infinite;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--secondary);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--secondary);
}

.hero-desc {
  font-size: 16px;
  color: #e5e7eb;
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 400;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }
}

/* Mouse Scroll down animation */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--secondary-light);
  font-size: 11px;
  font-weight: 500;
}

.scroll-indicator svg {
  width: 24px;
  height: 36px;
  stroke: var(--secondary);
  animation: bounce 2s infinite;
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-dark:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ------------------------------------------
 * 6. ABOUT SECTION (Overlap Cards)
 * ------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bullets {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-bullet svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-bullet-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.about-bullet-text p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Three overlapping cards layout */
.overlapping-cards-wrapper {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlap-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.overlap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Master Image Card (Main) */
.overlap-card-1 {
  width: 75%;
  height: 350px;
  right: 0;
  top: 30px;
  z-index: 3;
}

/* Left Lower Image Card */
.overlap-card-2 {
  width: 55%;
  height: 220px;
  left: 0;
  bottom: 20px;
  z-index: 2;
  border: 6px solid var(--beige-light);
}

/* Golden floating info badge card */
.overlap-card-3 {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 24px;
  width: 210px;
  left: 20px;
  top: 10px;
  z-index: 4;
  border-right: 4px solid var(--secondary);
  box-shadow: 0 15px 30px rgba(4, 42, 37, 0.15);
}

.overlap-card-3 span {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.overlap-card-3 p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .overlapping-cards-wrapper {
    height: 380px;
  }
  .overlap-card-1 {
    width: 80%;
    height: 260px;
  }
  .overlap-card-2 {
    width: 60%;
    height: 160px;
  }
  .overlap-card-3 {
    width: 160px;
    padding: 16px;
    top: 0;
    left: 10px;
  }
  .overlap-card-3 p {
    font-size: 11px;
  }
}

/* ------------------------------------------
 * 7. VISION & MISSION
 * ------------------------------------------ */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
}

.vision-card {
  background-color: var(--text-light);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background-color: var(--secondary);
}

.vision-card-primary::before {
  background-color: var(--primary);
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(4, 42, 37, 0.06);
}

.vision-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vision-card-primary .vision-icon {
  background-color: rgba(4, 42, 37, 0.05);
  color: var(--primary);
}

.vision-icon svg {
  width: 28px;
  height: 28px;
}

.vision-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.vision-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ------------------------------------------
 * 8. WHY CHOOSE US
 * ------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.why-card {
  background-color: var(--text-light);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(4, 42, 37, 0.06);
  border-color: var(--secondary-light);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--beige);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
  background-color: var(--primary);
  color: var(--secondary);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------
 * 9. GROUP COMPANIES & ACCORDIONS (REBUILT)
 * ------------------------------------------ */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.company-card {
  background-color: var(--text-light);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(4, 42, 37, 0.06);
  border-color: var(--secondary-light);
}

.company-card-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(4, 42, 37, 0.05);
}

.company-card-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--beige-dark);
}

.company-card-logo-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--secondary-dark);
}

.company-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary-dark);
  background-color: rgba(197, 168, 128, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
}

.company-card-body {
  padding: 24px;
  flex-grow: 1;
}

.company-card h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.company-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.company-card-footer {
  padding: 0 24px 24px 24px;
}

/* Accordion expand button */
.accordion-toggle {
  background: none;
  border: none;
  color: var(--secondary-dark);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: var(--transition-smooth);
}

.accordion-toggle:hover {
  color: var(--primary);
}

.accordion-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.accordion-toggle.active svg {
  transform: rotate(180deg); /* points straight up when active */
}

/* Nested Expandable Card/Panel */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--beige-light);
}

.accordion-inner {
  padding: 20px 24px;
  border-top: 1px solid rgba(4, 42, 37, 0.05);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-inner-desc {
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
}

.accordion-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-item {
  background-color: var(--white);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.metric-item span {
  font-size: 9px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.metric-item strong {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  display: block;
}

.accordion-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-feature-li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.accordion-feature-li svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.accordion-feature-li span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ------------------------------------------
 * 10. STATISTICS TABS
 * ------------------------------------------ */
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background-color: var(--white);
  padding: 8px;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.tab-btn {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--primary);
  background-color: var(--beige-light);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Stats Cards Grid */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(4, 42, 37, 0.05);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--secondary-light));
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--beige);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-card-number {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  direction: ltr;
}

.stat-card-label {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------
 * 11. STRATEGIC PROJECTS
 * ------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(4, 42, 37, 0.06);
}

.project-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: var(--primary-dark);
}

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

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

.project-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.project-body {
  padding: 20px;
  flex-grow: 1;
}

.project-body h3 {
  font-family: var(--font-title);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-footer {
  padding: 0 20px 20px 20px;
}

.project-status {
  font-size: 10.5px;
  color: var(--secondary-dark);
  font-weight: 700;
  display: block;
}

/* ------------------------------------------
 * 12. PARTNERS SECTION
 * ------------------------------------------ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 991px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-item {
  background-color: var(--white);
  border-radius: 12px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  padding: 12px;
}

.partner-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(197, 168, 128, 0.1);
}

.partner-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.partner-logo-box svg {
  width: 32px;
  height: 32px;
  color: var(--primary-light);
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.partner-item:hover svg {
  filter: grayscale(0);
  opacity: 1;
  color: var(--secondary-dark);
  transform: scale(1.05);
}

.partner-logo-box span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

/* ------------------------------------------
 * 13. CONTACT SECTION
 * ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

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

.contact-form-wrapper {
  background-color: var(--white);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 24px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .form-group-full {
    grid-column: span 1;
  }
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.form-control {
  width: 100%;
  background-color: var(--beige-light);
  border: 1px solid var(--beige-dark);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ab8857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Contact sidebar info */
.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-sidebar-bg-accent {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background-color: rgba(197, 168, 128, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-header {
  margin-bottom: 30px;
}

.contact-info-header h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.contact-info-header p {
  font-size: 13px;
  color: #cccccc;
}

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

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 18px;
  height: 18px;
}

.contact-method-details h4 {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.contact-method-details span, .contact-method-details a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.contact-method-details a:hover {
  color: var(--secondary);
}

.contact-social-wrap {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.contact-social-wrap h4 {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.contact-social-icons {
  display: flex;
  gap: 12px;
}

.contact-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfdfdf;
  transition: var(--transition-smooth);
}

.contact-social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.contact-social-icon svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------
 * 14. FOOTER
 * ------------------------------------------ */
.footer {
  background-color: var(--primary-dark);
  color: #9ca3af;
  padding: 60px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand h3 {
  font-family: var(--font-title);
  color: var(--text-light);
  font-size: 20px;
  font-weight: 800;
}

.footer-brand span {
  color: var(--secondary);
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #cccccc;
}

.footer-links-col h4 {
  font-family: var(--font-title);
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: #b3b3b3;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(-4px); /* nudge left since we are RTL */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

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

/* ------------------------------------------
 * 15. FLOATING COMPONENTS
 * ------------------------------------------ */
/* Scroll progress bar at very top */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}

#scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to left, var(--secondary), var(--secondary-light));
  transition: width 0.1s ease;
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  z-index: 98;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(4, 42, 37, 0.15);
  z-index: 98;
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-4px);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Premium Floating Contact Panel */
.floating-contact-panel {
  position: fixed;
  left: -130px; /* Hidden except for ~30% shown */
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  background-color: var(--primary);
  border-radius: 0 16px 16px 0; /* rounded corner facing screen */
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-left: none;
  box-shadow: 6px 0 24px rgba(4, 42, 37, 0.2);
  z-index: 97;
  transition: var(--transition-smooth);
}

/* In RTL website, let's keep it on the left edge so it slides rightwards */
.floating-contact-panel {
  left: -130px;
  right: auto;
}

.floating-contact-panel.shrunk {
  left: -155px; /* Hides partially on scroll down */
  opacity: 0.6;
}

.floating-contact-panel:hover {
  left: 0 !important;
  opacity: 1 !important;
}

.floating-panel-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-panel-item {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Pushes content right so the icon sits on the visible edge */
  gap: 12px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.floating-panel-item span {
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.floating-contact-panel:hover .floating-panel-item span {
  opacity: 1;
}

.floating-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.floating-panel-icon svg {
  width: 16px;
  height: 16px;
}

.floating-panel-item:hover {
  color: var(--secondary-light);
}

.floating-panel-item:hover .floating-panel-icon {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

/* ------------------------------------------
 * 16. ANIMATIONS & REVEALS
 * ------------------------------------------ */
/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(197, 168, 128, 0);
  }
}

/* Hide sliding contact panel on mobile and tablet */
@media (max-width: 768px) {
  .floating-contact-panel {
    display: none;
  }
}

/* ------------------------------------------
 * 17. PREMIUM BILINGUAL LANGUAGE SWITCHER
 * ------------------------------------------ */
/* Accessibility Focus Rings (Task 6) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.4) !important;
}

/* Desktop Premium Dropdown Switcher */
.lang-switcher-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

.lang-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  transform: translateY(-1px);
}

.main-header.scrolled .lang-dropdown-trigger {
  background: rgba(4, 42, 37, 0.03);
  border-color: rgba(4, 42, 37, 0.1);
  color: var(--text-dark);
}

.main-header.scrolled .lang-dropdown-trigger:hover {
  background: rgba(4, 42, 37, 0.06);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-trigger-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-trigger-flag svg {
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.lang-dropdown-trigger:hover .lang-trigger-flag svg {
  transform: scale(1.1);
}

.lang-trigger-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.lang-trigger-arrow {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.lang-switcher-dropdown.open .lang-trigger-arrow {
  transform: rotate(180deg);
}

/* Floating Dropdown Menu Card */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; /* Align perfectly */
  background: var(--white);
  border: 1px solid rgba(4, 42, 37, 0.08);
  border-radius: 16px;
  min-width: 160px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(4, 42, 37, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
}

/* Open state for the dropdown */
.lang-switcher-dropdown.open .lang-dropdown-menu,
.lang-switcher-dropdown:hover .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* LTR layout alignment adjustments */
html[dir="ltr"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-align: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  outline: none;
}

.lang-dropdown-item:hover {
  background: rgba(4, 42, 37, 0.04);
  color: var(--primary);
  padding-inline-start: 18px; /* Smooth elegant slide-in text effect on hover */
}

.lang-dropdown-item .lang-flag {
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.lang-check-icon {
  margin-inline-start: auto; /* Push to the opposite end */
  stroke: var(--primary);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-smooth);
}

/* Selected language highlights inside menu */
.lang-dropdown-item.active {
  background: rgba(4, 42, 37, 0.06);
  color: var(--primary);
  font-weight: 700;
}

.lang-dropdown-item.active .lang-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Mobile Segmented Language Switcher inside Drawer */
.mobile-lang-switcher-container {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  width: 100%;
}

.mobile-lang-control {
  display: flex;
  background: rgba(4, 42, 37, 0.04);
  border: 1px solid rgba(4, 42, 37, 0.08);
  border-radius: 14px;
  padding: 4px;
  width: 100%;
  max-width: 280px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.mobile-lang-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
  transition: var(--transition-smooth);
  outline: none;
}

.mobile-lang-btn svg {
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.mobile-lang-btn.active {
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(4, 42, 37, 0.2);
}

/* ------------------------------------------
 * 18. PREMIUM BILINGUAL ARTICLE READER VIEW
 * ------------------------------------------ */
.article-reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-reader-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.article-reader-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 42, 37, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.article-reader-container {
  position: relative;
  width: 90%;
  max-width: 960px;
  height: 85vh;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(4, 42, 37, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.article-reader-modal.open .article-reader-container {
  transform: translateY(0) scale(1);
}

.article-reader-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-color);
  background: #fbfbfa;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: rgba(0, 0, 0, 0.15);
  font-size: 11px;
}

.breadcrumb-category {
  font-weight: 600;
  color: var(--secondary-dark);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(4, 42, 37, 0.15);
}

.article-close-btn:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateX(-4px);
}

[dir="ltr"] .article-close-btn:hover {
  transform: translateX(4px);
}

.article-reader-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
}

.article-hero {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-dark);
}

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

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(4, 42, 37, 0.95) 15%, rgba(4, 42, 37, 0.4) 60%, rgba(4, 42, 37, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 50px;
}

.article-meta-badge {
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 14px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.3);
}

.article-main-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 800px;
}

.article-meta-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 500;
}

.article-body-text {
  padding: 40px 50px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #333333;
}

.article-body-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-body-text h3 {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Dynamic styles for card read-more link & layout */
.project-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 12px;
  margin-top: 12px;
}

.project-date-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.project-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-smooth);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.project-readmore-btn:hover {
  color: var(--secondary);
}

.project-readmore-btn svg {
  transition: transform 0.3s ease;
}

.project-readmore-btn:hover svg {
  transform: translateX(-4px);
}

[dir="ltr"] .project-readmore-btn:hover svg {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-reader-container {
    width: 95%;
    height: 90vh;
    border-radius: 16px;
  }
  
  .article-reader-header-bar {
    padding: 14px 20px;
  }
  
  .article-hero {
    height: 250px;
  }
  
  .article-hero-overlay {
    padding: 20px;
  }
  
  .article-main-title {
    font-size: 20px;
  }
  
  .article-body-text {
    padding: 24px 20px;
    font-size: 14.5px;
  }
  
  .breadcrumb-current {
    max-width: 120px;
  }
}

/* ==========================================================================
   20. ENGLISH LAYOUT BIDI & PUNCTUATION CORRECTIONS
   ========================================================================== */
html[dir="ltr"] [data-i18n],
html[dir="ltr"] .project-card,
html[dir="ltr"] .stat-card,
html[dir="ltr"] .why-card,
html[dir="ltr"] .company-card,
html[dir="ltr"] .accordion-content,
html[dir="ltr"] .modal-content,
html[dir="ltr"] .article-reader-content,
html[dir="ltr"] .form-group,
html[dir="ltr"] .alert,
html[dir="ltr"] .tooltip,
html[dir="ltr"] p,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] span:not(.top-contact-info *):not([dir="rtl"]),
html[dir="ltr"] a:not(.top-contact-info *):not([dir="rtl"]),
html[dir="ltr"] li,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea,
html[dir="ltr"] label {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left;
}

/* Maintain text-align: center for headers/centered content in LTR mode */
html[dir="ltr"] .section-header,
html[dir="ltr"] .section-header *,
html[dir="ltr"] .text-center,
html[dir="ltr"] .text-center * {
  text-align: center !important;
}

/* Maintain text-align: justify for article paragraphs in LTR mode */
html[dir="ltr"] .article-body-text p {
  text-align: justify !important;
}

