/* ========================================
   BoSin ENERGY — Apple-style Minimalist
   Brand: Red (#E8383D) + Dark (#1D1D1F)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --red: #E8383D;
  --red-dark: #C42E33;
  --red-light: #FFF5F5;
  
  /* Neutrals */
  --black: #1D1D1F;
  --gray-900: #2D2D2F;
  --gray-700: #6E6E73;
  --gray-500: #86868B;
  --gray-300: #D2D2D7;
  --gray-100: #F5F5F7;
  --white: #FFFFFF;
  
  /* Spacing */
  --section-pad: 120px;
  --container: 1200px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- RTL / Arabic ---- */
body[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}
body[dir="rtl"] .nav-links { gap: 28px; }
body[dir="rtl"] .section-badge { letter-spacing: 1px; }
body[dir="rtl"] .hero h1 { letter-spacing: -0.01em; }
[data-lang="ar"] { display: none; }
body[dir="rtl"] [data-lang="ar"] { display: unset; }
body[dir="rtl"] [data-lang="en"] { display: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 640px;
  font-weight: 400;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 56, 61, 0.3);
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,56,61,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-content { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--red-light);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 19px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 56, 61, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ---- Stats Bar ---- */
.stats {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-number span {
  font-size: 28px;
  font-weight: 600;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- Products ---- */
.products {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.product-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card-body {
  padding: 28px;
}

.product-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  background: var(--red-light);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

.product-card-specs {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
  font-size: 12px;
  color: var(--gray-500);
}

.spec-item strong {
  display: block;
  font-size: 16px;
  color: var(--black);
  font-weight: 600;
}

/* ---- Features / Technology ---- */
.features {
  padding: var(--section-pad) 0;
  background: var(--gray-100);
}

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

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ---- Applications / Scenes ---- */
.scenes {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.scene-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

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

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

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
}

.scene-overlay h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scene-overlay p {
  font-size: 14px;
  opacity: 0.85;
}

/* ---- Cases ---- */
.cases {
  padding: var(--section-pad) 0;
  background: var(--gray-100);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  transition: all 0.3s;
}

.case-card:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
}

.case-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.case-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 16px;
}

.case-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-content p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.case-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-spec {
  font-size: 13px;
  color: var(--gray-500);
}

.case-spec strong {
  display: block;
  font-size: 18px;
  color: var(--black);
  font-weight: 600;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 100px 0;
  background: var(--black);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,56,61,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.cta-banner p {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 36px;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ---- About ---- */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-list {
  list-style: none;
  margin-top: 24px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.about-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Contact ---- */
.contact {
  padding: var(--section-pad) 0;
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 56px;
}

.contact-info { }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--gray-700);
}

.contact-item a {
  color: var(--red);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

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

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

/* ---- Footer ---- */
.footer {
  padding: 60px 0 32px;
  background: var(--black);
  color: var(--gray-500);
}

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

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--gray-500);
  font-size: 20px;
  transition: color 0.2s;
}

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

/* ---- Factory Gallery ---- */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.factory-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.factory-item:hover img {
  transform: scale(1.08);
}

.factory-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ---- Cert Grid ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.cert-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.cert-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.cert-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cert-card p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Product Filter ---- */
.product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  color: var(--gray-700);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* ---- Lang Toggle ---- */
.lang-toggle {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---- RTL Support ---- */
[dir="rtl"] .nav-links {
  gap: 28px;
}

[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 16px;
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -32px;
}

/* ---- Responsive Factory ---- */
@media (max-width: 768px) {
  .factory-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ---- Product Category Filter ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* ---- Spec Table ---- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.spec-table th {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-100);
}
.spec-table td {
  color: var(--gray-700);
}
.spec-table tr:hover td {
  background: var(--red-light);
}
body[dir="rtl"] .spec-table th,
body[dir="rtl"] .spec-table td {
  text-align: right;
}

/* ---- Product Detail ---- */
.product-detail {
  padding: 120px 0 60px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}
.product-detail-img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}
.product-detail-specs {
  list-style: none;
}
.product-detail-specs li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.product-detail-specs li span:first-child {
  color: var(--gray-500);
  font-weight: 500;
}
.product-detail-specs li span:last-child {
  color: var(--black);
  font-weight: 600;
}

/* ---- Timeline (About) ---- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-300);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}
body[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}
body[dir="rtl"] .timeline::before {
  left: auto;
  right: 15px;
}
body[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -33px;
}

/* ---- Certification Badges ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cert-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.cert-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.cert-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cert-card p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Application Cards ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.app-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.app-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.app-card-body {
  padding: 28px;
}
.app-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.app-card-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-grid { grid-template-columns: 1fr; }
  .filter-bar { justify-content: flex-start; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }
  .lang-toggle { padding: 5px 10px; font-size: 12px; }
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
  }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
