:root {
  --navy: #0d2257;
  --navy-dark: #081540;
  --navy-mid: #1a3a7a;
  --yellow: #f0e020;
  --yellow-light: #f7ec60;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --gray: #8a9ab5;
  --gray-light: #e8edf5;
  --text-dark: #0a1a40;
  --text-mid: #3d537a;
  --header-height: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif;
}

/* ─── HEADER (single row) ─── */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--header-height);
  box-shadow: 0 4px 30px rgba(13,34,87,0.4);
  transition: all 0.3s;
}
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo {
  height: calc(var(--header-height) - 16px);
  width: auto;
  display: block;
  max-height: 120px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 5px 14px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-transform: uppercase;
}
.lang-toggle:hover { background: var(--yellow); color: var(--navy-dark); }
.lang-toggle i { font-size: 1.1rem; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--header-height);
  box-shadow: 0 4px 30px rgba(13,34,87,0.4);
  transition: all 0.3s;
}
nav.main-header { background: var(--navy-dark); border-bottom: 2px solid var(--yellow); }
nav.scrolled { background: rgba(13,34,87,0.97); backdrop-filter: blur(10px); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
}
html[lang="ar"] .nav-links a {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
}
.nav-links a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.nav-cta {
  background: var(--yellow);
  color: var(--navy-dark) !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--yellow-light) !important; color: var(--navy-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: var(--navy-dark);
  z-index: 998;
  padding: 20px 40px;
  border-bottom: 2px solid var(--yellow);
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
html[lang="ar"] .mobile-menu a {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,58,122,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(240,224,32,0.06) 0%, transparent 60%),
    linear-gradient(160deg, #081540 0%, #0d2257 50%, #081840 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-accent {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(240,224,32,0.08);
  border-radius: 50%;
}
.hero-accent::before {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(240,224,32,0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,224,32,0.12);
  border: 1px solid rgba(240,224,32,0.3);
  color: var(--yellow);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-tag i { font-size: 1rem; flex-shrink: 0; }
html[lang="ar"] .hero-tag { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 10px;
  animation: fadeUp 0.8s 0.1s ease both;
}
html[lang="ar"] .hero-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.2s ease both;
}
html[lang="ar"] .hero-subtitle {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  font-weight: 300;
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy-dark);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--yellow);
  cursor: pointer;
  display: inline-block;
}
html[lang="ar"] .btn-primary { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.btn-primary:hover { background: transparent; color: var(--yellow); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  display: inline-block;
}
html[lang="ar"] .btn-secondary { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.8s 0.5s ease both;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}
.hero-stat:hover { background: rgba(240,224,32,0.08); border-color: rgba(240,224,32,0.2); }
.hero-stat .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .label {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
html[lang="ar"] .hero-stat .label { letter-spacing: 0; font-size: 0.85rem; }
.hero-products-strip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-products-strip .strip-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="ar"] .hero-products-strip .strip-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.strip-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.15); }
.product-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.product-chip {
  background: rgba(240,224,32,0.1);
  border: 1px solid rgba(240,224,32,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ─── SECTION COMMON ─── */
section { position: relative; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(13,34,87,0.06);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(13,34,87,0.12);
}
html[lang="ar"] .section-tag { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
html[lang="ar"] .section-title {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  font-weight: 800;
  line-height: 1.3;
}
.section-desc {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── ABOUT ─── */
#about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 48px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240,224,32,0.15) 0%, transparent 70%);
}
.about-card-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
html[lang="ar"] .about-card-tag { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.about-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
html[lang="ar"] .about-card h3 { font-family: 'Tajawal', sans-serif; line-height: 1.3; }
.about-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-pillar {
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar-icon { font-size: 1.2rem; display: flex; align-items: center; }
.pillar-icon i { font-size: inherit; color: var(--yellow); }
.pillar-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
html[lang="ar"] .pillar-text { font-size: 0.85rem; }

.about-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
html[lang="ar"] .about-text h2 {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  line-height: 1.3;
}
.about-text p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.about-divider {
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin-bottom: 28px;
  border-radius: 2px;
}
html[lang="ar"] .about-divider { margin-left: auto; margin-right: 0; }

/* ─── PRODUCTS ─── */
#products {
  padding: 100px 0;
  background: var(--off-white);
  overflow: hidden;
}
.products-section-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(13,34,87,0.06);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(13,34,87,0.12);
}
html[lang="ar"] .products-section-tag { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

.products-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 2px solid rgba(13,34,87,0.15);
  color: var(--text-mid);
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
html[lang="ar"] .tab-btn { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.tab-btn.active, .tab-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tab-btn.active { box-shadow: 0 4px 20px rgba(13,34,87,0.25); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  border: 1px solid var(--gray-light);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
html[lang="ar"] .product-card::before { transform-origin: right; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13,34,87,0.12);
  border-color: rgba(13,34,87,0.08);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(13,34,87,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--navy);
}
.product-card-icon i { font-size: 1.35rem; }
.product-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
html[lang="ar"] .product-card h3 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.product-card p {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.75;
}
.product-card-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(13,34,87,0.07);
  padding: 3px 10px;
  border-radius: 3px;
}
html[lang="ar"] .product-card-badge { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 0.75rem; }

.raw-card {
  border-left: 3px solid var(--yellow);
}
html[lang="ar"] .raw-card { border-left: none; border-right: 3px solid var(--yellow); }

/* ─── EVENTS / NEWS ─── */
#events {
  padding: 100px 0;
  background: var(--white);
}
.events-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.event-featured {
  background: var(--navy-dark);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.event-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,21,64,0.1) 0%, rgba(8,21,64,0.9) 100%);
  z-index: 1;
}
.event-featured-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 80% 20%, rgba(26,58,122,0.8) 0%, transparent 60%),
    var(--navy-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.event-featured-content { position: relative; z-index: 2; }
.event-type {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
html[lang="ar"] .event-type { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.event-featured h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
html[lang="ar"] .event-featured h3 { font-family: 'Tajawal', sans-serif; line-height: 1.3; }
.event-featured p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; }
.event-date {
  margin-top: 20px;
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.event-date i { font-size: 0.95rem; }
html[lang="ar"] .event-date { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}
.event-item {
  flex: 1;
  min-height: 0;
  background: var(--off-white);
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid var(--navy);
  transition: all 0.3s;
  cursor: default;
}
a.event-item { cursor: pointer; }
html[lang="ar"] .event-item { border-left: none; border-right: 3px solid var(--navy); }
.event-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(13,34,87,0.1); }
html[lang="ar"] .event-item:hover { transform: translateX(-4px); }
.event-item-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
html[lang="ar"] .event-item-type { letter-spacing: 0; font-size: 0.75rem; }
.event-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}
html[lang="ar"] .event-item h4 { font-family: 'Tajawal', sans-serif; line-height: 1.4; }
.event-item p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }

/* ─── DATA SHEET BANNER ─── */
#datasheet-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
#datasheet-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.datasheet-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.datasheet-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
html[lang="ar"] .datasheet-text h2 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.datasheet-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* ─── CONTACT ─── */
#contact {
  padding: 100px 0;
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
html[lang="ar"] .contact-info h3 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.contact-info p {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
  text-decoration: none;
}
.contact-item:hover { border-color: var(--navy); transform: translateX(4px); }
html[lang="ar"] .contact-item:hover { transform: translateX(-4px); }
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item-icon i { font-size: 1.15rem; }
.contact-item-content {}
.contact-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
html[lang="ar"] .contact-item-label { letter-spacing: 0; font-size: 0.78rem; }
.contact-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
  text-decoration: none;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 8px 40px rgba(13,34,87,0.06);
}
.contact-form-wrap h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}
html[lang="ar"] .contact-form-wrap h3 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
html[lang="ar"] .form-group label { letter-spacing: 0; font-size: 0.85rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: all 0.25s;
  outline: none;
}
html[lang="ar"] .form-group input,
html[lang="ar"] .form-group textarea,
html[lang="ar"] .form-group select {
  font-family: 'Tajawal', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(13,34,87,0.06);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
html[lang="ar"] .form-submit { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.form-submit:hover { background: transparent; color: var(--navy); }
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,160,80,0.08);
  border: 1px solid rgba(0,160,80,0.3);
  color: #006633;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 16px;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.25rem; flex-shrink: 0; }
.form-errors { margin-bottom: 16px; }
.form-error { display: block; color: #c00; font-size: 0.85rem; margin-bottom: 4px; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
}
html[lang="ar"] .footer-tagline { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1.25rem;
  transition: background 0.25s, color 0.25s;
}
.footer-social-link:hover {
  background: var(--yellow);
  color: var(--navy-dark);
}
.footer-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}
.footer-logo-text span { color: var(--yellow); }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
html[lang="ar"] .footer-col h4 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-location {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-location i { font-size: 1rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.25s;
}
.footer-bottom-links a:hover { color: var(--yellow); }

/* ─── DATASHEET PAGE ─── */
#datasheet-page {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--off-white);
}
.datasheet-page-hero {
  background: var(--navy);
  padding: 60px 0;
  text-align: center;
}
.datasheet-page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
html[lang="ar"] .datasheet-page-hero h1 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.datasheet-page-hero p { color: rgba(255,255,255,0.6); }
.datasheet-grid {
  padding: 60px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.datasheet-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
  gap: 16px;
  cursor: default;
}
.datasheet-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 30px rgba(13,34,87,0.1);
  transform: translateY(-3px);
}
.datasheet-card-info {}
.datasheet-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
html[lang="ar"] .datasheet-card-name { font-family: 'Tajawal', sans-serif; }
.datasheet-card-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}
html[lang="ar"] .datasheet-card-type { letter-spacing: 0; font-size: 0.8rem; }
.datasheet-download-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
  text-decoration: none;
}
.datasheet-download-btn:hover { background: var(--yellow); color: var(--navy-dark); }
.datasheet-download-btn i { font-size: 1.15rem; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 0;
  margin-bottom: 16px;
  cursor: pointer;
  background: none;
  border: none;
  transition: gap 0.25s;
}
html[lang="ar"] .back-btn { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.back-btn:hover { gap: 12px; }
.upcoming-note,
.datasheet-no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid);
}
.upcoming-note p,
.datasheet-no-data p { max-width: 400px; margin: 0 auto 24px; line-height: 1.7; }
.datasheet-no-data-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .events-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ─── NEWS & EVENTS PAGE ─── */
.news-events-page { padding-top: var(--header-height); min-height: 100vh; background: var(--off-white); }
.news-events-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 56px 0;
  text-align: center;
  color: var(--white);
}
.news-events-hero .section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.news-events-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
html[lang="ar"] .news-events-title { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
.news-events-desc { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.news-events-type-block { padding: 48px 0 32px; }
.news-events-type-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
html[lang="ar"] .news-events-type-title { font-family: 'Tajawal', sans-serif; }
.news-events-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-events-content .news-events-grid { order: 1; }
.news-events-content .news-events-pagination { order: 2; }
.news-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-event-card {
  display: block;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,34,87,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.news-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,34,87,0.14);
}
.news-event-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-light);
}
.news-event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.news-event-card:hover .news-event-card-cover img { transform: scale(1.05); }
.news-event-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 2.5rem;
}
.news-event-card-body { padding: 20px 22px; }
.news-event-card-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 8px;
}
.news-event-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
html[lang="ar"] .news-event-card-title { font-family: 'Tajawal', sans-serif; }
.news-event-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-event-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-event-card:hover .news-event-card-link { color: var(--yellow-light); }
.news-events-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid);
}
.news-events-empty-title { font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }

.news-events-pagination { margin-top: 40px; padding: 24px 0; text-align: center; }
.news-events-pagination .news-events-pagination-nav { display: block; position: static; top: auto; left: auto; right: auto; z-index: auto; background: transparent; box-shadow: none; height: auto; padding: 0; }
.news-events-pagination ul.pagination { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 16px 0; list-style: none; display: flex; align-items: center; }
.news-events-pagination .page-item { margin: 0; }
.news-events-pagination .page-link { display: inline-block; padding: 10px 16px; min-width: 44px; text-align: center; border-radius: 6px; font-weight: 500; text-decoration: none; color: var(--navy); background: var(--white); border: 2px solid var(--gray-light); transition: background 0.2s, border-color 0.2s; }
.news-events-pagination .page-item a.page-link:hover { background: rgba(13,34,87,0.06); border-color: var(--navy); color: var(--navy); }
.news-events-pagination .page-item.disabled .page-link { color: var(--text-mid); cursor: not-allowed; opacity: 0.7; }
.news-events-pagination .page-item.active .page-link { background: var(--navy); color: var(--white); border-color: var(--navy); }
.news-events-pagination .news-events-pagination-info { margin: 0; font-size: 0.9rem; color: var(--text-mid); }

/* ─── NEWS EVENT DETAIL ─── */
.news-event-detail { padding-top: var(--header-height); min-height: 100vh; background: var(--white); }
.news-event-detail-hero { position: relative; margin-bottom: 40px; }
.news-event-detail-cover {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: var(--gray-light);
}
.news-event-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-event-detail-hero .container { padding-top: 24px; }
.news-event-detail-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--yellow);
  background: var(--navy);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.news-event-detail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0;
}
html[lang="ar"] .news-event-detail-title { font-family: 'Tajawal', sans-serif; }
.news-event-detail-body { padding-bottom: 60px; }
.news-event-detail-content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.news-event-detail-content p { margin-bottom: 1em; }

@media (max-width: 768px) {
  :root { --header-height: 72px; }
  .header-logo { max-height: 56px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .hero-content { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .about-pillars { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .datasheet-grid { grid-template-columns: 1fr; }
  .news-events-grid { grid-template-columns: 1fr; }
  .news-events-title { font-size: 2rem; }
  .news-event-detail-title { font-size: 1.65rem; }
}

/* ─── RTL ─── */
html[lang="ar"] nav { direction: rtl; }
html[lang="ar"] .about-grid { direction: rtl; }
html[lang="ar"] .hero-content { direction: rtl; }
html[lang="ar"] .section-header { direction: rtl; }
html[lang="ar"] .contact-grid { direction: rtl; }
html[lang="ar"] .footer-grid { direction: rtl; }
html[lang="ar"] .footer-bottom { direction: rtl; }
html[lang="ar"] .datasheet-inner { direction: rtl; }
html[lang="ar"] .hero-btns { direction: rtl; }
html[lang="ar"] .section-desc { direction: rtl; }
html[lang="ar"] .news-events-hero { direction: rtl; }
html[lang="ar"] .news-events-type-block { direction: rtl; }
html[lang="ar"] .news-event-detail-hero .container { direction: rtl; }
html[lang="ar"] .news-event-detail-content { direction: rtl; }

/* Utility: hidden class */
.hidden { display: none !important; }
