/* ============================================
   KHAIRAT AL BASRA — Premium Design System
   Navy & Gold Contracting Company Theme
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background: #fff;
  color: #1e2a3a;
  overflow-x: hidden;
  transition: direction 0.3s ease;
}

/* === CSS VARIABLES === */
:root {
  --navy: #051c5e;
  --navy-rgb: 5, 28, 94;
  --dark-navy: #020c2e;
  --steel: #233568;
  --gold: #f37021;
  --gold-light: #ff8a45;
  --gold-dark: #d15a14;
  --gray-bg: #f5f7fa;
  --gray-100: #f8f9fb;
  --gray-200: #eef1f5;
  --gray-300: #dce1e8;
  --white: #ffffff;
  --dark-text: #1e2a3a;
  --body-text: #4a5568;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RTL / LANGUAGE === */
body.lang-ar { direction: rtl; text-align: right; }
body.lang-en { direction: ltr; text-align: left; }
body.lang-en .ar { display: none !important; }
body.lang-ar .en { display: none !important; }

/* === GLOBAL === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-light { background: var(--gray-bg); }
.bg-navy { background: var(--navy); color: #e2e8f0; }
.bg-dark { background: var(--dark-navy); color: #e2e8f0; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.bg-navy .section-header h2,
.bg-dark .section-header h2 { color: var(--white); }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--body-text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.bg-navy .section-header p,
.bg-dark .section-header p { color: #94a3b8; }
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: 3px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark-navy);
  padding: 14px 36px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(243, 112, 33, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(243, 112, 33, 0.5);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 35px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* === PRELOADER === */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark-navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 60px; height: 60px;
  border: 3px solid rgba(243, 112, 33,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo img {
  height: 95px;
  object-fit: contain;
  transition: var(--transition);
}
.navbar.scrolled .logo img {
  height: 70px;
}
.nav-menu {
  display: flex; list-style: none;
  gap: 8px; align-items: center;
}
.nav-link {
  text-decoration: none; font-weight: 600;
  color: var(--steel);
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--navy-rgb), 0.05);
  border: 1px solid rgba(var(--navy-rgb), 0.1);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
body.lang-ar .lang-btn { margin-left: 0; margin-right: 12px; }

.lang-btn::before {
  content: '\f0ac'; /* Globe icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
}

.lang-btn:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.2);
}

.lang-btn:hover::before {
  color: var(--gold-light);
  animation: rotateGlobe 2s linear infinite;
}

@keyframes rotateGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile Menu */
.menu-toggle {
  display: none; flex-direction: column;
  cursor: pointer; gap: 5px; padding: 4px;
}
.bar {
  width: 26px; height: 2.5px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark-navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&h=1080&fit=crop&q=80');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 12, 46,0.15) 0%,
    rgba(5, 28, 94,0.1) 50%,
    rgba(2, 12, 46,0.15) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 120px 24px 80px;
  margin: 0 auto; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(243, 112, 33,0.12);
  border: 1px solid rgba(243, 112, 33,0.25);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeInUp 0.8s ease 0.6s both;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.4rem; font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase; letter-spacing: 1px;
}

/* === PAGE HEADER === */
.page-header {
  padding: 180px 0 100px;
  background-color: var(--navy);
  background-image: url('https://images.unsplash.com/photo-1541888081622-c2e7f3521d96?w=1600&h=800&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(var(--navy-rgb), 0.15) 100%);
  z-index: -1;
}
.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}
.page-header .gold-line {
  margin: 20px auto 0;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-text { font-size: 1rem; line-height: 1.8; color: var(--body-text); }
.about-text p { margin-bottom: 20px; }
.about-text strong { color: var(--navy); }
.highlights {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
}
.highlight-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(243, 112, 33,0.08), rgba(243, 112, 33,0.04));
  border: 1px solid rgba(243, 112, 33,0.15);
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.85rem;
  color: var(--gold-dark);
}
.highlight-tag i { color: var(--gold); }

/* Clients */
.clients-section { margin-top: 28px; }
.clients-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--steel); margin-bottom: 20px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.client-logo {
  background: var(--white);
  padding: 32px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 140px;
}
.client-logo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.client-logo img {
  max-width: 100%; max-height: 100px;
  width: auto; height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: grayscale(0.2); opacity: 0.9;
  transition: var(--transition);
}
.client-logo:hover img { filter: none; opacity: 1; }

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(243, 112, 33,0.2);
}
.card-img {
  position: relative; overflow: hidden; height: 260px;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .card-img img {
  transform: scale(1.08);
}
.card-img .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 28, 94,0.6), transparent);
}
.service-body { padding: 32px; }
.service-body h3 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.service-body p {
  color: var(--body-text);
  font-size: 1rem; line-height: 1.6;
}

/* === PROJECTS === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.portfolio-img {
  position: relative; overflow: hidden; height: 220px;
}
.portfolio-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.08);
}
.portfolio-overlay {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--white);
  padding: 6px 12px; border-radius: var(--radius-xl);
  font-size: 0.8rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
body.lang-ar .portfolio-overlay { right: auto; left: 16px; }
.portfolio-info { padding: 24px; }
.portfolio-info h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.portfolio-info .client {
  color: var(--body-text); font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.portfolio-info .client i { color: var(--gold); }

/* === CERTIFICATES === */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(243, 112, 33,0.2);
}
.cert-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(243, 112, 33,0.1), rgba(243, 112, 33,0.05));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem; color: var(--gold);
}
.cert-card h4 {
  font-size: 1.2rem; color: var(--navy);
  margin-bottom: 8px; font-weight: 700;
}
.cert-card p {
  color: var(--body-text); font-size: 0.9rem;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 28, 94,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white); font-weight: 600; font-size: 0.9rem;
}

/* === CONTACT === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 {
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 8px;
}
.contact-info-card > p {
  color: #94a3b8; margin-bottom: 32px; font-size: 0.95rem;
}
.info-item {
  display: flex; align-items: flex-start;
  gap: 16px; margin-bottom: 28px;
}
.info-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(243, 112, 33,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
}
.info-details h4 {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: #64748b; margin-bottom: 4px;
}
.info-details a, .info-details p {
  color: #e2e8f0; font-size: 0.95rem;
  text-decoration: none; line-height: 1.5;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form-card h3 {
  font-size: 1.3rem; color: var(--navy);
  margin-bottom: 24px; font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600;
  font-size: 0.85rem; color: var(--steel);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-100);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(243, 112, 33,0.1);
}
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), #142638);
  color: var(--white);
  padding: 16px;
  font-weight: 700; font-size: 1rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.submit-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 112, 33,0.35);
}
.form-message { margin-top: 16px; font-size: 0.9rem; text-align: center; }

/* === FOOTER === */
.footer {
  background: var(--dark-navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 20px;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px; background: var(--gold);
}
body.lang-ar .footer-col h4::after { left: auto; right: 0; }

.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.footer-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.footer-logo img {
  margin-bottom: 0 !important;
  display: block;
}

.footer-desc {
  font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 24px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: var(--transition);
  text-decoration: none;
}
.social-links a:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a {
  color: #94a3b8; text-decoration: none; transition: var(--transition);
  display: inline-block; font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--gold); transform: translateX(5px); }
body.lang-ar .footer-nav a:hover { transform: translateX(-5px); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start;
  font-size: 0.95rem;
}
.footer-contact li i { color: var(--gold); margin-top: 5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; text-align: center;
}
.footer-copy {
  color: #64748b; font-size: 0.9rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 10px 0; }
  .navbar.scrolled { padding: 8px 0; }
  .logo img { height: 65px; }
  .navbar.scrolled .logo img { height: 55px; }

  .menu-toggle { 
    display: flex; 
    z-index: 1100;
  }
  
  .nav-menu {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh;
    flex-direction: column;
    background: var(--dark-navy);
    justify-content: center; 
    align-items: center;
    gap: 10px; 
    opacity: 0; 
    visibility: hidden;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1050;
    padding: 60px 24px;
  }
  
  .nav-menu.active { 
    right: 0; 
    opacity: 1; 
    visibility: visible;
  }
  
  .nav-menu li {
    width: auto;
    text-align: center;
  }
  
  .nav-link { 
    font-size: 1.5rem; 
    padding: 15px 25px; 
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
  }
  
  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Staggered Animation */
  .nav-menu li:nth-child(1) .nav-link { transition-delay: 0.1s; }
  .nav-menu li:nth-child(2) .nav-link { transition-delay: 0.15s; }
  .nav-menu li:nth-child(3) .nav-link { transition-delay: 0.2s; }
  .nav-menu li:nth-child(4) .nav-link { transition-delay: 0.25s; }
  .nav-menu li:nth-child(5) .nav-link { transition-delay: 0.3s; }
  .nav-menu li:nth-child(6) .nav-link { transition-delay: 0.35s; }
  .nav-menu li:nth-child(7) .nav-link { transition-delay: 0.4s; }
  
  .lang-btn {
    margin-top: 40px;
    background: var(--gold);
    color: var(--white) !important;
    border: none;
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: var(--radius-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease 0.45s;
  }
  
  .nav-menu.active .lang-btn {
    opacity: 1;
    transform: translateY(0);
  }
  
  .menu-toggle.active .bar {
    background: var(--white);
  }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-padding { padding: 70px 0; }
  .section-header h2 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 100px 16px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === RTL ALIGNMENT & MIRRORING === */
body.lang-ar .btn-primary i,
body.lang-ar .btn-outline i,
body.lang-ar .hero-badge i,
body.lang-ar .fa-arrow-right,
body.lang-ar .fa-chevron-right,
body.lang-ar .fa-paper-plane {
  transform: scaleX(-1);
}

body.lang-ar .nav-menu {
  right: auto;
  left: -100%;
}

body.lang-ar .nav-menu.active {
  left: 0;
  right: auto;
}

body.lang-ar .info-item {
  text-align: right;
}

body.lang-ar .footer-logo {
  text-align: right;
}

body.lang-ar .contact-form-card h3 {
  text-align: right;
}

body.lang-ar .form-group label {
  text-align: right;
}

body.lang-ar .submit-btn i {
  margin-left: 0 !important;
  margin-right: 12px !important;
  transform: scaleX(-1);
}

body.lang-ar .portfolio-overlay {
  left: 16px;
  right: auto;
}

body.lang-ar .portfolio-info .client i {
  margin-left: 8px;
  margin-right: 0;
}

@media (max-width: 768px) {
  body.lang-ar .nav-menu {
    right: auto;
    left: -100%;
  }
  body.lang-ar .nav-menu.active {
    left: 0;
    right: auto;
  }
}
